:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.modal-overlay{position:fixed;inset:0;background-color:#0009;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.outstanding-bills-modal{background:#fff;border-radius:12px;width:90vw;max-width:1200px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 25px 50px -12px #00000040;animation:modalSlideIn .3s ease-out}.payment-modal{background:#fff;border-radius:12px;width:90vw;max-width:500px;box-shadow:0 25px 50px -12px #00000040;animation:modalSlideIn .3s ease-out}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(-20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #e5e7eb;background-color:#f9fafb;border-radius:12px 12px 0 0}.modal-title{display:flex;align-items:center;gap:12px}.modal-title h2,.modal-title h3{margin:0;color:#1f2937;font-size:20px;font-weight:600}.modal-title p{margin:4px 0 0;color:#6b7280;font-size:14px;font-weight:500}.close-btn{background:none;border:none;padding:8px;border-radius:6px;cursor:pointer;color:#6b7280;transition:all .2s}.close-btn:hover{background-color:#f3f4f6;color:#374151}.modal-content{flex:1;overflow-y:auto;padding:0}.loading-state,.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;color:#6b7280}.loading-state .spinner{width:40px;height:40px;border:4px solid #e5e7eb;border-top:4px solid #3b82f6;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:16px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.empty-state h3{margin:16px 0 8px;color:#374151}.bills-table-container{overflow-x:auto}.bills-table{width:100%;border-collapse:collapse;font-size:14px}.bills-table th{background-color:#f8fafc;padding:12px 16px;text-align:left;font-weight:600;color:#374151;border-bottom:1px solid #e5e7eb;white-space:nowrap}.bills-table td{padding:16px;border-bottom:1px solid #f3f4f6;vertical-align:top}.bills-table tr:hover{background-color:#f9fafb}.bill-id code{background-color:#f3f4f6;padding:4px 8px;border-radius:4px;font-family:Courier New,monospace;font-size:12px;color:#6b7280}.client-info{display:flex;align-items:center;gap:8px}.client-name{font-weight:500;color:#1f2937;margin:0 0 2px}.client-email{font-size:12px;color:#6b7280;margin:0}.service-details{min-width:200px}.service-type{font-weight:500;color:#1f2937;margin:0 0 8px}.expenses-summary{display:flex;flex-direction:column;gap:4px}.expense-item{display:flex;justify-content:space-between;font-size:12px;color:#6b7280;padding:2px 0}.bill-amount{text-align:right;font-size:12px}.bill-amount .subtotal,.bill-amount .platform-fee{color:#6b7280;margin-bottom:2px}.bill-amount .total{font-weight:600;color:#1f2937;font-size:14px;border-top:1px solid #e5e7eb;padding-top:4px;margin-top:4px}.outstanding-amount .amount.outstanding{color:#dc2626;font-weight:600;font-size:16px}.due-date{display:flex;align-items:center;gap:6px;font-size:12px;color:#6b7280}.overdue-badge{background-color:#fecaca;color:#dc2626;padding:2px 6px;border-radius:12px;font-size:10px;font-weight:500;margin-left:6px}.bill-status .status-badge{padding:4px 8px;border-radius:12px;font-size:11px;font-weight:500;text-transform:capitalize}.bill-status .status-badge.pending{background-color:#fef3c7;color:#f59e0b}.bill-status .status-badge.partial{background-color:#fed7aa;color:#ea580c}.bill-status .status-badge.completed{background-color:#d1fae5;color:#059669}.bill-actions .action-btn.payment{background-color:#3b82f6;color:#fff;border:none;padding:6px 12px;border-radius:6px;cursor:pointer;font-size:12px;display:flex;align-items:center;gap:4px;transition:background-color .2s}.bill-actions .action-btn.payment:hover{background-color:#2563eb}.payment-content{padding:24px}.payment-type-buttons{display:flex;gap:12px;margin-bottom:24px}.payment-type-btn{flex:1;padding:12px 16px;border:2px solid #e5e7eb;background:#fff;border-radius:8px;cursor:pointer;font-weight:500;transition:all .2s}.payment-type-btn.active{border-color:#3b82f6;background-color:#eff6ff;color:#1d4ed8}.payment-type-btn:hover:not(.active){border-color:#d1d5db;background-color:#f9fafb}.payment-form{display:flex;flex-direction:column;gap:16px}.form-group{display:flex;flex-direction:column;gap:6px}.form-group label{font-weight:500;color:#374151;font-size:14px}.form-group input,.form-group select{padding:10px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;transition:border-color .2s}.form-group input:focus,.form-group select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.form-group input:disabled{background-color:#f3f4f6;color:#6b7280;cursor:not-allowed}.payment-actions{display:flex;gap:12px;margin-top:24px;padding-top:20px;border-top:1px solid #e5e7eb}.cancel-btn{flex:1;padding:10px 16px;border:1px solid #d1d5db;background:#fff;color:#374151;border-radius:6px;cursor:pointer;font-weight:500;transition:all .2s}.cancel-btn:hover:not(:disabled){background-color:#f9fafb;border-color:#9ca3af}.submit-btn{flex:2;padding:10px 16px;border:none;background-color:#3b82f6;color:#fff;border-radius:6px;cursor:pointer;font-weight:500;transition:background-color .2s}.submit-btn:hover:not(:disabled){background-color:#2563eb}.submit-btn:disabled{background-color:#9ca3af;cursor:not-allowed}@media (max-width: 768px){.outstanding-bills-modal{width:95vw;max-height:95vh}.modal-header{padding:16px 20px}.modal-title h2,.modal-title h3{font-size:18px}.bills-table{font-size:12px}.bills-table th,.bills-table td{padding:8px 12px}.payment-content{padding:20px}.payment-type-buttons{flex-direction:column}}
