@import "https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap";
:root{--primary:#2563eb;--primary-hover:#1d4ed8;--bg:#f8fafc;--surface:#fff;--text:#0f172a;--text-secondary:#64748b;--border:#e2e8f0;--danger:#ef4444;--success:#22c55e;--font-sans:"Inter", system-ui, -apple-system, sans-serif;--radius:.5rem;--shadow:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a}*{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-sans);background-color:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;line-height:1.5}button{cursor:pointer;font-family:inherit}input,select,textarea{font-family:inherit;font-size:.875rem}.container{max-width:1200px;margin:0 auto;padding:2rem}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.5rem}.btn{border-radius:var(--radius);background:0 0;border:none;justify-content:center;align-items:center;gap:.5rem;padding:.5rem 1rem;font-weight:500;transition:all .2s;display:inline-flex}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-hover)}.btn-secondary{border:1px solid var(--border);color:var(--text);background:#fff}.btn-secondary:hover{background:#f1f5f9}.logo{color:var(--primary);align-items:center;gap:.5rem;font-size:1.5rem;font-weight:700;display:flex}.badge-overdue{background:var(--danger);color:#fff;border-radius:999px;align-items:center;gap:.2rem;margin-left:.35rem;padding:.1rem .35rem;font-size:.7rem;font-weight:700;line-height:1;display:inline-flex}.invoice-status-pill{border:1px solid var(--border);border-radius:var(--radius);justify-content:center;align-items:center;padding:.2rem .5rem;font-size:.75rem;font-weight:600;display:inline-flex}.invoice-status-pill.draft{color:var(--text-secondary);background:#f8fafc}.settings-layout{grid-template-columns:240px minmax(0,1fr);align-items:start;gap:1rem;display:grid}.settings-sidebar{padding:1rem}.settings-sidebar-title{align-items:center;gap:.5rem;margin-bottom:1rem;font-weight:700;display:flex}.settings-nav{gap:.35rem;display:grid}.settings-nav-item{border-radius:var(--radius);width:100%;color:var(--text-secondary);text-align:left;background:0 0;border:1px solid #0000;align-items:center;gap:.6rem;padding:.65rem .75rem;font-weight:600;display:flex}.settings-nav-item:hover{color:var(--text);background:#f1f5f9}.settings-nav-item.active{color:var(--primary);background:#eff6ff;border-color:#bfdbfe}.settings-content{gap:1rem;display:grid}.settings-section-heading{align-items:flex-start;gap:.75rem;margin-bottom:1.25rem;display:flex}.settings-section-heading p{color:var(--text-secondary);margin-top:.15rem;font-size:.9rem}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;display:grid}.settings-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem;display:grid}.settings-form-grid label{color:var(--text-secondary);gap:.4rem;font-size:.85rem;font-weight:600;display:grid}.settings-form-grid label.wide{grid-column:1/-1}.settings-form-grid input,.settings-form-grid select{border:1px solid var(--border);border-radius:var(--radius);width:100%;color:var(--text);background:#fff;padding:.6rem .7rem}.settings-form-grid input:focus,.settings-form-grid select:focus{border-color:var(--primary);outline:2px solid #bfdbfe}.settings-actions{flex-wrap:wrap;align-items:center;gap:.75rem;margin-top:1.25rem;display:flex}.settings-numbering-panel{border:1px solid var(--border);border-radius:var(--radius);background:#f8fafc;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem;padding:1rem;display:flex}.settings-numbering-panel h3{margin-bottom:.25rem}.settings-numbering-panel p{color:var(--text-secondary);font-size:.9rem}.invoice-number-preview{border-radius:var(--radius);text-align:right;background:#fff;border:1px dashed #bfdbfe;gap:.2rem;min-width:180px;padding:.75rem 1rem;display:grid}.invoice-number-preview span{color:var(--text-secondary);text-transform:uppercase;font-size:.8rem;font-weight:700}.invoice-number-preview strong{color:var(--primary);font-size:1.25rem}.settings-form-grid label.settings-checkbox-label{align-self:end;align-items:center;gap:.6rem;min-height:42px;display:flex}.settings-form-grid label.settings-checkbox-label input{width:auto}.settings-template-workspace{grid-template-columns:minmax(320px,1fr) 362px;align-items:start;gap:1.5rem;margin-top:1rem;display:grid}.settings-template-preview{border:1px solid var(--border);border-radius:var(--radius);background:#f8fafc;width:362px;height:512px;padding:.65rem;overflow:hidden}.settings-template-preview .printable-container{transform-origin:0 0;display:block;transform:scale(.43)}.template-color-control{color:var(--text-secondary);gap:.45rem;margin-top:1rem;font-size:.9rem;font-weight:600;display:grid}.template-color-control input[type=text]{border:1px solid var(--border);border-radius:var(--radius);width:100%;padding:.6rem .7rem}.template-color-control input[type=color]{border:1px solid var(--border);border-radius:var(--radius);background:#fff;width:44px;height:42px;padding:.15rem}.template-preview-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-top:1rem;display:grid}.template-preview{border:1px solid var(--border);border-radius:var(--radius);color:var(--text-secondary);text-align:left;background:#fff;gap:.25rem;min-height:90px;padding:.85rem;display:grid}.template-mini i{display:block;position:absolute}.template-mini-alfa i{width:42%;height:4px;top:10px;right:12px}.template-preview:hover{background:#eff6ff;border-color:#bfdbfe}.template-preview.active{border-color:var(--primary);color:var(--text);background:#eff6ff}.template-preview-title{color:var(--text);font-weight:700}.template-toolbar{justify-content:space-between;align-items:center;gap:1rem;margin-top:1.35rem;display:flex}.template-toolbar p{color:var(--text-secondary);margin-top:.2rem;font-size:.9rem}.density-toggle{-webkit-backdrop-filter:blur(8px);background:#f1f5f9cc;border:1px solid #e2e8f0cc;border-radius:999px;gap:6px;padding:4px;display:inline-flex}.density-toggle button{min-width:110px;color:var(--text-secondary);cursor:pointer;background:0 0;border:0;border-radius:999px;padding:.5rem 1rem;font-size:.875rem;font-weight:600;transition:all .2s cubic-bezier(.4,0,.2,1)}.density-toggle button:hover{color:var(--text);background:#ffffff80}.density-toggle button.active{color:var(--primary);background:#fff;box-shadow:0 2px 4px #0000000f}.color-input-row{grid-template-columns:minmax(0,1fr) 44px;gap:.4rem;display:grid}.settings-form-grid .color-input-row input[type=color]{padding:.15rem}.asset-upload-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem;display:grid}.asset-upload{gap:.5rem;display:grid}.asset-upload-heading{color:var(--text-secondary);justify-content:space-between;align-items:center;display:flex}.asset-upload-heading button{border:1px solid var(--border);width:28px;height:28px;color:var(--text-secondary);background:#fff;border-radius:999px;justify-content:center;align-items:center;display:inline-flex}.asset-dropzone{border-radius:var(--radius);min-height:142px;color:var(--text-secondary);text-align:center;background:#f8fafc;border:1px dashed #cbd5e1;flex-direction:column;justify-content:center;align-items:center;gap:.35rem;display:flex}.asset-dropzone:hover{border-color:var(--primary);background:#eff6ff}.asset-remove{width:fit-content;color:var(--text-secondary);background:0 0;border:0;align-items:center;gap:.25rem;padding:.25rem .45rem;font-size:.8rem;display:inline-flex}.asset-dropzone img{object-fit:contain;max-width:82%;max-height:110px}.asset-dropzone span{color:var(--text);font-weight:700}.asset-dropzone small{max-width:260px}.settings-backup{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:1rem;margin-top:1.5rem;padding-top:1.25rem;display:flex}.settings-backup p{color:var(--text-secondary);max-width:560px;margin-top:.25rem;font-size:.9rem}.settings-status{border-radius:var(--radius);color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe;padding:.85rem 1rem;font-size:.9rem}.status-error{border-radius:var(--radius);color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;padding:.85rem 1rem;font-size:.9rem;font-weight:600}.settings-field-preview{border:1px solid var(--border);border-radius:var(--radius);background:var(--bg);gap:.2rem;padding:.85rem;display:grid}.settings-field-preview.wide{grid-column:1/-1}.settings-field-preview span{color:var(--text-secondary);font-size:.8rem}.settings-field-preview strong{font-size:.95rem}.settings-note{color:var(--text-secondary);align-items:center;gap:.5rem;padding:0 .25rem;font-size:.85rem;display:flex}.overview-page{gap:1rem;display:grid}.overview-hero{justify-content:space-between;align-items:center;gap:1rem;display:flex}.overview-hero p,.muted{color:var(--text-secondary)}.overview-recommendation{border-radius:var(--radius);color:#92400e;background:#fffbeb;border:1px solid #fde68a;align-items:flex-start;gap:.5rem;max-width:460px;padding:.85rem 1rem;font-size:.9rem;font-weight:600;display:flex}.overview-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem;display:grid}.metric-card{text-overflow:ellipsis;gap:.5rem;display:grid;overflow:hidden;padding:1.5rem!important}.metric-card svg{color:var(--primary)}.metric-card span,.metric-card small{color:var(--text-secondary)}.metric-card strong{font-size:1.45rem}.metric-card.danger svg,.metric-card.danger strong{color:var(--danger)}.metric-card.success svg,.metric-card.success strong{color:var(--success)}.overview-panels{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.overview-panels h3,.overview-page .card>h3{margin-bottom:1rem}.overview-list{gap:.65rem;display:grid}.overview-list-row{border:1px solid var(--border);border-radius:var(--radius);background:var(--bg);justify-content:space-between;gap:1rem;padding:.75rem;display:flex}.overview-list-row.danger{background:#fef2f2;border-color:#fecaca}.overview-list-row>div{gap:.1rem;display:grid}.overview-list-row>div:last-child{text-align:right}.overview-list-row span{color:var(--text-secondary);font-size:.82rem}.overview-filter{align-items:end;gap:.75rem;display:flex}.overview-filter label{color:var(--text-secondary);gap:.35rem;font-size:.85rem;font-weight:600;display:grid}.overview-filter select{border:1px solid var(--border);border-radius:var(--radius);background:#fff;padding:.55rem .7rem}.monthly-chart{align-items:flex-end;gap:.3rem;height:210px;display:flex}.monthly-bar{height:100%;color:var(--text-secondary);background:0 0;border:0;flex-direction:column;flex:1;justify-content:flex-end;align-items:center;gap:.25rem;min-width:0;display:flex}.monthly-bar:disabled{cursor:default}.monthly-bar span{min-height:1rem;font-size:var(--type-caption-sm)}.monthly-bar i{background:linear-gradient(to top, var(--primary), #60a5fa);border-radius:4px 4px 0 0;width:100%;max-width:56px;min-height:2px;display:block}.monthly-bar:disabled i{background:var(--border)}.monthly-bar small{font-size:.7rem}.overview-table-wrap{overflow-x:auto}.overview-table{border-collapse:collapse;width:100%}.overview-table th,.overview-table td{border-bottom:1px solid var(--border);text-align:left;white-space:nowrap;padding:.65rem .5rem}.overview-table th:nth-child(5),.overview-table td:nth-child(5){text-align:right}.overdue-row{background:#fef2f2}.status-pill{border-radius:999px;align-items:center;gap:.25rem;padding:.2rem .45rem;font-size:.75rem;font-weight:700;display:inline-flex}.status-pill.paid{color:#166534;background:#dcfce7}.status-pill.overdue{color:#991b1b;background:#fee2e2}.status-pill.pending{color:#475569;background:#f1f5f9}.printable-container{display:none}.invoice-template{--invoice-accent:#2563eb;color:#111827;-webkit-print-color-adjust:exact;print-color-adjust:exact;background:#fff;width:210mm;min-height:297mm;padding:18mm;font-family:Inter,Arial,sans-serif;font-size:10.5pt;line-height:1.38;position:relative}.invoice-density-compact{font-size:9.5pt;line-height:1.25}.invoice-accent-band{display:none}.invoice-print-header{justify-content:space-between;align-items:flex-start;gap:20mm;margin-bottom:14mm;display:flex}.invoice-brand{align-items:flex-start;width:36mm;height:20mm;display:flex}.invoice-brand img{object-fit:contain;max-width:36mm;max-height:20mm}.invoice-brand span{border:1px solid var(--invoice-accent);width:14mm;height:14mm;color:var(--invoice-accent);border-radius:999px;justify-content:center;align-items:center;font-weight:800;display:inline-flex}.invoice-print-header p{text-align:right;text-transform:uppercase;color:#6b7280;letter-spacing:0;margin-bottom:1mm;font-size:8pt}.invoice-print-header h1{font-size:22pt;line-height:1}.invoice-hero{border-top:1.2pt solid var(--invoice-accent);border-bottom:1px solid #d1d5db;grid-template-columns:42mm 1fr 30mm;align-items:start;gap:8mm;margin-bottom:12mm;padding:8mm 0;display:grid}.invoice-total-block,.invoice-payment-grid>div,.invoice-final-total{gap:1mm;display:grid}.invoice-total-block span,.invoice-payment-grid span,.invoice-party>span,.invoice-final-total span,.invoice-qr span{color:#6b7280;font-size:8pt}.invoice-total-block strong,.invoice-final-total strong{color:var(--invoice-accent);font-size:20pt;line-height:1.05}.invoice-payment-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:4mm 8mm;display:grid}.invoice-payment-grid strong{font-size:10pt}.invoice-qr{justify-items:center;gap:1mm;display:grid}.invoice-qr svg,.invoice-qr-empty{background:#fff;border:1px solid #e5e7eb;width:28mm;height:28mm}.invoice-qr-empty{color:#9ca3af;justify-content:center;align-items:center;font-size:7pt;display:flex}.invoice-parties{grid-template-columns:repeat(2,minmax(0,1fr));gap:14mm;margin-bottom:12mm;display:grid}.invoice-party{gap:1mm;display:grid}.invoice-party>span{text-transform:uppercase}.invoice-party strong{font-size:11pt}.invoice-party p{margin:0}.invoice-party dl{grid-template-columns:18mm 1fr;gap:1mm 4mm;margin-top:5mm;display:grid}.invoice-party dt{color:#6b7280}.invoice-party dd{text-align:right;margin:0}.invoice-items{border-collapse:collapse;width:100%;margin-top:8mm}.invoice-items th{color:#6b7280;text-transform:uppercase;border-bottom:1px solid #d1d5db;padding:3mm 0;font-size:8pt;font-weight:600}.invoice-items td{border-bottom:1px solid #e5e7eb;padding:3mm 0}.invoice-items th:first-child,.invoice-items td:first-child{text-align:left}.invoice-items th:not(:first-child),.invoice-items td:not(:first-child){text-align:right}.invoice-vat-summary{width:82mm;margin:10mm 0 0 auto}.invoice-vat-summary h2{color:#6b7280;text-align:left;text-transform:uppercase;margin:0 0 3mm;font-size:8pt;font-weight:600}.invoice-vat-summary table{border-collapse:collapse;width:100%;font-size:9pt}.invoice-vat-summary th,.invoice-vat-summary td{text-align:right;border-bottom:1px solid #e5e7eb;padding:2mm 0}.invoice-vat-summary th:first-child,.invoice-vat-summary td:first-child{text-align:left}.invoice-has-vat .invoice-print-header{margin-bottom:8mm}.invoice-has-vat .invoice-hero{margin-bottom:8mm;padding-top:5mm;padding-bottom:5mm}.invoice-has-vat .invoice-parties{margin-bottom:7mm}.invoice-has-vat .invoice-items{margin-top:4mm}.invoice-has-vat .invoice-vat-summary{margin-top:5mm}.invoice-has-vat .invoice-bottom{margin-top:7mm}.invoice-has-vat .invoice-signature{min-height:20mm}.invoice-bottom{grid-template-columns:1fr 72mm;align-items:end;gap:12mm;margin-top:14mm;display:grid}.invoice-signature{align-items:flex-end;gap:6mm;min-height:28mm;display:flex}.invoice-signature img{object-fit:contain;max-width:48mm;max-height:24mm}.invoice-signature span{color:#6b7280;text-align:center;border-top:1px solid #111827;min-width:42mm;padding-top:2mm}.invoice-final-total{border-top:1.2pt solid var(--invoice-accent);text-align:right;padding-top:4mm}.invoice-footer{color:#9ca3af;justify-content:space-between;gap:6mm;font-size:8pt;display:flex;position:absolute;bottom:12mm;left:18mm;right:18mm}.invoice-template{--invoice-blue:#1455c0;--invoice-navy:#051f42;--invoice-burgundy:#8a0f3d;--invoice-coral:#ff5548;border:1px solid #d7dce5;width:210mm;height:297mm;min-height:297mm;padding:0;font-family:Arial Narrow,Arial,sans-serif;display:block;overflow:hidden;box-shadow:0 2mm 8mm #0f172a1f}.invoice-template *{box-sizing:border-box}.invoice-template p,.invoice-template h1,.invoice-template h2{margin:0}.tpl-brand-logo{object-fit:contain;object-position:left center;width:auto;height:auto}.invoice-party-block{color:#151923;gap:1.2mm;display:grid}.invoice-party-block>span{color:var(--invoice-accent);letter-spacing:.7pt;text-transform:uppercase;font-size:8pt;font-weight:800}.invoice-party-block>span:empty{display:none}.invoice-party-block strong{margin:2mm 0 1mm;font-size:16pt;line-height:1.1}.invoice-party-block p{font-size:10.5pt;line-height:1.36}.invoice-meta-item{gap:1mm;min-width:0;display:grid}.invoice-meta-item i{color:var(--invoice-accent);font-style:normal}.invoice-meta-item span{color:inherit;letter-spacing:.55pt;text-transform:uppercase;font-size:7.4pt;font-weight:800}.invoice-meta-item strong{color:inherit;font-size:10.5pt;line-height:1.1}.invoice-qr-empty{background:#fff;border:1px solid;width:30mm;height:30mm;padding:1mm}.invoice-items-table{border-collapse:collapse;color:#121826;width:100%;font-size:10pt}.invoice-items-table th{color:var(--invoice-accent);border-bottom:1px solid var(--invoice-accent);letter-spacing:.45pt;text-align:right;text-transform:uppercase;padding:4mm 3mm;font-size:8pt;font-weight:800}.invoice-items-table th:first-child,.invoice-items-table th:nth-child(2),.invoice-items-table td:first-child,.invoice-items-table td:nth-child(2){text-align:left}.invoice-items-table td{text-align:right;vertical-align:top;border-bottom:1px solid #cfd5dd;padding:5mm 3mm}.invoice-items-table td:first-child{width:10mm;font-weight:800}.invoice-items-table td:last-child{font-weight:800}.invoice-items-table.compact{font-size:9pt}.invoice-proof{align-items:flex-end;gap:10mm;display:flex}.invoice-stamp-box{color:#9aa3b2;letter-spacing:1pt;text-align:center;text-transform:uppercase;border:1px dashed #9aa3b2;place-items:center;gap:1mm;width:52mm;height:30mm;font-size:8pt;font-weight:800;display:grid}.invoice-stamp-box img{object-fit:contain;max-width:100%;max-height:100%}.invoice-thanks{border-top:1px solid var(--invoice-accent);color:var(--invoice-accent);text-align:center;padding-top:5mm;font-size:10pt;font-weight:700;position:absolute;bottom:15mm;left:18mm;right:18mm}.invoice-print-watermark{display:none}.invoice-template-alfa{--invoice-accent:var(--invoice-user-accent,#2563eb);color:#101828;padding:16mm 16mm 20mm;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;position:relative}.tpl-alfa-header{border-bottom:.7mm solid var(--invoice-accent);justify-content:space-between;align-items:center;padding-bottom:7mm;display:flex}.tpl-alfa-brand{align-items:center;min-width:55mm;min-height:20mm;display:flex}.tpl-alfa-brand .tpl-brand-logo{max-width:78mm;max-height:22mm}.tpl-alfa-header h1{color:var(--invoice-navy);letter-spacing:.8pt;text-transform:uppercase;font-size:21pt;font-weight:800}.tpl-alfa-header h1 strong{color:var(--invoice-accent);margin-left:5mm}.tpl-alfa-parties{grid-template-columns:1fr 1fr;gap:14mm;padding:6mm 0;display:grid}.tpl-alfa-party{justify-items:start;gap:1.5mm;font-size:10pt;line-height:1.4;display:grid}.tpl-alfa-party+.tpl-alfa-party{border-left:.3mm solid #cbd5e1;padding-left:12mm}.tpl-alfa-party>span{color:var(--invoice-accent);letter-spacing:.9pt;text-transform:uppercase;font-size:8pt;font-weight:800}.tpl-alfa-party strong{margin:1mm 0 .5mm;font-size:13pt}.tpl-alfa-party .tpl-alfa-ico{margin-top:1.5mm}.tpl-alfa-party .tpl-alfa-contact{align-items:center;gap:2.5mm;display:flex}.tpl-alfa-party .tpl-alfa-contact:first-of-type{margin-top:1.5mm}.tpl-alfa-party .tpl-alfa-contact svg{color:var(--invoice-accent)}.tpl-alfa-meta{border-top:.3mm solid var(--invoice-accent);border-bottom:.3mm solid var(--invoice-accent);grid-template-columns:.95fr .95fr .95fr 1.15fr;padding:3.5mm 0;display:grid}.tpl-alfa-meta .invoice-meta-item{grid-template-columns:7mm minmax(0,1fr);align-items:center;padding:1mm 0 1mm 3mm}.tpl-alfa-meta .invoice-meta-item:first-child{padding-left:0}.tpl-alfa-meta .invoice-meta-item+.invoice-meta-item{border-left:.3mm solid #cbd5e1}.tpl-alfa-meta .invoice-meta-item i{grid-row:span 2}.tpl-alfa-meta .invoice-meta-item span{color:#3f4c63;letter-spacing:.1pt;text-overflow:clip;white-space:nowrap;font-size:6.2pt;overflow:hidden}.tpl-alfa-meta .invoice-meta-item strong{color:#101828;white-space:nowrap;font-size:10pt;font-weight:700}.tpl-alfa-meta .invoice-meta-item:nth-child(2) strong,.tpl-alfa-meta .invoice-meta-item:nth-child(4) strong{color:var(--invoice-accent)}.tpl-alfa-table{border-collapse:collapse;color:#121826;width:100%;margin-top:3mm;font-size:10pt}.tpl-alfa-table th{color:var(--invoice-accent);border-bottom:.6mm solid var(--invoice-accent);text-align:right;white-space:nowrap;padding:3.5mm 3mm;font-size:9.5pt;font-weight:700}.tpl-alfa-table th:first-child{text-align:left}.tpl-alfa-table td{text-align:right;vertical-align:top;border-bottom:.3mm solid #d7dce5;padding:4mm 3mm}.tpl-alfa-table td:first-child{text-align:left;width:8mm;padding-right:0}.tpl-alfa-table td:nth-child(2){text-align:left}.tpl-alfa-table td:nth-child(n+3){white-space:nowrap}.tpl-alfa-table th:nth-child(4),.tpl-alfa-table td:nth-child(5){width:30mm}.tpl-alfa-table td:last-child{font-weight:800}.tpl-alfa-total{background:#eef4fc;border:.3mm solid #bcd0f0;justify-content:space-between;align-items:center;gap:6mm;width:100mm;margin:5mm 0 6mm auto;padding:3.5mm 6mm;display:flex}.tpl-alfa-total span{color:var(--invoice-accent);letter-spacing:.8pt;text-transform:uppercase;white-space:nowrap;font-size:9.5pt;font-weight:800}.tpl-alfa-total strong{color:var(--invoice-navy);white-space:nowrap;font-size:22pt;font-weight:800}.tpl-alfa-bottom{grid-template-columns:minmax(0,1fr) 62mm;align-items:start;gap:14mm;display:grid}.tpl-alfa-pay h2{color:var(--invoice-accent);letter-spacing:1.2pt;text-transform:uppercase;margin-bottom:4mm;font-size:10pt;font-weight:800}.tpl-alfa-pay-row{grid-template-columns:40mm minmax(0,1fr);align-items:start;gap:7mm;display:grid}.tpl-alfa-qr{justify-items:center;gap:1.5mm;display:grid}.tpl-alfa-qr svg,.tpl-alfa-qr .invoice-qr-empty{border:.3mm solid var(--invoice-accent);background:#fff;width:33mm;height:33mm;padding:1.5mm}.tpl-alfa-qr strong{color:var(--invoice-accent);font-size:8pt;font-weight:700}.tpl-alfa-pay-info{gap:1.2mm;font-size:9.5pt;line-height:1.35;display:grid}.tpl-alfa-pay-info strong{border-top:.3mm solid #d7dce5;margin-top:1.2mm;padding-top:1.2mm;font-size:9.5pt}.tpl-alfa-pay-info small{border-top:.3mm solid #d7dce5;margin-top:1.2mm;padding-top:1.2mm;font-size:9pt}.tpl-alfa-proof{justify-items:center;gap:2mm;display:grid}.tpl-alfa-proof>span{color:#3f4c63;justify-self:start;font-size:9pt}.tpl-alfa-proof-box{border:.4mm dashed #9aa3b2;border-radius:1.5mm;place-items:center;width:100%;min-height:28mm;padding:3mm;display:grid}.tpl-alfa-stamp{object-fit:contain;max-width:48mm;max-height:22mm}.tpl-alfa-sign{object-fit:contain;max-width:46mm;max-height:14mm}.tpl-alfa-thanks{border-top:0;border-bottom:.7mm solid var(--invoice-accent);padding-bottom:4mm;font-weight:600;bottom:8mm}.invoice-template-alfa.invoice-page-multi .tpl-alfa-thanks{border-bottom:0;bottom:5mm}.invoice-template-alfa.invoice-page-multi .tpl-alfa-thanks:after{content:"";border-bottom:.7mm solid var(--invoice-accent);position:absolute;bottom:0;left:0;right:22mm}.invoice-template-beta{--invoice-accent:var(--invoice-user-accent,#2563eb);color:#101828;padding:14mm 16mm 12mm 22mm;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;position:relative}.tpl-beta-rail{background:var(--invoice-accent);width:2.8mm;position:absolute;top:0;bottom:0;left:6mm}.tpl-beta-header{grid-template-columns:1fr 100mm;align-items:start;gap:12mm;padding-bottom:6mm;display:grid}.tpl-beta-brand{align-items:center;min-width:55mm;min-height:20mm;display:flex}.tpl-beta-brand .tpl-brand-logo{max-width:72mm;max-height:20mm}.tpl-beta-title h1{color:#171a20;text-transform:uppercase;margin-bottom:5mm;font-size:25pt;font-weight:800}.tpl-beta-meta-row{border-top:.3mm solid #9aa3b2;justify-content:space-between;align-items:center;padding:2.6mm 0;display:flex}.tpl-beta-meta-row:last-child{border-bottom:.3mm solid #9aa3b2}.tpl-beta-meta-row span{color:#171a20;letter-spacing:.8pt;text-transform:uppercase;font-size:8pt;font-weight:700}.tpl-beta-meta-row strong{font-size:10.5pt}.tpl-beta-meta-row.due strong{color:var(--invoice-accent);letter-spacing:1pt;white-space:nowrap;font-size:17pt;font-weight:800}.tpl-beta-parties{grid-template-columns:1fr 1fr;gap:14mm;padding:4mm 0 6mm;display:grid}.tpl-beta-party{justify-items:start;gap:1.2mm;font-size:10pt;line-height:1.4;display:grid}.tpl-beta-party>span{color:var(--invoice-accent);letter-spacing:.9pt;text-transform:uppercase;margin-bottom:1mm;font-size:8pt;font-weight:800}.tpl-beta-party strong{margin-bottom:1.5mm;font-size:14pt}.tpl-beta-gap{margin-top:2mm}.tpl-beta-table{border-collapse:collapse;color:#121826;width:100%;font-size:10pt}.tpl-beta-table th{color:var(--invoice-accent);letter-spacing:.5pt;text-align:right;text-transform:uppercase;border-top:.35mm solid #171a20;border-bottom:.35mm solid #171a20;padding:3mm;font-size:8.5pt;font-weight:800}.tpl-beta-table th:first-child{text-align:left}.tpl-beta-table td{text-align:right;vertical-align:top;border-bottom:.3mm solid #cfd5dd;padding:4.2mm 3mm}.tpl-beta-table td:first-child{text-align:left;width:8mm;padding-right:0;font-weight:800}.tpl-beta-table td:nth-child(2){text-align:left}.tpl-beta-table td:last-child{font-weight:800}.tpl-beta-total{border-top:.5mm solid #171a20;border-bottom:.5mm solid #171a20;justify-content:space-between;align-items:center;margin-top:-.3mm;padding:4mm 0;display:flex}.tpl-beta-total span{letter-spacing:.5pt;text-transform:uppercase;font-size:13pt;font-weight:800}.tpl-beta-total strong{color:var(--invoice-accent);white-space:nowrap;font-size:25pt;font-weight:800}.tpl-beta-bottom{grid-template-columns:1.1fr 1fr 1.1fr;gap:10mm;padding:7mm 0 5mm;display:grid}.tpl-beta-bottom h2{color:var(--invoice-accent);letter-spacing:.9pt;text-transform:uppercase;margin-bottom:3.5mm;font-size:8.5pt;font-weight:800}.tpl-beta-payment{align-content:start;gap:2mm;display:grid}.tpl-beta-payment span{color:#171a20;letter-spacing:.7pt;text-transform:uppercase;font-size:8pt;font-weight:700}.tpl-beta-payment strong{white-space:nowrap;font-size:15.5pt;font-weight:800}.tpl-beta-payment p{color:#3f4c63;max-width:55mm;margin-top:3mm;font-size:9.5pt;line-height:1.4}.tpl-beta-qr{align-content:start;justify-items:start;gap:2.5mm;display:grid}.tpl-beta-qr svg,.tpl-beta-qr .invoice-qr-empty{border:.3mm solid var(--invoice-accent);background:#fff;width:33mm;height:33mm;padding:1.5mm}.tpl-beta-qr>span{color:var(--invoice-accent);font-size:8.5pt;font-weight:700}.tpl-beta-stamp{align-content:start;gap:3.5mm;display:grid}.tpl-beta-stamp h2{color:#171a20;margin-bottom:0}.tpl-beta-stamp-box{border:.4mm dashed #9aa3b2;place-items:center;width:100%;min-height:36mm;padding:2mm;display:grid}.tpl-beta-stamp-box img{object-fit:contain;max-width:90%;max-height:30mm}.tpl-beta-footer{justify-content:space-between;align-items:flex-end;margin-top:2mm;display:flex}.tpl-beta-sign{justify-items:start;gap:1.5mm;display:grid}.tpl-beta-sign h2{color:var(--invoice-accent);letter-spacing:.9pt;text-transform:uppercase;font-size:8.5pt;font-weight:800}.tpl-beta-sign img{object-fit:contain;max-width:50mm;max-height:14mm}.tpl-beta-sign p{color:#171a20;font-size:9pt}.tpl-beta-thanks{border-left:.6mm solid var(--invoice-accent);color:#171a20;padding-left:4mm;font-size:8.5pt;font-weight:600;line-height:1.5}.invoice-template-gama{--invoice-accent:var(--invoice-user-accent,#8a0f3d);color:#1b1420;padding:10mm 12mm 10mm 36mm;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;position:relative}.tpl-gama-rail{background:var(--invoice-accent);grid-template-rows:30mm 1fr 30mm;place-items:center;width:20mm;height:145mm;display:grid;position:absolute;top:5mm;left:5mm}.tpl-gama-hatch{background:repeating-linear-gradient(45deg,#ffffff8c 0 .8mm,#0000 .8mm 3.2mm);width:calc(100% - 8mm);height:calc(100% - 8mm)}.tpl-gama-rail-text{writing-mode:vertical-rl;color:#fff;flex-direction:row-reverse;align-items:center;gap:5mm;display:flex;transform:rotate(180deg)}.tpl-gama-rail-text strong{letter-spacing:2pt;text-transform:uppercase;font-size:22pt;font-weight:800}.tpl-gama-rail-text i{background:#fff9;width:.4mm;height:9mm}.tpl-gama-rail-text span{letter-spacing:1.5pt;font-size:14pt;font-weight:700}.tpl-gama-top{grid-template-columns:1fr 56mm;gap:10mm;padding:5mm 0 7mm;display:grid}.tpl-gama-client{justify-items:start;gap:1.5mm;font-size:10.5pt;line-height:1.4;display:grid}.tpl-gama-client-head{align-items:center;gap:3.5mm;margin-bottom:2.5mm;display:flex}.tpl-gama-client-head i{background:var(--invoice-accent);color:#fff;border-radius:999px;place-items:center;width:9mm;height:9mm;display:grid}.tpl-gama-client-head span{color:var(--invoice-accent);letter-spacing:1pt;text-transform:uppercase;font-size:9.5pt;font-weight:800}.tpl-gama-client strong{margin-bottom:1.5mm;font-size:16pt}.tpl-gama-gap{margin-top:2mm}.tpl-gama-qr{text-align:center;border-left:.3mm solid #cbd5e1;align-content:start;justify-items:center;gap:2mm;padding-left:8mm;display:grid}.tpl-gama-qr strong{color:var(--invoice-accent);letter-spacing:1pt;text-transform:uppercase;font-size:9.5pt;font-weight:800}.tpl-gama-qr svg,.tpl-gama-qr .invoice-qr-empty{background:#fff;width:29mm;height:29mm}.tpl-gama-qr p{color:#3f4c63;max-width:42mm;font-size:8.5pt;line-height:1.35}.tpl-gama-meta{border-top:.3mm solid var(--invoice-accent);border-bottom:.3mm solid var(--invoice-accent);grid-template-columns:1fr 1fr .95fr 1.15fr;padding:3.5mm 0;display:grid}.tpl-gama-meta .invoice-meta-item{grid-template-columns:6mm minmax(0,1fr);align-items:center;padding:1mm 0 1mm 2mm}.tpl-gama-meta .invoice-meta-item:first-child{padding-left:0}.tpl-gama-meta .invoice-meta-item+.invoice-meta-item{border-left:.3mm solid #d9bfcb}.tpl-gama-meta .invoice-meta-item i{grid-row:span 2}.tpl-gama-meta .invoice-meta-item span{color:#4b3540;letter-spacing:.2pt;white-space:nowrap;font-size:6.6pt}.tpl-gama-meta .invoice-meta-item strong{color:#1b1420;white-space:nowrap;min-width:0;font-size:9.5pt;font-weight:700}.tpl-gama-table{border-collapse:collapse;table-layout:fixed;color:#1b1420;width:100%;margin-top:5mm;font-size:10pt}.tpl-gama-col-index{width:7mm}.tpl-gama-col-description{width:auto}.tpl-gama-col-quantity{width:15mm}.tpl-gama-col-unit{width:16mm}.tpl-gama-col-price,.tpl-gama-col-total{width:27mm}.tpl-gama-table th{background:var(--invoice-accent);color:#fff;letter-spacing:.5pt;text-align:right;text-transform:uppercase;padding:3.5mm 3mm;font-size:8.5pt;font-weight:700}.tpl-gama-table th:first-child{text-align:left;padding-left:5mm}.tpl-gama-table td{text-align:right;vertical-align:top;border-bottom:.4mm dashed #cbb3bd;padding:4.5mm 3mm}.tpl-gama-table td:first-child{text-align:left;width:9mm;padding-left:1mm;font-weight:800}.tpl-gama-table td:nth-child(2){text-align:left}.tpl-gama-table td:last-child{font-weight:800}.tpl-gama-table td:nth-child(n+3){white-space:nowrap}.tpl-gama-table tr:last-child td{border-bottom:.3mm solid #1b1420}.tpl-gama-total{justify-content:flex-end;align-items:stretch;margin:6mm 0 7mm;display:flex}.tpl-gama-total span{color:var(--invoice-accent);text-transform:uppercase;clip-path:polygon(9mm 0,100% 0,100% 100%,0 100%);background:#f2e4ea;align-items:center;padding:2.5mm 8mm 2.5mm 11mm;font-size:9.5pt;font-weight:800;line-height:1.25;display:flex}.tpl-gama-total strong{background:var(--invoice-accent);color:#fff;white-space:nowrap;clip-path:polygon(9mm 0,100% 0,100% 100%,0 100%);margin-left:-7mm;padding:3mm 8mm 3mm 12mm;font-size:19pt;font-weight:800}.tpl-gama-bottom{border-top:.4mm solid #1b1420;grid-template-columns:46mm minmax(40mm,1fr) 38mm 38mm;align-items:start;gap:5mm;margin-left:-24mm;padding-top:5mm;display:grid}.tpl-gama-brand{align-items:flex-start;display:flex}.tpl-gama-brand .tpl-brand-logo{max-width:46mm;max-height:24mm}.tpl-gama-supplier{gap:.8mm;font-size:9pt;line-height:1.35;display:grid}.tpl-gama-supplier strong{font-size:10pt}.tpl-gama-stamp{border:.4mm dashed var(--invoice-accent);border-radius:1mm;place-items:center;min-height:30mm;padding:2mm;display:grid}.tpl-gama-stamp img{object-fit:contain;max-width:90%;max-height:26mm}.tpl-gama-sign{text-align:center;justify-items:center;gap:1mm;display:grid}.tpl-gama-sign>span{color:var(--invoice-accent);letter-spacing:.9pt;text-transform:uppercase;justify-self:start;font-size:8pt;font-weight:800}.tpl-gama-sign img{object-fit:contain;border-bottom:.3mm dashed #9aa3b2;max-width:36mm;max-height:13mm}.tpl-gama-sign p{font-size:8.5pt;font-weight:700}.tpl-gama-footer{text-align:center;justify-items:center;gap:1.5mm;margin-top:5mm;margin-left:-24mm;display:grid}.tpl-gama-footer i{background:var(--invoice-accent);color:#fff;border-radius:999px;place-items:center;width:9mm;height:9mm;display:grid}.tpl-gama-footer strong{color:var(--invoice-accent);font-size:10.5pt}.invoice-template-delta{--invoice-accent:var(--invoice-user-accent,#ff5548);--invoice-delta-navy:#1e2a4a;color:#182033;padding:12mm 14mm 10mm;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;position:relative}.tpl-delta-header{justify-content:space-between;align-items:center;padding:1mm 0 6mm;display:flex}.tpl-delta-brand{align-items:center;min-width:55mm;min-height:18mm;display:flex}.tpl-delta-brand .tpl-brand-logo{max-width:72mm;max-height:20mm}.tpl-delta-header h1{color:var(--invoice-delta-navy);text-transform:uppercase;padding-bottom:3.5mm;font-size:23pt;font-weight:800;position:relative}.tpl-delta-header h1:after{content:"";background:var(--invoice-accent);width:50%;height:1mm;position:absolute;bottom:0;left:25%}.tpl-delta-strip{grid-template-columns:42mm 1fr 40mm;align-items:stretch;gap:0;display:grid}.tpl-delta-total-card{background:var(--invoice-accent);color:#fff;border-radius:1mm 0 0 1mm;align-content:center;justify-items:start;gap:1.6mm;padding:5mm;display:grid}.tpl-delta-total-card span{letter-spacing:.7pt;text-transform:uppercase;font-size:8.5pt;font-weight:800}.tpl-delta-total-card strong{white-space:nowrap;font-size:16pt;font-weight:800}.tpl-delta-meta-card{background:var(--invoice-delta-navy);color:#fff;border-radius:0 1mm 1mm 0;grid-template-columns:.8fr 1.3fr .9fr;padding:5mm 2mm;display:grid}.tpl-delta-meta-card .invoice-meta-item{align-content:center;min-width:0;padding:0 3mm}.tpl-delta-meta-card .invoice-meta-item+.invoice-meta-item{border-left:.3mm solid #ffffff40}.tpl-delta-meta-card .invoice-meta-item i{color:#fff;margin-bottom:1mm}.tpl-delta-meta-card .invoice-meta-item span{color:#fff}.tpl-delta-meta-card .invoice-meta-item strong{color:var(--invoice-accent);white-space:nowrap;font-size:10pt;font-weight:700}.tpl-delta-qr{text-align:center;background:#fff;border:.3mm solid #d3d9e4;border-radius:1mm;align-content:center;justify-items:center;gap:1.5mm;margin-left:4mm;padding:3mm;display:grid}.tpl-delta-qr strong{color:var(--invoice-delta-navy);letter-spacing:.7pt;text-transform:uppercase;font-size:8.5pt;font-weight:800}.tpl-delta-qr svg,.tpl-delta-qr .invoice-qr-empty{background:#fff;width:25mm;height:25mm}.tpl-delta-qr span{color:#5b6579;font-size:7pt}.tpl-delta-parties{grid-template-columns:1fr 1fr 44mm;gap:10mm;padding:8mm 0 7mm;display:grid}.tpl-delta-party{justify-items:start;gap:1mm;font-size:9.5pt;line-height:1.45;display:grid}.tpl-delta-party>span{color:var(--invoice-accent);letter-spacing:.9pt;text-transform:uppercase;margin-bottom:1.5mm;font-size:8pt;font-weight:800}.tpl-delta-party strong{margin-bottom:1mm;font-size:12.5pt}.tpl-delta-issued{border-left:.3mm solid #d3d9e4;grid-template-columns:9mm 1fr;align-content:center;align-items:center;column-gap:3mm;padding-left:8mm;display:grid}.tpl-delta-issued i{color:var(--invoice-accent);grid-row:span 2}.tpl-delta-issued span{color:var(--invoice-delta-navy);letter-spacing:.7pt;text-transform:uppercase;font-size:8pt;font-weight:800}.tpl-delta-issued strong{font-size:10.5pt}.tpl-delta-table{border-collapse:collapse;table-layout:fixed;color:#182033;width:100%;font-size:10pt}.tpl-delta-col-index{width:7mm}.tpl-delta-col-description{width:auto}.tpl-delta-col-quantity{width:15mm}.tpl-delta-col-unit{width:16mm}.tpl-delta-col-price,.tpl-delta-col-total{width:27mm}.tpl-delta-table th{background:var(--invoice-delta-navy);color:#fff;letter-spacing:.5pt;text-align:right;text-transform:uppercase;padding:3.5mm 3mm;font-size:8.5pt;font-weight:700}.tpl-delta-table th:first-child{text-align:left;padding-left:5mm}.tpl-delta-table td{text-align:right;vertical-align:top;border-bottom:.3mm solid #d3d9e4;border-left:.3mm solid #e4e8f0;padding:4.2mm 3mm}.tpl-delta-table td:first-child,.tpl-delta-table td:nth-child(2){text-align:left;border-left:0}.tpl-delta-table td:first-child{width:9mm;padding-left:2mm;font-weight:800}.tpl-delta-table td:nth-child(n+3){white-space:nowrap}.tpl-delta-total-row{justify-content:flex-end;align-items:center;gap:6mm;margin-bottom:8mm;display:flex}.tpl-delta-total-row span{color:var(--invoice-delta-navy);text-transform:uppercase;font-size:11.5pt;font-weight:800}.tpl-delta-total-row strong{background:var(--invoice-accent);color:#fff;white-space:nowrap;padding:3.2mm 7mm;font-size:14pt;font-weight:800}.tpl-delta-bottom{grid-template-columns:1fr 56mm 44mm;align-items:start;gap:10mm;padding-bottom:7mm;display:grid}.tpl-delta-note{align-content:start;gap:5mm;padding-top:1mm;display:grid}.tpl-delta-note h2{color:var(--invoice-delta-navy);letter-spacing:.7pt;text-transform:uppercase;align-items:center;gap:2mm;font-size:8.5pt;font-weight:800;display:inline-flex}.tpl-delta-note h2 svg{color:var(--invoice-accent)}.tpl-delta-note p{color:#3f4c63;max-width:58mm;font-size:9pt;line-height:1.45}.tpl-delta-stamp{color:#9aa3b2;letter-spacing:1pt;text-transform:uppercase;border:.4mm dashed #b9c1cf;border-radius:1mm;place-items:center;min-height:30mm;padding:2mm;font-size:8pt;font-weight:700;display:grid}.tpl-delta-stamp img{object-fit:contain;max-width:90%;max-height:26mm}.tpl-delta-sign{justify-items:start;gap:1mm;display:grid}.tpl-delta-sign h2{color:var(--invoice-accent);letter-spacing:.9pt;text-transform:uppercase;font-size:8.5pt;font-weight:800}.tpl-delta-sign img{object-fit:contain;border-bottom:.3mm solid #b9c1cf;max-width:40mm;max-height:13mm}.tpl-delta-sign p{color:var(--invoice-delta-navy);font-size:9pt;font-weight:700}.tpl-delta-footer{border-top:.3mm solid #d3d9e4;justify-content:space-between;align-items:center;padding-top:4mm;display:flex}.tpl-delta-footer span{color:#3f4c63;align-items:center;gap:2mm;font-size:9pt;display:inline-flex}.tpl-delta-footer span svg{color:var(--invoice-delta-navy)}.tpl-delta-footer strong{color:var(--invoice-delta-navy);align-items:center;gap:2mm;font-size:10.5pt;display:inline-flex}.tpl-delta-footer strong svg{color:var(--invoice-accent)}.invoice-template-epsilon{--invoice-accent:var(--invoice-user-accent,#0b6bff);grid-template-columns:64mm 146mm;align-items:stretch;padding:0;display:grid}.invoice-template-epsilon,.invoice-template-epsilon *{box-sizing:border-box}.tpl-epsilon-sidebar{background:linear-gradient(155deg, color-mix(in srgb, var(--invoice-accent) 42%, #02152c) 0%, color-mix(in srgb, var(--invoice-accent) 24%, #041f42) 100%);color:#fff;height:297mm;min-height:0;padding:0 10mm;position:relative}.tpl-epsilon-brand{color:#fff;text-transform:uppercase;gap:5mm;display:grid;position:absolute;top:14.5mm;left:10mm;right:10mm}.tpl-epsilon-brand .tpl-brand-logo{background:#fffffff5;border-radius:1.5mm;max-width:44mm;max-height:30mm;padding:2mm}.tpl-epsilon-supplier{color:#fff;gap:.7mm;display:grid;position:absolute;top:78mm;left:10mm;right:10mm}.tpl-epsilon-supplier strong{margin-bottom:1mm;font-size:13.2pt;line-height:1.12}.tpl-epsilon-supplier p{font-size:8.4pt;line-height:1.22}.tpl-epsilon-sidebar h1{border-top:1.4px solid var(--invoice-accent);border-bottom:1.4px solid var(--invoice-accent);color:#fff;text-transform:uppercase;gap:.2mm;padding:5.1mm 0 1.7mm;font-size:34pt;line-height:.96;display:grid;position:absolute;top:121mm;left:10mm;right:10mm}.tpl-epsilon-sidebar h1 strong{color:color-mix(in srgb, var(--invoice-accent) 35%, white);letter-spacing:-1pt;transform-origin:0;white-space:nowrap;word-break:keep-all;overflow-wrap:normal;-webkit-hyphens:none;hyphens:none;width:max-content;font-size:28pt;display:block;transform:scaleX(.82)}.tpl-epsilon-pay{gap:1.55mm;display:grid;position:absolute;top:169mm;left:10mm;right:10mm}.tpl-epsilon-pay h2{color:#1682ff;letter-spacing:.75pt;text-transform:uppercase;font-size:12pt;line-height:1.1}.tpl-epsilon-pay>span{color:#dbe7ff;margin-top:1.1mm;font-size:8pt}.tpl-epsilon-pay>strong{color:#fff;letter-spacing:1pt;font-size:13pt}.tpl-epsilon-qr-payment{justify-items:start;gap:.8mm;margin-top:1mm;display:grid}.tpl-epsilon-qr-payment p{color:#f4f8ff;text-align:left;max-width:46mm;font-size:8.2pt;line-height:1.2}.tpl-epsilon-qr-payment svg,.tpl-epsilon-qr-payment .invoice-qr-empty{width:24mm;height:24mm}.tpl-epsilon-qr-payment strong{background:var(--invoice-accent);color:#fff;letter-spacing:1.6pt;text-align:center;text-transform:uppercase;width:24mm;margin-top:-.8mm;padding:.9mm 0 .7mm;font-size:8pt;line-height:1}.tpl-epsilon-main{flex-direction:column;min-width:0;height:297mm;padding:20mm 10mm 18mm;display:flex}.tpl-epsilon-top{grid-template-columns:minmax(0,1fr) 54mm;align-items:start;gap:4mm;margin-bottom:19mm;display:grid}.tpl-epsilon-top .invoice-party-block{padding-left:0}.tpl-epsilon-top .invoice-party-block strong{overflow-wrap:anywhere;min-width:0;font-size:22pt;line-height:1.08;display:block}.tpl-epsilon-top .invoice-party-block p{font-size:12.5pt;line-height:1.34}.tpl-epsilon-total{border:1.5px solid var(--invoice-accent);min-width:0;color:var(--invoice-accent);text-transform:uppercase;padding:6.5mm 6mm}.tpl-epsilon-total span{white-space:nowrap;font-size:11.5pt;font-weight:900}.tpl-epsilon-total strong{text-transform:none;white-space:nowrap;margin-top:4mm;font-size:31pt;line-height:1.05;display:block}.tpl-epsilon-dates{border-top:1px solid #111827;border-bottom:1px solid #111827;grid-template-columns:1fr 1fr;gap:8mm;margin-bottom:12mm;padding:6mm 0;display:grid}.tpl-epsilon-dates .invoice-meta-item{grid-template-columns:9mm 1fr}.tpl-epsilon-dates .invoice-meta-item i{grid-row:span 2}.tpl-epsilon-dates .invoice-meta-item strong{font-size:25pt;font-weight:500}.invoice-template-epsilon .invoice-items-table th{color:#fff;white-space:nowrap;background:#02162d;border:0;padding-inline:1.4mm;font-size:8pt}.invoice-template-epsilon .invoice-items-table td{padding-inline:1.4mm;padding-top:6mm;padding-bottom:6mm}.invoice-template-epsilon .invoice-items-table.compact{table-layout:fixed;font-size:9.4pt}.invoice-template-epsilon .invoice-items-table th:first-child,.invoice-template-epsilon .invoice-items-table td:first-child{width:7mm}.invoice-template-epsilon .invoice-items-table th:nth-child(2),.invoice-template-epsilon .invoice-items-table td:nth-child(2){width:auto}.invoice-template-epsilon .invoice-items-table th:nth-child(3),.invoice-template-epsilon .invoice-items-table td:nth-child(3),.invoice-template-epsilon .invoice-items-table th:nth-child(4),.invoice-template-epsilon .invoice-items-table td:nth-child(4){width:9mm}.invoice-template-epsilon .invoice-items-table th:nth-child(5),.invoice-template-epsilon .invoice-items-table td:nth-child(5),.invoice-template-epsilon .invoice-items-table th:nth-child(6),.invoice-template-epsilon .invoice-items-table td:nth-child(6){width:18mm}.tpl-epsilon-bottom{grid-template-columns:1fr 1fr;align-items:end;gap:8mm;margin-top:auto;display:grid}.tpl-epsilon-closing{align-content:end;gap:2mm;min-width:0;display:grid}.tpl-epsilon-footer-signature{width:52mm;height:15mm}.tpl-epsilon-footer-signature img{object-fit:contain;object-position:left bottom;width:100%;height:100%}.invoice-template-epsilon .invoice-proof.stacked{justify-items:stretch}.invoice-template-epsilon .invoice-proof.stamp-only{justify-items:end;display:grid}.invoice-template-epsilon .invoice-stamp-box{justify-self:end;width:52mm;height:30mm}.invoice-template-epsilon .invoice-sign-box{justify-self:end;width:45mm;min-width:0}.invoice-template-epsilon .invoice-sign-box em{overflow-wrap:anywhere;font-size:16pt}.invoice-template-epsilon .tpl-epsilon-pay .invoice-sign-box em{text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal;max-width:46mm;font-size:13pt;overflow:hidden}.tpl-epsilon-thanks{color:var(--invoice-accent);text-transform:uppercase;align-items:center;gap:6mm;font-size:14.5pt;display:flex}.template-mini-beta i{box-shadow:inset 6px 0 #1455c0}.template-mini-gama i{background:linear-gradient(90deg,#8a0f3d 0 26%,#fff 26% 100%)!important}.template-mini-delta i{background:linear-gradient(90deg,#ff5548 0 35%,#051f42 35% 100%)!important}.template-mini-epsilon i{background:linear-gradient(90deg,#051f42 0 38%,#0b6bff 38% 100%)!important}@media (max-width:820px){.settings-layout{grid-template-columns:1fr}.settings-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid,.settings-form-grid{grid-template-columns:1fr}.settings-numbering-panel{flex-direction:column;align-items:stretch}.invoice-number-preview{text-align:left}.settings-backup{flex-direction:column;align-items:flex-start}.template-preview-list{grid-template-columns:1fr}.template-toolbar,.asset-upload-grid{flex-direction:column;grid-template-columns:1fr;align-items:stretch}.overview-hero{flex-direction:column;align-items:stretch}.overview-metrics,.overview-panels{grid-template-columns:1fr}.overview-filter{flex-direction:column;align-items:stretch}.monthly-chart{gap:.15rem}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spin{animation:1s linear infinite spin}@media print{@page{size:A4;margin:0}.no-print{display:none!important}body{background:#fff}.container{max-width:none;margin:0;padding:0}.card{box-shadow:none;border:none;padding:0}.printable-container{visibility:visible;box-shadow:none;page-break-after:always;break-after:page;margin:0;position:relative;display:block!important}.printable-container:last-child{page-break-after:auto;break-after:auto}.printable-document{gap:0;display:block}body *{visibility:hidden}.printable-container,.printable-container *{visibility:visible}}:root{--shell-bg:#f7f9fc;--shell-surface:#fff;--shell-surface-soft:#fbfcfe;--shell-text:#0d1b3a;--shell-muted:#64728d;--shell-border:#e3e9f2;--shell-primary:#0a5cff;--shell-primary-hover:#004ee3;--shell-shadow-1:0 1px 2px #1123460a, 0 5px 16px #11234609;--shell-shadow-2:0 9px 26px #15274c12, 0 2px 7px #15274c0a;--type-micro:.625rem;--type-caption-sm:.6875rem;--type-caption:.75rem;--type-meta:.8125rem;--type-body-sm:.875rem;--type-body:1rem;--type-section-title:1rem;--type-page-title:1.75rem;--leading-compact:1.3;--leading-body:1.5;--motion-fast:.12s;--motion-base:.17s;--motion-slow:.22s;--motion-ease-standard:cubic-bezier(.2, .8, .2, 1);--motion-ease-enter:cubic-bezier(.22, 1, .36, 1)}:root[data-theme=dark]{--shell-bg:#08111f;--shell-surface:#101b2c;--shell-surface-soft:#0c1727;--shell-text:#f5f8ff;--shell-muted:#96a5bd;--shell-border:#243248;--shell-primary:#4f8cff;--shell-primary-hover:#6a9dff;--bg:var(--shell-bg);--surface:var(--shell-surface);--text:var(--shell-text);--text-secondary:var(--shell-muted);--border:var(--shell-border)}html{background:var(--shell-bg)}body{background:var(--shell-bg);min-width:1120px;color:var(--shell-text)}.app-shell,.app-shell button,.app-shell input{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.app-shell{background:var(--shell-bg);min-height:100vh;color:var(--shell-text)}@media (prefers-reduced-motion:no-preference){.app-shell button,.app-shell input,.app-shell select,.app-shell textarea{transition:background-color var(--motion-fast) var(--motion-ease-standard), border-color var(--motion-fast) var(--motion-ease-standard), color var(--motion-fast) var(--motion-ease-standard), box-shadow var(--motion-base) var(--motion-ease-standard), opacity var(--motion-fast) var(--motion-ease-standard), transform var(--motion-fast) var(--motion-ease-enter)}.app-shell button:active:not(:disabled){transform:translateY(1px)scale(.99)}.app-main>*{animation:app-view-enter var(--motion-base) var(--motion-ease-enter) both}.topbar-popover,.sidebar-subnav{animation:app-popover-enter var(--motion-base) var(--motion-ease-enter) both;transform-origin:top}.publish-menu,.mobile-more-menu{animation:app-sheet-enter var(--motion-base) var(--motion-ease-enter) both;transform-origin:bottom}.mobile-more-backdrop{animation:app-backdrop-enter var(--motion-fast) ease-out both}.contacts-table tbody tr.mobile-expanded td[data-label],.contacts-table tbody tr.mobile-expanded .contact-row-actions-cell,.accounts-table tbody tr.mobile-expanded td[data-label],.accounts-table tbody tr.mobile-expanded .account-row-actions-cell,.recurring-templates-table tbody tr.mobile-expanded td[data-label],.recurring-templates-table tbody tr.mobile-expanded .template-row-actions-cell{animation:app-details-enter var(--motion-base) var(--motion-ease-enter) both}}@keyframes app-view-enter{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@keyframes app-popover-enter{0%{opacity:0;transform:translateY(-3px)scale(.99)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes app-sheet-enter{0%{opacity:0;transform:translateY(6px)scale(.995)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes app-backdrop-enter{0%{opacity:0}to{opacity:1}}@keyframes app-details-enter{0%{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.app-shell *,.app-shell :before,.app-shell :after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.app-sidebar{z-index:40;border-right:1px solid var(--shell-border);background:var(--shell-surface);width:228px;transition:width var(--motion-slow) var(--motion-ease-standard);flex-direction:column;display:flex;position:fixed;inset:0 auto 0 0}.sidebar-collapse-button{z-index:2;border:1px solid var(--shell-border);background:var(--shell-surface);width:30px;height:30px;color:var(--shell-muted);box-shadow:var(--shell-shadow-1);border-radius:7px;justify-content:center;align-items:center;display:inline-flex;position:absolute;top:82px;right:-15px}.sidebar-collapse-button:hover{color:var(--shell-primary);border-color:#bfd3f4}.brand{height:76px;color:var(--shell-text);background:0 0;border:0;align-items:center;gap:12px;padding:0 19px;font-size:20px;font-weight:750;display:flex}.brand-mark{background:var(--shell-primary);color:#fff;border-radius:7px;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex;box-shadow:0 7px 16px #0a5cff38}.primary-navigation{gap:6px;padding:19px 10px;display:grid}.primary-nav-group{gap:4px;display:grid}.primary-nav-item{color:#34486a;text-align:left;width:100%;min-height:51px;transition:background var(--motion-base) var(--motion-ease-standard), color var(--motion-base) var(--motion-ease-standard), transform var(--motion-base) var(--motion-ease-enter);background:0 0;border:0;border-radius:8px;align-items:center;gap:13px;padding:0 16px;font-size:14px;font-weight:550;display:flex;position:relative}.nav-chevron{color:currentColor;opacity:.7;transition:transform var(--motion-base) var(--motion-ease-enter);margin-left:auto}.nav-chevron.open{transform:rotate(180deg)}.primary-nav-item:hover{background:var(--shell-surface-soft);color:var(--shell-primary);transform:translate(2px)}.primary-nav-item.active{color:var(--shell-primary);background:#edf4ff;font-weight:650}.primary-nav-item.active:before{background:var(--shell-primary);content:"";border-radius:0 3px 3px 0;width:3px;position:absolute;inset:8px auto 8px 0}.sidebar-subnav{border-left:1px solid color-mix(in srgb, var(--shell-primary) 28%, var(--shell-border));gap:3px;margin:0 4px 4px 34px;padding:4px 0 3px 10px;display:grid}.sidebar-subnav-item{min-height:32px;color:var(--shell-muted);font-size:var(--type-meta);text-align:left;transition:background var(--motion-base) var(--motion-ease-standard), color var(--motion-base) var(--motion-ease-standard), transform var(--motion-base) var(--motion-ease-enter);background:0 0;border:0;border-radius:7px;padding:0 11px;font-weight:650}.sidebar-subnav-item:hover{background:var(--shell-surface-soft);color:var(--shell-primary);transform:translate(2px)}.sidebar-subnav-item.active{background:color-mix(in srgb, var(--shell-primary) 10%, var(--shell-surface));color:var(--shell-primary)}.sidebar-logout{color:var(--shell-muted);text-align:left;background:0 0;border:0;align-items:center;gap:13px;margin:auto 18px 24px;padding:12px 4px;font-size:14px;display:flex}.sidebar-logout:hover{color:#e5484d}.app-workspace{min-height:100vh;transition:margin-left var(--motion-slow) var(--motion-ease-standard);margin-left:228px}.app-shell.sidebar-collapsed .responsive-shell-sidebar{width:72px}.app-shell.sidebar-collapsed .app-workspace{margin-left:72px}.app-shell.sidebar-collapsed .responsive-shell-sidebar .brand{justify-content:center;padding-inline:0}.app-shell.sidebar-collapsed .responsive-shell-sidebar .brand>span:last-child,.app-shell.sidebar-collapsed .responsive-shell-sidebar .primary-nav-item>span,.app-shell.sidebar-collapsed .responsive-shell-sidebar .nav-chevron,.app-shell.sidebar-collapsed .responsive-shell-sidebar .sidebar-subnav,.app-shell.sidebar-collapsed .responsive-shell-sidebar .sidebar-logout>span{display:none}.app-shell.sidebar-collapsed .responsive-shell-sidebar .primary-navigation{padding-inline:8px}.app-shell.sidebar-collapsed .responsive-shell-sidebar .primary-nav-item{justify-content:center;padding-inline:0}.app-shell.sidebar-collapsed .responsive-shell-sidebar .primary-nav-item:hover{transform:none}.app-shell.sidebar-collapsed .responsive-shell-sidebar .sidebar-logout{justify-content:center;margin-inline:8px;padding-inline:0}.app-shell.sidebar-collapsed .responsive-shell-sidebar .primary-nav-group{position:relative}.app-shell.sidebar-collapsed .responsive-shell-sidebar .sidebar-subnav{z-index:70;border:1px solid var(--shell-border);background:var(--shell-surface);width:190px;box-shadow:var(--shell-shadow-2);border-radius:8px;margin:0;padding:8px;display:none;position:absolute;top:0;left:calc(100% + 10px)}.app-shell.sidebar-collapsed .responsive-shell-sidebar .primary-nav-group.settings-menu-open .sidebar-subnav{display:grid}.app-topbar{z-index:30;border-bottom:1px solid var(--shell-border);background:color-mix(in srgb, var(--shell-surface) 94%, transparent);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);grid-template-columns:minmax(230px,1fr) minmax(360px,500px) minmax(330px,1fr);align-items:center;gap:24px;height:76px;padding:0 28px;display:grid;position:sticky;top:0}.company-switcher{border:1px solid var(--shell-border);background:var(--shell-surface);width:fit-content;min-width:216px;color:var(--shell-text);text-align:left;border-radius:7px;justify-content:space-between;align-items:center;gap:28px;padding:9px 12px;display:flex;box-shadow:0 1px 1px #11234605}.company-switcher span,.profile-button span{display:grid}.company-switcher strong,.profile-button strong{font-size:13px;line-height:1.35}.company-switcher small,.profile-button small{color:var(--shell-muted);font-size:var(--type-meta);line-height:1.35}.global-search{border:1px solid var(--shell-border);background:var(--shell-surface);height:43px;color:var(--shell-muted);border-radius:7px;align-items:center;gap:10px;padding:0 12px;display:flex;position:relative}.global-search:focus-within{border-color:color-mix(in srgb, var(--shell-primary) 52%, var(--shell-border));box-shadow:0 0 0 3px color-mix(in srgb, var(--shell-primary) 10%, transparent)}.global-search input{width:100%;color:var(--shell-text);background:0 0;border:0;outline:0;font-size:13px}.global-search input::placeholder{color:#8896ad}.global-search kbd{border:1px solid var(--shell-border);color:var(--shell-muted);font-family:inherit;font-size:var(--type-meta);white-space:nowrap;border-radius:5px;padding:2px 5px}.search-clear{color:var(--shell-muted);background:0 0;border:0;justify-content:center;align-items:center;padding:3px;display:inline-flex}.topbar-actions{justify-content:flex-end;align-items:center;gap:15px;display:flex}.topbar-action-wrap{position:relative}.icon-button{color:#314665;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;width:40px;height:40px;display:inline-flex;position:relative}.icon-button:hover{background:var(--shell-surface-soft)}.notification-badge{border:2px solid var(--shell-surface);background:var(--shell-primary);color:#fff;min-width:17px;height:17px;font-size:var(--type-caption-sm);border-radius:999px;justify-content:center;align-items:center;font-weight:700;display:inline-flex;position:absolute;top:1px;right:0}.theme-toggle{border:1px solid var(--shell-border);background:var(--shell-surface);width:72px;height:38px;color:var(--shell-muted);border-radius:999px;grid-template-columns:1fr 1fr;place-items:center;display:grid;position:relative}.theme-toggle svg{z-index:1}.theme-toggle-thumb{width:26px;height:26px;transition:transform var(--motion-slow) var(--motion-ease-enter), background var(--motion-slow) var(--motion-ease-standard);background:#12254a;border-radius:999px;position:absolute;right:6px;box-shadow:0 2px 7px #13264b40}.theme-toggle-thumb.dark{background:#f7b955;transform:translate(-34px)}.profile-button{color:var(--shell-text);text-align:left;background:0 0;border:0;align-items:center;gap:9px;padding:4px 2px 4px 5px;display:flex}.profile-button img{border:2px solid var(--shell-surface);width:38px;height:38px;box-shadow:0 0 0 1px var(--shell-border);object-fit:cover;border-radius:50%}.profile-avatar{background:var(--shell-primary);color:#fff;border-radius:50%;justify-content:center;align-items:center;width:38px;height:38px;font-size:13px;font-weight:700;display:inline-flex}.topbar-popover{z-index:90;border:1px solid color-mix(in srgb, var(--shell-border) 86%, transparent);background:color-mix(in srgb, var(--shell-surface) 95%, transparent);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:8px;position:absolute;top:calc(100% + 12px);overflow:hidden;box-shadow:0 18px 48px #0e1e3b29}.search-popover{left:0;right:0}.notification-popover,.profile-popover{width:330px;right:0}.profile-popover{width:210px}.topbar-popover>button{border:0;border-bottom:1px solid var(--shell-border);width:100%;color:var(--shell-text);text-align:left;background:0 0;align-items:center;gap:10px;padding:11px 13px;display:flex}.topbar-popover>button:last-child{border-bottom:0}.topbar-popover>button:hover{background:var(--shell-surface-soft)}.topbar-popover>button span:not(.result-icon){gap:2px;display:grid}.topbar-popover strong{font-size:var(--type-meta)}.topbar-popover small,.popover-empty{color:var(--shell-muted);font-size:var(--type-meta)}.popover-empty{padding:16px}.result-icon{width:30px;height:30px;color:var(--shell-primary);background:#edf4ff;border-radius:7px;flex:0 0 30px;justify-content:center;align-items:center;display:inline-flex}.result-icon.danger{color:#e5484d;background:#fff0f0}.result-icon.success{color:#149b52;background:#eaf9f0}.popover-title{border-bottom:1px solid var(--shell-border);justify-content:space-between;align-items:center;padding:12px 13px;display:flex}.popover-title button{color:var(--shell-primary);font-size:var(--type-caption);background:0 0;border:0}.app-main{padding:20px 18px 36px}.dashboard-page{grid-template-columns:minmax(710px,1fr) 360px;gap:14px;max-width:1440px;margin:0 auto;display:grid}.dashboard-main-column,.dashboard-side-column{align-content:start;gap:14px;display:grid}.surface-card{border:1px solid var(--shell-border);background:var(--shell-surface);box-shadow:var(--shell-shadow-1);border-radius:8px}.dashboard-section-heading{justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:27px;display:flex}.dashboard-section-heading h1{color:var(--shell-text);margin:0;font-size:28px;font-weight:740;line-height:1.2}.dashboard-section-heading p{color:var(--shell-muted);margin-top:6px;font-size:13px}.primary-action{background:var(--shell-primary);color:#fff;min-height:50px;transition:background var(--motion-base) var(--motion-ease-standard), transform var(--motion-base) var(--motion-ease-enter), box-shadow var(--motion-base) var(--motion-ease-standard);border:0;border-radius:7px;justify-content:center;align-items:center;gap:10px;padding:0 26px;font-size:14px;font-weight:650;display:inline-flex;box-shadow:0 10px 24px #0a5cff33}.primary-action:hover{background:var(--shell-primary-hover);transform:translateY(-1px);box-shadow:0 13px 28px #0a5cff40}.today-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.today-action{border:1px solid var(--shell-border);background:var(--shell-surface);border-radius:8px;grid-template-columns:auto 1fr;align-content:start;gap:15px 16px;min-height:157px;padding:17px 17px 14px;display:grid;box-shadow:0 6px 18px #1e305209}.today-action.danger{background:linear-gradient(135deg, color-mix(in srgb, #fff4f4 68%, var(--shell-surface)), var(--shell-surface));border-color:#f3d8d8}.today-action.warning{background:linear-gradient(135deg, color-mix(in srgb, #fff8eb 70%, var(--shell-surface)), var(--shell-surface));border-color:#f1dfc3}.today-action.info{background:linear-gradient(135deg, color-mix(in srgb, #f1f6ff 72%, var(--shell-surface)), var(--shell-surface));border-color:#d9e5fb}.action-icon{border-radius:50%;justify-content:center;align-items:center;width:48px;height:48px;display:inline-flex}.today-action.danger .action-icon{color:#f04449;background:#ffe4e4}.today-action.warning .action-icon{color:#f39a21;background:#fff0d7}.today-action.info .action-icon{color:var(--shell-primary);background:#dfebff}.action-copy{align-items:center;gap:11px;display:flex}.action-copy strong{color:var(--shell-text);font-size:31px;line-height:1}.action-copy span{color:var(--shell-muted);font-size:var(--type-meta);line-height:1.45}.action-copy b{color:var(--shell-text);font-size:14px}.today-action.danger .action-copy b{color:#f04449}.today-action.warning .action-copy b{color:#ed8d12}.today-action.info .action-copy b{color:var(--shell-primary)}.today-action>button{border:1px solid color-mix(in srgb, var(--shell-border) 94%, transparent);background:color-mix(in srgb, var(--shell-surface) 82%, transparent);min-height:43px;color:var(--shell-text);font-size:var(--type-meta);border-radius:7px;grid-column:1/-1;justify-content:space-between;align-items:center;margin-top:auto;padding:0 15px;font-weight:600;display:flex}.today-action>button svg{transform:rotate(-90deg)}.dashboard-metrics{grid-template-columns:repeat(4,minmax(0,1fr));padding:22px 0;display:grid}.dashboard-metrics article{border-right:1px solid var(--shell-border);gap:7px;min-width:0;padding:0 25px;display:grid}.dashboard-metrics article:last-child{border-right:0}.dashboard-metrics article>span{color:var(--shell-muted);font-size:var(--type-meta);white-space:nowrap;align-items:center;gap:7px;display:flex}.dashboard-metrics strong{color:var(--shell-text);text-overflow:ellipsis;white-space:nowrap;font-size:20px;overflow:hidden}.dashboard-metrics .metric-note{color:var(--shell-muted);font-size:var(--type-caption);font-weight:500}.dashboard-metrics small{font-size:var(--type-meta);font-style:normal;font-weight:600}.dashboard-metrics em{color:var(--shell-muted);font-size:var(--type-caption-sm);margin-left:5px;font-style:normal;font-weight:400}.trend.warning{color:#f08a00}.trend.danger{color:#ef4444}.trend.success{color:#16a05a}.invoice-list-card{overflow:hidden}.invoice-list-header{border-bottom:1px solid var(--shell-border);align-items:center;gap:28px;padding:17px 28px 0;display:flex}.invoice-list-header h2,.dashboard-side-column h2{color:var(--shell-text);font-size:var(--type-section-title);font-weight:700;line-height:var(--leading-compact);margin:0}.invoice-tabs{gap:5px;min-width:0;display:flex;overflow-x:auto}.invoice-tabs button{min-height:47px;color:var(--shell-muted);font-size:var(--type-meta);white-space:nowrap;background:0 0;border:0;border-bottom:2px solid #0000;padding:0 14px}.invoice-tabs button.active{border-bottom-color:var(--shell-primary);color:var(--shell-primary);font-weight:650}.bulk-action-bar{border-bottom:1px solid var(--shell-border);background:#f5f8fd;justify-content:space-between;align-items:center;gap:12px;min-height:54px;padding:7px 20px;display:flex}.bulk-action-bar>div{align-items:center;gap:8px;display:flex}.bulk-action-bar strong{font-size:var(--type-meta)}.bulk-action-bar button:not(.check-control):not(.clear-selection){border:1px solid var(--shell-border);background:var(--shell-surface);min-height:36px;color:var(--shell-text);font-size:var(--type-caption);border-radius:7px;align-items:center;gap:7px;padding:0 12px;font-weight:600;display:inline-flex}.bulk-action-bar button.icon-only{justify-content:center;width:36px;padding:0}.clear-selection{color:var(--shell-muted);background:0 0;border:0;align-items:center;padding:3px;display:inline-flex}.dashboard-table-wrap{width:100%;overflow-x:auto}.dashboard-table{border-collapse:collapse;table-layout:fixed;width:100%}.dashboard-table th,.dashboard-table td{border-bottom:1px solid var(--shell-border);height:48px;color:var(--shell-text);font-size:var(--type-meta);line-height:var(--leading-body);text-align:left;white-space:nowrap;padding:0 8px}.dashboard-table th{height:40px;color:var(--shell-muted);font-size:var(--type-caption);font-weight:600}.dashboard-table th:nth-child(7){width:118px}.dashboard-table tbody tr{cursor:pointer;transition:background .15s}.dashboard-table tbody tr:hover,.dashboard-table tbody tr.selected{background:var(--shell-surface-soft)}.date-overdue{font-weight:650;color:#ef4444!important}.check-control{background:var(--shell-surface);color:#fff;border:1px solid #bcc8da;border-radius:4px;justify-content:center;align-items:center;width:16px;height:16px;padding:0;display:inline-flex}.check-control.checked{border-color:var(--shell-primary);background:var(--shell-primary);box-shadow:0 0 0 4px #1768ff1f}.dashboard-status{min-height:27px;font-size:var(--type-caption);border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;padding:0 10px;font-weight:650;line-height:1;display:inline-flex}.dashboard-status.overdue{color:#e5484d;background:#fff0f0;border-color:#ffc9c9}.dashboard-status.pending{color:#d97b00;background:#fff6e8;border-color:#ffd9a5}.dashboard-status.paid{color:#128a49;background:#eaf9f0;border-color:#bce9cd}.dashboard-status.draft{color:var(--shell-primary);background:#edf4ff;border-color:#d4e1f7}.dashboard-status.cancelled{color:#667085;background:#f1f3f6;border-color:#d8dee8}.row-menu{color:var(--shell-muted);background:0 0;border:0;justify-content:center;align-items:center;padding:4px;display:inline-flex}.dashboard-row-actions{justify-content:flex-end;gap:5px;display:flex}.dashboard-row-actions button{border:1px solid var(--shell-border);background:var(--shell-surface);width:31px;height:31px;color:var(--shell-muted);border-radius:7px;justify-content:center;align-items:center;padding:0;display:inline-flex}.dashboard-row-actions button:hover{color:var(--shell-primary);border-color:#bfd3f4;transform:translateY(-1px)}.show-all-invoices{width:100%;min-height:53px;color:var(--shell-primary);font-size:var(--type-meta);background:0 0;border:0;justify-content:center;align-items:center;gap:8px;font-weight:600;display:flex}.income-card,.activity-card,.import-card{padding:21px 22px}.side-card-heading{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.side-card-heading h2{align-items:center;gap:5px;display:flex}.side-card-heading h2 span{color:var(--shell-muted);font-size:var(--type-meta);font-weight:500}.side-card-heading strong{margin-top:8px;font-size:22px;display:block}.side-card-heading p{color:var(--shell-muted);font-size:var(--type-meta);margin-top:3px}.side-card-heading>button{border:1px solid var(--shell-border);background:var(--shell-surface);min-height:38px;color:var(--shell-text);font-size:var(--type-meta);border-radius:7px;align-items:center;gap:7px;padding:0 12px;display:flex}.income-chart{grid-template-columns:repeat(6,1fr);align-items:end;gap:8px;height:148px;margin-top:14px;display:grid}.income-bar-col{grid-template-rows:16px 1fr 16px;justify-items:center;gap:5px;min-width:0;height:100%;display:grid}.income-bar-value{font-size:var(--type-caption-sm);color:var(--shell-muted);font-weight:700}.income-bar-track{align-items:flex-end;width:100%;height:100%;display:flex}.income-bar{background:color-mix(in srgb, var(--shell-primary) 32%, transparent);border-radius:6px 6px 0 0;width:100%;min-height:3px;transition:height .2s}.income-bar.current{background:var(--shell-primary)}.income-bar-label{font-size:var(--type-caption);color:var(--shell-muted);text-transform:capitalize}.income-empty{border:1px dashed var(--shell-border);color:var(--shell-muted);text-align:center;border-radius:10px;margin-top:14px;padding:22px 14px;font-size:12px;line-height:1.5}.income-trend{font-size:var(--type-caption);white-space:nowrap;border-radius:999px;padding:3px 9px;font-weight:600}.income-trend.success{color:#16a05a;background:#eaf9f0}.income-trend.danger{color:#d64545;background:#fdeaea}.activity-card h2{margin-bottom:16px}.activity-list{display:grid}.activity-list .activity-row{width:100%;color:var(--shell-text);text-align:left;cursor:pointer;background:0 0;border:0;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 0;display:grid}.activity-list .activity-row:hover strong{color:var(--shell-primary)}.activity-icon.danger{color:#d64545;background:#fdeaea}.activity-icon{border-radius:50%;justify-content:center;align-items:center;width:31px;height:31px;display:inline-flex}.activity-icon.success{color:#16a05a;background:#eaf9f0}.activity-icon.warning{color:#f08a00;background:#fff3df}.activity-icon.info{color:var(--shell-primary);background:#eaf2ff}.activity-list .activity-row div{min-width:0;display:grid}.activity-list strong,.activity-list small,.activity-list time{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.activity-list strong{font-size:var(--type-caption)}.activity-list small,.activity-list time{color:var(--shell-muted);font-size:var(--type-caption-sm)}.side-card-link{border:0;border-top:1px solid var(--shell-border);width:100%;color:var(--shell-primary);font-size:var(--type-meta);background:0 0;justify-content:space-between;align-items:center;margin-top:12px;padding:14px 0 0;font-weight:600;display:flex}.import-card{background:linear-gradient(135deg, color-mix(in srgb, #eef5ff 82%, var(--shell-surface)), var(--shell-surface));border-color:#bfd4ff;align-content:start;gap:9px;min-height:190px;display:grid;position:relative;overflow:hidden}.import-card>div:not(.import-illustration){max-width:220px}.import-card h2 span{background:var(--shell-primary);color:#fff;font-size:var(--type-micro);vertical-align:middle;border-radius:999px;margin-left:7px;padding:3px 7px}.import-card p{color:var(--shell-muted);font-size:var(--type-caption);margin-top:9px;line-height:1.55}.import-illustration{width:77px;height:88px;box-shadow:var(--shell-shadow-2);object-fit:cover;border-radius:8px;position:absolute;bottom:51px;right:18px;transform:rotate(3deg)}.import-actions{justify-content:space-between;align-items:center;gap:12px;margin-top:10px;display:flex}.import-actions button{background:var(--shell-surface);min-height:39px;color:var(--shell-primary);font-size:var(--type-caption);border:1px solid #ccdaf3;border-radius:7px;align-items:center;gap:8px;padding:0 13px;font-weight:650;display:inline-flex}.import-actions>span{border:1px solid var(--shell-border);background:var(--shell-surface);color:var(--shell-muted);font-size:var(--type-caption-sm);border-radius:999px;padding:7px 11px}.quick-contact-link{width:100%;color:var(--shell-muted);font-size:var(--type-caption);background:0 0;border:0;justify-content:center;align-items:center;gap:8px;padding:10px;display:flex}.dashboard-page{grid-template-columns:minmax(0,1fr) 360px}.dashboard-page-header,.dashboard-action-card,.invoice-list-card,.dashboard-import-card{grid-column:1/-1}.dashboard-page-header{justify-content:space-between;align-items:center;gap:20px;display:flex}.dashboard-page-header h1{color:var(--shell-text);margin:0;font-size:26px;font-weight:740}.dashboard-create-action{min-height:42px;padding-inline:18px}.dashboard-action-card{padding:14px 20px 12px}.dashboard-action-card>h2{color:var(--shell-text);margin:0 0 8px;font-size:16px}.dashboard-action-card .today-actions{gap:0}.dashboard-action-card .today-action{min-height:76px;box-shadow:none;background:0 0;border:0;border-radius:0;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 18px}.dashboard-action-card .today-action+.today-action{border-left:1px solid var(--shell-border)}.dashboard-action-card .action-icon{width:42px;height:42px}.dashboard-action-card .action-copy{gap:12px}.dashboard-action-card .action-copy strong{font-size:24px}.dashboard-action-card .today-action>button{min-height:36px;color:var(--shell-muted);white-space:nowrap;background:0 0;border:0;grid-column:auto;gap:9px;margin:0;padding:0}.dashboard-action-card .today-action>button:hover{color:var(--shell-primary)}.dashboard-finance-card{min-width:0;padding:18px 20px 14px}.finance-card-header{justify-content:space-between;align-items:flex-start;gap:18px;display:flex}.finance-card-header h2,.annual-summary-card h2{color:var(--shell-text);margin:0;font-size:15px}.finance-legend{color:var(--shell-muted);font-size:var(--type-caption);gap:16px;margin-top:8px;display:flex}.finance-legend span{align-items:center;gap:6px;display:inline-flex}.finance-legend i{border-radius:2px;width:8px;height:8px}.finance-legend i.invoiced{background:var(--shell-primary)}.finance-legend i.received{background:#19b66a}.finance-controls{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.segmented-control{border:1px solid var(--shell-border);border-radius:7px;display:inline-flex;overflow:hidden}.segmented-control button{border:0;border-right:1px solid var(--shell-border);background:var(--shell-surface);min-height:31px;color:var(--shell-muted);font-size:var(--type-caption);justify-content:center;align-items:center;gap:5px;padding:0 12px;display:inline-flex}.segmented-control button:last-child{border-right:0}.segmented-control button.active{background:color-mix(in srgb, var(--shell-primary) 8%, var(--shell-surface));color:var(--shell-primary);box-shadow:inset 0 0 0 1px var(--shell-primary);font-weight:650}.custom-period-controls{justify-content:flex-end;gap:10px;margin-top:10px;display:flex}.custom-period-controls label{color:var(--shell-muted);font-size:var(--type-caption);align-items:center;gap:6px;display:flex}.custom-period-controls input{border:1px solid var(--shell-border);background:var(--shell-surface);min-height:31px;color:var(--shell-text);border-radius:6px;padding:0 8px}.finance-chart-scroll{scrollbar-width:thin;overflow-x:auto}.finance-chart{min-width:calc(var(--chart-columns) * 52px);grid-template-columns:repeat(var(--chart-columns), minmax(42px, 1fr));border-bottom:1px solid var(--shell-border);background:repeating-linear-gradient(to bottom, transparent 0, transparent 44px, color-mix(in srgb, var(--shell-border) 60%, transparent) 45px);align-items:end;gap:7px;height:184px;margin-top:14px;padding:8px 2px 0;display:grid}.finance-chart-column{grid-template-rows:minmax(0,1fr) 20px;justify-items:center;gap:5px;height:100%;display:grid}.finance-chart-column>span{color:var(--shell-muted);font-size:var(--type-caption);text-transform:capitalize}.finance-bars{justify-content:center;align-items:flex-end;gap:3px;width:100%;height:100%;display:flex}.finance-bar{width:min(18px,42%);height:var(--bar-height);border-radius:4px 4px 0 0;min-height:2px;transition:height .2s}.finance-bar.invoiced{background:var(--shell-primary)}.finance-bar.received{background:#19b66a}.finance-chart-empty{border:1px dashed var(--shell-border);min-height:184px;color:var(--shell-muted);font-size:var(--type-meta);text-align:center;border-radius:7px;place-items:center;margin-top:14px;display:grid}.finance-insight{color:var(--shell-muted);font-size:var(--type-caption);margin:12px 0 0}.annual-summary-card{flex-direction:column;min-width:0;padding:20px;display:flex}.annual-total{color:var(--shell-text);margin-top:15px;font-size:25px;line-height:1}.annual-year{color:var(--shell-muted);margin-top:7px;font-size:13px;font-weight:600}.collection-progress{margin-top:20px}.collection-progress-heading{color:var(--shell-muted);font-size:var(--type-caption);justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px;display:flex}.collection-progress-heading strong{color:var(--shell-text);font-size:13px}.collection-progress>strong{color:var(--shell-text);font-size:14px}.collection-progress-track{background:var(--shell-surface-soft);border-radius:999px;height:8px;margin-top:7px;display:flex;overflow:hidden}.collection-progress-track span{min-width:0}.collection-progress-track .paid{background:#19b66a}.collection-progress-track .pending{background:#f4a62a}.collection-progress-track .overdue{background:#ef4444}.collection-progress-notes{color:var(--shell-muted);font-size:var(--type-caption-sm);flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:8px;display:flex}.collection-progress-notes span{align-items:center;gap:5px;display:inline-flex}.collection-progress-notes i{border-radius:50%;width:6px;height:6px}.collection-progress-notes .pending i{background:#f4a62a}.collection-progress-notes .overdue i{background:#ef4444}.invoice-list-header{min-height:52px;padding:0 20px}.dashboard-table th:first-child,.dashboard-table td:first-child{width:118px;padding-left:20px}.dashboard-table th:nth-child(2){width:auto}.dashboard-table th:nth-child(3){width:145px}.dashboard-table th:nth-child(4){width:125px}.dashboard-table th:nth-child(5){width:120px}.dashboard-table th:nth-child(6){width:125px}.dashboard-table th:last-child{width:84px}.dashboard-import-card{background:var(--shell-surface);grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;min-height:88px;padding:16px 20px;display:grid}.dashboard-import-card>div:not(.import-illustration){max-width:none}.dashboard-import-card p{max-width:700px}.dashboard-import-card .import-actions{margin:0}.vat-turnover-card{--vat-tone:#16a34a;--vat-tone-soft:#e8f7ee;--vat-tone-text:#166534;grid-column:1/-1;gap:10px;min-width:0;padding:18px 20px;display:grid}.vat-turnover-card.approaching{--vat-tone:#d97706;--vat-tone-soft:#fff4e0;--vat-tone-text:#92400e}.vat-turnover-card.first-exceeded,.vat-turnover-card.second-exceeded{--vat-tone:#dc2626;--vat-tone-soft:#fdecec;--vat-tone-text:#991b1b}:root[data-theme=dark] .vat-turnover-card{--vat-tone-soft:#12301f;--vat-tone-text:#86efac}:root[data-theme=dark] .vat-turnover-card.approaching{--vat-tone-soft:#3a2a0c;--vat-tone-text:#fcd34d}:root[data-theme=dark] .vat-turnover-card.first-exceeded,:root[data-theme=dark] .vat-turnover-card.second-exceeded{--vat-tone-soft:#3b1414;--vat-tone-text:#fca5a5}.vat-turnover-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:8px 12px;display:flex}.vat-turnover-head>div{min-width:0}.vat-turnover-head h2{color:var(--shell-muted);align-items:center;gap:7px;margin:0;font-size:13px;font-weight:600;display:flex}.vat-turnover-total{color:var(--shell-text);margin-top:6px;font-size:25px;line-height:1;display:block}.vat-turnover-badge{background:var(--vat-tone-soft);color:var(--vat-tone-text);border-radius:999px;flex-shrink:0;padding:4px 10px;font-size:12px;font-weight:700}.vat-turnover-track{background:var(--shell-surface-soft);height:10px;box-shadow:inset 0 0 0 1px var(--shell-border);border-radius:999px;margin-top:6px;position:relative;overflow:hidden}.vat-turnover-fill{background:var(--vat-tone);transition:width var(--motion-base) var(--motion-ease-standard);position:absolute;inset:0 auto 0 0}.vat-turnover-mark{background:var(--shell-text);width:2px;position:absolute;top:0;bottom:0}.vat-turnover-scale{height:16px;color:var(--shell-muted);font-size:12px;position:relative}.vat-turnover-scale span{white-space:nowrap;position:absolute;top:0}.vat-turnover-scale span:first-child{left:0}.vat-turnover-scale span:nth-child(2){transform:translate(-50%)}.vat-turnover-scale span:last-child{right:0}.vat-turnover-message{color:var(--shell-text);margin:4px 0 0;font-size:14px;line-height:1.6}.vat-turnover-external p{color:var(--shell-muted);margin:0;font-size:13px}.vat-turnover-external button{color:var(--shell-primary);font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-weight:700}.vat-turnover-external-edit{color:var(--shell-muted);gap:6px;font-size:13px;display:grid}.vat-turnover-external-edit>div{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.vat-turnover-external-edit input{border:1px solid var(--shell-border);background:var(--shell-surface);width:160px;min-height:34px;color:var(--shell-text);border-radius:8px;padding:0 10px}.vat-turnover-external-edit .vat-turnover-save,.vat-turnover-external-edit button{border:1px solid var(--shell-border);border-radius:8px;min-height:34px;padding:0 12px}.vat-turnover-external-edit .vat-turnover-save{border-color:var(--shell-primary);background:var(--shell-primary);color:#fff}.vat-turnover-error{color:#dc2626}.vat-turnover-note{color:var(--shell-muted);font-size:12px;line-height:1.5}@media (max-width:600px){.vat-turnover-scale span:nth-child(2){display:none}}@media (max-width:1080px){.app-main .dashboard-page{grid-template-columns:minmax(0,1fr)}.dashboard-page-header,.dashboard-action-card,.dashboard-finance-card,.annual-summary-card,.invoice-list-card,.dashboard-import-card{grid-column:1}.annual-summary-card{min-height:290px}}@media (max-width:760px){body{min-width:0}.app-sidebar{border-top:1px solid var(--shell-border);border-right:0;width:100%;height:68px;inset:auto 0 0}.app-sidebar .brand,.app-sidebar .sidebar-logout,.app-sidebar .sidebar-subnav{display:none}.primary-navigation{scrollbar-width:none;gap:2px;height:100%;padding:6px 8px;display:flex;overflow-x:auto}.primary-navigation::-webkit-scrollbar{display:none}.primary-nav-group{display:contents}.primary-nav-item{width:auto;min-width:66px;min-height:54px;font-size:var(--type-caption-sm);text-align:center;flex-direction:column;flex:none;justify-content:center;gap:3px;padding:4px 8px}.primary-nav-item:hover{transform:none}.primary-nav-item.active:before{border-radius:0 0 3px 3px;width:auto;height:3px;inset:0 10px auto}.primary-nav-item .nav-chevron{display:none}.app-workspace{margin-left:0;padding-bottom:68px}.app-topbar{grid-template-columns:minmax(0,1fr) auto;gap:8px;height:60px;padding:0 12px}.company-switcher,.profile-button{display:none}.global-search{height:38px}.global-search kbd{display:none}.topbar-actions{gap:3px}.icon-button{width:36px;height:36px}.theme-toggle{width:62px;height:34px}.theme-toggle-thumb{width:24px;height:24px}.theme-toggle-thumb.dark{transform:translate(-28px)}.app-main{padding:14px 12px 28px}.dashboard-page-header{align-items:center}.dashboard-page-header h1{font-size:22px}.dashboard-create-action{z-index:80;border-radius:50%;width:52px;min-width:52px;height:52px;min-height:48px;padding:0;font-size:0;position:fixed;bottom:82px;right:18px;box-shadow:0 12px 30px #0a5cff59}.dashboard-action-card .today-actions{grid-template-columns:1fr}.dashboard-action-card .today-action+.today-action{border-top:1px solid var(--shell-border);border-left:0}.finance-card-header,.finance-controls,.dashboard-import-card,.dashboard-import-card .import-actions{flex-direction:column;align-items:stretch}.finance-card-header,.dashboard-import-card{display:flex}.finance-controls{justify-content:flex-start}.segmented-control{width:100%}.segmented-control button{flex:1;padding-inline:8px}.custom-period-controls{justify-content:flex-start}.dashboard-table{min-width:780px}}:root[data-theme=dark] .primary-nav-item{color:#a8b7cf}:root[data-theme=dark] .primary-nav-item.active{color:#75a6ff;background:#172b4c}:root[data-theme=dark] .bulk-action-bar{background:#142137}:root[data-theme=dark] .today-action.danger,:root[data-theme=dark] .today-action.warning,:root[data-theme=dark] .today-action.info,:root[data-theme=dark] .import-card{background:var(--shell-surface)}@media (max-width:1260px){.app-topbar{grid-template-columns:minmax(210px,.8fr) minmax(330px,1.2fr) minmax(290px,.9fr);padding-inline:18px}.dashboard-page{grid-template-columns:minmax(680px,1fr) 320px}.profile-button span{display:none}.dashboard-metrics article{padding-inline:17px}}.ocr-import-placeholder{border:1px dashed var(--border);border-radius:var(--radius);background:var(--bg);text-align:center;padding:2rem}.ocr-import-placeholder h4{margin:1rem 0 .5rem}.ocr-placeholder-icon{color:var(--primary)}.ocr-placeholder-note{color:var(--text-secondary);justify-content:center;align-items:center;gap:.5rem;margin-top:1.5rem;font-size:.875rem;display:flex}@media (max-width:720px){.settings-template-workspace{grid-template-columns:1fr}.settings-template-preview{max-width:100%}}.ai-upload-box{border:2px dashed var(--primary);border-radius:var(--radius);text-align:center;cursor:pointer;background:#eff6ff;flex-direction:column;align-items:center;gap:1rem;padding:3rem 2rem;transition:all .2s;display:flex}.ai-upload-box:hover{background:#dbeafe}.ai-upload-icon{color:var(--primary);width:48px;height:48px}.ai-upload-title{color:var(--primary);font-size:1.125rem;font-weight:600}.ai-upload-desc{color:var(--text-secondary);font-size:.875rem}.ai-spinner{border:3px solid #2563eb33;border-top-color:var(--primary);border-radius:50%;width:40px;height:40px;animation:1s linear infinite ai-spin}@keyframes ai-spin{to{transform:rotate(360deg)}}.ai-result-banner{color:#166534;border-radius:var(--radius);background:#f0fdf4;border:1px solid #bbf7d0;margin-bottom:1.5rem;padding:1rem;font-size:.875rem}.app-layout{background-color:var(--bg);min-height:100vh;display:flex}.sidebar{background-color:var(--surface);border-right:1px solid var(--border);z-index:1000;flex-direction:column;width:260px;height:100vh;display:flex;position:fixed;top:0;left:0;overflow-y:auto;box-shadow:2px 0 8px #00000008}.sidebar-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:.5rem;padding:1.5rem 1.25rem;display:flex}.sidebar-nav{flex-direction:column;flex:1;gap:.35rem;padding:1.5rem .75rem;display:flex}.sidebar-nav-item{border-radius:var(--radius);color:var(--text-secondary);text-align:left;background:0 0;border:1px solid #0000;align-items:center;gap:.75rem;width:100%;padding:.75rem 1rem;font-weight:600;transition:all .2s;display:flex}.sidebar-nav-item:hover{color:var(--text);background:#f1f5f9}.sidebar-nav-item.active{color:var(--primary);background:#eff6ff;border-color:#bfdbfe}.sidebar-footer{border-top:1px solid var(--border);background-color:#fafbfb;padding:1.25rem 1rem}.btn-logout{border:1px solid var(--border);border-radius:var(--radius);width:100%;color:var(--text-secondary);cursor:pointer;background:0 0;justify-content:center;align-items:center;gap:.5rem;padding:.75rem 1rem;font-weight:600;transition:all .2s;display:inline-flex}.btn-logout:hover{color:var(--danger);background:#fff5f5;border-color:#fca5a5}.btn-logout:disabled{opacity:.62;cursor:not-allowed}.bell-container{position:relative}.bell-btn{border:1px solid var(--border);width:36px;height:36px;color:var(--text-secondary);cursor:pointer;background:#fff;border-radius:999px;justify-content:center;align-items:center;padding:0;transition:all .2s;display:flex;position:relative}.bell-btn:hover{color:var(--text);background:#f1f5f9;border-color:#cbd5e1}.bell-badge{background:var(--danger);color:#fff;border:2px solid #fff;border-radius:999px;justify-content:center;align-items:center;min-width:18px;height:18px;font-size:.65rem;font-weight:700;line-height:1;display:flex;position:absolute;top:-4px;right:-4px}.debtors-popover{-webkit-backdrop-filter:blur(12px);border-radius:var(--radius);z-index:200;background:#ffffffe6;border:1px solid #e2e8f0e6;width:320px;position:fixed;top:1.5rem;left:270px;right:auto;overflow:hidden;box-shadow:0 10px 25px -5px #0000001a,0 8px 10px -6px #0000001a}.popover-header{border-bottom:1px solid var(--border);background:#f8fafc80;justify-content:space-between;align-items:center;padding:.75rem 1rem;display:flex}.popover-header h4{color:var(--text);margin:0;font-size:.9rem;font-weight:700}.popover-close{color:var(--text-secondary);cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;font-size:1.25rem;line-height:1;display:flex}.popover-close:hover{color:var(--text)}.popover-content{max-height:350px;padding:.5rem;overflow-y:auto}.no-debtors{text-align:center;color:var(--text-secondary);padding:1.5rem 1rem;font-size:.875rem}.debtors-list{flex-direction:column;gap:.5rem;display:flex}.debtor-item{border:1px solid var(--border);background:#fff;border-radius:6px;flex-direction:column;gap:.5rem;padding:.75rem;display:flex}.debtor-info{flex-direction:column;gap:.15rem;display:flex}.debtor-name{color:var(--text);font-size:.875rem;font-weight:700}.debtor-amount{color:var(--text-secondary);font-size:.8rem}.debtor-count{color:var(--danger);font-size:.75rem;font-weight:500}.reminder-btn{cursor:pointer;border-radius:6px;align-self:flex-start;width:auto;padding:.35rem .65rem;font-size:.75rem}.main-content{flex:1;min-height:100vh;margin-left:260px;padding:2rem 2rem 7rem;overflow-y:auto}.form-error-summary{border-radius:var(--radius);color:#991b1b;background:#fef2f2;border:1px solid #fecaca;margin-bottom:1rem;padding:.85rem 1rem;font-size:.9rem}.form-error-summary strong{margin-bottom:.4rem;display:block}.form-error-summary ul{margin:0;padding-left:1.1rem}.form-error-summary li+li{margin-top:.2rem}.issue-next-actions{border-radius:var(--radius);color:#14532d;background:#f0fdf4;border:1px solid #bbf7d0;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem;padding:1rem;display:flex}.issue-next-actions strong,.issue-next-actions span{display:block}.issue-next-actions span{color:#166534;margin-top:.25rem;font-size:.9rem}.issue-next-actions-buttons{flex-wrap:wrap;justify-content:flex-end;gap:.5rem;display:flex}.toast-notification{color:#fff;z-index:999;background:#0f172a;border:1px solid #ffffff1a;border-radius:30px;align-items:center;gap:.5rem;padding:.75rem 1.5rem;font-size:.875rem;font-weight:500;animation:.3s cubic-bezier(.16,1,.3,1) toast-slide-in;display:flex;position:fixed;top:1.5rem;left:50%;transform:translate(-50%);box-shadow:0 10px 15px -3px #0000004d}@keyframes toast-slide-in{0%{opacity:0;top:-2rem}to{opacity:1;top:1.5rem}}@media (max-width:768px){.app-layout{flex-direction:column}.sidebar{border-right:0;border-bottom:1px solid var(--border);width:100%;height:auto;position:static;box-shadow:0 2px 4px #00000005}.sidebar-header{padding:1rem}.sidebar-nav{flex-flow:wrap;gap:.25rem;padding:.75rem 1rem}.sidebar-nav-item{flex:calc(50% - .25rem);justify-content:center;width:auto;padding:.5rem .75rem;font-size:.85rem}.sidebar-footer{border-top:1px solid var(--border);padding:.75rem 1rem}.btn-logout{padding:.5rem;font-size:.85rem}.main-content{margin-left:0;padding:1rem}.debtors-popover{width:calc(100vw - 2rem);max-width:320px;left:auto;right:0}}.summary-card{padding:1rem 1rem 1rem 1.35rem!important}@media (min-width:768px) and (max-width:1200px){.overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}}.sidebar-submenu{border-left:2px solid var(--border);flex-direction:column;gap:.25rem;margin-top:.25rem;margin-bottom:.5rem;margin-left:1.5rem;padding-left:.5rem;animation:.2s ease-out slideDown;display:flex}@keyframes slideDown{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.sidebar-submenu-item{color:var(--text-secondary);border-radius:var(--radius);text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;align-items:center;width:100%;padding:.45rem .75rem;font-size:.85rem;font-weight:500;transition:all .2s;display:flex}.sidebar-submenu-item:hover{color:var(--text);background:#f1f5f9}.sidebar-submenu-item.active{color:var(--primary);background:#eff6ff;border-color:#bfdbfe;font-weight:600}.settings-layout-full{width:100%;display:block}.otp-pin-container{border-top:1px solid var(--border);flex-direction:column;gap:1rem;margin-top:1.5rem;padding-top:1.25rem;display:flex}.otp-slots-row{align-items:center;gap:.75rem;display:flex}.otp-slot-input{text-align:center;border:1px solid var(--border);border-radius:var(--radius);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#ffffffb3;width:50px;height:50px;font-size:1.5rem;font-weight:700;transition:all .2s;box-shadow:inset 0 1px 2px #0000000d}.otp-slot-input:focus{border-color:var(--primary);background:#fff;outline:none;box-shadow:0 0 0 3px #2563eb26}.otp-toggle-btn{border:1px solid var(--border);border-radius:var(--radius);width:42px;height:42px;color:var(--text-secondary);cursor:pointer;background:#fff;justify-content:center;align-items:center;transition:all .2s;display:inline-flex}.otp-toggle-btn:hover{color:var(--text);background:#f1f5f9}.security-banner{border-radius:var(--radius);color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe;gap:.75rem;margin-top:1rem;padding:1rem;font-size:.875rem;line-height:1.45;display:flex}.security-banner svg{flex-shrink:0;margin-top:.1rem}.sidebar-summary{flex-direction:column;gap:.75rem;width:100%;margin-bottom:1rem;padding:.5rem 0;display:flex}.summary-card{-webkit-backdrop-filter:blur(10px);background:#fff6;border:1px solid #e2e8f0cc;border-radius:12px;flex-direction:column;padding:.75rem 1rem;transition:all .25s cubic-bezier(.4,0,.2,1);display:flex}.summary-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000000d}.summary-card.danger{background:#ef44440d;border-left:4px solid #ef4444}.summary-card.warning{background:#f59e0b0d;border-left:4px solid #f59e0b}.summary-title{text-transform:uppercase;letter-spacing:.05em;color:var(--text-secondary);margin-bottom:.25rem;font-size:.75rem;font-weight:600}.summary-value{color:var(--text);margin-bottom:.15rem;font-size:1.15rem;font-weight:800}.summary-text{color:var(--text-secondary);font-size:.75rem}.date-range-picker-card{z-index:100;margin-bottom:1.25rem;position:relative}.date-range-picker-bar{border-radius:var(--radius);border:1px solid var(--border);cursor:pointer;color:var(--text);box-shadow:var(--shadow-sm);background:#fff;align-items:center;gap:.75rem;padding:.85rem 1.25rem;font-weight:600;transition:all .2s ease-in-out;display:flex}.date-range-picker-bar:hover{border-color:var(--primary);box-shadow:0 0 0 3px #4b732b1a}.date-range-picker-bar svg{color:var(--primary)}.date-picker-popover{-webkit-backdrop-filter:blur(16px);border-radius:var(--radius);background:#fffffff2;border:1px solid #e2e8f0cc;flex-direction:column;width:580px;animation:.2s cubic-bezier(.16,1,.3,1) fadeInPopover;display:flex;position:absolute;top:105%;right:0;overflow:hidden;box-shadow:0 10px 25px -5px #0000001a,0 8px 10px -6px #0000001a}@keyframes fadeInPopover{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.popover-body{grid-template-columns:180px 1fr;min-height:290px;display:grid}.presets-column{border-right:1px solid var(--border);background:#f8fafc80;flex-direction:column;gap:.4rem;padding:.75rem;display:flex}.preset-btn{text-align:left;width:100%;color:var(--text-secondary);cursor:pointer;background:0 0;border:0;border-radius:8px;padding:.6rem .85rem;font-size:.875rem;font-weight:600;transition:all .2s}.preset-btn:hover{color:var(--text);background:#f1f5f9cc}.preset-btn.active{color:var(--primary);background:#4b732b14}.calendar-column{flex-direction:column;padding:1.25rem;display:flex}.calendar-header{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}.calendar-month-title{color:var(--text);font-size:.95rem;font-weight:700}.cal-nav-btn{border:1px solid var(--border);cursor:pointer;width:28px;height:28px;color:var(--text-secondary);background:0 0;border-radius:6px;justify-content:center;align-items:center;font-weight:700;transition:all .15s;display:flex}.cal-nav-btn:hover{background:var(--border);color:var(--text)}.calendar-weekdays{text-align:center;grid-template-columns:repeat(7,1fr);gap:2px;margin-bottom:.5rem;display:grid}.weekday-label{color:var(--text-secondary);padding:.25rem 0;font-size:.75rem;font-weight:700}.calendar-month-grid{grid-template-columns:repeat(7,1fr);gap:2px;display:grid}.calendar-day-empty{aspect-ratio:1}.calendar-day{aspect-ratio:1;color:var(--text);cursor:pointer;background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;font-size:.825rem;font-weight:600;transition:all .15s;display:flex;position:relative}.calendar-day:hover{color:var(--primary);background:#4b732b1a}.calendar-day.in-range{color:var(--primary);background:#4b732b0f;border-radius:0}.calendar-day.range-start{border-radius:6px 0 0 6px;box-shadow:0 2px 4px #4b732b33;background:var(--primary)!important;color:#fff!important}.calendar-day.range-end{border-radius:0 6px 6px 0;box-shadow:0 2px 4px #4b732b33;background:var(--primary)!important;color:#fff!important}.calendar-day.range-start.range-end{border-radius:6px!important}.popover-footer{border-top:1px solid var(--border);background:#f8fafc4d;justify-content:flex-end;gap:.5rem;padding:.75rem 1.25rem;display:flex}@media print{.toast-notification,.bell-container,.sidebar-summary,.date-range-picker-card,.sidebar-footer{display:none!important}}.invoice-editor-page{grid-template-columns:minmax(0,1fr) 336px;align-items:start;gap:22px;display:grid}.invoice-workspace{gap:18px;min-width:0;display:grid}.invoice-editor-hero{border:1px solid var(--shell-border);background:linear-gradient(135deg, var(--shell-surface), color-mix(in srgb, var(--shell-primary) 7%, var(--shell-surface)));min-height:132px;box-shadow:var(--shell-shadow-1);border-radius:8px;justify-content:space-between;align-items:center;gap:20px;padding:24px 26px;display:flex}.page-kicker{color:var(--shell-primary);font-size:var(--type-meta);letter-spacing:.04em;text-transform:uppercase;margin-bottom:9px;font-weight:750;display:inline-flex}.invoice-editor-hero h1{color:var(--shell-text);letter-spacing:0;margin:0;font-size:28px;line-height:1.1}.invoice-editor-hero p{max-width:590px;color:var(--shell-muted);margin:10px 0 0;font-size:13px;line-height:1.6}.template-load-button,.secondary-soft-button,.primary-wide-button,.secondary-wide-button,.publish-dropdown>button,.template-side-card button,.invoice-inline-notice button{border-radius:7px;justify-content:center;align-items:center;gap:8px;font-weight:700;transition:transform .18s,box-shadow .18s,border-color .18s,background .18s;display:inline-flex}.template-load-button:hover,.secondary-soft-button:hover,.primary-wide-button:hover,.secondary-wide-button:hover,.publish-dropdown>button:hover,.template-side-card button:hover{transform:translateY(-1px)}.template-load-button{min-height:42px;color:var(--shell-primary);box-shadow:var(--shell-shadow-1);white-space:nowrap;background:#ffffffb8;border:1px solid #c6d8f8;padding:0 16px}.invoice-inline-notice{color:#194f9b;font-size:var(--type-meta);background:#eff6ff;border:1px solid #bcd4ff;border-radius:8px;justify-content:space-between;align-items:center;gap:16px;padding:13px 16px;display:flex}.invoice-inline-notice button{color:#194f9b;background:#fff;border:1px solid #bcd4ff;min-height:31px;padding:0 11px}.invoice-inline-notice.warning{color:#7a4b00;background:#fff8e8;border-color:#f5c56b;line-height:1.5}.invoice-inline-notice.warning button{color:#7a4b00;border-color:#f5c56b;flex-shrink:0}:root[data-theme=dark] .invoice-inline-notice.warning{color:#f3d394;background:#2e2410;border-color:#6b4a12}:root[data-theme=dark] .invoice-inline-notice.warning button{color:#f3d394;border-color:#6b4a12}.invoice-form-grid{gap:16px;display:grid}.invoice-form-card,.invoice-side-card{border:1px solid var(--shell-border);background:var(--shell-surface);box-shadow:var(--shell-shadow-1);border-radius:8px}.invoice-form-card{padding:21px}.invoice-form-card-main{box-shadow:var(--shell-shadow-2)}.section-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:17px;display:flex}.section-heading div{align-items:center;gap:10px;display:flex}.section-heading span{background:color-mix(in srgb, var(--shell-primary) 12%, white);width:28px;height:28px;color:var(--shell-primary);border-radius:8px;justify-content:center;align-items:center;font-size:12px;font-weight:800;display:inline-flex}.section-heading h2{color:var(--shell-text);letter-spacing:0;margin:0;font-size:15px}.section-heading small{color:var(--shell-muted);font-size:var(--type-meta)}.field-grid{gap:14px;display:grid}.field-grid.two-cols{grid-template-columns:repeat(2,minmax(0,1fr))}.field-block{gap:7px;margin:0;display:grid}.field-block span{color:var(--shell-muted);font-size:var(--type-meta);font-weight:700}.field-block input,.field-block select,.invoice-item-row input,.invoice-item-row select,.invoice-item-actions select{border:1px solid var(--shell-border);background:var(--shell-surface);width:100%;min-height:41px;color:var(--shell-text);font:inherit;border-radius:7px;outline:none;font-size:13px;transition:border-color .18s,box-shadow .18s,background .18s}.field-block input,.field-block select,.invoice-item-row input,.invoice-item-row select{padding:0 12px}.field-block input:focus,.field-block select:focus,.invoice-item-row input:focus,.invoice-item-row select:focus,.invoice-item-actions select:focus{border-color:#8ab5ff;box-shadow:0 0 0 4px #1768ff1a}.selected-client-card{border:1px solid var(--shell-border);background:color-mix(in srgb, var(--shell-primary) 4%, var(--shell-surface));border-radius:8px;gap:5px;margin-top:14px;padding:14px;display:grid}.selected-client-card strong{color:var(--shell-text);font-size:13px}.selected-client-card span,.selected-client-card small{color:var(--shell-muted);font-size:var(--type-meta)}.invoice-items-card{overflow:hidden}.invoice-items-card .invoice-items-table{gap:8px;display:grid;overflow-x:auto}.invoice-items-head,.invoice-item-row{grid-template-columns:minmax(260px,1.9fr) 74px 96px 118px 126px 40px;align-items:center;gap:9px;min-width:760px;display:grid}.invoice-items-head{color:var(--shell-muted);font-size:var(--type-caption);text-transform:uppercase;padding:0 4px 4px;font-weight:800}.invoice-item-row{border:1px solid var(--shell-border);background:color-mix(in srgb, var(--shell-bg) 55%, var(--shell-surface));border-radius:8px;padding:10px}.invoice-item-field{min-width:0;display:grid}.invoice-item-field>span,.invoice-item-total>span{display:none}.invoice-item-total{min-width:0;display:grid}.invoice-item-total strong{color:var(--shell-text);font-size:var(--type-body-sm);text-align:right}.invoice-item-row button{color:#df3030;background:#fff4f4;border:1px solid #ffd0d0;border-radius:7px;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex}.invoice-item-actions{flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px;display:flex}.secondary-soft-button{border:1px solid var(--shell-border);background:var(--shell-surface);min-height:39px;color:var(--shell-primary);padding:0 13px}.invoice-item-actions select{max-width:320px;padding:0 12px}.invoice-right-panel{gap:14px;display:grid;position:sticky;top:94px}.invoice-side-card{gap:13px;padding:17px;display:grid}.total-card{background:linear-gradient(135deg, var(--shell-primary), #0f4ebd);color:#fff;box-shadow:var(--shell-shadow-3);overflow:hidden}.total-card span,.total-card small{color:#ffffffc7;font-size:var(--type-meta)}.total-card strong{letter-spacing:0;font-size:27px;line-height:1}.side-card-title{color:var(--shell-text);align-items:center;gap:8px;font-size:13px;font-weight:800;display:flex}.publish-checklist{gap:10px;display:grid}.publish-checklist div{color:var(--shell-muted);font-size:var(--type-meta);align-items:center;gap:9px;display:flex}.publish-checklist span{border:2px solid #cad6e8;border-radius:50%;width:9px;height:9px}.publish-checklist .done{color:var(--shell-text)}.publish-checklist .done span{background:#20aa62;border-color:#20aa62;box-shadow:0 0 0 4px #20aa621f}.publish-checklist p{margin:0}.template-side-card{background:linear-gradient(135deg, color-mix(in srgb, #f5f8ff 85%, var(--shell-surface)), var(--shell-surface))}.template-side-card strong{color:var(--shell-text);font-size:13px}.template-side-card p{color:var(--shell-muted);font-size:var(--type-meta);margin:6px 0 0;line-height:1.5}.template-side-card button,.secondary-wide-button,.publish-dropdown>button{border:1px solid var(--shell-border);background:var(--shell-surface);min-height:38px;color:var(--shell-primary)}.primary-wide-button,.secondary-wide-button,.template-side-card button,.publish-dropdown>button{width:100%;padding:0 13px}.primary-wide-button{background:var(--shell-primary);color:#fff;border:1px solid #1768ff;min-height:43px;box-shadow:0 14px 24px #1768ff38}.publish-card{box-shadow:var(--shell-shadow-2)}.publish-dropdown{position:relative}.publish-menu{z-index:20;border:1px solid var(--shell-border);background:var(--shell-surface);width:250px;box-shadow:var(--shell-shadow-3);border-radius:8px;padding:7px;display:grid;position:absolute;bottom:calc(100% + 8px);right:0}.publish-menu button{min-height:34px;color:var(--shell-text);font-size:var(--type-meta);text-align:left;background:0 0;border:0;border-radius:6px;align-items:center;gap:8px;padding:0 9px;font-weight:650;display:flex}.publish-menu button:hover{background:color-mix(in srgb, var(--shell-primary) 8%, transparent)}.issued-card{background:linear-gradient(135deg, #f0fbf4, var(--shell-surface));border-color:#b8e6c8}.issued-card>span{color:#138047;font-size:var(--type-meta);text-transform:uppercase;font-weight:800}.issued-card>strong{color:var(--shell-text);font-size:17px}:root[data-theme=dark] .template-load-button,:root[data-theme=dark] .invoice-inline-notice button,:root[data-theme=dark] .selected-client-card,:root[data-theme=dark] .invoice-item-row,:root[data-theme=dark] .template-side-card,:root[data-theme=dark] .issued-card{background:var(--shell-surface)}:root[data-theme=dark] .invoice-inline-notice{color:#b7cff6;background:#13253f}:root[data-theme=dark] .section-heading span{background:#17345e}:root[data-theme=dark] .invoice-item-row button{background:#341c1c;border-color:#5e2b2b}@media (max-width:1260px){.invoice-editor-page{grid-template-columns:minmax(0,1fr) 320px}.invoice-items-head,.invoice-item-row{grid-template-columns:minmax(230px,1.7fr) 70px 88px 112px 118px 38px}}.invoice-history-page{grid-template-columns:minmax(0,1fr) 336px;align-items:start;gap:22px;display:grid}.invoice-history-main{gap:18px;min-width:0;display:grid}.invoice-history-hero{border:1px solid var(--shell-border);background:linear-gradient(135deg, var(--shell-surface), color-mix(in srgb, var(--shell-primary) 6%, var(--shell-surface)));min-height:132px;box-shadow:var(--shell-shadow-1);border-radius:8px;justify-content:space-between;align-items:center;gap:20px;padding:24px 26px;display:flex}.invoice-history-hero h1{color:var(--shell-text);letter-spacing:0;margin:0;font-size:28px;line-height:1.1}.invoice-history-hero p{max-width:600px;color:var(--shell-muted);margin:10px 0 0;font-size:13px;line-height:1.6}.history-create-button{border:1px solid var(--shell-primary);background:var(--shell-primary);color:#fff;white-space:nowrap;border-radius:7px;justify-content:center;align-items:center;gap:8px;min-height:43px;padding:0 16px;font-weight:750;transition:transform .18s,box-shadow .18s;display:inline-flex;box-shadow:0 14px 24px #1768ff38}.history-create-button:hover{transform:translateY(-1px);box-shadow:0 17px 28px #1768ff42}.invoice-list-card{border:1px solid var(--shell-border);background:var(--shell-surface);box-shadow:var(--shell-shadow-2);border-radius:8px;gap:14px;padding:18px;display:grid}.invoice-list-toolbar{justify-content:space-between;align-items:center;gap:14px;display:flex}.history-search{border:1px solid var(--shell-border);background:color-mix(in srgb, var(--shell-bg) 60%, var(--shell-surface));min-width:290px;min-height:42px;color:var(--shell-muted);border-radius:8px;align-items:center;gap:9px;padding:0 12px;display:flex}.history-search input{width:100%;color:var(--shell-text);font:inherit;font-size:var(--type-body-sm);background:0 0;border:0;outline:none}.history-search input::placeholder{color:var(--shell-muted)}.history-filter-tabs{flex-wrap:wrap;justify-content:flex-end;gap:7px;min-width:0;display:flex}.history-filter-tabs button{border:1px solid var(--shell-border);background:var(--shell-surface);min-height:34px;color:var(--shell-muted);font-size:var(--type-caption);border-radius:999px;padding:0 12px;font-weight:750;transition:background .18s,color .18s,border-color .18s,transform .18s}.history-filter-tabs button:hover{color:var(--shell-primary);border-color:#bfd3f4;transform:translateY(-1px)}.history-filter-tabs button.active{border-color:var(--shell-primary);background:color-mix(in srgb, var(--shell-primary) 10%, var(--shell-surface));color:var(--shell-primary)}.history-bulk-bar{color:var(--shell-text);box-shadow:var(--shell-shadow-1);background:#f0f6ff;border:1px solid #bdd3fb;border-radius:8px;align-items:center;gap:9px;padding:11px 13px;display:flex}.history-bulk-bar strong{color:var(--shell-primary);font-size:var(--type-meta);margin-right:auto}.history-bulk-bar button{background:var(--shell-surface);min-height:33px;color:var(--shell-primary);font-size:var(--type-caption);border:1px solid #c9d9f2;border-radius:7px;align-items:center;gap:7px;padding:0 10px;font-weight:750;display:inline-flex}.history-bulk-bar button.danger{color:#dd3030;border-color:#ffd1d1}.history-table-wrap{border:1px solid var(--shell-border);border-radius:8px;overflow-x:auto}.history-table{border-collapse:collapse;width:100%;min-width:900px}.history-table th{border-bottom:1px solid var(--shell-border);background:color-mix(in srgb, var(--shell-bg) 70%, var(--shell-surface));color:var(--shell-muted);font-size:var(--type-caption);text-align:left;text-transform:uppercase;white-space:nowrap;padding:13px 12px;font-weight:800}.history-table th:first-child,.history-table td:first-child{text-align:center;width:44px}.history-table td{border-bottom:1px solid var(--shell-border);color:var(--shell-text);font-size:var(--type-meta);vertical-align:middle;white-space:nowrap;padding:12px}.history-table tbody tr{cursor:pointer;transition:background .18s}.history-table tbody tr:hover,.history-table tbody tr.selected{background:color-mix(in srgb, var(--shell-primary) 5%, var(--shell-surface))}.history-table tbody tr:last-child td{border-bottom:0}.history-table tbody tr.selected td{border-bottom-color:#bfd3f4}.table-checkbox{background:var(--shell-surface);border:1px solid #c9d3e3;border-radius:5px;justify-content:center;align-items:center;width:17px;height:17px;display:inline-flex;box-shadow:inset 0 1px 1px #0f172a0a}.table-checkbox.checked{border-color:var(--shell-primary);background:var(--shell-primary);box-shadow:0 0 0 4px #1768ff1f}.table-checkbox.checked:after{content:"";border-bottom:2px solid #fff;border-left:2px solid #fff;width:7px;height:4px;transform:rotate(-45deg)translate(1px,-1px)}.history-invoice-link{color:inherit;font:inherit;text-align:left;background:0 0;border:0;gap:3px;display:grid}.history-invoice-link strong{color:var(--shell-text);font-size:var(--type-meta)}.history-invoice-link small{color:var(--shell-muted);font-size:var(--type-caption-sm)}.overdue-date{font-weight:800;color:#dc2626!important}.history-status{min-height:25px;font-size:var(--type-caption-sm);white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;padding:0 10px;font-weight:800;display:inline-flex}.history-status.pending{color:#1768ff;background:#eef5ff}.history-status.overdue{color:#dc2626;background:#fff1f1}.history-status.paid{color:#138047;background:#eaf9f0}.history-status.draft{color:#64748b;background:#f1f5f9}.history-status.cancelled{color:#667085;background:#f1f3f6}.history-row-actions{justify-content:flex-end;gap:5px;display:flex}.history-row-actions button{border:1px solid var(--shell-border);background:var(--shell-surface);width:31px;height:31px;color:var(--shell-muted);border-radius:7px;justify-content:center;align-items:center;transition:transform .18s,color .18s,border-color .18s;display:inline-flex}.history-row-actions button:hover{color:var(--shell-primary);border-color:#bfd3f4;transform:translateY(-1px)}.history-row-actions button.danger:hover{color:#dc2626;border-color:#ffd1d1}.history-row-actions button.payment-action.record,.dashboard-row-actions button.payment-action.record{color:#138047;background:#eaf9f0;border-color:#a9dfbf;box-shadow:0 4px 12px #1380471f}.history-row-actions button.payment-action.record:hover,.dashboard-row-actions button.payment-action.record:hover{color:#0f6f3d;background:#dcf6e7;border-color:#68c58f}.history-row-actions button.payment-action.reopen,.dashboard-row-actions button.payment-action.reopen{color:#ad6800;background:#fff7e8;border-color:#f0d4a0}.history-row-actions button.payment-action.reopen:hover,.dashboard-row-actions button.payment-action.reopen:hover{color:#8c5400;background:#ffefd1;border-color:#e4b85e}.history-row-actions button.cancellation-action.restore{color:#1768ff;background:#eef5ff;border-color:#bfd3f4}.history-row-actions button.cancellation-action.restore:hover{color:#0f56d9;background:#e1edff;border-color:#8ab4f8}.history-empty-state{border:1px dashed var(--shell-border);background:color-mix(in srgb, var(--shell-bg) 65%, var(--shell-surface));color:var(--shell-muted);text-align:center;border-radius:8px;justify-items:center;gap:10px;padding:54px 24px;display:grid}.history-empty-state strong{color:var(--shell-text);font-size:15px}.history-empty-state p{max-width:410px;font-size:var(--type-meta);margin:0;line-height:1.55}.history-empty-state button{border:1px solid var(--shell-primary);background:var(--shell-primary);color:#fff;border-radius:7px;min-height:38px;margin-top:4px;padding:0 13px;font-weight:750}.invoice-history-side{gap:14px;display:grid;position:sticky;top:94px}.history-stat-card{border:1px solid var(--shell-border);background:var(--shell-surface);min-height:132px;box-shadow:var(--shell-shadow-1);border-radius:8px;gap:8px;padding:18px;display:grid}.history-stat-card span{color:var(--shell-muted);font-size:var(--type-meta);font-weight:750}.history-stat-card strong{color:var(--shell-text);letter-spacing:0;font-size:25px;line-height:1}.history-stat-card small{color:var(--shell-muted);font-size:var(--type-caption);align-self:end}.history-stat-card.pending{background:linear-gradient(135deg, #eef5ff, var(--shell-surface))}.history-stat-card.overdue{background:linear-gradient(135deg, #fff2f2, var(--shell-surface))}.history-stat-card.paid{background:linear-gradient(135deg, #effbf4, var(--shell-surface))}.history-stat-card.draft{background:linear-gradient(135deg, #f8fafc, var(--shell-surface))}:root[data-theme=dark] .history-bulk-bar,:root[data-theme=dark] .history-stat-card.pending,:root[data-theme=dark] .history-stat-card.overdue,:root[data-theme=dark] .history-stat-card.paid,:root[data-theme=dark] .history-stat-card.draft,:root[data-theme=dark] .history-empty-state,:root[data-theme=dark] .history-table th{background:var(--shell-surface)}@media (max-width:1260px){.invoice-history-page{grid-template-columns:minmax(0,1fr) 320px}.invoice-list-toolbar{flex-direction:column;align-items:stretch}.history-filter-tabs{justify-content:flex-start}}.invoice-detail-page{grid-template-columns:minmax(0,1fr) 336px;align-items:start;gap:22px;display:grid}.invoice-detail-main{grid-area:1/1;gap:16px;min-width:0;display:grid}.invoice-detail-hero,.detail-info-card,.invoice-preview-card,.detail-side-card,.detail-action-card{border:1px solid var(--shell-border);background:var(--shell-surface);box-shadow:var(--shell-shadow-1);border-radius:8px}.invoice-detail-hero{gap:18px;padding:22px 24px;display:grid}.detail-back-button{border:1px solid var(--shell-border);background:color-mix(in srgb, var(--shell-bg) 55%, var(--shell-surface));width:fit-content;min-height:34px;color:var(--shell-muted);font-size:var(--type-meta);border-radius:7px;align-items:center;gap:8px;padding:0 10px;font-weight:750;display:inline-flex}.detail-title-row{justify-content:space-between;align-items:center;gap:20px;display:flex}.detail-title-row h1{color:var(--shell-text);margin:0;font-size:28px;line-height:1.1}.detail-title-row p{color:var(--shell-muted);font-size:var(--type-meta);margin:9px 0 0}.detail-status{min-height:31px;font-size:var(--type-caption);white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;padding:0 13px;font-weight:850;display:inline-flex}.detail-status.pending,.detail-action-card.pending{background:linear-gradient(135deg, #eef5ff, var(--shell-surface));color:#1768ff}.detail-status.overdue,.detail-action-card.overdue{background:linear-gradient(135deg, #fff1f1, var(--shell-surface));color:#dc2626}.detail-status.paid,.detail-action-card.paid{background:linear-gradient(135deg, #eaf9f0, var(--shell-surface));color:#138047}.detail-status.draft,.detail-action-card.draft{background:linear-gradient(135deg, #f1f5f9, var(--shell-surface));color:#64748b}.detail-status.cancelled,.detail-action-card.cancelled{background:linear-gradient(135deg, #f1f3f6, var(--shell-surface));color:#667085}.detail-info-card{box-shadow:var(--shell-shadow-2);grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;display:grid;overflow:hidden}.detail-info-card div{background:var(--shell-surface);gap:7px;padding:18px;display:grid}.detail-info-card span{color:var(--shell-muted);font-size:var(--type-caption);text-transform:uppercase;font-weight:800}.detail-info-card strong{color:var(--shell-text);text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.invoice-preview-card{box-shadow:var(--shell-shadow-2);grid-area:2/1;gap:16px;padding:18px;display:grid;overflow:hidden}.preview-card-head{justify-content:space-between;align-items:center;gap:16px;display:flex}.preview-card-head h2{color:var(--shell-text);margin:0;font-size:16px}.preview-card-head p{color:var(--shell-muted);font-size:var(--type-meta);margin:6px 0 0}.preview-card-head button{border:1px solid var(--shell-border);background:var(--shell-surface);min-height:38px;color:var(--shell-primary);border-radius:7px;align-items:center;gap:8px;padding:0 13px;font-weight:750;display:inline-flex}.invoice-preview-frame{border:1px solid var(--shell-border);background:color-mix(in srgb, var(--shell-bg) 70%, var(--shell-surface));border-radius:8px;justify-content:center;min-height:760px;padding:24px;display:flex;overflow:auto}.invoice-preview-frame .printable-document{transform-origin:top;flex:none;transform:scale(.82)}.invoice-preview-frame .printable-container{box-shadow:0 24px 48px #16223324}.invoice-detail-side{grid-area:1/2/span 2;gap:14px;display:grid;position:sticky;top:94px}.detail-action-card,.detail-side-card{gap:13px;padding:17px;display:grid}.detail-action-card{box-shadow:var(--shell-shadow-2)}.detail-action-card span{font-size:var(--type-meta);text-transform:uppercase;font-weight:800}.detail-action-card strong{color:var(--shell-text);font-size:22px;line-height:1.1}.detail-action-card p,.detail-side-card p{color:var(--shell-muted);font-size:var(--type-meta);margin:0;line-height:1.5}.payment-date-field{gap:6px;padding-top:2px;display:grid}.payment-date-field input{border:1px solid var(--shell-border);background:var(--shell-surface);width:100%;min-height:38px;color:var(--shell-text);font:inherit;border-radius:7px;padding:0 10px}.payment-date-field input:focus-visible{border-color:var(--shell-primary);outline:2px solid color-mix(in srgb, var(--shell-primary) 18%, transparent);outline-offset:1px}.detail-side-card h2{color:var(--shell-text);margin:0;font-size:14px}:root[data-theme=dark] .detail-status.pending,:root[data-theme=dark] .detail-status.overdue,:root[data-theme=dark] .detail-status.paid,:root[data-theme=dark] .detail-status.draft,:root[data-theme=dark] .detail-status.cancelled,:root[data-theme=dark] .detail-action-card.pending,:root[data-theme=dark] .detail-action-card.overdue,:root[data-theme=dark] .detail-action-card.paid,:root[data-theme=dark] .detail-action-card.draft,:root[data-theme=dark] .detail-action-card.cancelled,:root[data-theme=dark] .invoice-preview-frame{background:var(--shell-surface)}@media (max-width:1260px){.invoice-detail-page{grid-template-columns:minmax(0,1fr) 320px}.detail-info-card{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-preview-frame .printable-document{transform:scale(.76)}}.contacts-page{grid-template-columns:minmax(0,1fr) 336px;align-items:start;gap:22px;display:grid}.contacts-main{gap:18px;min-width:0;display:grid}.contacts-hero,.contacts-list-card,.contact-side-card{border:1px solid var(--shell-border);background:var(--shell-surface);box-shadow:var(--shell-shadow-1);border-radius:8px}.contacts-hero{background:linear-gradient(135deg, var(--shell-surface), color-mix(in srgb, var(--shell-primary) 5%, var(--shell-surface)));justify-content:space-between;align-items:center;gap:20px;min-height:132px;padding:24px 26px;display:flex}.contacts-hero h1{color:var(--shell-text);letter-spacing:0;margin:0;font-size:28px;line-height:1.1}.contacts-hero p{max-width:610px;color:var(--shell-muted);margin:10px 0 0;font-size:13px;line-height:1.6}.contacts-list-card{box-shadow:var(--shell-shadow-2);gap:14px;padding:18px;display:grid}.contacts-count{border:1px solid var(--shell-border);background:color-mix(in srgb, var(--shell-bg) 65%, var(--shell-surface));min-height:34px;color:var(--shell-muted);font-size:var(--type-caption);white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;padding:0 12px;font-weight:800;display:inline-flex}.contacts-table-wrap{border:1px solid var(--shell-border);border-radius:8px;overflow-x:auto}.contacts-table{border-collapse:collapse;width:100%;min-width:720px}.contacts-table th{border-bottom:1px solid var(--shell-border);background:color-mix(in srgb, var(--shell-bg) 70%, var(--shell-surface));color:var(--shell-muted);font-size:var(--type-caption);text-align:left;text-transform:uppercase;white-space:nowrap;padding:13px 12px;font-weight:800}.contacts-table td{border-bottom:1px solid var(--shell-border);color:var(--shell-text);font-size:var(--type-meta);vertical-align:middle;white-space:nowrap;padding:12px}.contacts-table tbody tr{cursor:pointer;transition:background .18s}.contacts-table tbody tr:hover,.contacts-table tbody tr.selected{background:color-mix(in srgb, var(--shell-primary) 5%, var(--shell-surface))}.contacts-table tbody tr:last-child td{border-bottom:0}.contact-name-cell{max-width:320px;color:inherit;font:inherit;text-align:left;background:0 0;border:0;grid-template-columns:minmax(0,1fr);gap:3px;display:grid}.contact-name-copy{gap:3px;min-width:0;display:grid}.contact-expand-icon{display:none}.contact-name-cell strong{color:var(--shell-text);font-size:var(--type-meta);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.contact-name-cell small{color:var(--shell-muted);font-size:var(--type-caption-sm);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.contacts-side{gap:14px;display:grid;position:sticky;top:94px}.contact-side-card{box-shadow:var(--shell-shadow-2);gap:16px;padding:17px;display:grid}.contact-side-card.empty{color:var(--shell-muted);text-align:center;justify-items:center;padding:34px 20px}.contact-side-card.danger{background:linear-gradient(135deg, #fff1f1, var(--shell-surface));border-color:#ffd1d1}.contact-side-card h2{color:var(--shell-text);margin:0;font-size:16px;line-height:1.2}.contact-side-card p{color:var(--shell-muted);font-size:var(--type-meta);margin:0;line-height:1.55}.contact-panel-head{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.contact-panel-head span{color:var(--shell-muted);font-size:var(--type-caption);text-transform:uppercase;margin-bottom:6px;font-weight:800;display:inline-flex}.contact-panel-head>button,.contact-avatar{border:1px solid var(--shell-border);background:color-mix(in srgb, var(--shell-bg) 65%, var(--shell-surface));width:34px;height:34px;color:var(--shell-muted);border-radius:8px;flex:none;justify-content:center;align-items:center;display:inline-flex}.contact-form,.contact-detail-list,.contact-quick-actions{gap:12px;display:grid}.contact-form-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;display:grid}.contact-form label{color:var(--shell-muted);font-size:var(--type-caption);text-transform:uppercase;gap:7px;font-weight:800;display:grid}.contact-form input,.contact-form select{border:1px solid var(--shell-border);background:color-mix(in srgb, var(--shell-bg) 55%, var(--shell-surface));width:100%;min-height:39px;color:var(--shell-text);font:inherit;font-size:var(--type-body-sm);border-radius:7px;outline:none;padding:0 11px}.contact-form input:focus,.contact-form select:focus{border-color:#9fc2f7;box-shadow:0 0 0 4px #1768ff1c}.contact-ares-button{min-height:37px;color:var(--shell-primary);font-size:var(--type-meta);background:#f0f6ff;border:1px solid #c9d9f2;border-radius:7px;justify-content:center;align-items:center;gap:8px;font-weight:800;display:inline-flex}.contact-panel-message{background:#f0f6ff;border:1px solid #c9d9f2;border-radius:8px;padding:10px 11px;font-weight:700;color:var(--shell-primary)!important;font-size:var(--type-meta)!important}.contact-panel-message.success{background:#effbf4;border-color:#bfebcf;color:#138047!important}.contact-form-actions{gap:9px;display:grid}.contact-detail-list{padding:2px 0}.contact-detail-list div{border-bottom:1px solid var(--shell-border);gap:5px;padding:11px 0;display:grid}.contact-detail-list div:last-child{border-bottom:0}.contact-detail-list span{color:var(--shell-muted);font-size:var(--type-caption);text-transform:uppercase;font-weight:800}.contact-detail-list strong{overflow-wrap:anywhere;color:var(--shell-text);font-size:var(--type-meta);line-height:1.35}.danger-wide-button{background:var(--shell-surface);color:#dc2626;min-height:39px;font-size:var(--type-meta);border:1px solid #ffd1d1;border-radius:7px;justify-content:center;align-items:center;gap:8px;padding:0 13px;font-weight:800;display:inline-flex}:root[data-theme=dark] .contacts-table th,:root[data-theme=dark] .contacts-count,:root[data-theme=dark] .contact-side-card.danger,:root[data-theme=dark] .contact-ares-button,:root[data-theme=dark] .contact-panel-message{background:var(--shell-surface)}@media (max-width:1260px){.contacts-page{grid-template-columns:minmax(0,1fr) 320px}.contact-form-grid{grid-template-columns:1fr}}.accounts-page{grid-template-columns:minmax(0,1fr) 336px;align-items:start;gap:22px;display:grid}.accounts-main{gap:18px;min-width:0;display:grid}.accounts-hero,.accounts-list-card,.account-side-card{border:1px solid var(--shell-border);background:var(--shell-surface);box-shadow:var(--shell-shadow-1);border-radius:8px}.accounts-hero{background:linear-gradient(135deg, var(--shell-surface), color-mix(in srgb, var(--shell-primary) 5%, var(--shell-surface)));justify-content:space-between;align-items:center;gap:20px;min-height:132px;padding:24px 26px;display:flex}.accounts-hero h1{color:var(--shell-text);margin:0;font-size:28px;line-height:1.1}.accounts-hero p{max-width:610px;color:var(--shell-muted);margin:10px 0 0;font-size:13px;line-height:1.6}.accounts-list-card{box-shadow:var(--shell-shadow-2);gap:14px;padding:18px;display:grid}.accounts-table-wrap{border:1px solid var(--shell-border);border-radius:8px;overflow-x:auto}.accounts-table{border-collapse:collapse;width:100%;min-width:860px}.accounts-table th{border-bottom:1px solid var(--shell-border);background:color-mix(in srgb, var(--shell-bg) 70%, var(--shell-surface));color:var(--shell-muted);font-size:var(--type-caption);text-align:left;text-transform:uppercase;white-space:nowrap;padding:13px 12px;font-weight:800}.accounts-table td{border-bottom:1px solid var(--shell-border);max-width:240px;color:var(--shell-text);font-size:var(--type-meta);text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;padding:12px;overflow:hidden}.accounts-table tbody tr{cursor:pointer;transition:background .18s}.accounts-table tbody tr:hover,.accounts-table tbody tr.selected{background:color-mix(in srgb, var(--shell-primary) 5%, var(--shell-surface))}.accounts-table tbody tr:last-child td{border-bottom:0}.account-name-cell{max-width:280px;color:inherit;font:inherit;text-align:left;background:0 0;border:0;gap:4px;display:grid}.account-name-cell strong{color:var(--shell-text);font-size:var(--type-meta);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.account-name-cell small{color:var(--shell-muted);font-size:var(--type-caption-sm);align-items:center;gap:5px;font-weight:750;display:inline-flex}.account-name-copy,.template-name-copy{gap:4px;min-width:0;display:grid}.account-expand-icon,.template-expand-icon,.history-row-actions .account-mobile-default-action,.account-mobile-detail,.history-row-actions .template-mobile-use-action,.history-row-actions .template-mobile-duplicate-action,.template-mobile-detail{display:none}.accounts-side{gap:14px;display:grid;position:sticky;top:94px}.account-side-card{box-shadow:var(--shell-shadow-2);gap:16px;padding:17px;display:grid}.account-side-card.empty{color:var(--shell-muted);text-align:center;justify-items:center;padding:34px 20px}.account-side-card.danger{background:linear-gradient(135deg, #fff1f1, var(--shell-surface));border-color:#ffd1d1}.account-side-card h2{color:var(--shell-text);margin:0;font-size:16px;line-height:1.2}.account-side-card p{color:var(--shell-muted);font-size:var(--type-meta);margin:0;line-height:1.55}.account-number-grid{grid-template-columns:.9fr 1.4fr .8fr;gap:10px;display:grid}.account-default-check{border:1px solid var(--shell-border);background:color-mix(in srgb, var(--shell-bg) 55%, var(--shell-surface));border-radius:8px;align-items:center;padding:11px;line-height:1.35;color:var(--shell-text)!important;font-size:var(--type-meta)!important;text-transform:none!important;gap:9px!important;display:flex!important}.account-default-check input{accent-color:var(--shell-primary);width:16px!important;min-height:16px!important;padding:0!important}.account-default-card{background:#f0f6ff;border:1px solid #c9d9f2;border-radius:8px;gap:6px;padding:14px;display:grid}.account-default-card span{color:var(--shell-primary);font-size:var(--type-caption);text-transform:uppercase;font-weight:800}.account-default-card strong{color:var(--shell-text);font-size:15px}:root[data-theme=dark] .accounts-table th,:root[data-theme=dark] .account-side-card.danger,:root[data-theme=dark] .account-default-card{background:var(--shell-surface)}@media (max-width:1260px){.accounts-page{grid-template-columns:minmax(0,1fr) 320px}.account-number-grid{grid-template-columns:1fr}}.recurring-templates-page{grid-template-columns:minmax(0,1fr) 336px;align-items:start;gap:22px;display:grid}.recurring-templates-main{gap:18px;min-width:0;display:grid}.recurring-templates-hero,.recurring-templates-list-card,.template-side-panel{border:1px solid var(--shell-border);background:var(--shell-surface);box-shadow:var(--shell-shadow-1);border-radius:8px}.recurring-templates-hero{background:linear-gradient(135deg, var(--shell-surface), color-mix(in srgb, var(--shell-primary) 5%, var(--shell-surface)));justify-content:space-between;align-items:center;gap:20px;min-height:132px;padding:24px 26px;display:flex}.recurring-templates-hero h1{color:var(--shell-text);margin:0;font-size:28px;line-height:1.1}.recurring-templates-hero p{max-width:650px;color:var(--shell-muted);margin:10px 0 0;font-size:13px;line-height:1.6}.recurring-templates-list-card{box-shadow:var(--shell-shadow-2);gap:14px;padding:18px;display:grid}.recurring-templates-table-wrap{border:1px solid var(--shell-border);border-radius:8px;overflow-x:auto}.recurring-templates-table{border-collapse:collapse;width:100%;min-width:820px}.recurring-templates-table th{border-bottom:1px solid var(--shell-border);background:color-mix(in srgb, var(--shell-bg) 70%, var(--shell-surface));color:var(--shell-muted);font-size:var(--type-caption);text-align:left;text-transform:uppercase;white-space:nowrap;padding:13px 12px;font-weight:800}.recurring-templates-table td{border-bottom:1px solid var(--shell-border);max-width:240px;color:var(--shell-text);font-size:var(--type-meta);text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;padding:12px;overflow:hidden}.recurring-templates-table tbody tr{cursor:pointer;transition:background .18s}.recurring-templates-table tbody tr:hover,.recurring-templates-table tbody tr.selected{background:color-mix(in srgb, var(--shell-primary) 5%, var(--shell-surface))}.recurring-templates-table tbody tr:last-child td{border-bottom:0}.template-name-cell{max-width:300px;color:inherit;font:inherit;text-align:left;background:0 0;border:0;gap:4px;display:grid}.template-name-cell strong{color:var(--shell-text);font-size:var(--type-meta);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.template-name-cell small{color:var(--shell-muted);font-size:var(--type-caption-sm);font-weight:750}.recurring-templates-side{gap:14px;display:grid;position:sticky;top:94px}.template-side-panel{box-shadow:var(--shell-shadow-2);gap:16px;padding:17px;display:grid}.template-side-panel.empty{color:var(--shell-muted);text-align:center;justify-items:center;padding:34px 20px}.template-side-panel.danger{background:linear-gradient(135deg, #fff1f1, var(--shell-surface));border-color:#ffd1d1}.template-side-panel h2{color:var(--shell-text);margin:0;font-size:16px;line-height:1.2}.template-side-panel p{color:var(--shell-muted);font-size:var(--type-meta);margin:0;line-height:1.55}.template-summary-card,.template-total-preview{background:#f0f6ff;border:1px solid #c9d9f2;border-radius:8px;gap:6px;padding:14px;display:grid}.template-summary-card span,.template-total-preview span{color:var(--shell-primary);font-size:var(--type-caption);text-transform:uppercase;font-weight:800}.template-summary-card strong,.template-total-preview strong{color:var(--shell-text);font-size:21px;line-height:1}.template-summary-card small{color:var(--shell-muted);font-size:var(--type-caption);line-height:1.45}.template-items-editor{gap:9px;display:grid}.template-items-head{justify-content:space-between;align-items:center;gap:10px;display:flex}.template-items-head strong{color:var(--shell-text);font-size:var(--type-meta)}.template-items-head button{min-height:30px;color:var(--shell-primary);font-size:var(--type-caption);background:#f0f6ff;border:1px solid #c9d9f2;border-radius:7px;align-items:center;gap:6px;padding:0 9px;font-weight:800;display:inline-flex}.template-item-row{grid-template-columns:minmax(0,1.4fr) 58px 70px 88px 32px;align-items:center;gap:7px;display:grid}.template-item-row input,.template-item-row select,.contact-form textarea{border:1px solid var(--shell-border);background:color-mix(in srgb, var(--shell-bg) 55%, var(--shell-surface));width:100%;min-height:36px;color:var(--shell-text);font:inherit;font-size:var(--type-meta);border-radius:7px;outline:none;padding:0 9px}.contact-form textarea{resize:vertical;min-height:74px;padding:10px 11px}.template-item-row button{background:var(--shell-surface);color:#dc2626;border:1px solid #ffd1d1;border-radius:7px;justify-content:center;align-items:center;width:32px;height:32px;display:inline-flex}:root[data-theme=dark] .recurring-templates-table th,:root[data-theme=dark] .template-side-panel.danger,:root[data-theme=dark] .template-summary-card,:root[data-theme=dark] .template-total-preview,:root[data-theme=dark] .template-items-head button{background:var(--shell-surface)}@media (max-width:1260px){.recurring-templates-page{grid-template-columns:minmax(0,1fr) 320px}.template-item-row{grid-template-columns:1fr}}@media (max-width:1370px){.accounts-page,.recurring-templates-page{grid-template-columns:minmax(0,1fr)}.accounts-side,.recurring-templates-side{scroll-margin-top:92px;position:static}.account-number-grid{grid-template-columns:.9fr 1.4fr .8fr}.template-item-row{grid-template-columns:minmax(0,1.4fr) 76px 86px 110px 36px}}@media (max-width:900px){.accounts-page,.accounts-main,.recurring-templates-page,.recurring-templates-main{gap:12px;min-width:0}.accounts-hero,.recurring-templates-hero{flex-direction:column;align-items:stretch;min-height:0;padding:20px}.accounts-hero h1,.recurring-templates-hero h1{font-size:22px}.accounts-hero p,.recurring-templates-hero p{font-size:var(--type-meta);margin-top:8px}.accounts-hero .history-create-button,.recurring-templates-hero .history-create-button{width:100%}.accounts-list-card,.account-side-card,.recurring-templates-list-card,.template-side-panel{padding:14px}.accounts-list-card .invoice-list-toolbar,.recurring-templates-list-card .invoice-list-toolbar{flex-direction:column;align-items:stretch}.accounts-list-card .history-search,.recurring-templates-list-card .history-search{width:100%;max-width:none}.accounts-table-wrap,.recurring-templates-table-wrap{border:0;border-radius:0;overflow:visible}.accounts-table,.recurring-templates-table{min-width:0;display:block}.accounts-table thead,.recurring-templates-table thead{display:none}.accounts-table tbody,.recurring-templates-table tbody{gap:10px;display:grid}.accounts-table tbody tr,.recurring-templates-table tbody tr{border:1px solid var(--shell-border);background:var(--shell-surface);border-radius:8px;grid-template-columns:minmax(0,1fr);gap:0;padding:0;display:grid}.accounts-table tbody tr.selected,.recurring-templates-table tbody tr.selected{border-color:color-mix(in srgb, var(--shell-primary) 42%, var(--shell-border))}.accounts-table td,.recurring-templates-table td{min-width:0;max-width:none;font-size:var(--type-meta);text-overflow:clip;white-space:normal;overflow-wrap:anywhere;border:0;gap:4px;padding:0;overflow:visible}.accounts-table td[data-label]:before,.recurring-templates-table td[data-label]:before{content:attr(data-label);color:var(--shell-muted);font-size:var(--type-caption);text-transform:uppercase;font-weight:800}.accounts-table td:first-child,.recurring-templates-table td:first-child{border-bottom:0;grid-column:1;padding:14px;display:grid}.accounts-table td:first-child:before,.recurring-templates-table td:first-child:before{display:none}.account-name-cell,.template-name-cell{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;max-width:none}.account-name-cell strong,.template-name-cell strong,.account-name-cell small,.template-name-cell small{white-space:normal;overflow-wrap:anywhere}.account-name-cell small,.template-name-cell small{display:none}.account-expand-icon,.template-expand-icon{color:var(--shell-muted);flex:none;transition:transform .18s;display:block}.accounts-table td[data-label]:not(:first-child),.recurring-templates-table td[data-label]:not(:first-child),.account-row-actions-cell,.template-row-actions-cell{display:none}.accounts-table tbody tr.mobile-expanded,.recurring-templates-table tbody tr.mobile-expanded{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 16px;padding:14px}.accounts-table tbody tr.mobile-expanded td:first-child,.recurring-templates-table tbody tr.mobile-expanded td:first-child{border-bottom:1px solid var(--shell-border);grid-column:1/-1;padding:0 0 11px}.accounts-table tbody tr.mobile-expanded td[data-label],.recurring-templates-table tbody tr.mobile-expanded td[data-label]{display:grid}.accounts-table tbody tr.mobile-expanded .account-name-cell small,.recurring-templates-table tbody tr.mobile-expanded .template-name-cell small{display:inline-flex}.accounts-table tbody tr.mobile-expanded .account-expand-icon,.recurring-templates-table tbody tr.mobile-expanded .template-expand-icon{transform:rotate(180deg)}.accounts-table tbody tr.mobile-expanded .account-row-actions-cell,.recurring-templates-table tbody tr.mobile-expanded .template-row-actions-cell{grid-column:1/-1;display:grid;border-top:1px solid var(--shell-border)!important;padding-top:10px!important}.account-row-actions-cell .history-row-actions,.template-row-actions-cell .history-row-actions{justify-content:flex-end}.history-row-actions .account-mobile-default-action,.history-row-actions .template-mobile-use-action,.history-row-actions .template-mobile-duplicate-action{display:inline-flex}.template-mobile-use-action{color:#08783e!important;background:#eafaf1!important;border-color:#b8e8cf!important}.accounts-side,.recurring-templates-side{min-width:0}.accounts-side.detail-mode,.recurring-templates-side.detail-mode,.accounts-side.empty-mode,.recurring-templates-side.empty-mode{display:none}.account-number-grid,.template-item-row{grid-template-columns:minmax(0,1fr)}.template-item-row{border:1px solid var(--shell-border);background:color-mix(in srgb, var(--shell-bg) 45%, var(--shell-surface));border-radius:8px;padding:12px}.template-item-row button{width:100%}}.accounting-documents-page{gap:16px;min-width:0;display:grid}.accounting-documents-hero{border:1px solid var(--shell-border);background:var(--shell-surface);box-shadow:var(--shell-shadow-1);border-radius:8px;justify-content:space-between;align-items:center;gap:24px;padding:28px;display:flex}.accounting-documents-hero h1{color:var(--shell-text);font-size:var(--type-page-title);margin:8px 0 6px}.accounting-documents-hero p{max-width:680px;color:var(--shell-muted);font-size:var(--type-body);margin:0;line-height:1.55}.accounting-back-button{width:fit-content;color:var(--shell-primary);font:inherit;font-size:var(--type-meta);cursor:pointer;background:0 0;border:0;align-items:center;gap:7px;margin:0 0 16px;padding:0;font-weight:700;display:flex}.accounting-notice{color:#1e3a5f;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;align-items:flex-start;gap:12px;padding:15px 18px;display:flex}.accounting-notice>svg{color:#2563eb;flex:none;margin-top:1px}.accounting-notice strong{font-size:var(--type-meta);display:block}.accounting-notice p{font-size:var(--type-caption);margin:4px 0 0;line-height:1.5}:root[data-theme=dark] .accounting-notice{color:#d7e8ff;background:#10233d;border-color:#234d82}.accounting-period-card{grid-template-columns:minmax(220px,1fr) auto;align-items:end;gap:20px;padding:22px;display:grid}.accounting-period-card h2,.accounting-table-header h2{color:var(--shell-text);font-size:var(--type-section-title);margin:0}.accounting-period-card p,.accounting-table-header p{color:var(--shell-muted);font-size:var(--type-caption);margin:5px 0 0}.accounting-period-controls,.accounting-date-range{align-items:end;gap:12px;display:flex}.accounting-period-controls label,.accounting-date-range label{color:var(--shell-muted);font-size:var(--type-caption);gap:6px;font-weight:700;display:grid}.accounting-period-controls select,.accounting-date-range input{border:1px solid var(--shell-border);background:var(--shell-surface);min-width:138px;height:42px;color:var(--shell-text);font:inherit;font-size:var(--type-body);border-radius:7px;padding:0 12px}.accounting-period-error{grid-column:1/-1;font-weight:700;color:#dc2626!important}.accounting-summary{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;display:grid}.accounting-summary article{border:1px solid var(--shell-border);background:var(--shell-surface);min-height:92px;box-shadow:var(--shell-shadow-1);border-radius:8px;align-items:center;gap:13px;padding:18px;display:flex}.accounting-summary-icon{background:var(--shell-primary-soft);width:42px;height:42px;color:var(--shell-primary);border-radius:50%;flex:0 0 42px;place-items:center;display:grid}.accounting-summary-icon.success{color:#16965b;background:#e7f8ef}.accounting-summary small,.accounting-summary strong{display:block}.accounting-summary small{color:var(--shell-muted);font-size:var(--type-caption);margin-bottom:4px}.accounting-summary strong{color:var(--shell-text);font-size:var(--type-card-title)}.accounting-table-card{min-width:0;padding:0 20px 20px}.accounting-table-header{border-bottom:1px solid var(--shell-border);justify-content:space-between;align-items:center;gap:16px;min-height:78px;display:flex}.accounting-table-header>span{border:1px solid var(--shell-border);color:var(--shell-muted);font-size:var(--type-caption);border-radius:999px;padding:7px 11px;font-weight:700}.accounting-table-wrap{overflow-x:auto}.accounting-table{border-collapse:collapse;width:100%}.accounting-table th,.accounting-table td{border-bottom:1px solid var(--shell-border);color:var(--shell-text);font-size:var(--type-body);text-align:left;vertical-align:middle;padding:14px 12px}.accounting-table th{color:var(--shell-muted);font-size:var(--type-caption-sm);text-transform:uppercase}.accounting-table th:first-child{width:135px}.accounting-table th:nth-child(2){width:120px}.accounting-table th:nth-child(4){width:125px}.accounting-table th:nth-child(5){width:150px}.accounting-table th:last-child{width:48px}.accounting-table td small{color:var(--shell-muted);font-size:var(--type-caption-sm);margin-top:4px;display:block}.accounting-table td:last-child button{border:1px solid var(--shell-border);background:var(--shell-surface);width:34px;height:34px;color:var(--shell-primary);cursor:pointer;border-radius:7px;place-items:center;display:grid}.accounting-empty{color:var(--shell-muted);text-align:center;justify-items:center;padding:54px 20px;display:grid}.accounting-empty svg{color:var(--shell-primary)}.accounting-empty h3{color:var(--shell-text);font-size:var(--type-card-title);margin:12px 0 5px}.accounting-empty p{max-width:470px;font-size:var(--type-caption);margin:0;line-height:1.5}@media (max-width:900px){.accounting-documents-hero,.accounting-period-card{grid-template-columns:1fr}.accounting-documents-hero{flex-direction:column;align-items:stretch;padding:22px}.accounting-documents-hero .primary-action{width:100%}.accounting-period-controls{flex-direction:column;align-items:stretch}.accounting-date-range{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.accounting-period-controls select,.accounting-date-range input{width:100%;min-width:0}.accounting-table-card{padding:0 12px 12px}.accounting-table thead{display:none}.accounting-table,.accounting-table tbody,.accounting-table tr,.accounting-table td{width:100%;display:block}.accounting-table tbody{gap:10px;padding-top:12px;display:grid}.accounting-table tr{border:1px solid var(--shell-border);border-radius:8px;grid-template-columns:1fr 1fr;gap:12px;padding:14px;display:grid}.accounting-table td{border:0;padding:0}.accounting-table td:before{color:var(--shell-muted);content:attr(data-label);font-size:var(--type-caption-sm);text-transform:uppercase;margin-bottom:4px;font-weight:700;display:block}.accounting-table td:nth-child(3){grid-area:1/1/auto/-1}.accounting-table td:last-child{justify-content:end;align-items:end;display:flex}.accounting-table td:last-child:before{display:none}}@media (max-width:480px){.accounting-documents-page{gap:12px}.accounting-documents-hero,.accounting-period-card{padding:18px}.accounting-date-range,.accounting-summary,.accounting-table tr{grid-template-columns:1fr}.accounting-table td:nth-child(3){grid-area:auto}.accounting-table td:last-child{justify-content:stretch}.accounting-table td:last-child button{width:100%}}@media (max-width:520px){.accounts-hero,.accounts-list-card,.account-side-card,.recurring-templates-hero,.recurring-templates-list-card,.template-side-panel{padding:14px}.accounts-table tbody tr.mobile-expanded,.recurring-templates-table tbody tr.mobile-expanded{grid-template-columns:minmax(0,1fr)}.accounts-table tbody tr.mobile-expanded td:first-child,.recurring-templates-table tbody tr.mobile-expanded td:first-child,.accounts-table tbody tr.mobile-expanded .account-row-actions-cell,.recurring-templates-table tbody tr.mobile-expanded .template-row-actions-cell{grid-column:1}}.settings-page{min-width:0;display:grid}.settings-shell-card{gap:18px;display:grid}.settings-page-hero{border:1px solid color-mix(in srgb, var(--shell-border) 82%, transparent);background:linear-gradient(135deg, color-mix(in srgb, var(--shell-primary) 7%, transparent), transparent 48%), var(--shell-surface);box-shadow:var(--shell-shadow-1);border-radius:10px;justify-content:space-between;align-items:flex-start;gap:20px;padding:24px 25px;display:flex}.settings-page-hero h1{letter-spacing:0;margin-top:5px;font-size:26px}.settings-page-hero p{max-width:660px;color:var(--shell-muted);margin-top:7px;font-size:13px;line-height:1.55}.settings-hero-badge{border:1px solid var(--shell-border);background:var(--shell-bg);min-width:142px;box-shadow:var(--shell-shadow-1);border-radius:8px;gap:3px;padding:13px 15px;display:grid}.settings-hero-badge span,.settings-backup-card span,.settings-panel-heading span,.settings-numbering-panel span{font-size:var(--type-caption);letter-spacing:.08em;text-transform:uppercase;font-weight:800}.settings-hero-badge span{color:var(--shell-muted)}.settings-hero-badge strong{color:var(--shell-text);font-size:13px}.settings-workspace{grid-template-columns:286px minmax(0,1fr);align-items:start;gap:18px;display:grid}.settings-section-nav{border:1px solid var(--shell-border);background:color-mix(in srgb, var(--shell-surface) 92%, transparent);box-shadow:var(--shell-shadow-1);border-radius:10px;gap:9px;padding:12px;display:grid;position:sticky;top:94px}.settings-section-nav button{width:100%;color:var(--shell-muted);text-align:left;background:0 0;border:1px solid #0000;border-radius:8px;grid-template-columns:34px minmax(0,1fr);gap:2px 10px;padding:11px;transition:all .16s;display:grid}.settings-section-nav button>span{background:var(--shell-bg);width:34px;height:34px;color:var(--shell-primary);border-radius:8px;grid-row:span 2;justify-content:center;align-items:center;display:inline-flex}.settings-section-nav strong,.settings-section-nav small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.settings-section-nav strong{color:var(--shell-text);font-size:var(--type-meta)}.settings-section-nav small{font-size:var(--type-caption)}.settings-section-nav button:hover,.settings-section-nav button.active{border-color:color-mix(in srgb, var(--shell-primary) 24%, var(--shell-border));background:color-mix(in srgb, var(--shell-primary) 7%, var(--shell-surface));transform:translateY(-1px);box-shadow:0 12px 28px #0f172a0f}.settings-panel{gap:15px;min-width:0;display:grid}.settings-panel-heading{justify-content:space-between;align-items:center;gap:12px;min-height:44px;display:flex}.settings-panel-heading span{color:var(--shell-primary)}.settings-panel-heading h2{color:var(--shell-muted);font-size:13px;font-weight:550}.settings-block{border:1px solid var(--shell-border);background:var(--shell-surface);box-shadow:var(--shell-shadow-1);border-radius:10px;gap:16px;padding:20px;display:grid}.settings-block-heading{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.settings-block-heading h3{letter-spacing:0;font-size:16px}.settings-block-heading p{max-width:650px;color:var(--shell-muted);font-size:var(--type-meta);margin-top:4px;line-height:1.55}.settings-block-heading>svg{color:var(--shell-primary)}.settings-form-grid input,.settings-form-grid select,.settings-textarea-label textarea,.settings-favorite-table input,.settings-favorite-table select,.template-color-control input[type=text]{border-color:var(--shell-border);background:var(--shell-surface);min-height:42px;color:var(--shell-text);border-radius:8px}.settings-textarea-label{color:var(--shell-muted);font-size:var(--type-meta);gap:8px;font-weight:700;display:grid}.settings-textarea-label textarea{resize:vertical;min-height:92px;padding:11px 12px}.settings-inline-note{border:1px solid color-mix(in srgb, var(--shell-primary) 18%, var(--shell-border));background:color-mix(in srgb, var(--shell-primary) 5%, var(--shell-surface));color:var(--shell-muted);font-size:var(--type-meta);border-radius:8px;padding:12px 14px;line-height:1.55}.primary-wide-button.compact,.secondary-wide-button.compact,.danger-wide-button.compact{white-space:nowrap;border-radius:8px;width:auto;min-height:38px;padding-inline:13px}.settings-numbering-panel{border:1px solid color-mix(in srgb, var(--shell-primary) 20%, var(--shell-border));background:linear-gradient(135deg, color-mix(in srgb, var(--shell-primary) 10%, var(--shell-surface)), var(--shell-surface));border-radius:10px;justify-content:space-between;align-items:center;padding:16px 17px;display:flex}.settings-numbering-panel span{color:var(--shell-muted)}.settings-numbering-panel strong{color:var(--shell-primary);margin-top:4px;font-size:24px;display:block}.settings-numbering-panel svg{color:var(--shell-primary)}.settings-favorite-table-wrap{border:1px solid var(--shell-border);border-radius:10px;overflow-x:auto}.settings-favorite-table{border-collapse:collapse;width:100%;min-width:620px}.settings-favorite-table th{background:var(--shell-bg);color:var(--shell-muted);font-size:var(--type-caption);letter-spacing:.06em;text-align:left;text-transform:uppercase;padding:11px 12px}.settings-favorite-table td{border-top:1px solid var(--shell-border);padding:10px 12px}.settings-favorite-table th:nth-child(2),.settings-favorite-table td:nth-child(2){width:120px}.settings-favorite-table th:nth-child(3),.settings-favorite-table td:nth-child(3){width:160px}.settings-favorite-table th:last-child,.settings-favorite-table td:last-child{text-align:right;width:56px}.settings-favorite-table button{border:1px solid var(--shell-border);background:var(--shell-surface);color:#df2f3f;border-radius:8px;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex}.settings-empty-row{border:1px dashed var(--shell-border);color:var(--shell-muted);font-size:var(--type-meta);border-radius:10px;align-items:center;gap:10px;padding:15px;display:flex}.settings-actions.compact{margin-top:0}.settings-template-workspace{grid-template-columns:minmax(360px,1fr) 382px}.settings-template-controls{gap:16px;min-width:0;display:grid}.template-preview-list{margin-top:0}.template-preview small{color:var(--shell-muted);font-size:var(--type-caption);line-height:1.35}.asset-upload-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.asset-upload input[type=file],.settings-backup-card input[type=file]{display:none}.settings-template-preview{border-color:var(--shell-border);background:var(--shell-bg);border-radius:10px;width:382px;height:540px;box-shadow:inset 0 1px #fff9}.settings-backup-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;display:grid}.settings-backup-card{border:1px solid var(--shell-border);background:var(--shell-bg);border-radius:10px;align-content:space-between;gap:15px;min-height:184px;padding:17px;display:grid}.settings-backup-card span{color:var(--shell-primary)}.settings-backup-card h4{margin-top:5px;font-size:15px}.settings-backup-card p{color:var(--shell-muted);font-size:var(--type-meta);margin-top:5px;line-height:1.55}.settings-backup-card.danger{border-color:color-mix(in srgb, #ef4444 30%, var(--shell-border));background:color-mix(in srgb, #ef4444 5%, var(--shell-bg))}.settings-confirm-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.settings-confirm-row span{color:var(--shell-muted);font-size:var(--type-meta);letter-spacing:0;text-transform:none;flex-basis:100%;font-weight:600}.invoice-note{border:1px solid color-mix(in srgb, var(--invoice-accent) 22%, #dce4f0);background:color-mix(in srgb, var(--invoice-accent) 5%, #fff);border-radius:10px;margin-top:22px;padding:14px 16px}.invoice-note span,.invoice-stamp span{color:#64748b;font-size:var(--type-caption);text-transform:uppercase;font-weight:700;display:block}.invoice-note p{color:#1f2937;font-size:var(--type-meta);margin-top:5px;line-height:1.5}.invoice-stamp{justify-items:center;gap:6px;display:grid}.invoice-stamp img{object-fit:contain;max-width:112px;max-height:72px}.design-qa-page{color:#061a3f;background:#eef3fb;grid-template-columns:280px minmax(0,1fr);min-height:100vh;display:grid}.design-qa-sidebar{background:#fff;border-right:1px solid #d8e2f0;align-content:start;gap:14px;height:100vh;padding:24px;display:grid;position:sticky;top:0;overflow-y:auto}.design-qa-sidebar span{color:#1262ff;font-size:var(--type-meta);letter-spacing:.08em;text-transform:uppercase;font-weight:800}.design-qa-sidebar h1{font-size:20px;line-height:1.2}.design-qa-sidebar p{color:#61708a;font-size:12px;line-height:1.55}.design-qa-sidebar nav{gap:8px;margin-top:6px;display:grid}.design-qa-sidebar a{color:#1d3357;text-transform:capitalize;border:1px solid #dbe5f3;border-radius:8px;padding:10px 12px;font-size:13px;font-weight:700}.design-qa-sidebar a.active{color:#1262ff;background:#eaf1ff;border-color:#1262ff}.design-qa-canvas{justify-content:center;align-items:flex-start;min-width:0;padding:34px;display:flex;overflow:auto}@media print{.design-qa-page{background:#fff;display:block}.design-qa-canvas{padding:0;overflow:visible}}.settings-page-invoice{min-width:0}.settings-invoice-approved{gap:16px;min-width:0;display:grid}.settings-invoice-title{justify-content:space-between;align-items:flex-end;min-height:54px;display:flex}.settings-invoice-title h1{letter-spacing:0;font-size:28px;line-height:1.1}.settings-invoice-title p{color:var(--shell-muted);margin-top:7px;font-size:13px}.settings-invoice-grid{grid-template-columns:minmax(0,1fr) 420px;align-items:start;gap:18px;display:grid}.settings-invoice-left{gap:14px;min-width:0;display:grid}.settings-invoice-card,.settings-invoice-preview-card{border:1px solid var(--shell-border);background:color-mix(in srgb, var(--shell-surface) 96%, transparent);box-shadow:var(--shell-shadow-1);border-radius:10px}.settings-invoice-card{gap:15px;min-width:0;padding:18px 18px 16px;display:grid}.settings-invoice-card h2,.settings-invoice-preview-card h2{color:var(--shell-text);letter-spacing:0;font-size:16px}.settings-invoice-numbering{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 16px;display:grid}.settings-invoice-numbering label,.settings-invoice-custom-color,.settings-invoice-upload,.settings-invoice-appearance>div{min-width:0;color:var(--shell-muted);font-size:var(--type-meta);gap:7px;font-weight:700;display:grid}.settings-invoice-numbering label:nth-last-child(-n+2){grid-column:span 2}.settings-invoice-numbering input,.settings-invoice-numbering select,.settings-invoice-favorite-row input,.settings-invoice-favorite-row select,.settings-invoice-custom-color input[type=text]{border:1px solid var(--shell-border);background:var(--shell-surface);width:100%;min-height:42px;color:var(--shell-text);border-radius:8px;font-size:13px}.settings-invoice-numbering input,.settings-invoice-favorite-row input,.settings-invoice-custom-color input[type=text]{padding:0 12px}.settings-invoice-toggle button{background:#dce6f4;border:0;border-radius:999px;width:44px;height:26px;padding:3px}.settings-invoice-toggle button span{background:#fff;border-radius:999px;width:20px;height:20px;transition:transform .16s;display:block;box-shadow:0 2px 5px #0f172a2e}.settings-invoice-toggle button.active{background:var(--shell-primary)}.settings-invoice-toggle button.active span{transform:translate(18px)}.settings-invoice-card-head{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.settings-invoice-card-head p{color:var(--shell-muted);font-size:var(--type-meta);margin-top:6px}.settings-invoice-add{border:1px solid var(--shell-border);background:var(--shell-surface);min-height:36px;color:var(--shell-primary);font-size:var(--type-meta);border-radius:8px;align-items:center;gap:7px;padding:0 13px;font-weight:800;display:inline-flex}.settings-invoice-favorites{gap:9px;display:grid}.settings-invoice-favorites-head,.settings-invoice-favorite-row{grid-template-columns:22px minmax(130px,1fr) 92px 118px 36px;align-items:center;gap:10px;display:grid}.settings-invoice-favorites-head{color:var(--shell-muted);font-size:var(--type-caption);font-weight:800}.settings-invoice-favorite-row>svg{color:var(--shell-muted)}.settings-invoice-favorite-field{min-width:0;display:grid}.settings-invoice-favorite-field>span{display:none}.settings-invoice-favorite-row button{border:1px solid color-mix(in srgb, #ef4444 24%, var(--shell-border));background:color-mix(in srgb, #ef4444 5%, var(--shell-surface));color:#ef4444;border-radius:8px;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex}.settings-invoice-appearance{grid-template-columns:minmax(0,1fr) 210px;align-items:start;gap:24px;display:grid}.settings-invoice-template-picks{grid-template-columns:repeat(auto-fill,76px);gap:10px;display:grid}.settings-invoice-template-picks button{color:var(--shell-primary);font-size:var(--type-meta);background:0 0;border:0;justify-items:center;gap:7px;padding:0;font-weight:800;display:grid;position:relative}.template-mini{border:1px solid var(--shell-border);background:linear-gradient(#dfe7f2 0 0) 13px 14px/34px 3px no-repeat,linear-gradient(#dfe7f2 0 0) 13px 23px/50px 3px no-repeat,linear-gradient(#dfe7f2 0 0) 13px 34px/44px 3px no-repeat,#fff;border-radius:7px;width:76px;height:64px;display:block;position:relative;overflow:hidden}.template-mini:before,.template-mini:after{content:"";display:block;position:absolute}.template-mini i{width:26px;height:3px;position:absolute;top:9px;right:8px}.template-mini-alfa{background:linear-gradient(#e7edf6 0 0) 10px 11px / 20px 4px no-repeat, linear-gradient(var(--shell-primary) 0 0) 47px 11px / 19px 3px no-repeat, linear-gradient(#dfe7f2 0 0) 10px 23px / 25px 2px no-repeat, linear-gradient(#dfe7f2 0 0) 42px 23px / 25px 2px no-repeat, linear-gradient(#eaf0f7 0 0) 10px 36px / 56px 2px no-repeat, linear-gradient(#eaf0f7 0 0) 10px 44px / 56px 2px no-repeat, linear-gradient(color-mix(in srgb, var(--shell-primary) 11%, #fff) 0 0) 10px 52px / 56px 6px no-repeat, #fff}.template-mini-beta{background:linear-gradient(var(--shell-primary) 0 0) 0 0 / 12px 100% no-repeat, linear-gradient(#dfe7f2 0 0) 20px 12px / 32px 3px no-repeat, linear-gradient(#e7edf6 0 0) 20px 23px / 42px 2px no-repeat, linear-gradient(#e7edf6 0 0) 20px 32px / 42px 2px no-repeat, linear-gradient(color-mix(in srgb, var(--shell-primary) 12%, #fff) 0 0) 20px 47px / 46px 7px no-repeat, #fff}.template-mini-gama{background:linear-gradient(#f8f1f4 0 0) 0 0/15px 100% no-repeat,linear-gradient(#8a0f3d 0 0) 5px 7px/3px 50px no-repeat,linear-gradient(#dfe7f2 0 0) 23px 12px/30px 3px no-repeat,linear-gradient(#e7edf6 0 0) 23px 24px/42px 2px no-repeat,linear-gradient(#e7edf6 0 0) 23px 33px/42px 2px no-repeat,radial-gradient(circle at 57px 51px,#8a0f3d 0 5px,#0000 6px),#fff}.template-mini-delta{background:linear-gradient(#061a3f 0 0) 0 0/100% 20px no-repeat,linear-gradient(#ff5548 0 0) 9px 27px/28px 4px no-repeat,linear-gradient(#dfe7f2 0 0) 9px 39px/58px 2px no-repeat,linear-gradient(#e7edf6 0 0) 9px 48px/58px 2px no-repeat,linear-gradient(#ffebe9 0 0) 43px 25px/23px 15px no-repeat,#fff}.template-mini-epsilon{background:linear-gradient(#061f3d 0 0) 0 0/25px 100% no-repeat,linear-gradient(#0b6bff 0 0) 32px 14px/30px 4px no-repeat,linear-gradient(#dfe7f2 0 0) 32px 29px/34px 2px no-repeat,linear-gradient(#e7edf6 0 0) 32px 39px/34px 2px no-repeat,linear-gradient(#dfecff 0 0) 32px 49px/34px 8px no-repeat,#fff}.settings-invoice-template-picks button.active .template-mini{border-color:var(--shell-primary);box-shadow:0 0 0 2px color-mix(in srgb, var(--shell-primary) 16%, transparent)}.settings-invoice-template-picks em{background:var(--shell-primary);color:#fff;border-radius:999px;justify-content:center;align-items:center;width:20px;height:20px;font-style:normal;display:inline-flex;position:absolute;top:-7px;right:-5px}.settings-invoice-swatches{flex-wrap:wrap;gap:9px;display:flex}.settings-invoice-swatches button,.settings-invoice-custom-color input[type=color]{border:1px solid var(--shell-border);border-radius:7px;width:28px;height:28px}.settings-invoice-custom-color{grid-template-columns:34px minmax(0,1fr);align-items:center;margin-top:12px}.settings-invoice-custom-color span,.settings-invoice-custom-color{color:var(--shell-muted)}.settings-invoice-custom-color input[type=color]{padding:3px}.settings-invoice-custom-color input[type=text]{grid-column:2}.settings-invoice-upload-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;display:grid}.settings-invoice-closing-note{color:var(--shell-primary);gap:7px;margin-top:16px;font-weight:700;display:grid}.settings-invoice-closing-note input{border:1px solid var(--shell-border);background:var(--shell-surface);min-height:38px;color:var(--shell-text);border-radius:8px;padding:0 12px;font-weight:500}.settings-invoice-upload button{border:1px solid var(--shell-border);background:var(--shell-surface);min-height:38px;color:var(--shell-primary);border-radius:8px;justify-content:center;align-items:center;gap:8px;font-weight:800;display:inline-flex}.settings-invoice-upload small{color:var(--shell-muted);font-size:var(--type-caption);font-weight:500}.settings-invoice-upload-preview{border:1px solid var(--shell-border);background:var(--shell-surface-soft);border-radius:8px;grid-template-columns:44px minmax(0,1fr) 30px;align-items:center;gap:6px;min-height:56px;padding:7px;display:grid}.settings-invoice-upload-preview img{object-fit:contain;background-color:#fff;background-image:linear-gradient(45deg,#eef1f5 25%,#0000 25%),linear-gradient(-45deg,#eef1f5 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#eef1f5 75%),linear-gradient(-45deg,#0000 75%,#eef1f5 75%);background-position:0 0,0 5px,5px -5px,-5px 0;background-size:10px 10px;border-radius:5px;width:44px;height:40px;padding:3px}.settings-invoice-upload-preview strong{color:#15803d;font-size:var(--type-meta);align-items:center;gap:5px;display:inline-flex}.settings-invoice-upload-preview button{color:#dc2626;width:30px;min-height:30px;padding:0}.settings-invoice-upload .settings-invoice-upload-message{color:#dc2626;font-weight:700}.settings-invoice-contrast-note{max-width:250px;color:var(--shell-muted);font-size:var(--type-meta);margin-top:7px;line-height:1.4;display:block}.settings-invoice-upload input[type=file]{display:none}.settings-invoice-preview-card{gap:13px;min-width:0;padding:16px;display:grid}.settings-invoice-preview-frame{border:1px solid var(--shell-border);background:var(--shell-bg);border-radius:8px;justify-content:center;width:100%;min-width:0;height:552px;display:flex;overflow:hidden}.settings-invoice-preview-frame .printable-container{transform-origin:top;flex:0 0 794px;width:794px;min-height:1123px;transform:scale(.49)}.settings-invoice-save-row{justify-content:flex-end;gap:10px;padding:12px 0 2px;display:flex}.settings-invoice-save-row .primary-wide-button,.settings-invoice-save-row .secondary-wide-button{border-radius:8px;width:auto;min-height:42px;padding-inline:18px}:root[data-theme=dark] .settings-page-hero,:root[data-theme=dark] .settings-section-nav,:root[data-theme=dark] .settings-block,:root[data-theme=dark] .settings-hero-badge{background:var(--shell-surface)}:root[data-theme=dark] .settings-backup-card,:root[data-theme=dark] .settings-numbering-panel,:root[data-theme=dark] .settings-inline-note,:root[data-theme=dark] .settings-section-nav button>span{background:#111d31}:root[data-theme=dark] .settings-invoice-card,:root[data-theme=dark] .settings-invoice-preview-card,:root[data-theme=dark] .settings-invoice-numbering input,:root[data-theme=dark] .settings-invoice-numbering select,:root[data-theme=dark] .settings-invoice-favorite-row input,:root[data-theme=dark] .settings-invoice-favorite-row select,:root[data-theme=dark] .settings-invoice-custom-color input[type=text],:root[data-theme=dark] .settings-invoice-upload button{background:var(--shell-surface)}.settings-general-approved{gap:16px;min-width:0;display:grid}.settings-general-card{gap:24px;padding:24px 28px 22px}.settings-general-head{justify-content:space-between;align-items:center;display:flex}.settings-general-head h2{font-size:20px}.settings-general-saved{color:#16a34a;align-items:center;gap:7px;font-size:14px;display:inline-flex}.settings-general-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 44px;display:grid}.settings-general-field{color:var(--shell-text);align-content:start;gap:9px;font-size:14px;font-weight:500;display:grid}.settings-general-field select{border:1px solid var(--shell-border);background:var(--shell-surface);width:100%;min-height:47px;color:var(--shell-text);border-radius:10px;padding:0 12px;font-size:14px}.settings-general-field small{color:var(--shell-muted);font-size:13px;font-weight:400}.settings-general-theme{max-width:calc(50% - 22px)}.settings-general-theme-picks{border:1px solid var(--shell-border);background:var(--shell-surface);border-radius:10px;grid-template-columns:repeat(3,minmax(0,1fr));display:grid;overflow:hidden}.settings-general-theme-picks button{min-height:45px;color:var(--shell-text);cursor:pointer;background:0 0;border:0;font-size:14px}.settings-general-theme-picks button+button{border-left:1px solid var(--shell-border)}.settings-general-theme-picks button.active{box-shadow:inset 0 0 0 1.5px var(--shell-primary);background:var(--shell-surface);color:var(--shell-primary);border-radius:9px;font-weight:600}.settings-general-footer{border-top:1px solid var(--shell-border);justify-content:flex-end;gap:12px;padding-top:20px;display:flex}.settings-general-save,.settings-general-cancel{cursor:pointer;border-radius:10px;min-height:45px;padding:0 22px;font-size:14px;font-weight:500}.settings-general-cancel{border:1px solid var(--shell-border);background:var(--shell-surface);color:var(--shell-text)}.settings-general-cancel:disabled{opacity:.55;cursor:default}.settings-general-save{background:var(--shell-primary);color:#fff;border:0}.settings-general-save:hover{background:var(--shell-primary-hover)}@media (max-width:1180px){.settings-general-grid{grid-template-columns:1fr}.settings-general-theme{max-width:none}}.settings-general-field.wide{grid-column:1/-1}.settings-general-field input{border:1px solid var(--shell-border);background:var(--shell-surface);width:100%;min-height:47px;color:var(--shell-text);border-radius:10px;padding:0 14px;font-size:14px}.settings-company-head{gap:6px;display:grid}.settings-company-head h2{font-size:20px}.settings-company-head p{color:var(--shell-muted);font-size:14px;font-weight:400}.settings-company-ico{border:1px solid var(--shell-border);background:var(--shell-surface);border-radius:10px;gap:0;display:flex;overflow:hidden}.settings-company-ico input{background:0 0;border:0;border-radius:0;flex:1;min-height:45px}.settings-company-ico button{border:1px solid var(--shell-border);background:var(--shell-surface);color:var(--shell-text);white-space:nowrap;cursor:pointer;border-radius:8px;margin:5px;padding:0 16px;font-size:13px;font-weight:500}.settings-company-verified{color:#16a34a;align-items:center;gap:7px;font-size:13px;font-weight:400;display:inline-flex}.settings-company-hint{color:var(--shell-muted);font-size:13px;font-weight:400;line-height:1.5}.settings-company-hint button{color:var(--shell-primary);font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-weight:700}.settings-backup-columns{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:18px;display:grid}.settings-backup-panel{align-content:start;gap:14px;padding:24px 26px 22px}.settings-backup-panel h2{font-size:18px}.settings-backup-text{color:var(--shell-muted);font-size:14px;line-height:1.5}.settings-backup-last{color:var(--shell-text);align-items:center;gap:9px;font-size:14px;display:flex}.settings-backup-last strong{font-weight:600}.settings-backup-actions{gap:12px;margin-top:auto;display:flex}.settings-backup-actions button,.settings-backup-restore button{align-items:center;gap:8px;display:inline-flex}.settings-backup-more{display:flex}.settings-backup-more button{align-items:center;gap:8px;font-size:13px;display:inline-flex}.settings-backup-dropzone{border:1.5px dashed var(--shell-border);background:var(--shell-surface);border-radius:12px;justify-items:center;gap:10px;padding:24px 16px;display:grid}.settings-backup-dropzone.drag-over{border-color:var(--shell-primary)}.settings-backup-dropzone span{color:var(--shell-muted);font-size:13px}.settings-backup-panel input[type=file]{display:none}.settings-backup-hint{color:var(--shell-muted);font-size:13px}.settings-backup-warning{color:#dc2626;align-items:center;gap:8px;font-size:13px;display:flex}.settings-backup-restore{justify-content:flex-end;display:flex}.settings-backup-restore button:disabled{opacity:.55;cursor:default}.settings-accounting-panel{justify-items:stretch}.settings-accounting-icon{min-height:68px;color:var(--shell-primary);place-items:center;display:grid}.settings-accounting-text{text-align:center}.settings-accounting-year{gap:7px;display:grid}.settings-accounting-year span{color:var(--shell-muted);font-size:13px;font-weight:600}.settings-accounting-year select{border:1px solid var(--shell-border);background:var(--shell-surface);width:100%;min-width:0;height:44px;color:var(--shell-text);font:inherit;border-radius:10px;padding:0 12px;font-size:14px}.settings-accounting-total{color:var(--shell-muted);margin:0;font-size:14px}.settings-accounting-total strong{color:var(--shell-text);margin-left:4px;font-weight:600}.settings-accounting-download{justify-content:center;align-items:center;gap:8px;width:fit-content;margin:0 auto;display:inline-flex}.settings-accounting-download:disabled{opacity:.55;cursor:default}.settings-accounting-disclaimer{color:var(--shell-muted);text-align:center;margin:auto 0 0;font-size:12px}.settings-backup-confirm{border:1px solid var(--shell-border);color:var(--shell-text);border-radius:10px;gap:10px;padding:13px 15px;font-size:13px;display:grid}.settings-backup-confirm.danger{border-color:#fecaca}.settings-backup-confirm>div{gap:10px;display:flex}.settings-backup-contents{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 44px;display:grid}.settings-backup-content-item{border-bottom:1px solid var(--shell-border);align-items:flex-start;gap:13px;padding:11px 0;display:flex}.settings-backup-content-item svg{color:var(--shell-text);flex:none;margin-top:2px}.settings-backup-content-item div{gap:3px;display:grid}.settings-backup-content-item strong{font-size:14px;font-weight:600}.settings-backup-content-item span{color:var(--shell-muted);font-size:13px}.settings-backup-danger h2{color:#dc2626}.settings-backup-danger-row{justify-content:space-between;align-items:flex-start;gap:18px;display:flex}.settings-backup-danger-row>div{gap:8px;display:grid}.settings-backup-delete{background:var(--shell-surface);color:#dc2626;white-space:nowrap;cursor:pointer;border:1px solid #fecaca;border-radius:10px;align-items:center;gap:8px;min-height:45px;padding:0 20px;font-size:14px;font-weight:500;display:inline-flex}.settings-backup-delete.solid{color:#fff;background:#dc2626;border-color:#dc2626}.settings-backup-danger-note{color:var(--shell-muted);text-align:right;font-size:13px}@media (max-width:1180px){.settings-backup-columns,.settings-backup-contents{grid-template-columns:1fr}}.onb-screen{z-index:9999;background:var(--shell-bg,#f1f5f9);color:var(--shell-text,#0f172a);flex-direction:column;display:flex;position:fixed;inset:0;overflow:hidden}.onb-topbar{background:var(--shell-surface,#fff);border-bottom:1px solid var(--shell-border,#e2e8f0);grid-template-columns:1fr auto 1fr;align-items:center;min-height:74px;padding:0 28px;display:grid}.onb-topbar .brand{align-items:center;gap:11px;font-size:19px;font-weight:700;display:flex}.onb-stepper,.onb-stepper-item{align-items:center;gap:14px;display:flex}.onb-step{color:var(--shell-muted,#64748b);align-items:center;gap:10px;font-size:14px;display:flex}.onb-step-dot{border:1.5px solid var(--shell-border,#cbd5e1);background:var(--shell-surface,#fff);border-radius:999px;justify-content:center;align-items:center;width:30px;height:30px;font-size:14px;font-weight:600;display:inline-flex}.onb-step.active{color:var(--shell-primary,#2563eb);font-weight:600}.onb-step.active .onb-step-dot{border-color:var(--shell-primary,#2563eb);background:var(--shell-primary,#2563eb);color:#fff}.onb-step.done{color:var(--shell-text,#0f172a)}.onb-step.done .onb-step-dot{border-color:var(--shell-primary,#2563eb);background:var(--shell-primary,#2563eb);color:#fff}.onb-step-line{background:var(--shell-border,#cbd5e1);width:74px;height:1.5px}.onb-main{flex:1;padding:34px 44px;overflow-y:auto}.onb-columns{grid-template-columns:minmax(0,1fr) 420px;align-items:start;gap:40px;max-width:1400px;margin:0 auto;display:grid}.onb-form{align-content:start;gap:20px;display:grid}.onb-form h1{letter-spacing:0;font-size:27px}.onb-subtitle{color:var(--shell-muted,#64748b);margin-top:-12px;font-size:15px}.onb-card{background:var(--shell-surface,#fff);border:1px solid var(--shell-border,#e2e8f0);border-radius:14px;gap:20px;padding:24px 26px;display:grid}.onb-field{color:var(--shell-text,#0f172a);gap:9px;font-size:14px;font-weight:500;display:grid}.onb-field input,.onb-field select{border:1px solid var(--shell-border,#e2e8f0);background:var(--shell-surface,#fff);width:100%;min-height:47px;color:var(--shell-text,#0f172a);border-radius:10px;padding:0 14px;font-size:14px}.onb-field-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;display:grid}.onb-account-row{grid-template-columns:minmax(0,1fr) auto 130px;align-items:center;gap:10px;display:grid}.onb-account-row span{color:var(--shell-muted,#64748b)}.onb-hint{color:var(--shell-primary,#2563eb);font-size:13px}.onb-error{color:#dc2626;font-size:13px;font-weight:400}.onb-errors{color:#dc2626;background:#fef2f2;border:1px solid #fecaca;border-radius:10px;gap:5px;padding:12px 15px;font-size:13px;display:grid}.onb-aside{align-content:start;gap:14px;display:grid}.onb-aside h2{letter-spacing:0;font-size:17px}.onb-aside-card{background:var(--shell-surface,#fff);border:1px solid var(--shell-border,#e2e8f0);border-radius:14px;gap:8px;padding:22px 24px;font-size:14px;display:grid}.onb-aside-card h2{margin-bottom:8px}.onb-aside-kicker{color:var(--shell-primary,#2563eb);font-size:var(--type-meta);letter-spacing:.08em;text-transform:uppercase;border-bottom:1.5px solid var(--shell-primary,#2563eb);padding-bottom:7px;font-weight:700}.onb-aside-card.plain .onb-aside-kicker{color:var(--shell-muted,#64748b);letter-spacing:.02em;text-transform:none;border-bottom:0;padding-bottom:0;font-size:13px;font-weight:500}.onb-aside-card strong{margin-top:6px;font-size:15px}.onb-aside-card p{color:var(--shell-text,#0f172a);font-weight:400}.onb-aside-card hr{border:0;border-top:1px solid var(--shell-border,#e2e8f0);margin:6px 0}.onb-aside-value{font-size:15px;font-weight:600}.onb-chip{color:var(--shell-primary,#2563eb);background:#eff6ff;border-radius:7px;justify-self:start;padding:5px 11px;font-size:13px;font-weight:600}.onb-swatches{align-items:center;gap:10px;display:flex}.onb-swatches button{border:1px solid var(--shell-border,#e2e8f0);cursor:pointer;border-radius:10px;width:44px;height:44px}.onb-swatches button.active{box-shadow:0 0 0 2px var(--shell-surface,#fff), 0 0 0 4px var(--shell-primary,#2563eb)}.onb-swatches .onb-swatch-picker{border:1px solid var(--shell-border,#e2e8f0);background:var(--shell-surface,#fff);cursor:pointer;border-radius:10px;width:44px;height:44px;padding:2px}.onb-swatches input{border:1px solid var(--shell-border,#e2e8f0);background:var(--shell-surface,#fff);width:110px;min-height:44px;color:var(--shell-text,#0f172a);border-radius:10px;padding:0 12px;font-size:14px}.onb-uploads{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.onb-upload{border:1px solid var(--shell-border,#e2e8f0);background:var(--shell-surface,#fff);cursor:pointer;border-radius:12px;justify-items:center;gap:7px;padding:20px 12px;display:grid}.onb-upload-title{color:var(--shell-text,#0f172a);align-items:center;gap:8px;font-size:14px;font-weight:600;display:inline-flex}.onb-upload small{color:var(--shell-muted,#64748b);font-size:12px}.onb-upload img{object-fit:contain;max-width:100%;max-height:56px}.onb-preview{border-radius:6px;width:420px;max-width:100%;height:594px;overflow:hidden;box-shadow:0 10px 24px #0f172a1f}.onb-preview .printable-container{transform-origin:0 0;transform:scale(.53)}.onb-footer{background:var(--shell-surface,#fff);border-top:1px solid var(--shell-border,#e2e8f0);grid-template-columns:1fr auto 1fr;align-items:center;min-height:82px;padding:0 44px;display:grid}.onb-footer>div:last-child{justify-self:end}.onb-link{color:var(--shell-text,#0f172a);cursor:pointer;background:0 0;border:0;font-size:14px}.onb-link:hover{color:var(--shell-primary,#2563eb)}.onb-back,.onb-next{align-items:center;gap:9px;display:inline-flex}@media (max-width:1500px){.settings-invoice-grid{grid-template-columns:1fr}.settings-invoice-preview-frame{height:770px}.settings-invoice-preview-frame .printable-container{transform:scale(.68)}}@media (max-width:1180px){.onb-columns,.onb-uploads,.settings-workspace{grid-template-columns:1fr}.settings-section-nav{grid-template-columns:repeat(2,minmax(0,1fr));position:static}.settings-template-workspace{grid-template-columns:1fr}.settings-template-preview{width:100%}}@media (max-width:820px){.design-qa-page,.settings-invoice-numbering,.settings-invoice-appearance,.settings-invoice-upload-grid{grid-template-columns:1fr}.design-qa-sidebar{height:auto;position:static}.settings-invoice-numbering label:nth-last-child(-n+2){grid-column:auto}.settings-invoice-favorites-head{display:none}.settings-invoice-favorite-row{border:1px solid var(--shell-border);background:color-mix(in srgb, var(--shell-bg) 45%, var(--shell-surface));border-radius:9px;grid-template-columns:minmax(0,1fr);gap:11px;padding:13px}.settings-invoice-favorite-row>svg{display:none}.settings-invoice-favorite-field{gap:6px}.settings-invoice-favorite-field>span{color:var(--shell-muted);font-size:var(--type-caption);font-weight:800;display:block}.settings-invoice-favorite-row button{grid-column:1;width:100%}.settings-invoice-preview-frame{height:625px}.settings-invoice-preview-frame .printable-container{transform:scale(.55)}}@media (max-width:520px){.settings-invoice-title{min-height:0}.settings-invoice-title h1{font-size:26px}.settings-invoice-card,.settings-invoice-preview-card,.settings-general-card,.settings-backup-panel{padding:16px}.settings-invoice-card-head,.settings-backup-danger-row{flex-direction:column;align-items:stretch}.settings-invoice-add,.settings-backup-delete{justify-content:center;width:100%}.settings-company-ico{background:0 0;border:0;gap:8px;display:grid;overflow:visible}.settings-company-ico input{border:1px solid var(--shell-border);background:var(--shell-surface);border-radius:10px}.settings-company-ico button{min-height:42px;margin:0}.settings-general-footer,.settings-invoice-save-row,.settings-backup-actions,.settings-backup-confirm>div{grid-template-columns:minmax(0,1fr);display:grid}.settings-general-footer button,.settings-invoice-save-row .primary-wide-button,.settings-invoice-save-row .secondary-wide-button,.settings-backup-actions button,.settings-backup-confirm button{width:100%}.settings-backup-danger-note{text-align:left}.settings-invoice-preview-frame{height:545px}.settings-invoice-preview-frame .printable-container{transform:scale(.48)}}@media (max-width:450px){.settings-invoice-preview-frame{height:478px}.settings-invoice-preview-frame .printable-container{transform:scale(.42)}}@media (max-width:410px){.settings-invoice-preview-frame{height:433px}.settings-invoice-preview-frame .printable-container{transform:scale(.38)}}@media (max-width:370px){.settings-invoice-preview-frame{height:388px}.settings-invoice-preview-frame .printable-container{transform:scale(.34)}}@media (max-width:330px){.settings-invoice-preview-frame{height:332px}.settings-invoice-preview-frame .printable-container{transform:scale(.29)}}.tpl-alfa-total strong.amount-long{font-size:17pt}.tpl-alfa-total strong.amount-xlong{font-size:13pt}.tpl-beta-total strong.amount-long{font-size:19pt}.tpl-beta-total strong.amount-xlong{font-size:14pt}.tpl-gama-total strong.amount-long{font-size:15pt}.tpl-gama-total strong.amount-xlong{font-size:12pt}.tpl-delta-total-card strong.amount-long{font-size:12.5pt}.tpl-delta-total-card strong.amount-xlong{font-size:10pt}.tpl-delta-total-row strong.amount-long{font-size:11.5pt}.tpl-delta-total-row strong.amount-xlong{font-size:10pt}.tpl-epsilon-total strong.amount-long{font-size:25pt}.tpl-epsilon-total strong.amount-xlong{font-size:19pt}.tpl-epsilon-sidebar h1 strong.invoice-number-long{font-size:23pt}.tpl-epsilon-sidebar h1 strong.invoice-number-xlong{font-size:18pt}.tpl-alfa-table td:nth-child(2),.tpl-beta-table td:nth-child(2),.tpl-gama-table td:nth-child(2),.tpl-delta-table td:nth-child(2),.invoice-items-table td:nth-child(2),.tpl-alfa-party strong,.tpl-beta-party strong,.tpl-gama-client strong,.tpl-gama-supplier strong,.tpl-delta-party strong,.invoice-party-block strong{overflow-wrap:anywhere}.design-qa-pdf-button{background:var(--shell-primary,#2563eb);color:#fff;cursor:pointer;border:0;border-radius:9px;min-height:40px;margin-top:12px;padding:0 18px;font-size:14px;font-weight:600}.design-qa-pdf-button:disabled{opacity:.6;cursor:default}.only-print{pointer-events:none;width:210mm;position:fixed;top:0;left:-10000px}@media print{.only-print{width:auto;position:static;left:auto}}.dashboard-empty{text-align:center;color:var(--shell-muted);justify-items:center;gap:10px;padding:40px 20px 44px;display:grid}.dashboard-empty svg{color:var(--shell-primary)}.dashboard-empty h3{color:var(--shell-text);font-size:17px}.dashboard-empty p{max-width:340px;font-size:13px;line-height:1.5}.dashboard-empty .primary-action{margin-top:6px}.dashboard-table-empty td{color:var(--shell-muted);text-align:center;padding:26px 12px;font-size:13px}.activity-empty{color:var(--shell-muted);font-size:var(--type-meta);line-height:1.5}.stress-controls{border:1px solid var(--shell-border);background:var(--shell-surface);border-radius:10px;gap:10px;margin:18px 0;padding:16px;display:grid}.stress-controls>label{color:var(--shell-muted);font-size:12px}.stress-controls>label strong{color:var(--shell-text)}.stress-presets{gap:6px;display:flex}.stress-presets button{border:1px solid var(--shell-border);background:var(--shell-surface);min-height:30px;color:var(--shell-text);cursor:pointer;border-radius:7px;flex:1;font-size:12px;font-weight:600}.stress-presets button.active{border-color:var(--shell-primary);background:var(--shell-primary);color:#fff}.stress-controls input[type=range]{width:100%}.stress-controls select{border:1px solid var(--shell-border);background:var(--shell-surface);width:100%;min-height:34px;color:var(--shell-text);border-radius:7px;margin-top:6px;padding:0 9px;font-size:12px}.stress-toggle{color:var(--shell-text);cursor:pointer;align-items:center;gap:9px;font-size:12.5px;display:flex}.stress-status{text-align:center;border-radius:9px;padding:11px 13px;font-size:13px;font-weight:700}.stress-status.ok{color:#16a05a;background:#eaf9f0}.stress-status.bad{color:#d64545;background:#fdeaea}.stress-total{color:var(--shell-muted);margin-top:10px;font-size:12.5px}.stress-total strong{color:var(--shell-text)}.invoice-density-compact .tpl-alfa-parties{padding:5mm 0 4mm}.invoice-density-compact .tpl-alfa-meta{padding:2.4mm 0}.invoice-density-compact .tpl-alfa-table{font-size:9pt}.invoice-density-compact .tpl-alfa-table th{padding:2.4mm 3mm}.invoice-density-compact .tpl-alfa-table td{padding:2.3mm 3mm}.invoice-density-compact .tpl-alfa-total{margin:3.5mm 0 4mm auto;padding:2.6mm 6mm}.invoice-density-compact .tpl-alfa-total strong{font-size:18pt}.invoice-density-compact .tpl-beta-header{padding-bottom:4mm}.invoice-density-compact .tpl-beta-parties{padding:3mm 0 4mm}.invoice-density-compact .tpl-beta-table{font-size:9pt}.invoice-density-compact .tpl-beta-table th,.invoice-density-compact .tpl-beta-table td{padding:2.4mm 3mm}.invoice-density-compact .tpl-beta-total{padding:2.8mm 0}.invoice-density-compact .tpl-beta-total strong{font-size:20pt}.invoice-density-compact .tpl-gama-top{padding:3mm 0 4mm}.invoice-density-compact .tpl-gama-meta{padding:2.4mm 0}.invoice-density-compact .tpl-gama-table{margin-top:3mm;font-size:9pt}.invoice-density-compact .tpl-gama-table th{padding:2.4mm 3mm}.invoice-density-compact .tpl-gama-table td{padding:2.5mm 3mm}.invoice-density-compact .tpl-gama-total{margin:4mm 0}.invoice-density-compact .tpl-gama-total strong{font-size:16pt}.invoice-density-compact .tpl-gama-bottom{padding-top:3.5mm}.invoice-density-compact .tpl-delta-header{padding:1mm 0 4mm}.invoice-density-compact .tpl-delta-parties{padding:5mm 0 4mm}.invoice-density-compact .tpl-delta-table{font-size:9pt}.invoice-density-compact .tpl-delta-table th,.invoice-density-compact .tpl-delta-table td{padding:2.4mm 3mm}.invoice-density-compact .tpl-delta-total-row{margin-bottom:5mm}.invoice-density-compact .tpl-delta-bottom{padding-bottom:4mm}.invoice-density-compact .tpl-epsilon-top{margin-bottom:10mm}.invoice-density-compact .tpl-epsilon-dates{margin-bottom:7mm;padding:4mm 0}.invoice-density-compact .invoice-template-epsilon .invoice-items-table,.invoice-density-compact .invoice-items-table.compact{font-size:8.6pt}.invoice-density-compact .invoice-items-table td{padding-top:3mm;padding-bottom:3mm}.printable-document{justify-items:center;gap:8mm;display:grid}.invoice-continues{color:#6b7280;font-size:8.5pt;font-style:italic;position:absolute;bottom:6mm;left:16mm}.invoice-page-indicator{color:#6b7280;font-size:8.5pt;font-weight:600;position:absolute;bottom:6mm;right:16mm}.invoice-template-epsilon .invoice-continues{left:74mm}.tpl-epsilon-total-last{width:54mm;margin-top:8mm;margin-left:auto}.tpl-alfa-table td:first-child,.tpl-beta-table td:first-child,.tpl-gama-table td:first-child,.tpl-delta-table td:first-child{width:7mm}.tpl-alfa-table td:nth-child(5),.tpl-beta-table td:nth-child(5),.tpl-gama-table td:nth-child(5),.tpl-delta-table td:nth-child(5),.tpl-alfa-table td:nth-child(6),.tpl-beta-table td:nth-child(6),.tpl-gama-table td:nth-child(6),.tpl-delta-table td:nth-child(6){width:26mm}.invoice-density-compact .tpl-alfa-qr svg,.invoice-density-compact .tpl-alfa-qr .invoice-qr-empty{width:28mm;height:28mm}.invoice-density-compact .tpl-alfa-proof-box{min-height:22mm}.invoice-density-compact .tpl-alfa-bottom{gap:10mm}.invoice-density-compact .tpl-beta-bottom{padding:4mm 0 2mm}.invoice-density-compact .tpl-beta-qr svg,.invoice-density-compact .tpl-beta-qr .invoice-qr-empty{width:27mm;height:27mm}.invoice-density-compact .tpl-beta-stamp-box{min-height:26mm}.invoice-density-compact .tpl-beta-payment strong{font-size:13pt}.invoice-density-compact .tpl-beta-footer{margin-top:0}.invoice-density-compact .tpl-gama-qr svg,.invoice-density-compact .tpl-gama-qr .invoice-qr-empty{width:25mm;height:25mm}.invoice-density-compact .tpl-gama-stamp{min-height:24mm}.invoice-density-compact .tpl-gama-footer{margin-top:3mm}.invoice-density-compact .tpl-delta-stamp{min-height:24mm}.invoice-density-compact .tpl-delta-bottom{gap:8mm}.invoice-density-compact .tpl-epsilon-qr-payment svg,.invoice-density-compact .tpl-epsilon-qr-payment .invoice-qr-empty{width:22mm;height:22mm}.invoice-template-alfa,.invoice-template-beta,.invoice-template-gama,.invoice-template-delta{flex-direction:column;display:flex}.invoice-template-alfa>*,.invoice-template-beta>*,.invoice-template-gama>*,.invoice-template-delta>*{flex-shrink:0}.invoice-density-compact .tpl-alfa-total{align-self:flex-end;margin:auto 0 6mm}.invoice-density-compact .tpl-beta-total,.invoice-density-compact .tpl-gama-total,.invoice-density-compact .tpl-delta-total-row,.tpl-epsilon-bottom{margin-top:auto}.tpl-alfa-table td:nth-child(3),.tpl-beta-table td:nth-child(3),.tpl-gama-table td:nth-child(3),.tpl-delta-table td:nth-child(3){width:12mm}.tpl-alfa-table td:nth-child(4),.tpl-beta-table td:nth-child(4),.tpl-gama-table td:nth-child(4),.tpl-delta-table td:nth-child(4){width:13mm}.tpl-alfa-table td:nth-child(5),.tpl-beta-table td:nth-child(5),.tpl-gama-table td:nth-child(5),.tpl-delta-table td:nth-child(5),.tpl-alfa-table td:nth-child(6),.tpl-beta-table td:nth-child(6),.tpl-gama-table td:nth-child(6),.tpl-delta-table td:nth-child(6){width:24mm}.tpl-alfa-table td:nth-child(5){width:30mm}.tpl-epsilon-main>*{flex-shrink:0}.login-screen{background:var(--shell-bg);min-height:100vh;color:var(--shell-text);place-items:center;padding:24px 16px;display:grid}.login-card{border:1px solid var(--shell-border);background:var(--shell-surface);border-radius:14px;gap:14px;width:100%;max-width:420px;padding:32px 28px;display:grid}.login-brand{align-items:center;gap:10px;margin-bottom:6px;font-size:18px;font-weight:800;display:flex}.login-card h1{margin:0;font-size:24px}.login-lead,.login-sent p{color:var(--shell-muted);margin:0;line-height:1.55}.login-form{gap:8px;display:grid}.login-form label{font-size:13px;font-weight:700}.login-form input{border:1px solid var(--shell-border);background:var(--shell-surface);min-height:42px;color:var(--shell-text);border-radius:8px;padding:0 12px;font-size:15px}.login-primary,.login-secondary{cursor:pointer;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:42px;font-weight:700;display:inline-flex}.login-primary{border:1px solid var(--shell-primary);background:var(--shell-primary);color:#fff;margin-top:6px}.login-primary:hover:not(:disabled){background:var(--shell-primary-hover)}.login-secondary{border:1px solid var(--shell-border);background:var(--shell-surface);color:var(--shell-text)}.login-primary:disabled,.login-secondary:disabled{opacity:.7;cursor:progress}.login-divider{color:var(--shell-muted);align-items:center;gap:10px;font-size:13px;display:flex}.login-divider:before,.login-divider:after{background:var(--shell-border);content:"";flex:1;height:1px}.login-sent{justify-items:start;gap:10px;display:grid}.login-sent svg{color:var(--shell-primary)}.login-error{color:#dc2626;margin:0;font-size:14px;line-height:1.5}.invoice-registration{overflow-wrap:anywhere;opacity:.85;font-size:.86em;line-height:1.3}.printable-measure{visibility:hidden;pointer-events:none;position:fixed;top:0;left:-10000px}.stress-debug{border:1px solid var(--shell-border);background:var(--shell-surface-soft);color:var(--shell-muted);border-radius:9px;margin-top:12px;padding:12px 14px;font-size:12px;line-height:1.7}.stress-debug strong{color:var(--shell-text);margin-bottom:5px;display:block}.stress-debug b{color:var(--shell-text)}.stress-debug-fail{color:#d64545;font-weight:700}.printable-measure .tpl-alfa-total,.printable-measure .tpl-beta-total,.printable-measure .tpl-gama-total,.printable-measure .tpl-delta-total-row,.printable-measure .tpl-epsilon-bottom{margin-top:0!important}.printable-measure .invoice-thanks{position:static!important}.mobile-navigation,.mobile-more-menu,.mobile-more-backdrop{display:none}.app-topbar{grid-template-columns:minmax(0,1fr) auto}.app-topbar .global-search{justify-self:center;width:min(100%,540px)}.profile-button .profile-avatar{display:inline-flex}@media (max-width:1280px){body{min-width:0}.app-sidebar{width:208px}.app-workspace{margin-left:208px}.app-topbar{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding-inline:18px}.topbar-actions{width:auto}.dashboard-page,.invoice-history-page{grid-template-columns:minmax(0,1fr)}.dashboard-page-header,.dashboard-action-card,.dashboard-finance-card,.annual-summary-card,.invoice-list-card,.dashboard-import-card{grid-column:1}.invoice-history-side{grid-template-columns:repeat(4,minmax(0,1fr));position:static}.history-stat-card{min-height:118px}.dashboard-table{min-width:780px}.dashboard-action-card .today-action{grid-template-columns:auto minmax(0,1fr);align-content:center;min-height:112px}.dashboard-action-card .today-action>button{grid-column:1/-1;justify-content:flex-end;min-height:28px}}@media (max-width:900px){body{overflow-x:hidden}.app-sidebar{display:none}.app-workspace{margin-left:0;padding-bottom:74px}.app-topbar{grid-template-columns:minmax(0,1fr) auto;gap:8px;height:60px;padding:0 12px}.global-search{min-width:0;height:38px}.global-search kbd,.theme-toggle{display:none}.profile-button{justify-content:flex-end;min-width:58px;padding:2px 0;display:flex}.profile-button .profile-avatar{width:34px;height:34px;display:inline-flex}.profile-button>span:not(.profile-avatar){display:none}.topbar-actions{gap:3px;min-width:0}.icon-button{width:36px;height:36px}.theme-toggle{width:62px;height:34px}.theme-toggle-thumb{width:24px;height:24px}.theme-toggle-thumb.dark{transform:translate(-28px)}.notification-popover{width:auto;position:fixed;top:68px;left:12px;right:12px}.profile-popover{width:210px;position:fixed;top:68px;right:12px}.app-main{min-width:0;padding:14px 12px 28px}.mobile-navigation{z-index:100;height:calc(68px + env(safe-area-inset-bottom));padding:5px 6px env(safe-area-inset-bottom);border-top:1px solid var(--shell-border);background:color-mix(in srgb, var(--shell-surface) 96%, transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);grid-template-columns:repeat(5,minmax(0,1fr));display:grid;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -8px 24px #0e1e3b14}.mobile-navigation>button{min-width:0;min-height:56px;color:var(--shell-muted);font-size:var(--type-caption-sm);background:0 0;border:0;border-radius:7px;flex-direction:column;justify-content:center;align-items:center;gap:3px;padding:3px 2px;font-weight:650;display:flex;position:relative}.mobile-navigation>button span{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.mobile-navigation>button.active{background:color-mix(in srgb, var(--shell-primary) 10%, var(--shell-surface));color:var(--shell-primary)}.mobile-navigation>button.active:before{background:var(--shell-primary);content:"";border-radius:0 0 3px 3px;height:3px;position:absolute;top:0;left:12px;right:12px}.mobile-more-backdrop{z-index:88;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#08111f47;border:0;display:block;position:fixed;inset:0}.mobile-more-menu{right:12px;bottom:calc(76px + env(safe-area-inset-bottom));z-index:90;border:1px solid var(--shell-border);background:var(--shell-surface);border-radius:8px;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px;display:grid;position:fixed;left:12px;box-shadow:0 20px 48px #0e1e3b33}.mobile-more-menu button{border:1px solid var(--shell-border);background:var(--shell-surface-soft);min-width:0;min-height:66px;color:var(--shell-muted);font-size:var(--type-caption);border-radius:7px;flex-direction:column;justify-content:center;align-items:center;gap:7px;font-weight:700;display:flex}.mobile-more-menu button.active{border-color:color-mix(in srgb, var(--shell-primary) 45%, var(--shell-border));background:color-mix(in srgb, var(--shell-primary) 10%, var(--shell-surface));color:var(--shell-primary)}.mobile-more-menu.settings-menu{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-page,.invoice-history-page,.invoice-history-main{gap:12px;min-width:0}.dashboard-page-header h1,.invoice-history-hero h1{font-size:22px}.dashboard-create-action{right:16px;bottom:calc(82px + env(safe-area-inset-bottom));z-index:80;border-radius:50%;width:52px;min-width:52px;height:52px;min-height:52px;padding:0;font-size:0;position:fixed}.dashboard-action-card,.dashboard-finance-card,.annual-summary-card,.invoice-list-card,.dashboard-import-card{min-width:0}.dashboard-action-card .today-actions{grid-template-columns:1fr}.dashboard-action-card .today-action+.today-action{border-top:1px solid var(--shell-border);border-left:0}.finance-card-header,.finance-controls,.dashboard-import-card,.dashboard-import-card .import-actions{flex-direction:column;align-items:stretch}.finance-card-header,.dashboard-import-card{display:flex}.finance-controls,.custom-period-controls{justify-content:flex-start}.segmented-control{width:100%}.segmented-control button{flex:1;min-width:0;padding-inline:7px}.custom-period-controls{flex-wrap:wrap}.custom-period-controls label,.custom-period-controls input{min-width:0}.invoice-history-hero{flex-direction:column;align-items:stretch;min-height:0;padding:20px}.invoice-history-hero p{font-size:var(--type-meta);margin-top:8px}.history-create-button{width:100%}.invoice-list-card{padding:12px}.invoice-list-toolbar,.history-bulk-bar{flex-direction:column;align-items:stretch}.history-search{width:100%;min-width:0}.history-filter-tabs{scrollbar-width:none;flex-wrap:nowrap;justify-content:flex-start;padding-bottom:2px;overflow-x:auto}.history-filter-tabs::-webkit-scrollbar{display:none}.history-filter-tabs button{flex:none}.history-bulk-bar strong{margin:0}.invoice-history-side{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.history-stat-card{min-height:108px;padding:14px}.history-stat-card strong{font-size:20px}.dashboard-table-wrap,.history-table-wrap{border:0;overflow:visible}.dashboard-table,.history-table,.dashboard-table tbody,.history-table tbody{gap:10px;width:100%;min-width:0;display:grid}.dashboard-table thead,.history-table thead{display:none}.dashboard-table tr,.history-table tr{border:1px solid var(--shell-border);background:var(--shell-surface);border-radius:8px;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;min-width:0;padding:14px;display:grid}.dashboard-table td,.history-table td{text-overflow:ellipsis;white-space:normal;min-width:0;height:auto;display:block;overflow:hidden;border:0!important;width:auto!important;padding:0!important}.dashboard-table td:first-child,.history-table td:nth-child(2){grid-area:1/1}.dashboard-table td:nth-child(6),.history-table td:nth-child(7){grid-area:1/2;align-self:start}.dashboard-table td:nth-child(2),.history-table td:nth-child(3){color:var(--shell-muted);grid-area:2/1}.dashboard-table td:nth-child(5),.history-table td:nth-child(6){text-align:right;grid-area:2/2}.dashboard-table td:nth-child(3),.dashboard-table td:nth-child(4),.history-table td:nth-child(4),.history-table td:nth-child(5){color:var(--shell-muted);font-size:var(--type-caption);grid-row:3}.dashboard-table td:nth-child(3),.history-table td:nth-child(4){grid-column:1}.dashboard-table td:nth-child(4),.history-table td:nth-child(5){text-align:right;grid-column:2}.dashboard-table td:nth-child(3):before,.history-table td:nth-child(4):before{content:"Vystaveno: "}.dashboard-table td:nth-child(4):before,.history-table td:nth-child(5):before{content:"Splatnost: "}.dashboard-table td:nth-child(7),.history-table td:nth-child(8){grid-area:4/1/auto/-1;border-top:1px solid var(--shell-border)!important;padding-top:9px!important}.dashboard-row-actions,.history-row-actions{justify-content:flex-end}.history-table td:first-child{display:none}.dashboard-import-card{gap:14px}.dashboard-import-card .import-actions{gap:8px}.dashboard-import-card .import-actions>span{width:fit-content}}@media (max-width:390px){.theme-toggle{width:54px}.theme-toggle-thumb.dark{transform:translate(-20px)}.dashboard-action-card,.dashboard-finance-card,.annual-summary-card{padding-inline:14px}.dashboard-action-card .today-action{padding-inline:6px}.invoice-history-side{grid-template-columns:1fr}}@media (max-width:560px){.history-filter-tabs{flex-wrap:wrap;padding-bottom:0;overflow:visible}.history-filter-tabs button{flex:0 auto}.history-table tr{grid-template-columns:minmax(0,1fr) 112px;max-width:100%}.history-table td:nth-child(7){justify-self:end;max-width:112px}.history-table td:nth-child(8){overflow:visible;width:100%!important}.history-row-actions{flex-wrap:wrap;justify-content:flex-start;width:100%;min-width:0}.history-bulk-bar button{justify-content:center;width:100%}}@media (max-width:1370px){.invoice-editor-page{grid-template-columns:minmax(0,1fr)}.invoice-right-panel{grid-template-columns:repeat(2,minmax(0,1fr));position:static}.invoice-right-panel .total-card,.invoice-right-panel .publish-card,.invoice-right-panel .issued-card{align-content:center}.invoice-items-card,.invoice-items-card .invoice-items-table{overflow:visible}.invoice-items-head{display:none}.invoice-item-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 10px;min-width:0;padding:14px}.invoice-item-description{grid-column:1/-1}.invoice-item-field{gap:6px}.invoice-item-field>span,.invoice-item-total>span{color:var(--shell-muted);font-size:var(--type-caption);font-weight:750;display:block}.invoice-item-total{grid-column:1/3;align-content:center;gap:5px}.invoice-item-total strong{text-align:left}.invoice-item-row>button{place-self:end}}@media (max-width:900px){.invoice-editor-page,.invoice-workspace,.invoice-form-grid{gap:12px;min-width:0}.invoice-editor-hero{flex-direction:column;align-items:stretch;min-height:0;padding:20px}.invoice-editor-hero h1{font-size:22px}.invoice-editor-hero p{font-size:var(--type-meta);margin-top:8px}.template-load-button{white-space:normal;width:100%}.invoice-inline-notice{flex-direction:column;align-items:stretch}.invoice-inline-notice button{width:100%}.invoice-form-card{min-width:0;padding:16px}.section-heading{align-items:flex-start;margin-bottom:14px}.section-heading small{text-align:right;padding-top:7px}.invoice-item-actions{flex-direction:column;align-items:stretch}.invoice-item-actions .secondary-soft-button,.invoice-item-actions select{width:100%;max-width:none}.invoice-right-panel{grid-template-columns:minmax(0,1fr);gap:12px;position:static}.invoice-right-panel .total-card{order:1}.invoice-right-panel .publish-card,.invoice-right-panel .issued-card{order:2}.invoice-right-panel>article:nth-child(2){order:3}.invoice-right-panel .template-side-card{order:4}.total-card strong{overflow-wrap:anywhere}.publish-menu{width:auto;left:0;right:0}}@media (max-width:520px){.invoice-editor-hero,.invoice-form-card,.invoice-side-card{padding:14px}.field-grid.two-cols{grid-template-columns:minmax(0,1fr)}.section-heading{gap:10px}.section-heading h2{font-size:14px}.section-heading small{max-width:84px;font-size:var(--type-caption-sm)}.invoice-item-row{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-item-description,.invoice-item-row .invoice-item-field:nth-child(4){grid-column:1/-1}.invoice-item-total{grid-column:1}.invoice-item-row>button{grid-column:2}}@media (max-width:1370px){.invoice-detail-page{grid-template-columns:minmax(0,1fr)}.invoice-detail-main,.invoice-detail-side,.invoice-preview-card{grid-column:1}.invoice-detail-main{grid-row:1}.invoice-detail-side{grid-row:2;grid-template-columns:repeat(3,minmax(0,1fr));position:static}.invoice-preview-card{grid-row:3}}@media (max-width:900px){.invoice-detail-page,.invoice-detail-main{gap:12px;min-width:0}.invoice-detail-hero{gap:14px;padding:16px}.detail-back-button{justify-content:flex-start;width:100%}.detail-title-row{flex-direction:column;align-items:flex-start;gap:12px}.detail-title-row h1{font-size:22px}.detail-title-row p{overflow-wrap:anywhere}.detail-status{align-self:flex-start}.detail-info-card{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-info-card div{min-width:0;padding:14px}.detail-info-card strong{font-size:var(--type-meta);white-space:normal;overflow-wrap:anywhere}.invoice-detail-side{grid-template-columns:minmax(0,1fr);gap:12px}.invoice-preview-card{gap:12px;min-width:0;padding:14px}.preview-card-head{flex-direction:column;align-items:stretch}.preview-card-head button{justify-content:center;width:100%}.invoice-preview-frame{justify-content:flex-start;height:660px;min-height:0;padding:12px;overflow:hidden auto}.invoice-preview-frame .printable-document{--invoice-preview-scale:.72;--invoice-preview-width:151.2mm;margin-left:max(0px, calc((100% - var(--invoice-preview-width)) / 2));transform:scale(var(--invoice-preview-scale));transform-origin:0 0}}@media (max-width:680px){.invoice-preview-frame{height:520px}.invoice-preview-frame .printable-document{--invoice-preview-scale:.5;--invoice-preview-width:105mm}}@media (max-width:540px){.invoice-preview-frame .printable-document{--invoice-preview-scale:.4;--invoice-preview-width:84mm}}@media (max-width:400px){.invoice-detail-hero,.detail-action-card,.detail-side-card{padding:14px}.invoice-preview-frame{height:430px;padding:10px}.invoice-preview-frame .printable-document{--invoice-preview-scale:.32;--invoice-preview-width:67.2mm}}@media (max-width:350px){.invoice-preview-frame .printable-document{--invoice-preview-scale:.28;--invoice-preview-width:58.8mm}}@media (max-width:1370px){.contacts-page{grid-template-columns:minmax(0,1fr)}.contacts-side{scroll-margin-top:92px;position:static}.contact-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:900px){.contacts-page,.contacts-main{gap:12px;min-width:0}.contacts-hero{flex-direction:column;align-items:stretch;min-height:0;padding:20px}.contacts-hero h1{font-size:22px}.contacts-hero p{font-size:var(--type-meta);margin-top:8px}.contacts-hero .history-create-button{width:100%}.contacts-list-card,.contact-side-card{padding:14px}.contacts-list-card .invoice-list-toolbar{flex-direction:column;align-items:stretch}.contacts-list-card .history-search{width:100%;max-width:none}.contacts-count{width:fit-content}.contacts-table-wrap{border:0;border-radius:0;overflow:visible}.contacts-table{min-width:0;display:block}.contacts-table thead{display:none}.contacts-table tbody{gap:10px;display:grid}.contacts-table tbody tr{border:1px solid var(--shell-border);background:var(--shell-surface);border-radius:8px;grid-template-columns:minmax(0,1fr);gap:0;padding:0;display:grid}.contacts-table tbody tr.selected{border-color:color-mix(in srgb, var(--shell-primary) 42%, var(--shell-border))}.contacts-table td{white-space:normal;overflow-wrap:anywhere;border:0;gap:4px;min-width:0;padding:0;display:grid}.contacts-table td[data-label]:before{content:attr(data-label);color:var(--shell-muted);font-size:var(--type-caption-sm);text-transform:uppercase;font-weight:800}.contacts-table td:first-child{border-bottom:0;grid-column:1;padding:14px}.contact-name-cell{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;max-width:none}.contact-name-cell strong,.contact-name-cell small{white-space:normal;overflow-wrap:anywhere}.contact-name-cell small{display:none}.contact-expand-icon{color:var(--shell-muted);flex:none;transition:transform .18s;display:block}.contacts-table td[data-label],.contacts-table .contact-row-actions-cell{display:none}.contacts-table tbody tr.mobile-expanded{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;padding:14px}.contacts-table tbody tr.mobile-expanded td:first-child{border-bottom:1px solid var(--shell-border);grid-column:1/-1;padding:0 0 11px}.contacts-table tbody tr.mobile-expanded td[data-label]{display:grid}.contacts-table tbody tr.mobile-expanded .contact-name-cell small{display:block}.contacts-table tbody tr.mobile-expanded .contact-expand-icon{transform:rotate(180deg)}.contacts-table tbody tr.mobile-expanded .contact-row-actions-cell{grid-column:1/-1;display:grid;border-top:1px solid var(--shell-border)!important;padding-top:10px!important}.contact-row-actions-cell .history-row-actions{justify-content:flex-end}.contact-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.contacts-side.detail-mode{display:none}}@media (max-width:520px){.contacts-hero,.contacts-list-card,.contact-side-card{padding:14px}.contacts-table tbody tr,.contact-form-grid{grid-template-columns:minmax(0,1fr)}.contacts-table tbody tr.mobile-expanded,.contacts-table tbody tr.mobile-expanded td:first-child,.contacts-table tbody tr.mobile-expanded .contact-row-actions-cell{grid-column:1}}@media (min-width:901px) and (max-width:1100px){.responsive-shell-sidebar{width:72px}.responsive-shell-sidebar+.app-workspace{margin-left:72px}.responsive-shell-sidebar .brand{justify-content:center;padding-inline:0}.responsive-shell-sidebar .brand>span:last-child,.responsive-shell-sidebar .primary-nav-item>span,.responsive-shell-sidebar .nav-chevron,.responsive-shell-sidebar .sidebar-subnav,.responsive-shell-sidebar .sidebar-logout>span,.responsive-shell-sidebar .sidebar-collapse-button{display:none}.responsive-shell-sidebar .primary-navigation{padding-inline:8px}.responsive-shell-sidebar .primary-nav-item{justify-content:center;padding-inline:0}.responsive-shell-sidebar .primary-nav-item:hover{transform:none}.responsive-shell-sidebar .sidebar-logout{justify-content:center;margin-inline:8px;padding-inline:0}.responsive-shell-sidebar .primary-nav-group{position:relative}.responsive-shell-sidebar .sidebar-subnav{z-index:70;border:1px solid var(--shell-border);background:var(--shell-surface);width:190px;box-shadow:var(--shell-shadow-2);border-radius:8px;margin:0;padding:8px;display:none;position:absolute;top:0;left:calc(100% + 10px)}.responsive-shell-sidebar .primary-nav-group.settings-menu-open .sidebar-subnav{display:grid}}@media (min-width:600px) and (max-width:900px){.dashboard-table td{font-size:var(--type-meta)}.dashboard-table td:first-child strong,.dashboard-table td:nth-child(5) strong{font-size:var(--type-body-sm)}.dashboard-status{font-size:var(--type-caption)}.history-filter-tabs button,.history-table td,.contacts-table td{font-size:var(--type-meta)}.history-invoice-link strong,.contact-name-cell strong{font-size:13px}.history-invoice-link small,.contact-name-cell small,.contacts-table td[data-label]:before,.history-status{font-size:var(--type-caption)}}@media (max-width:900px){.app-shell.sidebar-collapsed .app-workspace{margin-left:0}.sidebar-collapse-button{display:none}}
