:root{color:#17202a;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f7f8fa;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{min-width:320px;min-height:100%;margin:0}body{min-height:100svh}button,input,select,textarea{font:inherit}.app-shell{color:#17202a;background:#f7f8fa;min-height:100svh;display:flex}.sidebar{box-sizing:border-box;background:#fff;border-right:1px solid #e8eaed;flex-direction:column;flex:0 0 248px;width:248px;min-height:100svh;padding:24px 14px 16px;display:flex}.brand{align-items:center;gap:11px;padding:0 10px 28px;display:flex}.brand-mark{color:#fff;background:#2563eb;border-radius:10px;place-items:center;width:36px;height:36px;font-size:18px;font-weight:800;display:grid}.brand strong{color:#111827;font-size:18px;line-height:1.1;display:block}.brand small{color:#8a93a0;margin-top:3px;font-size:10px;display:block}.sidebar-nav{flex:1}.nav-label{text-transform:uppercase;letter-spacing:.08em;color:#9aa2ad;margin:0 10px 8px;font-size:10px;font-weight:700}.nav-item{color:#66707d;border-radius:9px;align-items:center;gap:12px;min-height:44px;margin:3px 0;padding:0 12px;font-size:14px;font-weight:600;text-decoration:none;transition:all .18s;display:flex}.nav-item:hover{color:#1f2937;background:#f3f5f8}.nav-item.active{color:#2563eb;background:#eaf1ff}.sidebar-bottom{border-top:1px solid #edf0f3;padding-top:14px}.business-mini{align-items:center;gap:10px;padding:14px 8px 2px;display:flex}.business-avatar{color:#3564a8;background:#e9eef7;border-radius:50%;place-items:center;width:32px;height:32px;font-weight:700;display:grid}.business-mini strong,.business-mini small{display:block}.business-mini strong{color:#273142;font-size:12px}.business-mini small{color:#929aa6;margin-top:2px;font-size:10px}.main-area{flex:1;min-width:0}.page-content{max-width:1240px;margin:0 auto;padding:36px 38px 48px}.page-heading{justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:28px;display:flex}.eyebrow{color:#2563eb;text-transform:uppercase;letter-spacing:.09em;margin:0 0 5px;font-size:11px;font-weight:700}h1{color:#101828;letter-spacing:-.02em;margin:0;font-size:30px;line-height:1.15}.page-description{color:#7b8490;margin:7px 0 0;font-size:13px}.primary-button,.secondary-button{border-radius:8px;justify-content:center;align-items:center;gap:8px;padding:11px 15px;font-size:13px;font-weight:700;text-decoration:none;display:inline-flex}.primary-button{color:#fff;background:#2563eb;box-shadow:0 1px 2px #2563eb30}.primary-button:hover{background:#1d4ed8}.secondary-button{color:#2563eb;background:#eef4ff}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px;display:grid}.stat-card,.content-card{background:#fff;border:1px solid #e8eaed;border-radius:12px;box-shadow:0 1px 2px #10182808}.stat-card{padding:18px}.stat-card span,.stat-card small{color:#7d8793;font-size:12px;display:block}.stat-card strong{color:#182230;margin:8px 0 4px;font-size:25px;display:block}.dashboard-grid{grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:18px;display:grid}.content-card{padding:20px}.card-heading{justify-content:space-between;align-items:flex-start;gap:15px;display:flex}.card-heading h2{color:#17202a;margin:0;font-size:15px}.card-heading p{color:#929aa6;margin:4px 0 0;font-size:11px}.text-link{color:#2563eb;align-items:center;gap:2px;font-size:11px;font-weight:700;text-decoration:none;display:flex}.empty-state{color:#9aa2ad;text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:260px;display:flex}.empty-state strong{color:#4d5968;font-size:13px}.empty-state span{font-size:11px}.empty-state .secondary-button{margin-top:8px}.quick-actions{padding-bottom:8px}.quick-action{color:#465160;border-bottom:1px solid #f0f1f3;align-items:center;gap:10px;padding:13px 2px;font-size:12px;font-weight:600;text-decoration:none;display:flex}.quick-action:last-child{border-bottom:0}.quick-action span{color:#526276;background:#f2f5fa;border-radius:8px;place-items:center;width:30px;height:30px;display:grid}.quick-action svg:last-child{color:#a5acb6;margin-left:auto}.page-placeholder{text-align:center;background:#fff;border:1px solid #e8eaed;border-radius:14px;max-width:720px;margin:60px auto;padding:48px 28px}.page-placeholder__icon{color:#2563eb;background:#eef4ff;border-radius:14px;place-items:center;width:50px;height:50px;margin:0 auto 16px;display:grid}.page-placeholder h2{color:#17202a;margin:0;font-size:22px}.page-placeholder p{color:#7d8793;margin:8px 0 0;font-size:13px}.mobile-header,.mobile-nav,.mobile-menu-backdrop{display:none}@media (width<=900px){.sidebar{display:none}.mobile-header{box-sizing:border-box;z-index:20;background:#fff;border-bottom:1px solid #e8eaed;justify-content:space-between;align-items:center;height:60px;padding:0 16px;display:flex;position:sticky;top:0}.mobile-brand{color:#111827;align-items:center;gap:8px;display:flex}.mobile-brand .brand-mark{border-radius:8px;width:30px;height:30px;font-size:15px}.mobile-brand strong{font-size:16px}.icon-button{color:#475467;cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;width:36px;height:36px;display:grid}.icon-button:hover{background:#f3f5f8}.primary-icon{color:#fff;background:#2563eb}.primary-icon:hover{background:#1d4ed8}.page-content{padding:24px 18px 90px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.mobile-nav{z-index:30;height:64px;padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid #e8eaed;grid-template-columns:repeat(5,1fr);display:grid;position:fixed;bottom:0;left:0;right:0}.mobile-nav-item{color:#8a93a0;cursor:pointer;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:9px;font-weight:700;text-decoration:none;display:flex}.mobile-nav-item.active{color:#2563eb}.mobile-menu-backdrop{z-index:50;background:#11182755;display:block;position:fixed;inset:0}.mobile-menu{padding:16px 16px calc(20px + env(safe-area-inset-bottom));background:#fff;border-radius:18px 18px 0 0;position:absolute;bottom:0;left:0;right:0;box-shadow:0 -10px 30px #10182822}.mobile-menu-heading{color:#17202a;justify-content:space-between;align-items:center;padding:0 4px 10px;display:flex}.mobile-menu-item{color:#465160;border-top:1px solid #f0f1f3;align-items:center;gap:12px;padding:14px 6px;font-size:13px;font-weight:600;text-decoration:none;display:flex}.mobile-menu-item svg:last-child{color:#a5acb6;margin-left:auto}}@media (width<=560px){.page-heading{flex-direction:column;align-items:flex-start}.page-heading .primary-button{width:100%}.stats-grid{gap:10px}.stat-card{padding:14px}.stat-card strong{font-size:21px}.content-card{padding:16px}}.profile-form{max-width:900px}.profile-card{padding:24px}.profile-card-heading{border-bottom:1px solid #eef0f3;padding-bottom:20px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 18px;padding-top:22px;display:grid}.form-field{min-width:0}.form-field label{color:#344054;align-items:center;gap:4px;margin-bottom:7px;font-size:12px;font-weight:700;display:flex}.form-field label span{color:#2563eb}.form-field label .optional-label{color:#98a2b3;margin-left:auto;font-size:10px;font-weight:600}.form-field input,.form-field textarea,.form-field select{box-sizing:border-box;color:#17202a;width:100%;font:inherit;background:#fff;border:1px solid #dfe3e8;border-radius:8px;outline:none;font-size:13px;transition:border-color .16s,box-shadow .16s}.form-field input{height:42px;padding:0 12px}.form-field select{cursor:pointer;appearance:none;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;background-size:16px;height:42px;padding:0 36px 0 12px}.form-field textarea{resize:vertical;min-height:96px;padding:11px 12px}.form-field input::placeholder,.form-field textarea::placeholder{color:#a0a8b3}.form-field input:focus,.form-field textarea:focus,.form-field select:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb14}.field-error{color:#dc2626;margin-top:6px;font-size:11px;display:block}.profile-actions{border-top:1px solid #eef0f3;justify-content:flex-end;align-items:center;gap:14px;margin-top:24px;padding-top:20px;display:flex}.save-success{color:#15803d;font-size:12px;font-weight:600}.save-error{color:#dc2626;font-size:12px;font-weight:600}@media (width<=560px){.profile-card{padding:18px}.form-grid{grid-template-columns:1fr;gap:16px}.form-field--full{grid-column:auto}.profile-actions{flex-direction:column-reverse;align-items:stretch}.profile-actions .primary-button{width:100%}.save-success,.save-error{text-align:center}}.bill-form{max-width:900px}.bill-card{margin-bottom:22px;padding:24px}.bill-card-heading{border-bottom:1px solid #eef0f3;padding-bottom:20px}.items-table-wrapper{margin-top:18px}.items-table-header{color:#667085;text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid #eef0f3;grid-template-columns:minmax(0,1fr) 90px 120px 130px 42px;gap:12px;padding:0 0 10px;font-size:11px;font-weight:700;display:grid}.items-table-body{flex-direction:column;gap:12px;margin-top:14px;display:flex}.item-row{grid-template-columns:minmax(0,1fr) 90px 120px 130px 42px;align-items:start;gap:12px;display:grid}.item-cell input{box-sizing:border-box;color:#17202a;width:100%;height:42px;font:inherit;background:#fff;border:1px solid #dfe3e8;border-radius:8px;outline:none;padding:0 12px;font-size:13px;transition:border-color .16s,box-shadow .16s}.item-cell input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb14}.item-cell input::placeholder{color:#a0a8b3}.col-amount{text-align:right}.item-amount-value{color:#1e293b;justify-content:flex-end;align-items:center;height:42px;padding:0 8px;font-size:13px;font-weight:700;display:flex}.mobile-item-label,.remove-label{display:none}.item-remove-btn{box-sizing:border-box;color:#dc2626;cursor:pointer;background:#fff;border:1px solid #fecaca;border-radius:8px;justify-content:center;align-items:center;width:42px;height:42px;transition:all .16s;display:inline-flex}.item-remove-btn:hover:not(:disabled){background:#fee2e2;border-color:#fca5a5}.item-remove-btn:disabled{opacity:.4;cursor:not-allowed;color:#9ca3af;background:#f9fafb;border-color:#e5e7eb}.items-footer{border-top:1px solid #eef0f3;justify-content:flex-start;margin-top:18px;padding-top:16px;display:flex}.add-item-btn{cursor:pointer;border:0}.summary-layout{grid-template-columns:minmax(0,1.2fr) minmax(280px,340px);align-items:start;gap:32px;padding-top:20px;display:grid}.summary-adjustments{grid-template-columns:1fr 1fr;gap:16px;display:grid}.summary-breakdown{background:#f8fafc;border:1px solid #eef2f6;border-radius:10px;flex-direction:column;gap:12px;padding:18px;display:flex}.summary-row{color:#475467;justify-content:space-between;align-items:center;font-size:13px;display:flex}.summary-row strong{color:#101828;font-weight:600}.summary-row .discount-value{color:#16a34a;font-weight:600}.summary-grand-total{color:#101828;border-top:1px solid #e2e8f0;margin-top:4px;padding-top:12px;font-size:15px;font-weight:700}.summary-grand-total strong{color:#2563eb;font-size:20px;font-weight:800}.input-error{border-color:#dc2626!important;box-shadow:0 0 0 3px #dc262614!important}.bill-actions{justify-content:flex-end;align-items:center;gap:14px;margin-top:24px;padding-top:20px;display:flex}@media (width<=640px){.bill-card{padding:18px}.items-table-header{display:none}.item-row{background:#f9fafb;border:1px solid #edf0f3;border-radius:10px;grid-template-columns:1fr 1fr;grid-template-areas:"name name""qty rate""amount action";gap:12px 10px;padding:14px;display:grid}.item-cell.col-name{grid-area:name}.item-cell.col-qty{grid-area:qty}.item-cell.col-rate{grid-area:rate}.item-cell.col-amount{flex-direction:column;grid-area:amount;justify-content:center;display:flex}.item-cell.col-amount .item-amount-value{color:#1e293b;justify-content:flex-start;height:auto;padding:4px 0;font-size:15px;font-weight:700}.item-cell.col-action{grid-area:action;justify-content:flex-end;align-self:flex-end;display:flex}.mobile-item-label{color:#475467;margin-bottom:6px;font-size:11px;font-weight:700;display:block}.item-remove-btn{gap:6px;width:auto;height:36px;padding:0 12px}.remove-label{font-size:12px;font-weight:600;display:inline}.add-item-btn{width:100%}.summary-layout{grid-template-columns:1fr;gap:20px}.summary-adjustments{grid-template-columns:1fr 1fr;gap:12px}.bill-actions{flex-direction:column-reverse;align-items:stretch}.bill-actions .primary-button{width:100%}.bill-actions .save-success,.bill-actions .save-error{text-align:center}}.view-toggle{background:#eef2f6;border-radius:9px;align-items:center;gap:2px;padding:3px;display:inline-flex}.toggle-btn{color:#64748b;cursor:pointer;background:0 0;border:0;border-radius:7px;align-items:center;gap:6px;padding:7px 14px;font-size:13px;font-weight:600;transition:all .16s;display:inline-flex}.toggle-btn:hover{color:#1e293b}.toggle-btn.active{color:#2563eb;background:#fff;font-weight:700;box-shadow:0 1px 3px #00000014}.preview-view-wrapper{flex-direction:column;gap:20px;max-width:820px;margin:0 auto;display:flex}.preview-bottom-actions{justify-content:flex-start;display:flex}.invoice-paper{color:#1e293b;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:44px 48px;font-size:13px;line-height:1.5;box-shadow:0 4px 16px -2px #1018280f}.invoice-preview-header{border-bottom:2px solid #f1f5f9;justify-content:space-between;gap:32px;padding-bottom:24px;display:flex}.preview-business-name{color:#0f172a;letter-spacing:-.01em;margin:0;font-size:22px;font-weight:800}.preview-subdetail{color:#475569;margin:3px 0 0;font-size:13px;font-weight:600}.preview-address{color:#64748b;white-space:pre-line;max-width:320px;margin:6px 0 0;font-size:12px}.preview-contact-info{color:#64748b;flex-wrap:wrap;gap:12px;margin-top:6px;font-size:12px;display:flex}.preview-gstin-badge{color:#1d4ed8;background:#eff6ff;border-radius:6px;margin-top:8px;padding:4px 9px;font-size:11px;font-weight:600;display:inline-block}.invoice-meta-card{text-align:right;flex-direction:column;align-items:flex-end;gap:8px;display:flex}.invoice-badge{color:#fff;letter-spacing:.08em;background:#0f172a;border-radius:6px;padding:6px 14px;font-size:12px;font-weight:800;display:inline-block}.meta-row{justify-content:flex-end;align-items:baseline;gap:8px;font-size:12px;display:flex}.meta-label{color:#64748b;font-weight:600}.meta-val{color:#0f172a}.preview-bill-to{border-bottom:1px solid #f1f5f9;padding:20px 0}.bill-to-label{text-transform:uppercase;color:#94a3b8;letter-spacing:.06em;margin-bottom:6px;font-size:11px;font-weight:700;display:block}.customer-name{color:#0f172a;font-size:15px;font-weight:700;display:block}.customer-phone{color:#64748b;margin-top:2px;font-size:12px;display:block}.bill-to-placeholder{color:#64748b;margin:0;font-style:italic}.preview-table{border-collapse:collapse;width:100%;margin-top:20px;font-size:13px}.preview-table thead th{color:#475569;text-transform:uppercase;letter-spacing:.05em;background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:10px 12px;font-size:11px;font-weight:700}.preview-table tbody td{color:#1e293b;border-bottom:1px solid #f1f5f9;padding:12px}.col-idx{text-align:center;color:#94a3b8;width:36px}.col-desc{text-align:left}.col-num{text-align:right;width:110px}.amount-cell{color:#0f172a;font-weight:700}.empty-items-cell{text-align:center;color:#94a3b8;padding:24px;font-style:italic}.preview-summary-section{border-bottom:1px solid #f1f5f9;justify-content:flex-end;padding:20px 0;display:flex}.preview-summary-wrapper{flex-direction:column;gap:8px;width:310px;font-size:13px;display:flex}.summary-line{color:#475569;justify-content:space-between;align-items:center;display:flex}.summary-discount .summary-amount{color:#16a34a;font-weight:600}.preview-grand-total{color:#0f172a;border-top:2px solid #0f172a;margin-top:6px;padding-top:10px;font-size:16px;font-weight:800}.preview-grand-total .total-amount{color:#2563eb;font-size:19px}.preview-footer{text-align:center;color:#94a3b8;padding-top:24px;font-size:12px}@media (width<=640px){.invoice-paper{border-radius:8px;padding:20px 16px}.invoice-preview-header{flex-direction:column;gap:16px}.invoice-meta-card{text-align:left;align-items:flex-start}.meta-row{justify-content:flex-start}.preview-summary-wrapper{width:100%}.preview-table thead th,.preview-table tbody td{padding:8px 6px;font-size:11px}.col-num{width:75px}.preview-toolbar{flex-direction:column-reverse;align-items:stretch}.preview-toolbar .download-pdf-btn{width:100%}.preview-toolbar .pdf-error{text-align:center}}.preview-toolbar{justify-content:flex-end;align-items:center;gap:14px;display:flex}.pdf-error{color:#dc2626;font-size:12px;font-weight:600}@media print{body{background:#fff!important}.sidebar,.mobile-header,.mobile-nav,.view-toggle,.preview-bottom-actions,.preview-toolbar,.saved-detail-top-nav,.saved-detail-toolbar,.template-selection-section,.template-selector-container{display:none!important}.main-area,.page-content{margin:0!important;padding:0!important}.invoice-paper{box-shadow:none!important;border:0!important;max-width:100%!important;padding:0!important}}.invoice-history-page{max-width:960px;margin:0 auto}.history-content-wrapper{flex-direction:column;gap:16px;margin-top:20px;display:flex}.history-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;display:flex}.search-field-wrap{flex:1;min-width:260px;position:relative}.search-icon{color:#94a3b8;pointer-events:none;position:absolute;top:50%;left:12px;transform:translateY(-50%)}.search-input{box-sizing:border-box;color:#17202a;background:#fff;border:1px solid #dfe3e8;border-radius:8px;outline:none;width:100%;height:42px;padding:0 34px 0 38px;font-size:13px;transition:border-color .15s,box-shadow .15s}.search-input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb14}.search-clear-btn{color:#94a3b8;cursor:pointer;background:0 0;border:0;border-radius:4px;place-items:center;padding:4px;display:grid;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.search-clear-btn:hover{color:#475569;background:#f1f5f9}.sort-controls-wrap{align-items:center;gap:8px;display:flex}.sort-label{color:#64748b;white-space:nowrap;align-items:center;gap:6px;font-size:13px;font-weight:600;display:flex}.sort-select{color:#1e293b;cursor:pointer;background:#fff;border:1px solid #dfe3e8;border-radius:8px;outline:none;height:42px;padding:0 12px;font-size:13px;font-weight:500;transition:border-color .15s}.sort-select:focus{border-color:#2563eb}.history-meta-bar{color:#64748b;justify-content:space-between;align-items:center;padding:0 2px;font-size:12px;display:flex}.results-count{color:#64748b;font-weight:600}.history-status-card{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:12px;margin-top:24px;padding:48px 24px;display:flex}.history-loading-spinner{border:3px solid #e2e8f0;border-top-color:#2563eb;border-radius:50%;width:32px;height:32px;animation:.75s linear infinite histSpin}@keyframes histSpin{to{transform:rotate(360deg)}}.history-error-card{border-color:#fecaca}.history-empty-card{text-align:center;flex-direction:column;align-items:center;gap:12px;margin-top:24px;padding:48px 24px;display:flex}.empty-icon-wrap{color:#64748b;background:#f1f5f9;border-radius:16px;place-items:center;width:64px;height:64px;margin-bottom:4px;display:grid}.history-empty-card h2{color:#0f172a;margin:0;font-size:20px}.history-empty-card p{color:#64748b;max-width:400px;margin:0;font-size:14px}.history-no-results{text-align:center;flex-direction:column;align-items:center;gap:10px;padding:40px 20px;display:flex}.no-results-icon{color:#94a3b8}.history-no-results h3{color:#0f172a;margin:0;font-size:17px}.history-no-results p{color:#64748b;margin:0;font-size:13px}.invoices-table-card{margin-top:4px;overflow:hidden;padding:0!important}.invoices-table{border-collapse:collapse;width:100%;font-size:13px}.invoices-table thead th{color:#475569;text-transform:uppercase;letter-spacing:.05em;text-align:left;background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:12px 16px;font-size:11px;font-weight:700}.invoices-table tbody td{vertical-align:middle;border-bottom:1px solid #f1f5f9;padding:14px 16px}.invoices-table tbody tr.invoice-row{cursor:pointer;transition:background .12s}.invoices-table tbody tr.invoice-row:hover{background:#f8fafc}.invoices-table tbody tr.invoice-row:focus-visible{outline-offset:-2px;outline:2px solid #2563eb}.invoice-num-badge{color:#0f172a;background:#f1f5f9;border-radius:6px;padding:4px 8px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;font-weight:700}.customer-regular{color:#1e293b;font-weight:600}.customer-fallback{color:#64748b;font-style:italic}.status-pill{text-transform:uppercase;letter-spacing:.04em;border-radius:12px;padding:3px 9px;font-size:11px;font-weight:700;display:inline-block}.status-pill--unpaid{color:#92400e;background:#fef3c7}.status-pill--paid{color:#166534;background:#dcfce7}.view-invoice-btn{color:#2563eb;background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;align-items:center;gap:5px;padding:5px 11px;font-size:12px;font-weight:600;text-decoration:none;transition:all .14s;display:inline-flex}.view-invoice-btn:hover{color:#1d4ed8;background:#dbeafe}.text-right{text-align:right}.invoices-cards-list{display:none}@media (width<=768px){.invoices-table-card{display:none}.invoices-cards-list{flex-direction:column;gap:12px;margin-top:4px;display:flex}.invoice-card{cursor:pointer;border:1px solid #e2e8f0;border-radius:10px;flex-direction:column;gap:10px;padding:16px;display:flex}.invoice-card:hover{border-color:#cbd5e1}.invoice-card-top{justify-content:space-between;align-items:center;display:flex}.invoice-card-body{flex-direction:column;gap:6px;font-size:13px;display:flex}.card-info-row{color:#475569;align-items:center;gap:8px;display:flex}.card-icon{color:#94a3b8;flex-shrink:0}.card-date{color:#64748b;font-size:12px}.invoice-card-bottom{border-top:1px solid #f1f5f9;justify-content:space-between;align-items:center;margin-top:2px;padding-top:10px;display:flex}.card-amount-block{flex-direction:column;display:flex}.card-amount-label{text-transform:uppercase;color:#94a3b8;font-size:10px;font-weight:700}.card-amount-val{color:#0f172a;font-size:16px;font-weight:800}.history-toolbar{flex-direction:column;align-items:stretch}.search-field-wrap{min-width:100%}.sort-controls-wrap{justify-content:space-between}}.saved-invoice-detail-page{flex-direction:column;gap:20px;max-width:860px;margin:0 auto;display:flex}.saved-detail-toolbar{justify-content:flex-start;margin-bottom:12px;display:flex}.saved-detail-top-nav{flex-direction:column;gap:12px;display:flex}.saved-detail-heading-block{flex-direction:column;gap:14px;display:flex}.back-link-btn{color:#475569;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:7px;align-items:center;gap:6px;width:fit-content;padding:7px 12px;font-size:13px;font-weight:600;text-decoration:none;transition:all .15s;display:inline-flex}.back-link-btn:hover{color:#0f172a;background:#e2e8f0}.saved-detail-header-bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;width:100%;display:flex}.delete-invoice-btn{color:#dc2626;cursor:pointer;background:#fff;border:1px solid #fecaca;border-radius:7px;align-items:center;gap:6px;padding:7px 14px;font-family:inherit;font-size:13px;font-weight:600;transition:all .15s;display:inline-flex}.delete-invoice-btn:hover:not(:disabled){color:#b91c1c;background:#fee2e2;border-color:#fca5a5}.delete-invoice-btn:focus-visible{outline-offset:2px;outline:2px solid #ef4444}.delete-invoice-btn:disabled{opacity:.6;cursor:not-allowed}.saved-detail-title-meta{flex-direction:column;gap:4px;display:flex}.saved-title-row{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.saved-title-row h1{color:#0f172a;margin:0;font-size:26px;font-weight:800}.saved-invoice-preview-wrap{width:100%}.status-pill--partial{color:#854d0e;background:#fef9c3}.payment-management-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;flex-direction:column;gap:16px;padding:22px;display:flex}.payment-card-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.payment-card-header h2{color:#0f172a;margin:0;font-size:18px}.card-subtitle{color:#64748b;margin:3px 0 0;font-size:13px}.payment-metrics-grid{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;grid-template-columns:repeat(3,1fr);gap:16px;padding:16px;display:grid}.payment-metric{flex-direction:column;gap:4px;display:flex}.metric-label{text-transform:uppercase;color:#64748b;letter-spacing:.05em;font-size:11px;font-weight:700}.metric-val{color:#0f172a;font-size:19px;font-weight:800}.text-success{color:#16a34a!important}.text-warning{color:#d97706!important}.text-muted{color:#64748b!important}.payment-alert{border-radius:8px;align-items:center;gap:8px;padding:10px 14px;font-size:13px;font-weight:600;display:flex}.payment-alert--success{color:#166534;background:#dcfce7;border:1px solid #bbf7d0}.payment-alert--error{color:#991b1b;background:#fee2e2;border:1px solid #fecaca}.payment-actions-bar{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.payment-btn{gap:6px}.payment-btn-danger{color:#dc2626;background:#fff;border-color:#fecaca;gap:6px}.payment-btn-danger:hover{background:#fee2e2;border-color:#fca5a5}.payment-inline-form{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;flex-direction:column;gap:14px;margin-top:4px;padding:16px;display:flex}.payment-form-buttons{align-items:center;gap:10px;display:flex}.field-hint{color:#64748b;margin-top:5px;font-size:11px;display:block}.preview-payment-block{border-top:1px dashed #cbd5e1;flex-direction:column;gap:6px;margin-top:8px;padding-top:8px;display:flex}.preview-payment-row{color:#475569;font-size:13px}.preview-balance-row{color:#0f172a;margin-top:2px;font-size:14px;font-weight:700}.summary-amount--paid{color:#16a34a;font-weight:700}.summary-amount--balance{color:#dc2626;font-weight:800}@media (width<=640px){.payment-metrics-grid{grid-template-columns:1fr;gap:12px}.payment-actions-bar{flex-direction:column;align-items:stretch}.payment-actions-bar button{justify-content:center;width:100%}.payment-form-buttons{flex-direction:column;align-items:stretch}.payment-form-buttons button{justify-content:center;width:100%}}.customers-page{flex-direction:column;gap:20px;display:flex}.add-customer-btn{cursor:pointer;font:inherit;border:0}.customers-toolbar{margin-bottom:4px}.customers-toolbar .search-field-wrap{flex:1;width:100%}.customers-table-card,.products-table-card{margin-top:4px;display:block;overflow:hidden;padding:0!important}.customers-table,.products-table{border-collapse:collapse;text-align:left;width:100%;font-size:13px}.customers-table thead th,.products-table thead th{color:#475569;text-transform:uppercase;letter-spacing:.05em;background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:12px 16px;font-size:11px;font-weight:700}.customers-table tbody td,.products-table tbody td{vertical-align:middle;border-bottom:1px solid #f1f5f9;padding:14px 16px}.customers-table tbody tr.customers-table-row,.products-table tbody tr.products-table-row{transition:background .12s}.customers-table tbody tr.customers-table-row:hover,.products-table tbody tr.products-table-row:hover{background:#f8fafc}.customer-title-cell{align-items:center;gap:12px;display:flex}.customer-meta-text{flex-direction:column;min-width:0;display:flex}.customer-table-name{color:#0f172a;font-size:14px;font-weight:700}.customer-avatar-badge{color:#0284c7;background:#e0f2fe;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;font-size:14px;font-weight:700;display:flex}.customer-cell-address{color:#64748b;white-space:nowrap;text-overflow:ellipsis;max-width:260px;margin-top:2px;font-size:11px;display:block;overflow:hidden}.customer-contact-text{color:#334155;align-items:center;gap:6px;font-size:13px;display:inline-flex}.cell-sub-icon{color:#94a3b8;flex-shrink:0}.customer-gstin-badge{color:#334155;letter-spacing:.04em;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:6px;padding:3px 8px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:11px;font-weight:600;display:inline-block}.customer-edit-btn{color:#2563eb;cursor:pointer;background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;justify-content:center;align-items:center;gap:6px;padding:6px 12px;font-family:inherit;font-size:12px;font-weight:600;line-height:1;transition:all .14s;display:inline-flex}.customer-edit-btn:hover{color:#1d4ed8;background:#dbeafe;border-color:#93c5fd}.customer-edit-btn:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.customers-cards-list{display:none}.customer-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;flex-direction:column;gap:12px;padding:16px;display:flex;box-shadow:0 1px 2px #1018280a}.customer-card-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.customer-card-info{align-items:center;gap:10px;min-width:0;display:flex}.customer-card-name{color:#0f172a;font-size:15px;font-weight:700;display:block}.customer-card-address{color:#64748b;margin:2px 0 0;font-size:12px}.customer-card-details{border-top:1px solid #f1f5f9;flex-direction:column;gap:7px;padding-top:10px;font-size:13px;display:flex}.customer-card-row{color:#475569;align-items:center;gap:8px;display:flex}@media (width<=768px){.customers-table-card,.products-table-card,.dashboard-invoices-table-card{display:none!important}.customers-cards-list,.products-cards-list,.dashboard-invoices-cards-list{flex-direction:column;gap:12px;margin-top:4px;display:flex!important}.customers-page .page-heading,.products-page .page-heading{flex-direction:column;align-items:stretch;gap:16px}.customers-page .add-customer-btn,.products-page .add-product-btn{justify-content:center;width:100%}}.modal-backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:1000;background:#0f172a99;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.modal-card{background:#fff;border-radius:14px;flex-direction:column;width:100%;max-width:540px;max-height:90vh;animation:.18s ease-out modalSlideIn;display:flex;overflow:hidden;box-shadow:0 20px 25px -5px #00000026,0 8px 10px -6px #0000001a}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(8px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.modal-header{border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;padding:18px 24px;display:flex}.modal-header h2{color:#0f172a;margin:0;font-size:18px;font-weight:700}.modal-body{padding:24px;overflow-y:auto}.customer-form{flex-direction:column;gap:16px;display:flex}.modal-actions{border-top:1px solid #f1f5f9;justify-content:flex-end;gap:12px;margin-top:4px;padding-top:14px;display:flex}.modal-cancel-btn{color:#475569;cursor:pointer;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;justify-content:center;align-items:center;padding:10px 18px;font-family:inherit;font-size:13px;font-weight:600;transition:all .15s;display:inline-flex}.modal-cancel-btn:hover:not(:disabled){color:#0f172a;background:#e2e8f0}.modal-submit-btn{cursor:pointer;border:0;padding:10px 20px;font-family:inherit;font-size:13px}.modal-close-btn{color:#64748b;cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;width:36px;height:36px;transition:all .15s;display:inline-flex}.modal-close-btn:hover:not(:disabled){color:#0f172a;background:#f1f5f9}.modal-close-btn:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.modal-close-btn:disabled{opacity:.5;cursor:not-allowed}.modal-confirm-card{max-width:440px}.modal-confirm-card .modal-body{flex-direction:column;gap:12px;display:flex}.modal-confirm-card .modal-body p{color:#334155;margin:0;font-size:14px;line-height:1.5}.modal-warning-subtext{color:#64748b!important;font-size:13px!important}.modal-payment-warning{color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;align-items:flex-start;gap:10px;padding:12px;font-size:13px;line-height:1.4;display:flex}.modal-payment-warning svg{flex-shrink:0;margin-top:1px}.destructive-button,.modal-delete-btn{color:#fff;cursor:pointer;background:#dc2626;border:1px solid #dc2626;border-radius:8px;justify-content:center;align-items:center;gap:6px;padding:10px 18px;font-family:inherit;font-size:13px;font-weight:600;transition:all .15s;display:inline-flex}.destructive-button:hover:not(:disabled),.modal-delete-btn:hover:not(:disabled){background:#b91c1c;border-color:#b91c1c}.destructive-button:focus-visible,.modal-delete-btn:focus-visible{outline-offset:2px;outline:2px solid #ef4444}.destructive-button:disabled,.modal-delete-btn:disabled{opacity:.6;cursor:not-allowed}.customer-selection-divider{border-top:1px dashed #e2e8f0;margin:18px 0 14px;padding-top:16px}.customer-selection-header{flex-direction:column;gap:6px;display:flex}.customer-selection-header label{color:#334155;font-size:13px;font-weight:600}.customer-select-control{color:#0f172a;cursor:pointer;background-color:#fff;border:1px solid #cbd5e1;border-radius:8px;outline:none;width:100%;padding:9px 12px;font-size:14px;font-weight:500;transition:border-color .15s,box-shadow .15s}.customer-select-control:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f626}.form-field--full{grid-column:1/-1}@media (width<=640px){.form-grid-2{grid-template-columns:1fr}.modal-actions{flex-direction:column-reverse}.modal-actions button{justify-content:center;width:100%}}.products-cards-list{display:none}.product-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;flex-direction:column;gap:12px;padding:16px;display:flex;box-shadow:0 1px 2px #1018280a}.product-card-header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.product-card-info{flex-direction:column;gap:4px;min-width:0;display:flex}.product-card-name{color:#0f172a;font-size:15px;font-weight:700}.product-card-details{border-top:1px solid #f1f5f9;flex-direction:column;gap:8px;padding-top:10px;font-size:13px;display:flex}.product-card-row{color:#475569;align-items:center;gap:8px;display:flex}.product-primary-cell{flex-direction:column;gap:2px;display:flex}.product-name{color:#0f172a;font-weight:600}.product-unit{color:#64748b;font-size:12px;font-weight:400}.product-description{color:#64748b;white-space:normal;max-width:320px;margin-top:2px;font-size:12px;line-height:1.4}.product-rate-cell{color:#0f172a;font-weight:600}.product-type-badge{text-transform:capitalize;letter-spacing:.02em;border-radius:9999px;align-items:center;padding:3px 8px;font-size:11px;font-weight:600;display:inline-flex}.badge--product{color:#065f46;background-color:#ecfdf5;border:1px solid #a7f3d0}.badge--service{color:#1e40af;background-color:#eff6ff;border:1px solid #bfdbfe}.product-edit-btn{color:#2563eb;cursor:pointer;background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;justify-content:center;align-items:center;gap:6px;padding:6px 12px;font-family:inherit;font-size:12px;font-weight:600;line-height:1;transition:all .14s;display:inline-flex}.product-edit-btn:hover{color:#1d4ed8;background:#dbeafe;border-color:#93c5fd}.product-edit-btn:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.type-toggle-group{gap:8px;margin-top:4px;display:flex}.type-toggle-btn{color:#475569;cursor:pointer;background:#f8fafc;border:1px solid #cbd5e1;border-radius:8px;flex:1;justify-content:center;align-items:center;gap:6px;padding:8px 14px;font-family:inherit;font-size:13px;font-weight:600;transition:all .15s;display:inline-flex}.type-toggle-btn:hover{color:#1e293b;background:#f1f5f9}.type-toggle-btn.active{color:#fff;background:#2563eb;border-color:#2563eb;box-shadow:0 1px 2px #2563eb33}.item-product-select-wrap{margin-bottom:6px}.item-product-select{color:#334155;cursor:pointer;background-color:#f8fafc;border:1px solid #cbd5e1;border-radius:6px;outline:none;width:100%;padding:6px 10px;font-size:12px;font-weight:500;transition:border-color .15s,box-shadow .15s,background-color .15s}.item-product-select:focus{background-color:#fff;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f626}.dashboard-metrics-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px;display:grid}.dashboard-metrics-grid--secondary{margin-bottom:20px}.stat-card-header{justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px;display:flex}.stat-card-label{color:#64748b;font-size:13px;font-weight:600}.stat-card-icon{border-radius:8px;flex-shrink:0;place-items:center;width:34px;height:34px;display:grid}.stat-card-icon--blue{color:#2563eb;background:#eff6ff}.stat-card-icon--green{color:#059669;background:#ecfdf5}.stat-card-icon--amber{color:#d97706;background:#fffbeb}.stat-card-icon--slate{color:#475569;background:#f1f5f9}.stat-card-value{color:#0f172a;font-size:26px;font-weight:800;line-height:1.15;display:block}.stat-card-hint{color:#94a3b8;margin-top:6px;font-size:12px;display:block}.stat-card--highlight{background:linear-gradient(#fff 0%,#f8faff 100%);border-color:#bfdbfe}.text-green{color:#059669!important}.text-amber{color:#d97706!important}.dashboard-status-summary-card{margin-bottom:24px;padding:16px 20px}.status-summary-header{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.status-summary-header h2{color:#334155;text-transform:uppercase;letter-spacing:.04em;margin:0;font-size:14px;font-weight:700}.status-summary-total{color:#64748b;font-size:12px;font-weight:600}.status-summary-chips{flex-wrap:wrap;gap:14px;display:flex}.status-chip{background:#fff;border:1px solid #e2e8f0;border-radius:8px;align-items:center;gap:10px;padding:6px 14px;display:flex}.status-chip--paid{background:#f0fdf4;border-color:#bbf7d0}.status-chip--partial{background:#eff6ff;border-color:#bfdbfe}.status-chip--unpaid{background:#fffbeb;border-color:#fde68a}.status-chip-count{color:#0f172a;font-size:16px;font-weight:700}.dashboard-recent-section{padding:20px}.dashboard-invoices-cards-list{display:none}.dashboard-invoices-table-card{margin-top:14px;overflow-x:auto}.dashboard-table{border-collapse:collapse;width:100%}.dashboard-table thead th{padding:10px 12px}.dashboard-table tbody td{padding:12px}.dashboard-invoice-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;flex-direction:column;gap:8px;padding:14px;display:flex;box-shadow:0 1px 2px #1018280a}.dashboard-card-row-top,.dashboard-card-row-mid,.dashboard-card-row-bottom{justify-content:space-between;align-items:center;gap:8px;display:flex}.dashboard-card-date{color:#64748b;font-size:12px}.dashboard-card-total{color:#0f172a;font-size:15px;font-weight:700}@media (width<=900px){.dashboard-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=560px){.dashboard-metrics-grid{grid-template-columns:1fr}.status-summary-chips{flex-direction:column}}.template-selection-section{flex-direction:column;gap:16px;display:flex}.template-selector-container{width:100%}.template-card-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;display:grid}.template-card{cursor:pointer;-webkit-user-select:none;user-select:none;background:#fff;border:2px solid #e2e8f0;border-radius:12px;outline:none;flex-direction:column;gap:10px;padding:14px;transition:all .18s;display:flex;position:relative}.template-card:hover{border-color:#cbd5e1;transform:translateY(-1px);box-shadow:0 4px 12px #0f172a0f}.template-card:focus-visible{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb2e}.template-card--selected{background:#f8faff;box-shadow:0 4px 14px #2563eb1f;border-color:#2563eb!important}.template-card--premium{background:#fafaf9;border-style:dashed}.template-card--premium:hover{border-color:#a855f7;box-shadow:0 4px 12px #a855f71a}.template-card-top{justify-content:space-between;align-items:center;gap:8px;display:flex}.template-card-name{color:#0f172a;font-size:14px;font-weight:700}.template-badge{text-transform:uppercase;letter-spacing:.04em;border-radius:6px;align-items:center;gap:4px;padding:2px 8px;font-size:11px;font-weight:700;display:inline-flex}.template-badge--free{color:#15803d;background:#dcfce7}.template-badge--premium{color:#7e22ce;background:#f3e8ff;border:1px solid #e9d5ff}.template-mini-wireframe{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;flex-direction:column;gap:6px;height:85px;padding:8px;transition:all .15s;display:flex;overflow:hidden}.wireframe-header-band{background:#cbd5e1;border-radius:4px;width:100%;height:8px}.wireframe-row{background:#e2e8f0;border-radius:3px;height:5px}.wireframe-row--short{width:55%}.wireframe-table{flex-direction:column;gap:4px;margin-top:2px;display:flex}.wireframe-table-header{background:#e2e8f0;border-radius:2px;height:6px}.wireframe-table-line{background:#f1f5f9;border-radius:2px;height:4px}.wireframe-totals-block{background:#cbd5e1;border-radius:3px;align-self:flex-end;width:40%;height:8px;margin-top:auto}.wireframe--classic .wireframe-header-band{background:#0f172a}.wireframe--modern .wireframe-header-band{background:#2563eb;height:12px}.wireframe--modern .wireframe-totals-block{background:#2563eb}.wireframe--minimal{background:#fff;border:1px dashed #cbd5e1}.wireframe--minimal .wireframe-header-band{background:#94a3b8;height:4px}.wireframe--hindi .wireframe-header-band,.wireframe--hindi .wireframe-totals-block{background:#c2410c}.wireframe--executive .wireframe-header-band{background:#1e1b4b}.wireframe--creative .wireframe-header-band{background:#7c3aed}.wireframe--retail .wireframe-header-band{background:#059669}.template-card-bottom{justify-content:space-between;align-items:center;gap:8px;margin-top:2px;display:flex}.template-card-tagline{color:#64748b;margin:0;font-size:11px;font-weight:500;line-height:1.3}.template-select-indicator{flex-shrink:0;justify-content:center;align-items:center;display:flex}.selected-check{color:#fff;background:#2563eb;border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;display:flex}.unselected-circle{border:2px solid #cbd5e1;border-radius:50%;width:18px;height:18px}.locked-icon{color:#94a3b8}.premium-modal-title-row{align-items:center;gap:8px;display:flex}.template-info-box{color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;align-items:flex-start;gap:10px;margin-top:8px;padding:12px;font-size:13px;line-height:1.4;display:flex}.template-info-box svg{flex-shrink:0;margin-top:1px}.template-modern{flex-direction:column;gap:22px;display:flex}.modern-header-band{color:#fff;background:#2563eb;border-radius:10px;justify-content:space-between;align-items:flex-start;gap:20px;padding:24px 28px;display:flex}.modern-business-name{letter-spacing:-.02em;color:#fff;margin:0;font-size:24px;font-weight:800}.modern-owner-name{color:#dbeafe;margin:4px 0 0;font-size:13px}.modern-gstin-pill{color:#fff;background:#ffffff2e;border-radius:6px;margin-top:8px;padding:4px 10px;font-size:11px;display:inline-block}.modern-invoice-tag{text-align:right;flex-direction:column;align-items:flex-end;gap:4px;display:flex}.modern-doc-type{letter-spacing:.08em;color:#fff;background:#0003;border-radius:6px;padding:4px 12px;font-size:13px;font-weight:800}.modern-inv-num{color:#fff;margin-top:4px;font-size:15px;font-weight:700}.modern-inv-date{color:#dbeafe;font-size:12px}.modern-info-grid{border-bottom:1px solid #f1f5f9;grid-template-columns:1fr 1fr;gap:24px;padding:4px 0 16px;display:grid}.modern-section-eyebrow{text-transform:uppercase;color:#94a3b8;letter-spacing:.08em;margin-bottom:6px;font-size:10px;font-weight:700;display:block}.modern-info-title{color:#0f172a;margin:0;font-size:15px;font-weight:700}.modern-address-text{color:#64748b;white-space:pre-line;margin:4px 0 0;font-size:12px;line-height:1.4}.modern-contact-line{color:#64748b;flex-wrap:wrap;gap:10px;margin-top:6px;font-size:12px;display:flex}.modern-customer-gstin{color:#2563eb;margin:6px 0 0;font-size:11px;font-weight:600}.modern-placeholder-text{color:#94a3b8;margin:0;font-size:13px;font-style:italic}.modern-items-section{width:100%}.modern-table{border-collapse:collapse;width:100%}.modern-table thead th{color:#1e293b;text-transform:uppercase;letter-spacing:.06em;background:#f1f5f9;border-radius:6px;padding:11px 14px;font-size:11px;font-weight:700}.modern-table tbody td{border-bottom:1px solid #f1f5f9;padding:13px 14px}.modern-item-title{color:#0f172a}.modern-amount-cell{color:#0f172a;font-weight:700}.modern-footer-row{justify-content:space-between;align-items:flex-start;gap:24px;padding-top:8px;display:flex}.modern-status-pane{flex:1;max-width:320px}.modern-payment-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:14px 16px}.modern-payment-heading{text-transform:uppercase;color:#64748b;letter-spacing:.05em;margin-bottom:10px;font-size:11px;font-weight:700;display:block}.modern-payment-details{flex-direction:column;gap:8px;display:flex}.modern-pay-metric{justify-content:space-between;align-items:center;font-size:13px;display:flex}.pay-label{color:#64748b}.pay-val{font-weight:700}.modern-totals-pane{width:320px}.modern-summary-wrapper{flex-direction:column;gap:8px;display:flex}.modern-grand-total-box{color:#fff;background:#2563eb;border-radius:8px;justify-content:space-between;align-items:center;margin-top:8px;padding:12px 16px;display:flex}.modern-grand-label{color:#fff;font-size:15px;font-weight:700}.modern-grand-amount{color:#fff;font-size:19px;font-weight:800}.modern-bottom-footer{text-align:center;color:#94a3b8;padding-top:24px;font-size:12px}.template-minimal{flex-direction:column;gap:16px;display:flex}.minimal-header{justify-content:space-between;align-items:flex-start;gap:20px;display:flex}.minimal-brand{color:#0f172a;margin:0;font-size:20px;font-weight:800}.minimal-sub{color:#64748b;margin:2px 0 0;font-size:12px}.minimal-address{color:#94a3b8;white-space:pre-line;margin:4px 0 0;font-size:11px}.minimal-contact{color:#64748b;gap:8px;margin-top:4px;font-size:11px;display:flex}.minimal-gstin{color:#475569;margin:4px 0 0;font-size:11px}.minimal-meta{text-align:right;flex-direction:column;align-items:flex-end;display:flex}.minimal-title{letter-spacing:.1em;color:#94a3b8;text-transform:uppercase;font-size:10px;font-weight:800}.minimal-num{color:#0f172a;margin:2px 0 0;font-size:14px;font-weight:700}.minimal-date{color:#64748b;margin:2px 0 0;font-size:11px}.minimal-divider{border:0;border-top:1px solid #e2e8f0;margin:4px 0}.minimal-bill-to{padding:4px 0}.minimal-caption{text-transform:uppercase;color:#94a3b8;letter-spacing:.08em;margin-bottom:4px;font-size:10px;font-weight:700;display:block}.minimal-client-details{flex-direction:column;gap:2px;display:flex}.minimal-client-name{color:#0f172a;font-size:14px;font-weight:700}.minimal-client-address{color:#64748b;font-size:12px}.minimal-client-contact{color:#64748b;gap:10px;margin-top:2px;font-size:11px;display:flex}.minimal-placeholder{color:#94a3b8;margin:0;font-size:12px;font-style:italic}.minimal-items-section{width:100%}.minimal-table{border-collapse:collapse;width:100%}.minimal-table thead th{text-transform:uppercase;color:#94a3b8;letter-spacing:.05em;border-bottom:1px solid #cbd5e1;padding:8px 4px;font-size:10px;font-weight:700}.minimal-table tbody td{color:#334155;border-bottom:1px solid #f1f5f9;padding:10px 4px;font-size:12px}.minimal-col-idx{color:#94a3b8;width:28px}.minimal-col-desc{text-align:left}.minimal-col-num{text-align:right;width:95px}.minimal-amount{color:#0f172a;font-weight:700}.minimal-empty{text-align:center;color:#94a3b8;padding:20px;font-style:italic}.minimal-bottom-grid{justify-content:space-between;align-items:flex-start;gap:20px;display:flex}.minimal-payment-info{flex:1;max-width:280px}.minimal-pay-box{flex-direction:column;gap:6px;font-size:12px;display:flex}.minimal-pay-row{justify-content:space-between;align-items:center;display:flex}.minimal-totals-box{flex-direction:column;gap:6px;width:260px;display:flex}.minimal-summary-row{color:#475569;justify-content:space-between;font-size:12px;display:flex}.minimal-total-line{color:#0f172a;border-top:1px solid #0f172a;justify-content:space-between;align-items:center;margin-top:4px;padding-top:8px;font-size:14px;font-weight:700;display:flex}.minimal-total-val{font-size:16px}.minimal-footer{text-align:center;color:#cbd5e1;padding-top:18px;font-size:11px}.template-hindi{flex-direction:column;gap:20px;font-family:Noto Sans Devanagari,Nirmala UI,Mangal,Kohinoor Devanagari,-apple-system,BlinkMacSystemFont,sans-serif;display:flex}.hindi-header{border-bottom:2px solid #ffedd5;justify-content:space-between;align-items:flex-start;gap:24px;padding-bottom:20px;display:flex}.hindi-business-name{color:#9a3412;margin:0;font-size:22px;font-weight:800}.hindi-owner-name{color:#431407;margin:3px 0 0;font-size:13px;font-weight:600}.hindi-address{color:#7c2d12;white-space:pre-line;max-width:320px;margin:5px 0 0;font-size:12px}.hindi-contact{color:#7c2d12;flex-wrap:wrap;gap:12px;margin-top:6px;font-size:12px;display:flex}.hindi-gstin-badge{color:#c2410c;background:#fff7ed;border:1px solid #fed7aa;border-radius:6px;margin-top:8px;padding:4px 10px;font-size:11px;font-weight:600;display:inline-block}.hindi-meta-card{text-align:right;flex-direction:column;align-items:flex-end;gap:6px;display:flex}.hindi-doc-badge{color:#fff;letter-spacing:.04em;background:#c2410c;border-radius:6px;padding:6px 14px;font-size:12px;font-weight:800;display:inline-block}.hindi-meta-row{gap:8px;font-size:12px;display:flex}.hindi-meta-label{color:#7c2d12;font-weight:600}.hindi-meta-val{color:#431407}.hindi-bill-to{border-bottom:1px solid #ffedd5;padding:16px 0}.hindi-section-label{text-transform:uppercase;color:#9a3412;letter-spacing:.05em;margin-bottom:6px;font-size:11px;font-weight:700;display:block}.hindi-customer-content{flex-direction:column;gap:3px;display:flex}.hindi-customer-name{color:#431407;font-size:15px;font-weight:700}.hindi-customer-address,.hindi-customer-phone,.hindi-customer-email,.hindi-customer-gstin{color:#7c2d12;font-size:12px}.hindi-customer-placeholder{color:#9a3412;margin:0;font-size:12px;font-style:italic}.hindi-items-section{width:100%}.hindi-table{border-collapse:collapse;width:100%}.hindi-table thead th{color:#9a3412;background:#fff7ed;border-bottom:1px solid #fed7aa;padding:10px 12px;font-size:11px;font-weight:700}.hindi-table tbody td{color:#431407;border-bottom:1px solid #ffedd5;padding:12px}.hindi-item-name{color:#431407}.hindi-amount-cell{color:#431407;font-weight:700}.hindi-summary-section{border-bottom:1px solid #ffedd5;justify-content:flex-end;padding:18px 0;display:flex}.hindi-summary-wrapper{flex-direction:column;gap:8px;width:310px;font-size:13px;display:flex}.hindi-grand-total{color:#431407;border-top:2px solid #c2410c;margin-top:6px;padding-top:10px;font-size:16px;font-weight:800}.hindi-grand-total .total-amount{color:#c2410c;font-size:19px}.hindi-payment-block{border-top:1px dashed #fed7aa;flex-direction:column;gap:6px;margin-top:8px;padding-top:8px;display:flex}.hindi-footer{text-align:center;color:#9a3412;padding-top:24px;font-size:12px;font-weight:600}@media (width<=640px){.modern-header-band{flex-direction:column;align-items:flex-start;padding:16px}.modern-invoice-tag{text-align:left;align-items:flex-start;margin-top:8px}.modern-info-grid{grid-template-columns:1fr}.modern-footer-row{flex-direction:column}.modern-status-pane,.modern-totals-pane{width:100%;max-width:100%}.minimal-header{flex-direction:column}.minimal-meta{text-align:left;align-items:flex-start;margin-top:8px}.minimal-bottom-grid{flex-direction:column}.minimal-payment-info,.minimal-totals-box{width:100%;max-width:100%}.hindi-header{flex-direction:column}.hindi-meta-card{text-align:left;align-items:flex-start;margin-top:8px}.hindi-summary-wrapper{width:100%}.template-card-grid{grid-template-columns:1fr}}.offline-banner{z-index:40;border-bottom:1px solid #0000;justify-content:center;align-items:center;gap:8px;padding:8px 16px;font-size:12px;font-weight:600;transition:all .2s;display:flex}.offline-banner--offline{color:#475467;background:#f1f5f9;border-color:#cbd5e1}.offline-banner--online{color:#047857;background:#ecfdf5;border-color:#a7f3d0}.offline-banner-icon{flex-shrink:0}.update-prompt-banner{z-index:100;background:#fff;border:1px solid #e2e8f0;border-radius:12px;width:calc(100vw - 32px);max-width:380px;padding:16px;animation:.25s ease-out pwaSlideUp;position:fixed;bottom:24px;right:24px;box-shadow:0 10px 25px -5px #0000001a,0 8px 10px -6px #0000001a}@keyframes pwaSlideUp{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.update-prompt-content{flex-direction:column;gap:10px;display:flex}.update-prompt-header{align-items:center;gap:8px;display:flex}.update-prompt-icon{color:#2563eb;flex-shrink:0}.update-prompt-title{color:#1e293b;font-size:13px;font-weight:700}.update-prompt-warning{color:#b45309;background:#fffbeb;border:1px solid #fef3c7;border-radius:6px;align-items:center;gap:6px;margin:0;padding:6px 10px;font-size:12px;display:flex}.update-prompt-actions{align-items:center;gap:8px;margin-top:4px;display:flex}.update-btn-now{padding:7px 14px;font-size:12px}.update-btn-later{border:1px solid #e2e8f0;padding:7px 14px;font-size:12px}.storage-notice-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;align-items:flex-start;gap:12px;max-width:900px;margin-top:24px;padding:16px 20px;display:flex}.storage-notice-icon{color:#64748b;flex-shrink:0;margin-top:2px}.storage-notice-card strong{color:#1e293b;margin-bottom:4px;font-size:13px;font-weight:700;display:block}.storage-notice-card p{color:#64748b;margin:0;font-size:12px;line-height:1.5}@media (width<=768px){.update-prompt-banner{bottom:calc(72px + env(safe-area-inset-bottom));width:auto;left:16px;right:16px}}.mobile-header-actions{align-items:center;gap:8px;display:flex}.user-menu--sidebar{border-bottom:1px solid #edf0f3;margin-bottom:12px;padding-bottom:10px}.user-menu-sidebar-guest{flex-direction:column;gap:6px;display:flex}.user-menu-signin-btn{color:#2563eb;cursor:pointer;background:#eef4ff;border:1px solid #dbeafe;border-radius:8px;justify-content:center;align-items:center;gap:8px;width:100%;height:38px;font-size:13px;font-weight:700;transition:all .16s;display:flex}.user-menu-signin-btn:hover{color:#fff;background:#2563eb;border-color:#2563eb}.user-menu-subtext{color:#94a3b8;justify-content:center;align-items:center;gap:5px;font-size:11px;display:flex}.user-menu-sidebar-auth{background:#f8fafc;border:1px solid #edf2f7;border-radius:10px;align-items:center;gap:10px;padding:8px 10px;display:flex}.user-avatar-wrap{color:#fff;background:#2563eb;border-radius:50%;flex-shrink:0;place-items:center;width:32px;height:32px;font-size:13px;font-weight:700;display:grid;overflow:hidden}.user-avatar-wrap--sm{width:28px;height:28px;font-size:11px}.user-avatar-img{object-fit:cover;width:100%;height:100%}.user-avatar-fallback{place-items:center;width:100%;height:100%;display:grid}.user-info{flex:1;min-width:0}.user-name{color:#1e293b;white-space:nowrap;text-overflow:ellipsis;font-size:12px;display:block;overflow:hidden}.user-email{color:#64748b;white-space:nowrap;text-overflow:ellipsis;font-size:10px;display:block;overflow:hidden}.user-signout-btn{color:#94a3b8;cursor:pointer;background:0 0;border:0;border-radius:6px;place-items:center;width:28px;height:28px;transition:all .16s;display:grid}.user-signout-btn:hover{color:#ef4444;background:#fee2e2}.user-signout-btn--sm{width:24px;height:24px}.user-menu-mobile-btn{color:#475467;cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;width:36px;height:36px;display:grid}.user-menu-mobile-btn:hover{background:#f3f5f8}.user-menu-mobile-auth{align-items:center;gap:6px;display:flex}.mobile-menu-user{border-bottom:1px solid #f0f1f3;margin-bottom:8px;padding:8px 4px 12px}.auth-modal-backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:100;background:#1118278c;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.auth-modal-sheet{background:#fff;border-radius:16px;width:100%;max-width:420px;padding:24px;animation:.2s ease-out authFadeIn;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a}@keyframes authFadeIn{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}.auth-modal-header{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px;display:flex}.auth-modal-title{color:#0f172a;margin:0;font-size:18px;font-weight:800}.auth-modal-subtitle{color:#64748b;margin:4px 0 0;font-size:12px}.auth-modal-notice{color:#1e40af;background:#eff6ff;border:1px solid #dbeafe;border-radius:8px;align-items:flex-start;gap:8px;margin-bottom:16px;padding:10px 12px;font-size:11px;line-height:1.45;display:flex}.auth-notice-icon{flex-shrink:0;margin-top:1px}.auth-modal-notice p{margin:0}.auth-modal-error{color:#dc2626;background:#fef2f2;border:1px solid #fee2e2;border-radius:8px;align-items:center;gap:8px;margin-bottom:16px;padding:10px 12px;font-size:12px;display:flex}.auth-modal-body{flex-direction:column;gap:16px;display:flex}.auth-google-button{color:#1e293b;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:8px;justify-content:center;align-items:center;gap:10px;width:100%;height:44px;font-size:13px;font-weight:600;transition:all .16s;display:flex}.auth-google-button:hover:not(:disabled){background:#f8fafc;border-color:#94a3b8}.auth-google-button:disabled{opacity:.6;cursor:not-allowed}.auth-divider{text-align:center;color:#94a3b8;text-transform:uppercase;letter-spacing:.05em;align-items:center;font-size:11px;display:flex}.auth-divider:before,.auth-divider:after{content:"";border-bottom:1px solid #e2e8f0;flex:1}.auth-divider span{padding:0 10px}.auth-form{flex-direction:column;gap:14px;display:flex}.auth-form .form-field label{align-items:center;gap:6px;display:flex}.auth-submit-btn{width:100%;height:42px;margin-top:4px}.auth-switch-mode{text-align:center;color:#64748b;font-size:12px}.auth-switch-mode p{margin:0}.auth-link-btn{color:#2563eb;cursor:pointer;background:0 0;border:0;padding:0 2px;font-weight:700;text-decoration:underline}.auth-link-btn:hover{color:#1d4ed8}.backup-restore-card{margin-top:24px}.backup-actions-wrap{flex-wrap:wrap;gap:12px;margin-top:18px;display:flex}.backup-action-btn{cursor:pointer;align-items:center;gap:8px;padding:10px 18px;font-size:13px;font-weight:600;display:inline-flex}.backup-status-msg{border-radius:8px;align-items:center;gap:8px;margin-top:14px;padding:10px 14px;font-size:13px;font-weight:500;display:flex}.backup-status-msg--success{color:#166534;background:#f0fdf4;border:1px solid #bbf7d0}.backup-status-msg--error{color:#991b1b;background:#fef2f2;border:1px solid #fecaca}.backup-privacy-warning{color:#64748b;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;align-items:flex-start;gap:8px;margin-top:16px;padding:10px 14px;font-size:12px;line-height:1.4;display:flex}.backup-privacy-warning .privacy-icon{color:#64748b;flex-shrink:0;margin-top:1px}.restore-modal-dialog{max-width:480px}.restore-preview-intro{color:#475569;margin:0 0 14px;font-size:13px;line-height:1.4}.restore-summary-grid{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;grid-template-columns:1fr;gap:8px;margin-bottom:16px;padding:12px 14px;display:grid}.summary-item{justify-content:space-between;align-items:center;font-size:13px;display:flex}.summary-label{color:#64748b;font-weight:500}.summary-value{color:#0f172a;font-weight:600}.restore-warning-callout{color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;align-items:flex-start;gap:10px;margin-bottom:14px;padding:12px 14px;font-size:13px;line-height:1.4;display:flex}.restore-warning-callout .warning-icon{color:#d97706;flex-shrink:0;margin-top:1px}.restore-warning-callout strong{color:#b45309;margin-bottom:2px;font-size:13px;font-weight:700;display:block}.restore-warning-callout p{color:#92400e;margin:0}.restore-error-alert{color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;align-items:center;gap:8px;margin-bottom:14px;padding:10px 14px;font-size:13px;display:flex}.restore-error-alert .error-icon{flex-shrink:0}.cloud-backup-card{margin-top:24px}.cloud-guest-banner{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;justify-content:space-between;align-items:center;gap:16px;margin-top:14px;padding:16px 18px;display:flex}.cloud-guest-info{align-items:flex-start;gap:12px;display:flex}.cloud-guest-icon{color:#2563eb;flex-shrink:0;margin-top:2px}.cloud-guest-info strong{color:#0f172a;margin-bottom:2px;font-size:14px;display:block}.cloud-guest-info p{color:#64748b;margin:0;font-size:13px;line-height:1.4}.cloud-signin-btn{white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.cloud-auth-content{margin-top:14px}.cloud-user-meta-bar{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;justify-content:space-between;align-items:center;margin-bottom:16px;padding:12px 14px;display:flex}.cloud-user-info{flex-direction:column;gap:3px;display:flex}.cloud-user-email{color:#334155;font-size:13px}.cloud-user-email strong{color:#0f172a}.cloud-status-indicator{color:#64748b;font-size:12px;font-weight:500}.cloud-backup-btn,.cloud-restore-btn{align-items:center;gap:8px;display:inline-flex}.cloud-disclaimer-note{color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;align-items:flex-start;gap:8px;margin-top:16px;padding:10px 14px;font-size:12px;line-height:1.4;display:flex}.cloud-disclaimer-note svg{flex-shrink:0;margin-top:1px}.cloud-backup-modal-dialog{max-width:480px}.cloud-backup-notice-callout{color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;align-items:flex-start;gap:10px;margin-bottom:14px;padding:12px 14px;font-size:13px;line-height:1.4;display:flex}.cloud-notice-icon{color:#2563eb;flex-shrink:0;margin-top:1px}.cloud-backup-notice-callout strong{color:#1d4ed8;margin-bottom:2px;font-size:13px;font-weight:700;display:block}.cloud-backup-notice-callout p{color:#1e40af;margin:0}@media (width<=600px){.cloud-guest-banner{flex-direction:column;align-items:stretch}.cloud-signin-btn{justify-content:center;width:100%}}.reports-page{flex-direction:column;gap:20px;display:flex}.reports-heading{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.reports-top-actions{align-items:center;gap:10px;display:flex}.export-csv-btn{cursor:pointer;border-radius:8px;align-items:center;gap:8px;padding:9px 16px;font-size:13px;font-weight:600;display:inline-flex}.export-csv-btn:disabled{opacity:.5;cursor:not-allowed}.reports-filter-card{flex-direction:column;gap:14px;padding:16px 20px;display:flex}.reports-presets-bar{flex-wrap:wrap;gap:8px;display:flex}.preset-pill{color:#475569;cursor:pointer;background:#f8fafc;border:1px solid #cbd5e1;border-radius:20px;padding:7px 14px;font-size:13px;font-weight:600;transition:all .15s}.preset-pill:hover{color:#0f172a;background:#f1f5f9;border-color:#94a3b8}.preset-pill.active{color:#fff;background:#2563eb;border-color:#2563eb;box-shadow:0 2px 8px #2563eb40}.custom-range-inputs{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;flex-wrap:wrap;align-items:center;gap:16px;padding:12px 14px;display:flex}.custom-date-field{align-items:center;gap:8px;display:flex}.custom-date-field label{color:#475569;font-size:13px;font-weight:600}.custom-date-field input[type=date]{color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:6px;padding:6px 10px;font-size:13px}.custom-date-field input[type=date]:focus{border-color:#2563eb;outline:none;box-shadow:0 0 0 3px #2563eb26}.custom-range-error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;align-items:center;gap:6px;padding:8px 12px;font-size:13px;font-weight:500;display:flex}.active-range-indicator{color:#64748b;align-items:center;gap:8px;padding-top:2px;font-size:13px;display:flex}.active-count-badge{color:#334155;text-transform:uppercase;letter-spacing:.03em;background:#f1f5f9;border-radius:10px;padding:2px 8px;font-size:11px;font-weight:700}.empty-reports-card{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:48px 24px;display:flex}.empty-reports-icon{color:#94a3b8;margin-bottom:4px}.empty-reports-card h2{color:#0f172a;margin:0;font-size:18px;font-weight:700}.empty-reports-card p{color:#64748b;max-width:480px;margin:0;font-size:14px}.reports-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;display:grid}.kpi-card{align-items:flex-start;gap:14px;padding:18px;display:flex}.kpi-icon-wrap{border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;display:flex}.kpi-icon--billed{color:#2563eb;background:#eff6ff}.kpi-icon--received{color:#16a34a;background:#f0fdf4}.kpi-icon--outstanding{color:#d97706;background:#fffbeb}.kpi-icon--count{color:#475569;background:#f8fafc}.kpi-icon--average{color:#7c3aed;background:#f5f3ff}.kpi-content{flex-direction:column;gap:2px;display:flex}.kpi-label{color:#64748b;text-transform:uppercase;letter-spacing:.04em;font-size:12px;font-weight:600}.kpi-value{color:#0f172a;letter-spacing:-.02em;font-size:20px;font-weight:800}.kpi-hint{color:#94a3b8;margin-top:2px;font-size:11px}.reports-section{flex-direction:column;gap:12px;display:flex}.section-title{color:#0f172a;margin:0;font-size:16px;font-weight:700}.payment-overview-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;display:grid}.payment-status-card{flex-direction:column;gap:12px;padding:16px;display:flex}.status-card-header{justify-content:space-between;align-items:center;display:flex}.status-count-badge{color:#64748b;font-size:12px;font-weight:600}.status-card-body{flex-direction:column;gap:8px;font-size:13px;display:flex}.status-metric-row{color:#475569;justify-content:space-between;align-items:center;display:flex}.status-metric-row strong{color:#0f172a;font-weight:700}.status-metric-highlight{border-top:1px solid #f1f5f9;margin-top:2px;padding-top:8px}.sales-trend-card{padding:20px}.trend-legend{color:#475569;align-items:center;gap:16px;font-size:12px;font-weight:600;display:flex}.legend-item{align-items:center;gap:6px;display:flex}.legend-color{border-radius:3px;width:12px;height:12px}.legend-billed{background:#2563eb}.legend-received{background:#16a34a}.svg-chart-container{padding-top:10px;padding-bottom:6px;overflow-x:auto}.trend-svg{width:100%;min-width:480px;height:auto;display:block}.chart-bar{cursor:pointer;transition:opacity .15s}.chart-bar:hover{opacity:.85}.chart-axis-label{font-family:inherit;font-weight:600}.no-trend-notice{color:#64748b;text-align:center;padding:24px 0;font-size:14px}.top-customers-card{padding:20px}.customers-count-tag{color:#64748b;background:#f1f5f9;border-radius:12px;align-items:center;gap:5px;padding:4px 10px;font-size:12px;font-weight:600;display:flex}.top-customers-list{flex-direction:column;gap:10px;margin-top:8px;display:flex}.top-customer-item{background:#f8fafc;border:1px solid #f1f5f9;border-radius:8px;align-items:center;gap:14px;padding:12px 14px;transition:background .12s;display:flex}.top-customer-item:hover{background:#f1f5f9}.customer-rank-badge{color:#2563eb;background:#eff6ff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:30px;height:30px;font-size:13px;font-weight:800;display:flex}.customer-info-wrap{flex-direction:column;flex:1;gap:2px;min-width:140px;display:flex}.customer-subtext{color:#64748b;font-size:11px}.customer-invoice-count{color:#94a3b8;font-size:11px;font-weight:600}.customer-metrics-wrap{flex-wrap:wrap;align-items:center;gap:18px;display:flex}.metric-box{flex-direction:column;align-items:flex-end;display:flex}.metric-box-label{text-transform:uppercase;color:#94a3b8;font-size:10px;font-weight:700}.metric-box-val{color:#0f172a;font-size:14px;font-weight:700}.val-green{color:#16a34a!important}.val-orange{color:#d97706!important}.report-table-card{margin-top:4px;overflow:hidden;padding:0!important}.report-table{border-collapse:collapse;width:100%;font-size:13px}.report-table thead th{color:#475569;text-transform:uppercase;letter-spacing:.05em;background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:12px 16px;font-size:11px;font-weight:700}.report-table tbody td{vertical-align:middle;border-bottom:1px solid #f1f5f9;padding:14px 16px}.report-cards-list{display:none}@media (width<=768px){.report-table-card{display:none!important}.report-cards-list{flex-direction:column;gap:12px;margin-top:4px;display:flex!important}.reports-heading{flex-direction:column;align-items:stretch}.export-csv-btn{justify-content:center;width:100%}.top-customer-item{flex-direction:column;align-items:flex-start;gap:10px}.customer-metrics-wrap{border-top:1px solid #e2e8f0;justify-content:space-between;width:100%;padding-top:8px}.metric-box{align-items:flex-start}}.expenses-page{padding-bottom:40px}.expenses-heading{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px;display:flex}.heading-actions{align-items:center;gap:10px;display:flex}.expense-success-banner{color:#065f46;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:8px;align-items:center;gap:10px;margin-bottom:20px;padding:12px 16px;font-size:14px;font-weight:500;animation:.2s ease-out fadeIn;display:flex}.expense-error-banner{color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;align-items:center;gap:10px;margin-bottom:20px;padding:12px 16px;font-size:14px;display:flex}.retry-link{color:#b91c1c;cursor:pointer;background:0 0;border:none;margin-left:auto;font-weight:600;text-decoration:underline}.expenses-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-bottom:24px;display:grid}.kpi-card--expense-total{border-left:4px solid #ef4444}.kpi-card--expense-month{border-left:4px solid #f59e0b}.kpi-card--expense-count{border-left:4px solid #3b82f6}.kpi-card--expense-avg{border-left:4px solid #8b5cf6}.expense-filter-card{margin-bottom:24px;padding:18px 20px}.expense-filter-top{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.reset-filter-btn{color:#64748b;cursor:pointer;align-items:center;gap:6px;font-size:13px;display:flex}.reset-filter-btn:hover{color:#0f172a}.expense-filter-grid{border-top:1px solid #f1f5f9;grid-template-columns:2fr 1.2fr 1.2fr;gap:14px;margin-top:14px;padding-top:14px;display:grid}.filter-input-wrap{flex-direction:column;gap:6px;display:flex}.filter-field-label{color:#475569;text-transform:uppercase;letter-spacing:.03em;align-items:center;gap:6px;font-size:12px;font-weight:600;display:flex}.filter-search-input,.filter-select-input{color:#1e293b;background:#fff;border:1px solid #cbd5e1;border-radius:6px;outline:none;width:100%;padding:8px 12px;font-size:13px;transition:border-color .15s}.filter-search-input:focus,.filter-select-input:focus{border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f626}.expense-category-breakdown-card{margin-bottom:24px;padding:20px}.category-chips-list{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-top:12px;display:grid}.category-chip{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;flex-direction:column;gap:4px;padding:12px 14px;display:flex}.category-chip-header{color:#64748b;justify-content:space-between;align-items:center;font-size:12px;font-weight:500;display:flex}.category-chip-label{color:#334155;font-weight:600}.category-chip-percentage{color:#475569;background:#e2e8f0;border-radius:10px;padding:1px 6px;font-size:11px;font-weight:700}.category-chip-total{color:#0f172a;font-size:16px;font-weight:700}.category-chip-count{color:#94a3b8;font-size:11px}.expense-category-badge{color:#334155;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:4px;padding:3px 8px;font-size:12px;font-weight:600;display:inline-block}.payment-method-badge{color:#0891b2;background:#ecfeff;border:1px solid #cffafe;border-radius:4px;padding:2px 7px;font-size:11px;font-weight:600;display:inline-block}.payment-method--none{color:#94a3b8;background:#f8fafc;border-color:#e2e8f0;font-style:italic;font-weight:400}.expense-desc-cell strong{color:#0f172a;display:block}.expense-note-hint{color:#64748b;margin-top:2px;font-size:11px}.modal-title-wrap{align-items:center;gap:10px;display:flex}.modal-title-icon{color:#2563eb;flex-shrink:0}.expense-modal-dialog{width:100%;max-width:560px}.expense-modal-body{flex-direction:column;gap:16px;max-height:calc(85vh - 140px);padding:24px;display:flex;overflow-y:auto}.expense-form-error-banner{color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;align-items:center;gap:8px;padding:10px 14px;font-size:13px;display:flex}.form-grid-2{grid-template-columns:1fr 1fr;gap:14px;display:grid}.required-star{color:#ef4444;margin-left:2px;font-weight:700}.field-error-text{color:#dc2626;margin-top:4px;font-size:11px;display:block}.input-error{background-color:#fef2f2!important;border-color:#ef4444!important}.expense-modal-actions{background:#f8fafc;border-top:1px solid #e2e8f0;border-bottom-right-radius:14px;border-bottom-left-radius:14px;justify-content:flex-end;align-items:center;gap:12px;padding:16px 24px;display:flex}.modal-cancel-btn{color:#475569;cursor:pointer;box-sizing:border-box;background:#fff;border:1px solid #d1d5db;border-radius:8px;justify-content:center;align-items:center;height:40px;padding:0 18px;font-family:inherit;font-size:13px;font-weight:600;transition:all .15s;display:inline-flex}.modal-cancel-btn:hover:not(:disabled){color:#0f172a;background:#f1f5f9;border-color:#9ca3af}.modal-cancel-btn:active:not(:disabled){background:#e2e8f0}.modal-cancel-btn:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.modal-submit-btn{color:#fff;cursor:pointer;box-sizing:border-box;background:#2563eb;border:1px solid #2563eb;border-radius:8px;justify-content:center;align-items:center;height:40px;padding:0 22px;font-family:inherit;font-size:13px;font-weight:700;transition:all .15s;display:inline-flex;box-shadow:0 1px 2px #2563eb33}.modal-submit-btn:hover:not(:disabled){background:#1d4ed8;border-color:#1d4ed8}.modal-submit-btn:active:not(:disabled){background:#1e40af}.modal-submit-btn:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.expense-delete-modal-dialog{width:100%;max-width:480px}.delete-modal-intro{color:#334155;margin-bottom:14px;font-size:14px}.delete-context-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;flex-direction:column;gap:10px;margin-bottom:14px;padding:14px 16px;display:flex}.delete-context-row{justify-content:space-between;align-items:center;font-size:13px;display:flex}.context-label{color:#64748b;font-weight:500}.context-value{color:#0f172a}.expense-table-wrap{-webkit-overflow-scrolling:touch;width:100%;overflow-x:auto}.expense-data-table{border-collapse:collapse;text-align:left;width:100%;font-size:13px}.expense-data-table thead th{color:#475569;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap;background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:12px 16px;font-size:11px;font-weight:700}.expense-data-table tbody td{vertical-align:middle;color:#1e293b;border-bottom:1px solid #f1f5f9;padding:14px 16px}.expense-data-table tbody tr{transition:background .12s}.expense-data-table tbody tr:hover{background:#f8fafc}.expense-data-table .th-date,.expense-data-table .td-date{white-space:nowrap;width:12%;min-width:105px}.expense-data-table .th-category,.expense-data-table .td-category{width:15%;min-width:130px}.expense-data-table .th-description,.expense-data-table .td-description{width:28%;min-width:220px;line-height:1.4}.expense-data-table .th-vendor,.expense-data-table .td-vendor{width:15%;min-width:130px}.expense-data-table .th-method,.expense-data-table .td-method{width:14%;min-width:125px}.expense-data-table .th-amount,.expense-data-table .td-amount{text-align:right;width:16%;min-width:120px;padding-right:20px}.expense-data-table .th-actions,.expense-data-table .td-actions{text-align:center;white-space:nowrap;width:100px;min-width:96px;padding-left:12px;padding-right:16px}.expense-table-actions{vertical-align:middle;flex-wrap:nowrap;justify-content:center;align-items:center;gap:8px;display:inline-flex}.expense-action-btn{box-sizing:border-box;color:#475569;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;padding:0;line-height:1;transition:all .15s ease-in-out;display:inline-flex}.expense-edit-btn:hover{color:#2563eb;background:#eff6ff;border-color:#bfdbfe;transform:translateY(-1px);box-shadow:0 1px 3px #2563eb1f}.expense-edit-btn:active{color:#1d4ed8;background:#dbeafe;border-color:#93c5fd;transform:translateY(0)}.expense-edit-btn:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.expense-delete-btn:hover{color:#dc2626;background:#fef2f2;border-color:#fecaca;transform:translateY(-1px);box-shadow:0 1px 3px #dc26261f}.expense-delete-btn:active{color:#b91c1c;background:#fee2e2;border-color:#fca5a5;transform:translateY(0)}.expense-delete-btn:focus-visible{outline-offset:2px;outline:2px solid #dc2626}.expense-mobile-card{margin-bottom:12px;padding:16px}.expense-card-body{flex-direction:column;gap:4px;margin:10px 0;display:flex}.expense-card-desc{color:#0f172a;margin:0;font-size:14px;font-weight:600;line-height:1.4}.expense-card-vendor,.expense-card-notes{color:#64748b;margin:0;font-size:12px}.hint-label{color:#94a3b8;font-weight:500}.expense-card-footer{border-top:1px solid #f1f5f9;justify-content:space-between;align-items:center;gap:12px;margin-top:8px;padding-top:10px;display:flex}.expense-card-actions{flex-shrink:0;align-items:center;gap:8px;display:inline-flex}@media (width<=768px){.expense-table-card{display:none!important}.expense-cards-list{flex-direction:column;gap:12px;display:flex!important}.expenses-heading{flex-direction:column;align-items:stretch}.heading-actions{justify-content:space-between;width:100%}.heading-actions button{flex:1}.expense-filter-grid,.form-grid-2{grid-template-columns:1fr}.expense-modal-dialog{max-width:calc(100vw - 32px);margin:16px}.expense-modal-body{padding:18px 16px}.expense-modal-actions{flex-direction:column-reverse;gap:8px;padding:14px 16px}.expense-modal-actions button{width:100%}}.profit-loss-page{padding-bottom:48px}.profit-loss-heading{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px;display:flex}.pl-status-hero{border:1px solid;border-radius:12px;align-items:center;gap:20px;margin-bottom:24px;padding:22px 26px;transition:all .2s;display:flex}.pl-status-hero--profit{color:#065f46;background:#ecfdf5;border-color:#a7f3d0}.pl-status-hero--loss{color:#9f1239;background:#fff1f2;border-color:#fecdd3}.pl-status-hero--breakeven{color:#334155;background:#f8fafc;border-color:#e2e8f0}.pl-status-hero-icon{border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:58px;height:58px;display:flex}.pl-status-hero--profit .pl-status-hero-icon{color:#059669;background:#d1fae5}.pl-status-hero--loss .pl-status-hero-icon{color:#e11d48;background:#ffe4e6}.pl-status-hero--breakeven .pl-status-hero-icon{color:#475569;background:#e2e8f0}.pl-status-hero-content{flex:1;min-width:0}.pl-status-tag{text-transform:uppercase;letter-spacing:.06em;border-radius:6px;align-items:center;gap:6px;margin-bottom:4px;padding:3px 8px;font-size:11px;font-weight:800;display:inline-flex}.pl-status-hero--profit .pl-status-tag{color:#047857;background:#d1fae5}.pl-status-hero--loss .pl-status-tag{color:#be123c;background:#ffe4e6}.pl-status-hero--breakeven .pl-status-tag{color:#475569;background:#e2e8f0}.status-indicator-dot{background:currentColor;border-radius:50%;width:6px;height:6px}.pl-status-hero-amount{letter-spacing:-.02em;margin:2px 0 4px;font-family:inherit;font-size:28px;font-weight:800;display:block}.pl-status-hero--profit .pl-status-hero-amount{color:#047857}.pl-status-hero--loss .pl-status-hero-amount{color:#be123c}.pl-status-hero--breakeven .pl-status-hero-amount{color:#0f172a}.pl-status-hero-sub{opacity:.9;margin:0;font-size:13px;line-height:1.4}.pl-kpi-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:24px;display:grid}.kpi-card--pl-billed{border-left:4px solid #2563eb}.kpi-card--pl-received{border-left:4px solid #16a34a}.kpi-card--pl-expenses{border-left:4px solid #f43f5e}.kpi-card--pl-net{border-left:4px solid #8b5cf6}.kpi-card--pl-outstanding{border-left:4px solid #f59e0b}.kpi-card--pl-margin{border-left:4px solid #06b6d4}.kpi-label{text-transform:uppercase;color:#64748b;letter-spacing:.04em;margin-bottom:4px;font-size:11px;font-weight:700;display:block}.kpi-value{color:#0f172a;letter-spacing:-.01em;font-size:22px;font-weight:800;display:block}.kpi-subtext{color:#94a3b8;margin-top:4px;font-size:11px;display:block}.text-purple{color:#8b5cf6!important}.text-blue{color:#2563eb!important}.border-green{border-left-color:#16a34a!important}.border-red{border-left-color:#dc2626!important}.pl-comparison-card{margin-bottom:24px;padding:20px 22px}.pl-comparison-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin-top:16px;display:grid}.pl-comparison-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;flex-direction:column;gap:6px;padding:14px 16px;display:flex}.comparison-metric-name{color:#64748b;font-size:12px;font-weight:600}.comparison-metric-curr{color:#0f172a;font-size:18px;font-weight:800}.comparison-metric-delta{justify-content:space-between;align-items:center;margin-top:4px;font-size:11px;display:flex}.prev-val-label{color:#94a3b8}.delta-badge{border-radius:12px;align-items:center;gap:2px;padding:2px 7px;font-size:11px;font-weight:700;display:inline-flex}.delta-up{color:#15803d;background:#dcfce7}.delta-down{color:#b91c1c;background:#fee2e2}.delta-neutral{color:#475569;background:#f1f5f9}.pl-no-comparison-notice{color:#64748b;background:#f8fafc;border-radius:6px;align-items:center;gap:8px;margin-top:12px;padding:10px 14px;font-size:13px;display:flex}.legend-expense{background:#f43f5e}.legend-net{background:#2563eb}.chart-bar--expenses{transition:opacity .12s}.chart-bar--expenses:hover{opacity:.85}.chart-bar--net-profit,.chart-bar--net-loss{transition:opacity .12s}.pl-statement-card{margin-bottom:24px;padding:22px 24px}.pl-statement-header{margin-bottom:18px}.statement-badge{color:#2563eb;background:#eff6ff;border:1px solid #bfdbfe;border-radius:6px;padding:4px 10px;font-size:12px;font-weight:700}.statement-table-wrap{width:100%;overflow-x:auto}.statement-table{border-collapse:collapse;width:100%;font-size:13px}.statement-section-row td{background:#f8fafc;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;padding:16px 12px 8px}.section-title-wrap{color:#334155;text-transform:uppercase;letter-spacing:.04em;align-items:center;gap:8px;font-size:12px;display:flex}.statement-data-row td{vertical-align:middle;border-bottom:1px solid #f1f5f9;padding:12px 14px}.statement-cell-label{flex-direction:column;gap:2px;display:flex}.statement-cell-val{text-align:right;white-space:nowrap;font-size:14px}.highlight-row{background:#fcfdfe}.result-row{background:#f8fafc;border-top:2px solid #cbd5e1;border-bottom:2px solid #cbd5e1}.text-large{font-size:18px!important}.statement-disclaimer-note{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;align-items:flex-start;gap:10px;margin-top:20px;padding:12px 16px;display:flex}.disclaimer-icon{color:#64748b;flex-shrink:0;margin-top:2px}.statement-disclaimer-note p{color:#64748b;margin:0;font-size:12px;line-height:1.5}.pl-two-col-grid{grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px;display:grid}.pl-breakdown-card,.pl-collection-card{padding:22px 24px}.pl-expense-list{flex-direction:column;gap:14px;margin-top:16px;display:flex}.pl-expense-item{flex-direction:column;gap:4px;display:flex}.pl-cat-header{justify-content:space-between;align-items:center;font-size:13px;display:flex}.pl-cat-name{color:#1e293b}.pl-cat-total{color:#0f172a;font-weight:700}.pl-cat-bar-wrap{background:#f1f5f9;border-radius:3px;width:100%;height:6px;overflow:hidden}.pl-cat-bar-fill{background:#f43f5e;border-radius:3px;height:100%;transition:width .3s}.pl-cat-meta{color:#94a3b8;justify-content:space-between;align-items:center;font-size:11px;display:flex}.pl-collection-gauge-wrap{align-items:center;gap:24px;margin-top:20px;display:flex}.pl-collection-rate-circle{background:#eff6ff;border:4px solid #3b82f6;border-radius:50%;flex-direction:column;flex-shrink:0;justify-content:center;align-items:center;width:100px;height:100px;display:flex}.collection-rate-num{color:#1d4ed8;font-size:24px;font-weight:800;line-height:1}.collection-rate-lbl{text-transform:uppercase;color:#60a5fa;margin-top:2px;font-size:10px;font-weight:700}.pl-collection-details{flex-direction:column;flex:1;gap:8px;display:flex}.collection-row{color:#334155;align-items:center;gap:8px;font-size:13px;display:flex}.status-dot{border-radius:50%;flex-shrink:0;width:8px;height:8px}.dot-green{background:#16a34a}.dot-orange{background:#f59e0b}.dot-red{background:#ef4444}.collection-status-name{color:#64748b;flex:1}.collection-status-count{color:#0f172a;font-weight:700}.total-row{border-top:1px solid #e2e8f0;margin-top:2px;padding-top:8px}.pl-insights-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px;margin-top:14px;display:grid}.pl-insight-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;align-items:flex-start;gap:12px;padding:16px 18px;display:flex;box-shadow:0 1px 2px #1018280a}.pl-insight-card--success{border-left:4px solid #16a34a}.pl-insight-card--warning{border-left:4px solid #f59e0b}.pl-insight-card--danger{border-left:4px solid #ef4444}.pl-insight-card--info{border-left:4px solid #3b82f6}.pl-insight-card--neutral{border-left:4px solid #64748b}.pl-insight-card--success .insight-icon-wrap{color:#16a34a}.pl-insight-card--warning .insight-icon-wrap{color:#f59e0b}.pl-insight-card--danger .insight-icon-wrap{color:#ef4444}.pl-insight-card--info .insight-icon-wrap{color:#3b82f6}.pl-insight-card--neutral .insight-icon-wrap{color:#64748b}.insight-icon-wrap{flex-shrink:0;margin-top:2px}.insight-content{flex:1}.insight-title{color:#0f172a;margin-bottom:2px;font-size:13px;font-weight:700;display:block}.insight-message{color:#475569;margin:0;font-size:12px;line-height:1.4}@media (width<=768px){.profit-loss-heading{flex-direction:column;align-items:stretch}.pl-status-hero{flex-direction:column;align-items:flex-start;padding:18px 20px}.pl-two-col-grid{grid-template-columns:1fr}.pl-collection-gauge-wrap{flex-direction:column;align-items:center;gap:16px}.pl-collection-details{width:100%}.statement-table-wrap{margin:0 -10px}}
