.enterprise-dashboard{display:flex;flex-direction:column;gap:22px;min-width:0;width:100%;max-width:1520px;margin-inline:auto;color:var(--ink)}.enterprise-dashboard .ed-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:3px 0 10px}.enterprise-dashboard .ed-eyebrow{margin:0 0 8px;color:var(--accent);font-size:var(--text-caption);font-weight:700;letter-spacing:.09em;text-transform:uppercase}.enterprise-dashboard .ed-header h1{margin:0;font-size:clamp(23px,2.3vw,30px);font-weight:650;letter-spacing:-.035em;line-height:1.25}.enterprise-dashboard .ed-subtitle{margin:8px 0 0;color:var(--muted);font-size:var(--text-small)}.enterprise-dashboard .ed-actions{display:flex;align-items:center;flex-shrink:0;gap:10px}.enterprise-dashboard .ed-button{display:inline-flex;min-height:40px;align-items:center;justify-content:center;gap:8px;padding:9px 15px;border:1px solid transparent;border-radius:7px;box-shadow:0 1px 2px #0f172a08;font-size:var(--text-body);font-weight:600;line-height:1.4;text-align:center;text-decoration:none;transition:background-color .15s ease,border-color .15s ease}.enterprise-dashboard .ed-button--primary{border-color:var(--accent);background:var(--accent);color:#fff}.enterprise-dashboard .ed-button--primary:hover{border-color:var(--accent-hover);background:var(--accent-hover)}.enterprise-dashboard .ed-button--secondary{border-color:var(--border);background:var(--surface);color:var(--ink-soft)}.enterprise-dashboard .ed-button--secondary:hover{border-color:var(--border-strong);background:var(--surface-soft)}.enterprise-dashboard .ed-section-label{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:-9px}.enterprise-dashboard .ed-section-label h3{font-size:var(--text-section);font-weight:600;color:var(--ink-soft)}.enterprise-dashboard .ed-period{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:var(--text-caption);text-transform:capitalize}.enterprise-dashboard .ed-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.enterprise-dashboard .ed-metrics--platform{grid-template-columns:repeat(3,minmax(0,1fr))}.enterprise-dashboard .ed-metric{min-width:0;min-height:155px;padding:20px;border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:0 2px 3px #0f172a05}.enterprise-dashboard .ed-metric--accent{border-color:var(--accent-border)}.enterprise-dashboard .ed-metric-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:18px}.enterprise-dashboard .ed-metric-heading h3{color:var(--muted);font-size:var(--text-caption);font-weight:550;line-height:1.4}.enterprise-dashboard .ed-metric-icon{display:grid;flex:0 0 30px;width:30px;height:30px;place-items:center;border-radius:8px;color:var(--muted);background:var(--surface-soft)}.enterprise-dashboard .ed-metric--accent .ed-metric-icon{color:var(--accent);background:var(--accent-soft)}.enterprise-dashboard .ed-metric--warning .ed-metric-icon{color:#a36717;background:#fff8e9}.enterprise-dashboard .ed-metric--success .ed-metric-icon{color:#168369;background:#edf8f3}.enterprise-dashboard .ed-metric-value{display:block;font-size:clamp(20px,1.75vw,28px);font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.035em;line-height:1.2;overflow-wrap:anywhere}.enterprise-dashboard .ed-metric-detail{display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-height:18px;margin-top:10px;color:var(--muted);font-size:var(--text-caption)}.enterprise-dashboard .ed-metric-detail a{display:inline-flex;align-items:center;gap:5px;color:var(--muted);text-decoration:none}.enterprise-dashboard .ed-metric-detail a:hover{color:var(--accent)}.enterprise-dashboard .ed-metric-loading{display:grid;gap:12px}.enterprise-dashboard .ed-trend{display:inline-flex;align-items:center;gap:3px;color:#168369;font-weight:600}.enterprise-dashboard .ed-trend--down{color:#b24b47}.enterprise-dashboard .ed-overview-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);gap:20px}.enterprise-dashboard .ed-panel{min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:0 2px 3px #0f172a05}.enterprise-dashboard .ed-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px 22px}.enterprise-dashboard .ed-panel-heading h3{color:var(--ink);font-size:var(--text-section);font-weight:650;letter-spacing:-.02em;line-height:1.5}.enterprise-dashboard .ed-panel-heading p{margin:4px 0 0;color:var(--muted);font-size:var(--text-caption);line-height:1.5}.enterprise-dashboard .ed-tag{display:inline-flex;flex-shrink:0;align-items:center;padding:5px 9px;border:1px solid var(--border);border-radius:5px;color:var(--muted);background:var(--surface);font-size:var(--text-caption);font-weight:500}.enterprise-dashboard .ed-chart-panel{min-height:343px}.enterprise-dashboard .ed-chart-summary{display:flex;align-items:baseline;gap:10px;padding:0 22px}.enterprise-dashboard .ed-chart-summary strong{font-size:25px;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.035em}.enterprise-dashboard .ed-chart-summary>span{color:var(--muted);font-size:var(--text-caption)}.enterprise-dashboard .ed-chart{position:relative;height:178px;margin:20px 22px 0}.enterprise-dashboard .ed-chart-grid{position:absolute;inset:0 0 25px;display:flex;flex-direction:column;justify-content:space-between;border-bottom:1px solid var(--border);pointer-events:none}.enterprise-dashboard .ed-chart-grid span{display:block;border-top:1px dashed var(--border)}.enterprise-dashboard .ed-chart-columns{position:relative;display:grid;height:100%;grid-template-columns:repeat(6,minmax(0,1fr));gap:8%;padding-inline:4%}.enterprise-dashboard .ed-chart-column{display:grid;min-width:0;grid-template-rows:1fr 25px;color:var(--muted);text-align:center}.enterprise-dashboard .ed-chart-track{display:flex;min-height:0;flex-direction:column;justify-content:flex-end}.enterprise-dashboard .ed-chart-bar{width:100%;max-width:42px;margin-inline:auto;border-radius:4px 4px 0 0;background:#ced1f3}.enterprise-dashboard .ed-chart-column--current .ed-chart-bar{background:var(--accent)}.enterprise-dashboard .ed-chart-column>span{padding-top:8px;line-height:1.4;font-size:var(--text-caption);text-transform:capitalize}.enterprise-dashboard .ed-chart-column--current>span{color:var(--accent);font-weight:650}.enterprise-dashboard .ed-chart-caption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;padding:16px 22px 19px;color:var(--muted);font-size:var(--text-caption)}.enterprise-dashboard .ed-chart-caption>span:first-child{display:inline-flex;align-items:center;gap:6px}.enterprise-dashboard .ed-chart-caption i{width:6px;height:6px;border-radius:2px;background:var(--accent)}.enterprise-dashboard .ed-chart-loading{display:grid;gap:20px;padding:0 22px 22px}.enterprise-dashboard .ed-followup{display:flex;flex-direction:column}.enterprise-dashboard .ed-followup-icon{color:var(--muted)}.enterprise-dashboard .ed-followup-body{display:flex;flex:1;flex-direction:column;padding:0 22px 20px}.enterprise-dashboard .ed-followup-item{display:flex;align-items:flex-start;gap:10px;padding:15px 0;border-bottom:1px solid var(--border)}.enterprise-dashboard .ed-followup-item:first-child{padding-top:5px}.enterprise-dashboard .ed-followup-item strong{color:var(--ink-soft);font-size:var(--text-small);font-weight:550}.enterprise-dashboard .ed-followup-item p{margin:3px 0 0;color:var(--muted);font-size:var(--text-caption);line-height:1.5}.enterprise-dashboard .ed-followup-dot{flex:0 0 6px;width:6px;height:6px;margin-top:8px;border-radius:50%;background:#939ada}.enterprise-dashboard .ed-followup-dot--warning{background:#d5a24c}.enterprise-dashboard .ed-followup-count{min-width:25px;margin-left:auto;color:var(--ink);font-size:17px;font-weight:600;text-align:right}.enterprise-dashboard .ed-followup-note{margin:13px 0 16px;color:var(--muted);font-size:var(--text-caption);line-height:1.6}.enterprise-dashboard .ed-followup-body>.ed-button{justify-content:space-between;width:100%;margin-top:auto}.enterprise-dashboard .ed-access-link{display:flex;align-items:center;gap:8px;padding:13px 22px;border-top:1px solid var(--border);background:var(--surface-soft);color:var(--muted);font-size:var(--text-caption);text-decoration:none}.enterprise-dashboard .ed-access-link>span:last-child{margin-left:auto}.enterprise-dashboard .ed-access-link:hover{color:var(--accent)}.enterprise-dashboard .ed-text-link{display:inline-flex;flex-shrink:0;align-items:center;gap:9px;color:var(--accent);font-size:var(--text-small);font-weight:600;text-decoration:none}.enterprise-dashboard .ed-text-link:hover{text-decoration:underline}.enterprise-dashboard .ed-table-scroll{position:relative;overflow-x:auto}.enterprise-dashboard .ed-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}.enterprise-dashboard .ed-table th{height:40px;padding:10px 22px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--surface-soft);color:var(--muted);font-size:var(--text-caption);font-weight:550;letter-spacing:.025em}.enterprise-dashboard .ed-table td{padding:15px 22px;border-bottom:1px solid var(--border);color:var(--ink-soft);font-size:var(--text-small)}.enterprise-dashboard .ed-table tbody tr:last-child td{border-bottom:0}.enterprise-dashboard .ed-table tbody tr:hover{background:var(--surface-soft)}.enterprise-dashboard .ed-record-link{color:var(--ink);font-size:var(--text-small);font-weight:600;text-decoration:none}.enterprise-dashboard .ed-record-link:hover{color:var(--accent)}.enterprise-dashboard .ed-cell-secondary{display:block;margin-top:3px;color:var(--muted);font-size:var(--text-caption);font-weight:400}.enterprise-dashboard .ed-age-warning{color:#99671f}.enterprise-dashboard .ed-company-cell{display:flex;align-items:center;gap:10px}.enterprise-dashboard .ed-avatar{display:grid;flex:0 0 31px;width:31px;height:31px;place-items:center;border:1px solid var(--border);border-radius:8px;color:#69758b;background:#f4f6f9;font-size:var(--text-caption);font-weight:650}.enterprise-dashboard .ed-amount{text-align:right;font-weight:600;font-variant-numeric:tabular-nums}.enterprise-dashboard .ed-record-action{display:flex;width:32px;height:32px;align-items:center;justify-content:center;margin-left:auto;border-radius:6px;color:var(--muted)}.enterprise-dashboard .ed-record-action:hover{background:var(--accent-soft);color:var(--accent)}.enterprise-dashboard .ed-table-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:13px 22px;border-top:1px solid var(--border);color:var(--muted);font-size:var(--text-caption)}.enterprise-dashboard .ed-table-loading,.enterprise-dashboard .ed-followup-loading{padding:0 22px 22px}.enterprise-dashboard .ed-state{display:flex;min-height:225px;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:28px;text-align:center}.enterprise-dashboard .ed-state-icon{display:grid;width:48px;height:48px;margin-bottom:5px;place-items:center;border:1px solid var(--border);border-radius:12px;color:var(--muted);background:var(--surface-soft)}.enterprise-dashboard .ed-state h3{font-size:var(--text-section);font-weight:600}.enterprise-dashboard .ed-state p{max-width:360px;margin:0;color:var(--muted);font-size:var(--text-small);line-height:1.7}.enterprise-dashboard .ed-state a,.enterprise-dashboard .ed-state button{margin-top:16px}.enterprise-dashboard .ed-notice{display:flex;align-items:center;gap:10px;padding:12px 16px;border:1px solid #eddbb8;border-radius:8px;color:#845c24;background:#fffcf5;font-size:var(--text-small)}.enterprise-dashboard .ed-notice>.ui-icon{flex-shrink:0}.enterprise-dashboard .ed-notice button,.enterprise-dashboard .ed-notice a{min-height:28px;flex-shrink:0;margin-left:auto;padding:3px 8px;border:0;background:transparent;color:inherit;box-shadow:none;font-size:var(--text-small);font-weight:600;text-decoration:underline}.enterprise-dashboard .ed-platform-context{display:flex;align-items:center;gap:15px;padding:20px 22px;border:1px solid var(--accent-border);border-radius:10px;background:var(--accent-soft)}.enterprise-dashboard .ed-platform-icon{display:grid;flex:0 0 44px;width:44px;height:44px;place-items:center;border:1px solid var(--accent-border);border-radius:10px;color:var(--accent);background:var(--surface)}.enterprise-dashboard .ed-platform-context strong{font-size:var(--text-body);font-weight:600}.enterprise-dashboard .ed-platform-context p{margin:4px 0 0;color:var(--muted);font-size:var(--text-small);line-height:1.6}.enterprise-dashboard .ed-platform-context .ed-tag{margin-left:auto}@media(max-width:1200px){.enterprise-dashboard .ed-header{align-items:flex-start;flex-direction:column;gap:18px}.enterprise-dashboard .ed-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.enterprise-dashboard .ed-metrics--platform{grid-template-columns:repeat(3,minmax(0,1fr))}.enterprise-dashboard .ed-metric-value{font-size:27px}.enterprise-dashboard .ed-overview-grid{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr)}.enterprise-dashboard .ed-chart-summary{flex-wrap:wrap;gap:2px 10px}}@media(max-width:900px){.enterprise-dashboard .ed-overview-grid{grid-template-columns:minmax(0,1fr)}.enterprise-dashboard .ed-chart-panel .ed-panel-heading{flex-wrap:wrap}.enterprise-dashboard .ed-metrics--platform{grid-template-columns:minmax(0,1fr)}}@media(max-width:560px){.enterprise-dashboard{gap:18px}.enterprise-dashboard .ed-header{padding-bottom:4px}.enterprise-dashboard .ed-header h1{font-size:24px}.enterprise-dashboard .ed-actions{width:100%;flex-wrap:wrap}.enterprise-dashboard .ed-actions .ed-button{flex:1 1 auto}.enterprise-dashboard .ed-metrics{gap:10px}.enterprise-dashboard .ed-metric{min-height:151px;padding:15px 12px}.enterprise-dashboard .ed-metric-heading{align-items:flex-start;gap:4px}.enterprise-dashboard .ed-metric-heading h3{font-size:var(--text-caption)}.enterprise-dashboard .ed-metric-icon{flex-basis:24px;width:24px;height:24px}.enterprise-dashboard .ed-metric-icon .ui-icon{width:15px;height:15px}.enterprise-dashboard .ed-metric-value{font-size:20px}.enterprise-dashboard .ed-panel-heading{align-items:flex-start;flex-wrap:wrap;padding:18px}.enterprise-dashboard .ed-chart-summary,.enterprise-dashboard .ed-chart-caption{padding-inline:18px}.enterprise-dashboard .ed-chart{margin-inline:18px}.enterprise-dashboard .ed-followup-body{padding-inline:18px}.enterprise-dashboard .ed-notice{flex-wrap:wrap;align-items:flex-start}.enterprise-dashboard .ed-notice>span{flex:1}.enterprise-dashboard .ed-platform-context{align-items:flex-start;padding:18px}.enterprise-dashboard .ed-platform-context .ed-tag{display:none}}@media(max-width:380px){.enterprise-dashboard .ed-metrics{grid-template-columns:minmax(0,1fr)}}.auth-page{display:grid;min-height:100vh;place-items:center;padding:clamp(1rem,3vw,3rem);background:#f1f4f9}.auth-shell{display:grid;width:min(100%,76rem);min-height:min(48rem,calc(100vh - 6rem));grid-template-columns:1fr 1fr;overflow:hidden;border:1px solid #e0e6ef;border-radius:20px;background:#fff;box-shadow:0 20px 65px -30px #111c3238}.auth-intro{display:flex;flex-direction:column;gap:3.5rem;justify-content:space-between;padding:clamp(2rem,4vw,3.75rem);color:#fff;background:#111c32}.auth-brand{display:flex;flex-direction:column;gap:.4rem;align-items:flex-start}.auth-brand .factura-logo{width:min(13.75rem,100%);filter:brightness(0) invert(1)}.auth-brand>span{color:#b3bfd2;font-size:var(--text-caption);letter-spacing:.035em}.auth-kicker{margin:0 0 .9rem;font-size:var(--text-caption);font-weight:700;letter-spacing:.11em;text-transform:uppercase}.auth-intro .auth-kicker{color:#b1afff}.auth-intro h2{max-width:27rem;margin:0;color:#fff;font-size:clamp(2rem,3vw,2.65rem);font-weight:650;letter-spacing:-.035em;line-height:1.16}.auth-intro-description{max-width:26rem;margin:1.3rem 0 0;color:#b3bfd2;font-size:.91rem;line-height:1.75}.auth-capabilities{display:grid;gap:1.5rem;margin:2.5rem 0 0;padding:0;list-style:none}.auth-capabilities li{display:flex;gap:.9rem;align-items:flex-start}.auth-capability-icon{display:grid;width:38px;height:38px;flex-shrink:0;place-items:center;border:1px solid #36425a;border-radius:10px;color:#bab9ff;background:#1b2942}.auth-capabilities strong{color:#f3f5fa;font-size:var(--text-body);font-weight:600}.auth-capabilities p{margin:.25rem 0 0;color:#a6b4ca;font-size:var(--text-small);line-height:1.6}.auth-intro-footer{display:flex;gap:.5rem;align-items:center;padding-top:1.4rem;border-top:1px solid #334057;color:#acb8cc;font-size:var(--text-caption)}.auth-access{display:flex;min-width:0;flex-direction:column;gap:3rem;justify-content:space-between;padding:2.6rem clamp(2rem,4vw,4rem) 2rem}.auth-access-caption{margin:0;color:#6b778d;font-size:var(--text-caption);font-weight:500;text-align:right}.auth-form-content{width:min(100%,25rem);align-self:center}.auth-form-icon{display:grid;width:48px;height:48px;margin-bottom:1.6rem;place-items:center;border:1px solid #e2e5f9;border-radius:13px;color:#4f46e5;background:#f0f1ff}.auth-form-content .auth-kicker{color:#6b7285}.auth-form-content h1{margin:0;color:#111c32;font-size:clamp(1.6rem,2.15vw,2rem);font-weight:650;letter-spacing:-.035em;line-height:1.25}.auth-form-description{margin:.85rem 0 0;color:#627087;font-size:var(--text-body);line-height:1.7}.auth-form-content form{display:grid;gap:1.25rem;margin-top:2rem}.auth-field{display:grid;gap:.5rem}.auth-field label{color:#2b3850;font-size:var(--text-small);font-weight:600}.auth-field input{width:100%;min-height:46px;padding:.7rem .85rem;border:1px solid #d6deea;border-radius:8px;color:#111c32;background:#fff;font-size:var(--text-body);transition:border-color .15s ease,box-shadow .15s ease}.auth-field input::placeholder{color:#7c879b}.auth-field input:hover:not(:disabled){border-color:#a9b5c9}.auth-field input:focus{border-color:#4f46e5;outline:3px solid #e5e7ff;outline-offset:1px;box-shadow:none}.auth-field input[aria-invalid=true]{border-color:var(--danger)}.auth-field input:disabled{color:#627087;background:#f6f8fc}.auth-password-field{position:relative}.auth-password-field input{padding-right:3rem}.auth-password-field .auth-password-toggle{position:absolute;top:3px;right:3px;width:40px;height:40px;min-height:40px;padding:0;border:0;border-radius:6px;color:#65738a;background:transparent;box-shadow:none}.auth-password-field .auth-password-toggle:hover:not(:disabled){color:#4f46e5;background:#f0f1ff;box-shadow:none}.auth-password-toggle:focus-visible,.auth-submit:focus-visible{outline:3px solid #a5a1f7;outline-offset:3px}.auth-form-content .auth-submit{width:100%;min-height:46px;margin-top:.25rem;border:1px solid #4f46e5;border-radius:8px;background:#4f46e5;box-shadow:0 2px 4px #4f46e526;font-size:var(--text-body);font-weight:600}.auth-form-content .auth-submit:hover:not(:disabled){border-color:#4338ca;background:#4338ca;box-shadow:0 3px 8px #4f46e533}.auth-form-content .field-error,.auth-form-content .form-error{margin:0;font-size:var(--text-caption)}.auth-account-help{margin:1.75rem 0 0;padding-top:1.5rem;border-top:1px solid #e8ecf3;color:#69758b;font-size:var(--text-small);line-height:1.7}.auth-access-footer{display:flex;gap:.6rem;justify-content:center;margin:0;color:#727d91;font-size:var(--text-caption)}@media(max-width:850px){.auth-shell{grid-template-columns:.9fr 1.1fr}.auth-intro{gap:2.5rem;padding:2rem}.auth-intro h2{font-size:2rem}.auth-access{padding:2rem}}@media(max-width:680px){.auth-page{display:block;padding:0;background:#fff}.auth-shell{min-height:100vh;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;border:0;border-radius:0;box-shadow:none}.auth-intro{gap:0;padding:1.4rem 1.5rem}.auth-intro-content,.auth-intro-footer{display:none}.auth-access{gap:2.5rem;padding:1.5rem 1.5rem 2rem}.auth-access-caption{text-align:left}.auth-form-content h1{font-size:1.85rem}.auth-field input{font-size:1rem}}.editor-fields{display:grid;gap:20px;min-width:0;margin:0;padding:0;border:0}.editor-section,.invoice-editor .form-section{display:grid;gap:22px;min-width:0;padding:24px;border:1px solid var(--border);border-radius:12px;background:#fff;box-shadow:var(--shadow-sm)}.editor-section-header{display:flex;align-items:center;gap:13px;padding-bottom:20px;border-bottom:1px solid #edf0f5}.editor-section-header>div{min-width:0;flex:1}.editor-section-header h2{margin:0;color:var(--ink);font-size:15px;font-weight:650;letter-spacing:-.02em}.editor-section-header p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.6}.editor-section-icon,.editor-step{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid #e0e5f6;border-radius:10px;background:#f3f5fc;color:#555acb;font-size:12px;font-weight:700}.editor-kicker{margin:0;color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}.editor-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.editor-field-grid .form-field-wide{grid-column:1 / -1}:is(.client-editor,.product-editor) .form-field label,.invoice-editor .form-field label{margin-bottom:7px;font-size:12px;font-weight:600}:is(.client-editor,.product-editor) .form-field input,:is(.client-editor,.product-editor) .form-field textarea,.product-editor .form-field select,.invoice-editor .form-field input,.invoice-editor .form-field select{width:100%;min-width:0;min-height:42px;border:1px solid #dbe1eb;border-radius:7px;background:#fff;padding:10px 12px;color:var(--ink);font-size:13px;line-height:1.5;box-shadow:0 1px 2px #0f172a05}:is(.client-editor,.product-editor) .form-field textarea{resize:vertical}:is(.client-editor,.product-editor) .form-field input:focus,:is(.client-editor,.product-editor) .form-field textarea:focus,.product-editor .form-field select:focus,.invoice-editor .form-field input:focus,.invoice-editor .form-field select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}:is(.client-editor,.product-editor) .form-field [aria-invalid=true],.invoice-editor .form-field [aria-invalid=true]{border-color:var(--danger)}.editor-field-hint{display:block;margin:7px 0 0;color:var(--muted);font-size:11px;line-height:1.55}.client-form.client-editor,.product-form.product-editor{display:block;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}.client-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;align-items:start;gap:24px}.editor-generated-code{display:grid;align-content:center;gap:4px;min-width:0;padding:13px 16px;border:1px dashed #d8dfeb;border-radius:8px;background:#f8fafc}.editor-generated-code>span{color:var(--muted);font-size:11px}.editor-generated-code>strong{color:var(--ink-soft);font-size:12px;font-weight:600}.editor-generated-code>small{color:var(--muted);font-size:10px}.client-editor-preview{padding:24px;border:1px solid var(--border);border-radius:12px;background:#fff}.client-preview-avatar{display:grid;place-items:center;width:56px;height:56px;margin:26px 0 16px;border:1px solid #dde2fd;border-radius:14px;background:var(--accent-soft);color:var(--accent);font-size:18px;font-weight:650}.client-editor-preview h2{font-size:18px;font-weight:650;overflow-wrap:anywhere}.client-preview-email{margin:7px 0 24px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}.client-editor-preview dl{display:grid;gap:14px;margin:0;padding-block:18px;border-block:1px solid #edf0f5}.client-editor-preview dl>div{display:grid;gap:4px}.client-editor-preview dt{color:var(--muted);font-size:11px}.client-editor-preview dd{margin:0;color:var(--ink-soft);font-size:12px;font-weight:550;overflow-wrap:anywhere}.editor-help{margin:18px 0 0;color:var(--muted);font-size:12px;line-height:1.7}.editor-footer{position:sticky;z-index:15;bottom:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin-top:22px;padding:16px 20px;border:1px solid var(--border);border-radius:10px;background:#fff;box-shadow:0 -4px 20px #0f172a08}.editor-footer-note{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:11px}.editor-footer-note .ui-icon{color:#8a94a8}.editor-footer-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.editor-footer-actions button,.editor-footer-actions .button-link{font-size:12px;border-radius:7px}.client-editor>.form-error,.product-editor>.form-error{margin-top:16px}.editor-intro-note{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:20px;color:var(--muted);font-size:12px}.editor-intro-note>small{margin-left:auto;font-size:10px}.invoice-editor .invoice-form-layout{grid-template-columns:minmax(0,1fr) 300px;gap:22px}.invoice-editor .invoice-form-main{gap:20px}.invoice-editor .invoice-create-client-tools{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr) auto;gap:12px}.invoice-editor .invoice-create-new-client{min-height:42px;padding-inline:12px;font-size:11px;white-space:nowrap;border-radius:7px}.invoice-client-placeholder{display:flex;align-items:center;gap:12px;margin-top:18px;padding:20px;border:1px dashed #dae0ed;border-radius:8px;color:var(--muted);background:#fafbfe;font-size:12px}.invoice-editor .invoice-create-client-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;margin:18px 0 0;padding:18px;border:1px solid #e7ebf3;border-radius:9px;background:#f8fafc;box-shadow:none}.invoice-editor .invoice-create-client-details>div{padding:0;border:0}.invoice-editor .invoice-create-client-details>div:first-child{grid-column:1 / -1;padding-bottom:12px;border-bottom:1px solid #e4e9f2}.invoice-editor .invoice-create-client-details>div:first-child dd{color:var(--ink);font-size:14px}.invoice-editor .invoice-create-client-details .invoice-create-address{grid-column:auto}.invoice-editor .invoice-create-client-details dt{margin:0 0 5px;color:var(--muted);font-size:10px;font-weight:500;text-transform:none;letter-spacing:0}.invoice-editor .invoice-create-client-details dd{margin:0;color:#43516b;font-size:12px;font-weight:550;line-height:1.5;overflow-wrap:anywhere}.invoice-editor .invoice-basics{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding-top:0}.invoice-editor .invoice-basics>:last-child{grid-column:1 / -1}.invoice-editor .invoice-create-inline-state{margin-top:10px;font-size:11px}.editor-count{display:inline-flex;align-items:center;justify-content:center;min-width:23px;min-height:23px;margin-left:6px;padding:2px 6px;border:1px solid var(--border);border-radius:5px;color:var(--muted);background:#f8fafc;font-size:10px;vertical-align:middle}.invoice-editor .invoice-lines-heading .add-line{margin-left:auto;font-size:11px;min-height:36px;padding-inline:10px;border-radius:7px}.invoice-lines-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:238px;padding:28px 20px;border:1px dashed #d7dfec;border-radius:9px;background:#fafbfe;text-align:center}.invoice-empty-icon{display:grid;place-items:center;width:48px;height:48px;margin-bottom:14px;border:1px solid #e0e5f3;border-radius:12px;background:#fff;color:#777fba}.invoice-lines-empty h3{margin:0;font-size:14px;font-weight:600}.invoice-lines-empty p{max-width:360px;margin:8px 0 20px;color:var(--muted);font-size:12px;line-height:1.65}.invoice-lines-empty button{font-size:12px}.invoice-editor .invoice-create-lines-table{border-color:#e5e9f1;border-radius:8px}.invoice-editor .invoice-create-lines-table table{min-width:650px}.invoice-editor .invoice-create-lines-table th{padding:13px 8px;font-size:9px;letter-spacing:.035em}.invoice-editor .invoice-create-lines-table td{padding:14px 8px;vertical-align:top}.invoice-editor .invoice-create-lines-table th:nth-child(2){width:29%}.invoice-editor .invoice-create-lines-table th:nth-child(3){width:12%}.invoice-editor .invoice-create-lines-table th:nth-child(4){width:15%}.invoice-editor .invoice-create-lines-table th:nth-child(6){width:16%}.invoice-editor .invoice-create-lines-table input{min-height:38px;font-size:12px;border-radius:6px;padding:8px}.invoice-editor .invoice-create-rate-input input{padding-right:20px}.invoice-editor .invoice-create-line-total strong{display:block;padding-top:10px;font-size:12px}.editor-line-number{display:grid;place-items:center;min-height:38px;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums;cursor:grab}.invoice-editor .invoice-line-remove{border-color:transparent;color:#8993a6;background:transparent;box-shadow:none}.invoice-editor .invoice-line-remove:hover:not(:disabled){border-color:#fecaca;color:var(--danger);background:var(--danger-soft)}.invoice-editor .invoice-compose-summary{position:sticky;top:96px;display:block;width:100%;padding:0;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:#fff;box-shadow:var(--shadow-sm)}.editor-summary-header{position:relative;padding:24px 22px 20px;border-bottom:1px solid #edf0f5}.editor-summary-header h2{margin-top:6px;font-size:18px;font-weight:650;letter-spacing:-.03em}.editor-summary-currency{position:absolute;top:27px;right:22px;padding:3px 7px;border:1px solid var(--border);border-radius:5px;color:var(--muted);background:var(--surface-soft);font-size:9px;font-weight:600}.editor-summary-client{display:flex;align-items:center;gap:12px;margin:18px 20px;padding:14px;border-radius:8px;background:#f5f7fc;color:#777f9b}.editor-summary-client>div{display:grid;min-width:0;gap:4px}.editor-summary-client span{color:var(--muted);font-size:10px}.editor-summary-client strong{color:var(--ink-soft);font-size:12px;font-weight:600;overflow-wrap:anywhere}.editor-totals{display:grid;gap:14px;margin:0;padding:6px 22px 16px}.editor-totals>div{display:flex;justify-content:space-between;gap:10px;font-size:12px}.editor-totals dt{color:var(--muted)}.editor-totals dd{margin:0;color:var(--ink-soft);font-variant-numeric:tabular-nums;font-weight:600;white-space:nowrap}.editor-net-total{padding-top:14px;border-top:1px solid #edf0f5}.editor-vat{margin:0 22px 18px;padding-top:10px}.invoice-editor .editor-vat select{min-height:38px;padding:7px 10px}.editor-vat p{margin:7px 0 0;color:var(--muted);font-size:10px}.editor-grand-total{display:grid;gap:8px;margin:4px 20px 20px;padding:20px;border:1px solid #dfe3fc;border-radius:9px;background:#f2f4fe;color:#373d92}.editor-grand-total>span{font-size:11px;font-weight:600}.editor-grand-total>strong{font-size:clamp(21px,1.6vw,27px);font-weight:650;letter-spacing:-.04em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.editor-grand-total small{color:#6d74a8;font-size:10px}.editor-summary-note{display:flex;gap:10px;margin:0;padding:17px 22px;border-top:1px solid #edf0f5;color:var(--muted);font-size:10px;line-height:1.7}.editor-summary-note .ui-icon{margin-top:2px;color:#8995ad}.product-picker{position:relative;width:100%}.invoice-editor .product-picker input{width:100%;padding-right:27px;border-color:var(--border-strong)}.invoice-editor .product-picker input[aria-invalid=true]{border-color:var(--danger)}.product-picker>.ui-icon{position:absolute;right:9px;top:12px;color:#8b95aa;pointer-events:none}.product-picker-options{position:fixed;z-index:80;max-height:264px;margin:0;padding:5px;overflow-y:auto;list-style:none;border:1px solid #dce2ed;border-radius:9px;background:#fff;box-shadow:0 12px 36px #0f172a26}.product-picker-options [role=option]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 10px;border-radius:6px;cursor:pointer}.product-picker-options [aria-selected=true]{background:#f0f2ff}.product-picker-options strong{display:block;color:var(--ink-soft);font-size:12px;font-weight:600}.product-picker-options small{display:block;margin-top:4px;color:var(--muted);font-size:10px}.product-picker-price{flex-shrink:0;color:#4e5681;font-size:11px;font-weight:600;text-align:right}.product-picker-empty{padding:16px;color:var(--muted);font-size:12px}.invoice-client-dialog{width:min(760px,calc(100% - 32px));max-height:calc(100dvh - 48px);padding:24px;overflow-y:auto}.invoice-client-dialog-header{margin-bottom:22px}.invoice-client-dialog-header h2{margin-top:6px;font-size:24px;letter-spacing:-.03em}.invoice-client-dialog-header>p:last-child{margin:8px 0 0;color:var(--muted);font-size:12px}.invoice-client-dialog .client-editor-layout{grid-template-columns:minmax(0,1fr)}.invoice-client-dialog .client-editor-preview{display:none}.invoice-client-dialog .editor-section{padding:18px}.invoice-client-dialog .editor-footer{bottom:-24px;margin-top:18px;padding:14px}.invoice-client-dialog .editor-footer-note{display:none}.invoice-client-dialog .editor-footer-actions{width:100%;justify-content:flex-end}@media(max-width:1380px){.invoice-editor .invoice-form-layout{grid-template-columns:minmax(0,1fr)}.invoice-editor .invoice-compose-summary{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.editor-summary-header,.editor-summary-note{grid-column:1 / -1}.editor-grand-total{grid-column:2;grid-row:2 / 5;align-self:center}.editor-summary-client,.editor-totals,.editor-vat{grid-column:1}}@media(max-width:980px){.client-editor-layout{grid-template-columns:minmax(0,1fr)}.client-editor-preview{display:none}.invoice-editor .invoice-create-client-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-editor .invoice-create-new-client{grid-column:1 / -1;justify-self:start}}@media(max-width:700px){.editor-section,.invoice-editor .form-section{padding:18px;gap:18px}.editor-section-header{gap:10px;padding-bottom:16px}.editor-section-header h2{font-size:14px}.editor-section-header p{font-size:11px}.editor-field-grid{grid-template-columns:minmax(0,1fr);gap:16px}.editor-section-header.invoice-lines-heading{flex-wrap:wrap}.invoice-editor .invoice-lines-heading .add-line{margin-left:48px}.invoice-editor .invoice-basics,.invoice-editor .invoice-create-client-tools{grid-template-columns:minmax(0,1fr)}.invoice-editor .invoice-create-client-details{gap:16px;padding:16px}.invoice-editor .invoice-create-client-details .invoice-create-address{grid-column:1 / -1}.invoice-editor .invoice-create-lines-table{border:0;border-radius:0;overflow:visible}.invoice-editor .invoice-create-lines-table table{min-width:0}.invoice-editor .invoice-create-lines-table td{padding:12px}.invoice-editor .invoice-create-lines-table th{width:auto}.invoice-editor .invoice-create-lines-table td:first-child{padding:9px 12px;background:#f5f7fc}.editor-line-number{min-height:20px}.invoice-editor .invoice-create-line-total strong{padding-top:4px}.invoice-editor .invoice-compose-summary{display:block}.editor-intro-note>span:nth-child(2){flex:1;min-width:200px}.editor-intro-note>small{margin-left:0}.editor-footer{gap:12px;padding:14px}.editor-footer-note{width:100%;font-size:10px}.editor-footer-actions{width:100%;justify-content:flex-end;gap:8px}.editor-footer-actions>button:last-child{flex:1}:is(.client-editor,.product-editor) .form-field input,:is(.client-editor,.product-editor) .form-field textarea,.product-editor .form-field select,.invoice-editor .form-field input,.invoice-editor .form-field select,.invoice-editor .invoice-create-lines-table input{font-size:16px}.invoice-client-dialog{width:calc(100% - 20px);padding:18px 12px}.invoice-client-dialog .editor-footer{bottom:-18px}}.product-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:24px}.product-editor .form-field select{width:100%;min-height:42px;font-size:13px}.editor-input-affix{position:relative}.product-editor .editor-input-affix input{padding-right:58px}.editor-input-affix>span{position:absolute;right:13px;top:13px;color:var(--muted);font-size:11px;pointer-events:none}.product-editor-preview{position:sticky;top:96px;min-width:0;padding:24px;border:1px solid var(--border);border-radius:12px;background:#fff;box-shadow:var(--shadow-sm)}.product-editor-preview h2{font-size:18px;font-weight:650;overflow-wrap:anywhere}.product-preview-prices{display:grid;gap:16px;margin:24px 0;padding-top:22px;border-top:1px solid var(--border);font-size:12px}.product-preview-prices>div{display:flex;justify-content:space-between;gap:12px}.product-preview-prices dt{color:var(--muted)}.product-preview-prices dd{margin:0;font-weight:600;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.product-preview-total{display:grid;gap:10px;padding:20px;border:1px solid #dfe3fc;border-radius:9px;color:#373d92;background:#f2f4fe}.product-preview-total span{font-size:11px;font-weight:600}.product-preview-total strong{font-size:25px;font-weight:650;letter-spacing:-.03em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}@media(max-width:980px){.product-editor-layout{grid-template-columns:minmax(0,1fr)}.product-editor-preview{position:static}}@media(max-width:700px){.product-editor .form-field select{font-size:16px}}.sales-page{width:100%;max-width:1280px;min-width:0;margin:0 auto}.sales-card{background:var(--surface, #fff);border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-lg, 14px);padding:24px;margin-bottom:20px;min-width:0}.sales-card h2{font-size:16px;margin:0 0 14px;color:#263247}.sales-card h3{font-size:var(--text-body);margin:16px 0 10px}.sales-card p{overflow-wrap:anywhere}.sales-state{padding:36px 24px;text-align:center;color:#64748b}.sales-table{width:100%;overflow-x:auto}.sales-table table{width:100%;min-width:650px;font-size:var(--text-small);border-collapse:collapse}.sales-table th{background:var(--surface-soft, #f8fafc);text-align:left;font-size:var(--text-caption);font-weight:600;letter-spacing:.025em;white-space:nowrap;color:#64748b}.sales-table th,.sales-table td{padding:16px;border-bottom:1px solid #eef1f6;vertical-align:middle}.sales-table .numeric{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.sales-table small{display:block;margin-top:5px;color:#64748b}.sales-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:14px 0}.sales-actions button,.sales-pagination button{font-size:var(--text-small)}.sales-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.sales-fields label,.sales-form label{display:grid;gap:7px;font-size:var(--text-small);color:#526174;margin-bottom:12px}.sales-fields input,.sales-fields select,.sales-fields textarea,.sales-form input,.sales-form select,.sales-form textarea{width:100%;min-width:0;min-height:var(--control-height, 40px);padding:.55rem .85rem;border:1px solid var(--border, #e2e8f0);border-radius:var(--radius-md, 10px);color:var(--ink, #0f172a);background:var(--surface, #fff);box-shadow:var(--shadow-sm);font-size:var(--text-body);line-height:1.5;transition:border-color .15s ease,box-shadow .15s ease}.sales-fields :is(input,select,textarea):hover:not(:disabled):not([aria-invalid=true]),.sales-form :is(input,select,textarea):hover:not(:disabled):not([aria-invalid=true]){border-color:var(--border-strong, #cbd5e1)}.sales-fields :is(input,select,textarea):focus,.sales-form :is(input,select,textarea):focus{outline:0;border-color:var(--accent, #4f46e5);box-shadow:0 0 0 3px #6366f126}.sales-fields :is(input,select,textarea):disabled,.sales-form :is(input,select,textarea):disabled{color:var(--muted, #64748b);border-color:var(--border, #e2e8f0);background:var(--surface-soft, #f8fafc);box-shadow:none;cursor:not-allowed;opacity:1}.sales-fields :is(input,select,textarea)[aria-invalid=true],.sales-form :is(input,select,textarea)[aria-invalid=true]{border-color:var(--danger, #dc2626);background:var(--danger-soft, #fef2f2)}.sales-form textarea{min-height:170px;resize:vertical}.sales-pagination{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:16px 24px;border-top:1px solid var(--border, #e2e8f0);color:var(--muted, #64748b);font-size:var(--text-small)}.sales-muted{font-size:var(--text-small);color:#64748b;line-height:1.6}.sales-badge{display:inline-flex;padding:4px 8px;border-radius:6px;background:#eef2ff;color:#4552a4;font-size:var(--text-caption);font-weight:600}.sales-warning{color:#a35712}.sales-totals{display:grid;gap:10px;margin:0 0 16px;font-size:var(--text-small)}.sales-totals div{display:flex;justify-content:space-between;gap:12px}.sales-totals dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}.sales-payment{padding:12px 0;border-top:1px solid #eef1f6;font-size:var(--text-small)}.sales-payment.is-reversed{color:#64748b}.sales-dialog{width:min(560px,calc(100vw - 32px));max-height:90dvh;overflow-y:auto}.sales-reminder-body{white-space:pre-wrap;font-size:var(--text-small);line-height:1.7;color:#526174}@media(max-width:640px){.sales-card{padding:16px}.sales-fields{grid-template-columns:minmax(0,1fr);gap:0}.sales-fields input,.sales-fields select,.sales-fields textarea,.sales-form input,.sales-form select,.sales-form textarea{font-size:16px}}.sales-list-card{padding:0;overflow:hidden}.sales-section-heading{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:22px 24px;border-bottom:1px solid var(--border)}.sales-section-heading h2{margin-bottom:5px;font-weight:650}.sales-section-heading p{font-size:var(--text-small);color:var(--muted);margin:0;line-height:1.6}.sales-count{flex-shrink:0;border:1px solid var(--border);border-radius:6px;padding:5px 9px;font-size:var(--text-caption);color:var(--muted);font-variant-numeric:tabular-nums;background:var(--surface-soft)}.sales-state{font-size:var(--text-small)}.sales-state>p{margin:8px auto 16px;max-width:470px;line-height:1.7}.sales-loading{display:flex;align-items:center;justify-content:center;gap:9px}.sales-loading-dot{width:8px;height:8px;background:var(--accent);box-shadow:0 0 0 4px var(--accent-soft);border-radius:50%}.sales-empty{padding-block:48px}.sales-empty-icon{display:inline-flex;align-items:center;justify-content:center;width:50px;height:50px;margin-bottom:18px;border:1px solid var(--border);border-radius:13px;background:var(--surface-soft);color:var(--muted)}.sales-empty h2{margin-bottom:9px;font-size:16px}.sales-empty .sales-actions{justify-content:center;margin-bottom:0}.sales-table{overscroll-behavior-x:contain;scrollbar-width:thin}.sales-list-card .sales-table th:first-child,.sales-list-card .sales-table td:first-child{padding-left:24px}.sales-list-card .sales-table th:last-child,.sales-list-card .sales-table td:last-child{padding-right:24px}.sales-table tbody tr:hover{background:#fcfcff}.sales-table tbody tr:last-child td{border-bottom:0}.sales-table small{font-size:var(--text-caption);line-height:1.5}.sales-table .sales-warning{color:#a35712}.sales-document-link{font-weight:650;white-space:nowrap}.sales-table-note{margin:0;padding:16px 24px;background:var(--surface-soft);border-top:1px solid var(--border)}.sales-row-actions{margin:0;min-width:150px}.sales-row-actions button{min-height:34px;padding:6px 10px;white-space:nowrap}.sales-actions .sales-destructive-action{margin-left:auto;color:var(--muted)}.sales-fields label,.sales-form label{font-weight:500;color:var(--ink-soft)}.sales-fieldset{border:0;margin:0;padding:0;min-width:0}.sales-pagination span{font-variant-numeric:tabular-nums;white-space:nowrap}.sales-badge{align-items:center;gap:6px;white-space:nowrap}.sales-badge:before{content:"";width:5px;height:5px;background:currentColor;border-radius:50%}.sales-badge-converted{background:var(--success-soft);color:#047857}.sales-badge-cancelled{background:#f1f5f9;color:var(--muted)}.sales-kicker{display:block;margin-bottom:7px;font-size:var(--text-caption);font-weight:650;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}.sales-document-heading{display:flex;justify-content:space-between;align-items:start;gap:16px}.sales-document-heading h2{font-size:19px;margin-bottom:6px}.sales-document-heading p{margin:0}.sales-document-footer{display:flex;align-items:start;justify-content:space-between;gap:32px;padding-top:24px;margin-top:8px;border-top:1px solid var(--border)}.sales-document-footer>p{max-width:320px;margin:0}.sales-quote-totals{width:min(100%,360px);flex-shrink:0;margin:0;padding:18px;background:var(--surface-soft);border-radius:10px;display:grid;gap:12px;font-size:var(--text-small)}.sales-quote-totals div{display:flex;justify-content:space-between;gap:20px}.sales-quote-totals dt{color:var(--muted)}.sales-quote-totals dd{margin:0;font-weight:600;font-variant-numeric:tabular-nums}.sales-quote-totals .sales-quote-grand-total{padding-top:14px;margin-top:2px;border-top:1px solid var(--border);align-items:center}.sales-quote-grand-total dt{color:var(--ink);font-weight:650}.sales-quote-grand-total dd{font-size:20px;letter-spacing:-.04em}.sales-validity{display:grid;grid-template-columns:1fr minmax(220px,300px);align-items:center;gap:32px}.sales-validity h2,.sales-validity p,.sales-validity label{margin-bottom:0}.sales-validity h2{margin-bottom:5px}.sales-notice,.sales-schedule-summary{display:flex;align-items:start;gap:12px;padding:16px 18px;border:1px solid var(--accent-border);border-radius:10px;background:var(--accent-soft);color:var(--accent-dark);margin-bottom:20px}.sales-notice svg,.sales-schedule-summary svg{flex-shrink:0;margin-top:2px}.sales-notice p,.sales-schedule-summary p{margin:0;font-size:var(--text-small);line-height:1.7}.sales-source-document{display:flex;gap:14px;align-items:center;padding-bottom:24px;border-bottom:1px solid var(--border);margin-bottom:26px}.sales-source-icon{display:grid;place-items:center;width:48px;height:52px;border-radius:10px;background:var(--surface-soft);color:var(--muted);flex-shrink:0}.sales-source-document h2{margin-bottom:4px}.sales-source-document p,.sales-source-total small{margin:0;font-size:var(--text-caption);color:var(--muted)}.sales-source-total{text-align:right;margin-left:auto;font-size:21px;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.035em}.sales-source-total small{display:block;margin-top:4px;font-weight:400;letter-spacing:normal}.sales-form-footer{margin:24px 0 0;padding-top:20px;border-top:1px solid var(--border);justify-content:space-between}.sales-confirmation{padding:16px;margin-bottom:20px;border:1px solid #fecaca;border-radius:8px;background:var(--danger-soft);font-size:var(--text-small)}.sales-confirmation p{margin:0}.sales-confirmation .sales-actions{margin-bottom:0}.sales-balance-due{color:var(--ink)}.sales-list-card>.form-error{margin:18px 24px}@media(max-width:800px){.sales-document-footer{flex-direction:column;gap:20px}.sales-quote-totals{align-self:end}}@media(max-width:640px){.sales-list-card{padding:0}.sales-section-heading{align-items:start;padding:18px 16px;gap:12px}.sales-section-heading h2{font-size:var(--text-body)}.sales-count{font-size:var(--text-caption);padding:4px 6px;max-width:110px;text-align:center}.sales-validity{grid-template-columns:minmax(0,1fr);gap:12px}.sales-document-heading h2{font-size:17px}.sales-document-heading{flex-wrap:wrap}.sales-actions .sales-destructive-action{margin-left:0}.sales-pagination{padding:14px 12px;gap:8px;font-size:var(--text-caption)}.sales-pagination button{padding-inline:10px;font-size:var(--text-caption)}.sales-table-note{padding:16px}.sales-state{padding:32px 18px}.sales-source-document{flex-wrap:wrap}.sales-source-total{width:100%;text-align:left;padding-top:16px;border-top:1px solid var(--border)}.sales-form-footer{gap:12px}.sales-form-footer>*{flex:1}}@media(max-width:640px){.sales-responsive-table{overflow:visible}.sales-responsive-table table{min-width:0;table-layout:fixed}.sales-responsive-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.sales-responsive-table tbody{display:block}.sales-responsive-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:20px 16px;border-bottom:1px solid var(--border)}.sales-responsive-table tbody tr:last-child{border-bottom:0}.sales-list-card .sales-responsive-table td,.sales-list-card .sales-responsive-table td:first-child,.sales-list-card .sales-responsive-table td:last-child{display:flex;flex-direction:column;align-items:start;min-width:0;padding:0;border:0;text-align:left;white-space:normal;overflow-wrap:anywhere}.sales-responsive-table td:before{content:attr(data-label);display:block;margin-bottom:6px;font-size:var(--text-caption);font-weight:500;color:var(--muted);line-height:1.4}.sales-responsive-table .sales-cell-wide{grid-column:1 / -1}.sales-responsive-table td:first-child>strong,.sales-responsive-table .sales-document-link{font-size:var(--text-body)}.sales-list-card .sales-responsive-table td.sales-cell-actions{border-top:1px solid var(--border);padding-top:14px}.sales-responsive-table .sales-cell-actions:empty{display:none}.sales-responsive-table .sales-cell-actions:before{display:none}.sales-responsive-table .sales-row-actions{width:100%;min-width:0}.sales-responsive-table .sales-cell-actions button{flex:1;min-height:38px;width:100%}}.portal-page{min-height:100dvh;padding:40px 24px 24px;background:#f6f7fb}.portal-inner{max-width:1120px;margin:0 auto}.portal-heading,.portal-section-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.portal-heading{padding-bottom:26px;margin-bottom:28px;border-bottom:1px solid #e4e7f0}.portal-eyebrow{display:block;color:#7b729d;font-size:var(--text-caption);font-weight:700;letter-spacing:.12em;text-transform:uppercase}.portal-heading h1{margin:9px 0 6px;color:#2b354b;font-size:clamp(23px,3vw,30px);line-height:1.2;letter-spacing:-.04em}.portal-heading p,.portal-section-heading p{margin:5px 0 0}.portal-heading button{flex-shrink:0}.portal-balance{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px 30px;margin-bottom:26px;border:1px solid #dfdaef;border-radius:12px;background:#eeeafa;color:#685e8b;font-size:var(--text-small)}.portal-balance strong{display:block;margin-top:10px;color:#433574;font-size:clamp(27px,4vw,36px);line-height:1.1;letter-spacing:-.035em;font-weight:650;font-variant-numeric:tabular-nums}.portal-balance p{max-width:265px;margin:0;color:#7c7396;font-size:var(--text-small);line-height:1.7}.portal-section-heading{margin-bottom:22px}.portal-section-heading h2{margin:5px 0}.portal-invoices .sales-table th{white-space:nowrap}.portal-invoices .sales-table small{margin-top:5px}.portal-outstanding{color:#57468d;font-weight:650}.portal-invoices tr.is-selected td{background:#f6f3ff}.portal-selected h2:focus{outline:none}.portal-payment-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:520px;margin:0 0 24px;padding:16px 18px;gap:16px;background:#f8f9fc;border:1px solid #ebedf3;border-radius:8px}.portal-payment-summary span,.portal-payment-summary strong{display:block}.portal-payment-summary span{margin-bottom:6px;color:#788399;font-size:var(--text-caption)}.portal-payment-summary strong{color:#3c4660;font-size:16px;font-variant-numeric:tabular-nums}.portal-selected h3{color:#505c73;font-size:var(--text-small)}.portal-payments{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 24px;padding:0;list-style:none}.portal-payments li{flex:1 1 220px;max-width:400px;padding:13px 15px;border:1px solid #e9edf3;border-radius:8px;color:#7b8699;font-size:var(--text-caption)}.portal-payments li>div{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}.portal-payments strong{color:#3f6d5d;font-size:var(--text-small)}.portal-payments .is-reversed strong{color:#8a776b}.portal-document{min-width:0;margin-top:20px;background:#eef0f6;border-radius:10px}.portal-state{padding:32px}.portal-state p{max-width:600px;color:#6f7c90;font-size:var(--text-small);line-height:1.7}.portal-footer{padding:12px;color:#98a0b2;text-align:center;font-size:var(--text-caption)}.portal-access-status{display:grid;gap:5px;padding:12px 14px;border:1px solid #e9ecf3;border-radius:8px;background:#f8f9fc;color:#7c879a;font-size:var(--text-caption)}.portal-access-status strong{color:#66718a;font-size:var(--text-small)}.portal-access-status.is-active strong{color:#417260}.portal-link-created{display:grid;gap:10px;min-width:0;padding:14px;border:1px solid #e4def6;border-radius:8px;background:#f9f7ff}.portal-link-created input{font-size:var(--text-caption)}@media(max-width:720px){.portal-page{padding:24px 14px}.portal-heading,.portal-section-heading{align-items:flex-start;flex-direction:column;gap:16px}.portal-heading{padding-bottom:20px;margin-bottom:20px}.portal-heading button{font-size:var(--text-caption)}.portal-balance{align-items:flex-start;flex-direction:column;gap:16px;padding:24px}.portal-balance p{max-width:none;font-size:var(--text-caption)}.portal-invoices .sales-table{overflow:visible;border:0}.portal-invoices table,.portal-invoices tbody{display:block;min-width:0;width:100%}.portal-invoices thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.portal-invoices tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;padding:17px;margin-bottom:12px;border:1px solid #e7eaf3;border-radius:10px}.portal-invoices .sales-table td{padding:0;border:0;background:transparent;text-align:left;white-space:normal;font-size:var(--text-small)}.portal-invoices td:before{display:block;margin-bottom:6px;color:#8a94a8;font-size:var(--text-caption);font-weight:400;content:attr(data-label)}.portal-invoices td:first-child,.portal-invoices .portal-document-action{grid-column:1 / -1}.portal-invoices td:first-child{padding-bottom:12px;border-bottom:1px solid #edf0f5}.portal-invoices td:first-child:before,.portal-invoices .portal-document-action:before{display:none}.portal-document-action button{width:100%}.portal-invoices tr.is-selected{border-color:#cfc3f0;background:#faf8ff}.portal-selected .sales-actions{width:100%}.portal-payment-summary{gap:12px;padding:14px}.portal-payment-summary strong{font-size:var(--text-body)}}.invoice-finance .finance-heading{margin-bottom:4px}.finance-eyebrow{display:block;margin-bottom:6px;color:#707b90;font-size:var(--text-caption);font-weight:700;letter-spacing:.1em;text-transform:uppercase}.invoice-finance .sales-totals{margin:0;padding:16px;border:1px solid #e8eaf2;border-radius:10px;background:#fafbfe}.invoice-finance .sales-totals>div{padding:5px 0;font-size:var(--text-small)}.invoice-finance .sales-totals dt{color:#69768b}.invoice-finance .sales-totals .finance-balance{margin-top:9px;padding-top:14px;border-top:1px solid #e4e7f0;align-items:center}.invoice-finance .finance-balance dt{color:#323b55;font-weight:600}.invoice-finance .finance-balance dd{color:#5a46c9;font-size:19px;letter-spacing:-.04em}.finance-due{display:flex;flex-wrap:wrap;align-items:center;gap:5px 8px;color:#687489;font-size:var(--text-small)}.finance-due strong{margin-left:auto;color:#3c465c;font-size:var(--text-small)}.finance-due.is-overdue strong{color:#aa5420}.finance-overdue{padding:3px 6px;border-radius:4px;background:#fff2e7;color:#a4501c;font-size:var(--text-caption);font-weight:600}.invoice-finance>.sales-actions>button,.invoice-finance>.sales-actions>a{width:100%;justify-content:center}.invoice-finance form{padding:14px;border:1px solid #e6e9f3;border-radius:10px;background:#fafbfe}.finance-section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px;padding-top:18px;border-top:1px solid #edf0f6}.finance-section-heading h3{margin:0;font-size:var(--text-small);color:#35405a}.finance-count{padding:2px 7px;border-radius:5px;background:#f0f1f7;color:#737d92;font-size:var(--text-caption);font-variant-numeric:tabular-nums}.invoice-finance .sales-payment{margin:0;padding:14px 0}.finance-payment-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px}.finance-payment-heading strong{color:#35405a;font-size:var(--text-small);font-variant-numeric:tabular-nums}.finance-payment-heading span{color:#477766;font-size:var(--text-caption)}.is-reversed .finance-payment-heading span{color:#8c6d5a}.finance-payment-meta,.finance-reference{margin:6px 0;color:#798499;font-size:var(--text-caption);overflow-wrap:anywhere}.invoice-finance .sales-payment>button{padding:5px 0;background:transparent;color:#69758d;border-color:transparent;font-size:var(--text-caption)}.invoice-finance input:disabled,.invoice-finance select:disabled{opacity:.65}.invoice-designer-page{display:grid;gap:22px;min-width:0}.invoice-designer-page>.page-header{margin:0}.designer-company-bar{display:grid;grid-template-columns:minmax(230px,1fr) 2fr;gap:18px;padding:20px;border:1px solid var(--border);border-radius:12px;background:#fff}.designer-company-bar label,.designer-controls label{display:block;min-width:0}.designer-company-bar label>span,.designer-controls label>span{display:block;margin-bottom:7px;color:var(--ink-soft);font-size:11px;font-weight:600}.designer-company-bar select,.designer-controls select,.designer-controls textarea{width:100%;min-width:0;min-height:40px;padding:9px 11px;border:1px solid #dbe1eb;border-radius:7px;font-size:12px;line-height:1.5;background:#fff}.designer-company-bar select:focus,.designer-controls select:focus,.designer-controls textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.designer-company{display:flex;gap:12px;align-items:center;color:var(--ink-soft);font-size:13px}.designer-shared-notice{align-self:center;margin:0;color:var(--muted);font-size:12px;line-height:1.6}.designer-editor{display:grid;gap:18px;min-width:0}.designer-workspace-heading{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}.designer-kicker{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em}.designer-workspace-heading h2{margin:5px 0 0;font-size:19px;font-weight:650}.designer-state{padding:6px 10px;border-radius:6px;color:#536079;background:#eef1f7;font-size:11px}.designer-state.is-dirty{color:#855e19;background:#fff5db}.designer-workspace{display:grid;grid-template-columns:330px minmax(0,1fr);gap:24px;align-items:start}.designer-controls{display:grid;gap:0;min-width:0;margin:0;padding:0;border:1px solid var(--border);border-radius:12px;background:#fff;overflow:hidden}.designer-controls section{display:grid;gap:16px;padding:20px;border-bottom:1px solid #edf0f5}.designer-controls section:last-child{border:0}.designer-controls h3{display:flex;align-items:center;gap:9px;margin:0;font-size:12px;font-weight:650}.designer-controls h3 .ui-icon{color:#7c85a8}.designer-templates{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.designer-templates button{display:grid;gap:9px;place-items:center;padding:8px;border:1px solid #e2e7f0;border-radius:8px;color:var(--muted);background:#fff;font-size:10px;box-shadow:none}.designer-templates button[aria-pressed=true]{border-color:#6366d7;color:#4149a1;background:#f4f5ff;box-shadow:0 0 0 1px #6366d7}.designer-template-mini{display:grid;width:42px;height:54px;padding:7px 5px;border:1px solid #dce1ed;border-radius:2px;background:#fff;align-content:start;gap:7px}.designer-template-mini i{height:5px;background:#c5cadb}.designer-template-mini i:first-child{width:55%;background:#5967a9}.template-modern i:first-child{height:11px;width:100%}.template-classic i:last-child{height:14px;background:repeating-linear-gradient(#fff 0 3px,#c5cadb 3px 4px);border:1px solid #c5cadb}.template-minimal i{height:2px}.designer-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.designer-controls .designer-color{display:flex;align-items:center;gap:10px}.designer-controls .designer-color>span{margin:0 auto 0 0}.designer-color input{width:34px;height:34px;padding:3px;border:1px solid var(--border);border-radius:6px;cursor:pointer}.designer-color output{font-size:10px;font-family:monospace;color:var(--muted)}.designer-controls .designer-checkbox{display:flex;align-items:center;gap:10px;cursor:pointer}.designer-checkbox input{flex:0 0 15px;width:15px;height:15px;accent-color:#4f56be}.designer-controls .designer-checkbox>span{margin:0;font-size:12px;font-weight:400}.designer-logo{width:100%;max-width:130px;height:60px;object-fit:contain;object-position:left center}.designer-logo-link{color:var(--accent);font-size:11px;text-decoration:none}.designer-controls textarea{resize:vertical}.designer-character-count{margin-top:-10px;color:var(--muted);font-size:10px;text-align:right}.designer-preview{position:sticky;top:90px;min-width:0;border:1px solid #dce2ec;border-radius:12px;background:#e9edf3;overflow:hidden}.designer-preview-toolbar{display:flex;gap:14px;align-items:center;padding:16px 20px;border-bottom:1px solid var(--border);background:#fff;font-size:12px}.designer-preview-toolbar strong{font-weight:600}.designer-preview-toolbar>span{margin-left:auto;color:var(--muted);font-size:11px}.designer-preview-toolbar a{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--border);border-radius:6px;color:var(--ink-soft)}.designer-preview iframe{display:block;width:100%;height:min(850px,calc(100dvh - 210px));min-height:500px;border:0;background:#e9edf3}.designer-preview-loading{display:grid;min-height:590px;align-content:center;justify-items:center;gap:18px;color:var(--muted);font-size:12px}.designer-actions{position:sticky;bottom:0;z-index:12;display:flex;justify-content:flex-end;gap:12px;padding:16px 20px;border:1px solid var(--border);border-radius:10px;background:#fff;box-shadow:0 -4px 20px #0f172a08}.designer-actions button{font-size:12px}@media(max-width:1100px){.designer-workspace{grid-template-columns:290px minmax(0,1fr);gap:16px}.designer-controls section{padding:16px}}@media(max-width:900px){.designer-workspace{grid-template-columns:minmax(0,1fr)}.designer-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.designer-preview{position:static}.designer-company-bar{grid-template-columns:minmax(0,1fr)}}@media(max-width:600px){.designer-controls{grid-template-columns:minmax(0,1fr)}.designer-actions{flex-wrap:wrap;padding:12px;gap:8px}.designer-actions button{flex:1}.designer-company-bar select,.designer-controls select,.designer-controls textarea{font-size:16px}.designer-preview-toolbar{padding:14px;gap:8px}}.invoice-pdf-canvas{display:block;position:absolute;inset:0;width:100%;height:100%}.invoice-pdf-canvas[hidden]{display:none}.invoice-page-navigation{display:flex;align-items:center;justify-content:center;gap:10px;color:#7a879b;font-size:10px}.invoice-page-navigation button{padding:4px 8px;min-width:26px;box-shadow:none;font-size:11px}.invoice-canvas-error{position:absolute;z-index:1;top:35%;left:10%;right:10%;color:#963e3e;font-size:12px;background:#fff5f5;padding:15px;border:1px solid #f0dddd;border-radius:6px}.invoice-canvas-loading{position:absolute;z-index:1;inset:0;display:grid;place-content:center;color:#9aa3b3;background:#ffffffdb;font-size:12px;pointer-events:none}.invoice-document-preview{padding:16px}.invoice-document-preview-pages{max-height:75dvh;min-height:350px;overflow:auto;padding:5px;margin-bottom:15px}.invoice-document-preview.is-full-page .invoice-document-preview-pages{max-height:none;min-height:0;overflow:visible}.invoice-document-preview-paper{position:relative;width:100%;background:#fff;box-shadow:0 2px 12px #26324710}.designer-layout-modes{display:flex;flex-wrap:wrap;gap:8px}.designer-layout-modes button{font-size:12px}.designer-layout-modes [aria-pressed=true]{background:#eef0ff;border-color:#777ed3;color:#373f98}.designer-document-settings>summary{display:none}.designer-document-settings.is-free{border:1px solid var(--border);border-radius:10px;background:#fff}.designer-document-settings.is-free>summary{display:list-item;padding:18px;cursor:pointer;font-size:12px;font-weight:600}.designer-document-settings.is-free .designer-workspace{display:block;padding:0 16px 16px}.designer-document-settings.is-free .designer-controls{grid-template-columns:repeat(4,minmax(0,1fr))}.invoice-free-designer{min-width:0;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff}.invoice-free-toolbar,.invoice-free-tools{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:16px 20px;border-bottom:1px solid #e5e9f1}.invoice-free-toolbar{justify-content:space-between}.invoice-designer-title{display:flex;align-items:center;gap:11px;color:var(--accent)}.invoice-designer-title>div{display:grid;gap:4px}.invoice-designer-title strong{font-size:13px;color:var(--ink)}.invoice-designer-title span{color:var(--muted);font-size:10px}.invoice-view-switch,.invoice-panel-switch{display:flex;gap:3px;padding:3px;border:1px solid #e3e7ef;border-radius:8px;background:#f6f7fb}.invoice-view-switch button,.invoice-panel-switch button{display:flex;align-items:center;justify-content:center;gap:7px;padding:8px 12px;font-size:11px;font-weight:550;color:#717b8e;background:transparent;border:1px solid transparent;box-shadow:none;border-radius:5px}.invoice-view-switch [aria-pressed=true],.invoice-panel-switch [aria-pressed=true]{background:#fff;color:var(--accent);border-color:#e0e4ed;box-shadow:0 1px 3px #25334b08}.invoice-free-tools{gap:12px;padding:10px 16px;background:#fcfcfe}.invoice-tool-group{display:flex;gap:4px;padding-right:12px;border-right:1px solid #e2e6ee}.invoice-free-tools button{display:flex;gap:5px;align-items:center;padding:7px 9px;font-size:11px;min-height:32px;box-shadow:none}.invoice-free-tools label{display:flex;align-items:center;gap:6px;font-size:10px;color:#6c778b;white-space:nowrap}.invoice-free-tools select,.invoice-unit-control select{padding:6px;border:1px solid #dce2ec;border-radius:5px;background:#fff;color:#47546a;font-size:11px}.invoice-free-tools input,.invoice-inspector-check input{accent-color:var(--accent)}.invoice-free-body{display:grid;grid-template-columns:268px minmax(0,1fr);height:clamp(620px,75dvh,900px);min-height:0}.is-preview .invoice-free-body{grid-template-columns:minmax(0,1fr)}.invoice-block-inspector{display:flex;flex-direction:column;align-items:stretch;gap:16px;overflow:auto;padding:16px;margin:0;border:0;border-right:1px solid #e1e6ef;min-width:0;min-height:0}.invoice-panel-switch{flex-shrink:0}.invoice-panel-switch button{flex:1}.invoice-panel-switch span{font-size:9px;border-radius:4px;padding:1px 4px;background:#eceef6}.invoice-selected-heading{display:grid;gap:5px;margin:2px 0 0;padding:2px 0 12px;border-bottom:1px solid #edf0f5}.invoice-selected-heading>span{color:#9098a8;font-size:9px;letter-spacing:.06em;text-transform:uppercase}.invoice-selected-heading strong{font-size:15px;color:#29364b;font-weight:600}.invoice-selected-heading small{font-size:10px;color:#8c94a4}.invoice-block-inspector label{display:grid;gap:7px;color:#627088;font-size:10px;font-weight:550;min-width:0}.invoice-block-inspector select,.invoice-block-inspector input[type=number],.invoice-block-inspector textarea{width:100%;min-width:0;border:1px solid #dbe1eb;border-radius:6px;padding:8px 9px;background:#fff;font-size:12px;color:#28344a}.invoice-block-inspector textarea{resize:vertical}.invoice-free-designer button:focus-visible,.invoice-free-designer select:focus-visible,.invoice-free-designer input:focus-visible,.invoice-free-designer textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.invoice-block-inspector button{font-size:10px}.invoice-inspector-hint{margin:0;font-size:10px;color:#8590a3;line-height:1.6}.invoice-inspector-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:4px;color:#38465e;font-size:11px}.invoice-block-inspector .invoice-unit-control select{padding:4px;width:auto;font-size:10px}.invoice-geometry-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.invoice-block-alignment{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.invoice-block-alignment button{padding:7px 3px;font-size:10px;box-shadow:none}.invoice-block-inspector .invoice-inspector-check{display:flex;align-items:center;gap:8px}.invoice-block-inspector .invoice-inspector-color{display:flex;justify-content:space-between;align-items:center;gap:8px}.invoice-inspector-color input{width:32px;height:32px;padding:2px;border:1px solid #dbe1eb;border-radius:5px;background:#fff;flex-shrink:0}.invoice-block-order,.invoice-block-actions{display:flex;gap:6px}.invoice-block-order button{flex:1;padding:8px 5px}.invoice-block-actions{flex-direction:column}.invoice-block-actions button{padding:9px}.invoice-delete-block{display:flex;align-items:center;justify-content:center;gap:5px;color:#ac5058;border:1px solid #efdbde;background:#fffafb;border-radius:6px;box-shadow:none}.invoice-layer-panel{display:grid;gap:12px}.invoice-layer-list{display:grid;gap:5px;list-style:none;margin:0;padding:0}.invoice-layer-list button{display:flex;align-items:center;gap:9px;min-height:44px;width:100%;padding:10px;border:1px solid #e7eaf1;border-radius:6px;background:#fff;color:#7e899e;box-shadow:none;text-align:left}.invoice-layer-list button>span{display:grid;gap:4px;min-width:0;flex:1}.invoice-layer-list strong{font-size:11px;font-weight:550;color:#4d5b73}.invoice-layer-list small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:150px;font-size:9px}.invoice-layer-list [aria-pressed=true]{border-color:#b9bce9;background:#f4f4ff}.invoice-layer-list [aria-pressed=true] strong{color:var(--accent)}.invoice-free-stage{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:#edf0f5}.invoice-stage-heading,.invoice-stage-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;flex-shrink:0;padding:12px 18px;color:#8a94a5;font-size:10px}.invoice-stage-heading{border-bottom:1px solid #e0e5ef;background:#f2f4f8}.invoice-free-status{display:flex;align-items:center;gap:6px;font-size:10px}.invoice-free-status:before{content:"";width:5px;height:5px;border-radius:50%;background:#d8a344}.invoice-free-status.is-ready:before{background:#56a287}.invoice-free-status.is-error:before{background:#d57d7d}.invoice-sheet-viewport{min-width:0;min-height:0;flex:1;overflow:auto;padding:26px;overscroll-behavior:contain}.invoice-free-sheet{position:relative;width:100%;max-width:795px;margin:0 auto;background:#fff;box-shadow:0 3px 18px #26324716;isolation:isolate}.invoice-free-sheet.has-grid:after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background-image:linear-gradient(#727ab40a 1px,transparent 1px),linear-gradient(90deg,#727ab40a 1px,transparent 1px);background-size:5% 5%}.invoice-free-sheet[data-stale=true] .invoice-pdf-canvas{opacity:.35}.invoice-layout-block{position:absolute;pointer-events:none;z-index:3}.invoice-layout-block.is-decoration{z-index:2}.invoice-layout-block.show-outline{outline:1px dashed #7884ac55}.invoice-layout-block.is-selected.show-outline{outline:2px solid var(--accent);z-index:4}.invoice-layout-block .invoice-block-move{display:block;position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;cursor:grab;touch-action:none;pointer-events:auto}.invoice-block-move:active{cursor:grabbing}.invoice-block-move span{display:none;position:absolute;bottom:calc(100% + 3px);left:-1px;padding:4px 6px;width:max-content;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#747fa0;border-radius:3px 3px 3px 0;color:#fff;font-size:9px;line-height:1.3;pointer-events:none}.show-outline:hover .invoice-block-move span,.is-selected.show-outline .invoice-block-move span,.show-outline:focus-within .invoice-block-move span{display:block}.is-selected .invoice-block-move span{background:var(--accent)}.invoice-layout-block .invoice-block-move:disabled{pointer-events:none;opacity:1}.invoice-layout-block .invoice-block-resize{display:block;position:absolute;right:-5px;bottom:-5px;width:12px;height:12px;min-height:0;padding:0;border:2px solid white;border-radius:2px;background:var(--accent);cursor:nwse-resize;box-shadow:0 0 0 1px var(--accent);pointer-events:auto;touch-action:none}.invoice-stage-note{margin:0;color:#8a94a5;font-size:9px;line-height:1.6}.invoice-free-stage>.form-error{margin:12px 18px 0;flex-shrink:0}@media(max-width:1100px){.designer-document-settings.is-free .designer-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-free-body{grid-template-columns:240px minmax(0,1fr)}.is-preview .invoice-free-body{grid-template-columns:minmax(0,1fr)}.invoice-block-inspector{padding:13px}.invoice-free-tools{gap:9px}.invoice-sheet-viewport{padding:23px 16px}}@media(max-width:760px){.invoice-free-body{grid-template-columns:minmax(0,1fr);height:auto}.invoice-block-inspector{max-height:430px;border-right:0;border-bottom:1px solid #e1e6ef}.invoice-free-stage{height:70dvh;min-height:430px}.invoice-free-toolbar{padding:14px;gap:15px}.invoice-free-tools{padding:10px 12px}.invoice-stage-heading,.invoice-stage-footer{padding:12px}}@media(max-width:480px){.invoice-free-toolbar{align-items:start}.invoice-designer-title strong{font-size:12px}.invoice-view-switch button{padding:7px;font-size:10px}.invoice-tool-group{padding-right:7px}.designer-document-settings.is-free .designer-controls{grid-template-columns:minmax(0,1fr)}.invoice-block-inspector input[type=number],.invoice-block-inspector select,.invoice-block-inspector textarea{font-size:16px}.designer-actions a{font-size:11px}}.invoice-expand-button{display:flex;align-items:center;gap:6px;padding:8px 10px;font-size:10px;box-shadow:none;margin-left:auto}.invoice-designer-dialog{width:calc(100vw - 32px);height:calc(100dvh - 32px);max-width:none;max-height:none;padding:0;border:0;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 15px 80px #16223833}.invoice-designer-dialog::backdrop{background:#20283b8a;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.invoice-designer-dialog>.invoice-free-designer{display:flex;flex-direction:column;height:100%;border:0}.invoice-designer-dialog .invoice-free-body{flex:1;height:auto;min-height:0}.invoice-expanded-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:12px;flex-shrink:0;padding:14px 20px;border-top:1px solid var(--border);background:#fff}.invoice-expanded-actions>span{margin-right:auto;color:var(--muted);font-size:10px}.invoice-expanded-actions button,.invoice-expanded-actions a{font-size:11px}@media(max-width:760px){.invoice-designer-dialog{width:calc(100vw - 12px);height:calc(100dvh - 12px)}.invoice-designer-dialog .invoice-free-body{overflow:auto;display:block}.invoice-designer-dialog .invoice-block-inspector{max-height:250px}.invoice-expanded-actions{padding:10px;gap:8px}.invoice-expanded-actions>span{display:none}.invoice-expanded-actions button,.invoice-expanded-actions a{flex:1;font-size:10px}.invoice-free-tools button{min-height:38px}}.invoice-expanded-message{margin:12px 16px;flex-shrink:0;font-size:12px}@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:"Manrope", "Segoe UI", Arial, sans-serif;--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-600:oklch(66.6% .179 58.318);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-blue-500:oklch(62.3% .214 259.815);--color-indigo-50:oklch(96.2% .018 272.314);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-200:oklch(90.2% .063 306.703);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-900:oklch(20.8% .042 265.755);--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-4xl:56rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-black:900;--tracking-tight:-.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-relaxed:1.625;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components{:root{font-family:var(--font-sans);color:#0f172a;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--ink:#0f172a;--ink-soft:#334155;--muted:#64748b;--muted-light:#94a3b8;--border:#e2e8f0;--border-strong:#cbd5e1;--surface:#fff;--surface-soft:#f8fafc;--surface-raised:#fff;--accent:#4f46e5;--accent-dark:#3730a3;--accent-hover:#4338ca;--accent-soft:#eef2ff;--accent-border:#c7d2fe;--danger:#dc2626;--danger-soft:#fef2f2;--warning:#d97706;--warning-soft:#fffbeb;--success:#059669;--success-soft:#ecfdf5;--info:#2563eb;--info-soft:#eff6ff;--sidebar:#fff;--sidebar-hover:#f8fafc;--sidebar-active:#eef2ff;--radius-sm:6px;--radius-md:10px;--radius-lg:14px;--radius-xl:18px;--control-height:40px;--shadow-sm:0 1px 2px 0 #0000000d;--shadow:0 4px 6px -1px #0000000d, 0 2px 4px -2px #0000000d;--shadow-card:0 1px 3px 0 #0000000d, 0 1px 2px -1px #0000000a;--shadow-menu:0 10px 25px -3px #0000001a, 0 4px 6px -4px #0000000d;--shadow-lg:0 20px 25px -5px #00000014, 0 8px 10px -6px #0000000a;background:#f8fafc}*{box-sizing:border-box}html{min-width:320px;min-height:100%;font-size:16px}body{min-width:320px;min-height:100vh;color:var(--ink);font-size:var(--text-body);letter-spacing:0;background:#f4f6fa;margin:0;line-height:1.6}button,input,select,textarea{font:inherit;letter-spacing:inherit}button,.button-link{transition:background-color .15s cubic-bezier(.4,0,.2,1),border-color .15s cubic-bezier(.4,0,.2,1),color .15s cubic-bezier(.4,0,.2,1),box-shadow .15s cubic-bezier(.4,0,.2,1),transform .1s}button{min-height:var(--control-height);border:1px solid var(--accent);border-radius:var(--radius-md);color:#fff;background:var(--accent);cursor:pointer;justify-content:center;align-items:center;gap:.5rem;padding:0 1.15rem;font-size:.875rem;font-weight:600;display:inline-flex;box-shadow:0 1px 2px #4f46e540,inset 0 1px #ffffff26}button:hover:not(:disabled),.button-link:hover{border-color:var(--accent-hover);background:var(--accent-hover);box-shadow:0 4px 12px #4f46e547}button:active:not(:disabled),.button-link:active{background:var(--accent-dark);transform:translateY(1px)}button:disabled{cursor:not-allowed;opacity:.55;box-shadow:none}a{color:var(--accent);text-underline-offset:.2em}:focus-visible{outline-offset:2px;outline:2px solid #4f46e5}h1,h2,h3{font-weight:650}h1,h2,h3,p{overflow-wrap:anywhere}h1{letter-spacing:-.03em;margin:.18rem 0 .4rem;font-size:clamp(1.625rem,2vw,2rem);line-height:1.25}h2{letter-spacing:-.02em;margin:0;font-size:1.0625rem;line-height:1.4}h3{margin:0;font-size:.9375rem;line-height:1.45}.eyebrow,.section-kicker{color:var(--accent);font-size:var(--text-caption);letter-spacing:.1em;text-transform:uppercase;margin:0;font-weight:800}.muted{color:var(--muted);margin:.28rem 0 0;font-size:.9rem;line-height:1.5}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.ui-icon{flex:none}.skeleton{border-radius:var(--radius-sm);background:linear-gradient(90deg,#e2e8f0 25%,#f1f5f9,#e2e8f0 75%) 0 0/200% 100%;animation:1.5s ease-in-out infinite skeleton-shimmer;display:block}.skeleton-row{border-bottom:1px solid var(--border);gap:1rem;padding:.75rem .85rem;display:flex}.skeleton-row .skeleton{flex:1;height:.875rem}.skeleton-row .skeleton:first-child{flex:1.5}.skeleton-card{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);gap:.5rem;padding:1rem 1.15rem;display:grid}.skeleton-table{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);overflow:hidden}.skeleton-table .skeleton-row:last-child{border-bottom:0}@keyframes skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.login-page{background:radial-gradient(circle at 10% 10%,#6366f114,#0000 45%),radial-gradient(circle at 90% 90%,#4f46e50f,#0000 45%),#f8fafc;place-items:center;min-height:100vh;padding:1.5rem;display:grid}.login-shell{border:1px solid var(--border);border-radius:var(--radius-xl);background:var(--surface);grid-template-columns:minmax(20rem,.95fr) minmax(22rem,1.05fr);width:min(100%,64rem);display:grid;overflow:hidden;box-shadow:0 25px 50px -12px #0f172a1f,0 0 0 1px #e2e8f0cc}.login-intro{color:#fff;background:radial-gradient(circle at 100% 0,#6366f159,#0000 60%),linear-gradient(150deg,#090d16,#0f172a,#1e1b4b);flex-direction:column;justify-content:space-between;min-height:34rem;padding:3rem;display:flex;position:relative}.login-brand{align-items:center;gap:.75rem;display:flex}.login-brand>span{border-radius:var(--radius-md);color:#fff;background:linear-gradient(135deg,#6366f1,#4338ca);place-items:center;width:2.25rem;height:2.25rem;font-size:1.1rem;font-weight:900;display:grid;box-shadow:0 4px 12px #6366f166}.login-brand strong{letter-spacing:-.01em;font-size:1rem}.login-intro h2{letter-spacing:-.025em;max-width:24rem;margin-top:.75rem;font-size:1.75rem;font-weight:700;line-height:1.25}.login-intro p:not(.eyebrow){color:#cbd5e1;max-width:24rem;margin-top:.75rem;font-size:.9rem;line-height:1.6}.login-intro small{color:#94a3b8;align-items:center;gap:.5rem;font-size:.75rem;font-weight:500;display:flex}.login-card,.center-card{border:1px solid var(--border);border-radius:var(--radius-xl);background:var(--surface);width:min(100%,28rem);box-shadow:var(--shadow);padding:clamp(1.75rem,5vw,3rem)}.login-shell .login-card{width:100%;box-shadow:none;border:0;border-radius:0;align-self:center}.login-card form{gap:.5rem;margin-top:1.75rem;display:grid}.login-card label{color:var(--ink-soft);margin-top:.5rem;font-size:.825rem;font-weight:600}.login-card input{width:100%;min-height:var(--control-height);border:1px solid var(--border);border-radius:var(--radius-md);background:#fff;padding:.6rem .85rem;font-size:.9rem;transition:border-color .15s,box-shadow .15s}.login-card input:hover{border-color:var(--border-strong)}.login-card input:focus,.login-card input:focus-visible{border-color:#6366f1;outline:none;box-shadow:0 0 0 3px #6366f126}.password-header{justify-content:space-between;align-items:center;margin-top:.5rem;display:flex}.password-header label{margin-top:0}.forgot-password-link{font-size:var(--text-small);color:var(--accent);font-weight:600;text-decoration:none}.forgot-password-link:hover{text-decoration:underline}.remember-me{cursor:pointer;align-items:center;gap:.5rem;font-size:.85rem;display:flex;color:var(--ink-soft)!important;margin-top:.75rem!important;font-weight:500!important}.remember-me input{cursor:pointer;border-radius:4px;margin:0;width:1.05rem!important;min-height:1.05rem!important}.login-submit-btn{border-radius:var(--radius-md);background:#4f46e5;width:100%;min-height:44px;margin-top:1.5rem;font-size:.95rem;font-weight:600;box-shadow:0 4px 14px #4f46e559}.password-field{position:relative}.password-field input{padding-right:2.5rem}.password-toggle{width:var(--control-height);min-height:var(--control-height);border-radius:0 var(--radius-sm) var(--radius-sm) 0;color:var(--muted-light);box-shadow:none;cursor:pointer;background:0 0;border:0;place-items:center;padding:0;display:grid;position:absolute;top:0;right:0}.password-toggle:hover:not(:disabled){color:var(--accent);background:0 0}.status-page{text-align:center}.status-page-icon{width:64px;height:64px;color:var(--muted);background:var(--surface-soft);border:1px solid var(--border);border-radius:16px;place-items:center;margin:0 auto 1rem;display:grid}.status-page-forbidden .status-page-icon{color:var(--danger);background:var(--danger-soft)}.status-code{color:var(--muted-light);letter-spacing:-.04em;margin-bottom:.25rem;font-size:2.5rem;font-weight:800;line-height:1;display:block}.metric-card-value{align-items:baseline;gap:.5rem;display:flex}.metric-card-value>strong{color:var(--ink);letter-spacing:-.04em;font-variant-numeric:tabular-nums;font-size:1.62rem;font-weight:740}.metric-trend{border-radius:var(--radius-sm);font-size:var(--text-caption);white-space:nowrap;align-items:center;gap:.2rem;padding:.15rem .4rem;font-weight:700;display:inline-flex}.metric-trend-up{color:#059669;background:#ecfdf5}.metric-trend-down{color:#dc2626;background:#fef2f2}.app-shell{grid-template-columns:16.5rem minmax(0,1fr);min-height:100vh;transition:grid-template-columns .18s;display:grid}.app-shell.sidebar-collapsed{grid-template-columns:4.75rem minmax(0,1fr)}.sidebar{z-index:30;min-width:0;min-height:100vh;max-height:100vh;color:var(--ink-soft);background:var(--sidebar);border-right:1px solid var(--border);flex-direction:column;display:flex;position:sticky;top:0;overflow:hidden}.sidebar-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:.5rem;min-height:76px;padding:0 1.25rem;display:flex}.brand{min-width:0;color:var(--ink);align-items:center;gap:.75rem;text-decoration:none;display:flex}.factura-logo{flex-shrink:0;width:9rem;max-width:100%;height:auto;display:block;overflow:hidden}.factura-logo-icon{width:36px}.brand-mark{border:1px solid var(--accent-border);width:36px;height:36px;color:var(--accent);background:var(--accent-soft);box-shadow:none;border-radius:10px;flex:none;place-items:center;font-size:.95rem;font-weight:700;display:grid;overflow:hidden}.brand-mark img,.sidebar-context-mark img,.workspace-context-mark img{border-radius:inherit;object-fit:contain;background:#fff;width:100%;height:100%}.brand-copy{gap:.15rem;min-width:0;display:grid}.brand strong{letter-spacing:-.01em;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem;font-weight:700;overflow:hidden}.brand small{color:var(--muted);font-size:var(--text-caption);text-overflow:ellipsis;white-space:nowrap;font-weight:500;overflow:hidden}.sidebar-collapse{border-radius:var(--radius-sm);color:#94a3b8;width:28px;min-height:28px;box-shadow:none;cursor:pointer;background:#ffffff08;border-color:#ffffff14;flex:none;place-items:center;padding:0;transition:all .15s;display:grid}.sidebar-collapse:hover:not(:disabled){color:#fff;background:#ffffff14;border-color:#fff3}.sidebar nav{scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent;flex:1;align-content:start;gap:1.25rem;min-height:0;padding:1.5rem .875rem;display:grid;overflow:hidden auto}.nav-section{gap:.25rem;display:grid}.nav-section+.nav-section{border-top:1px solid var(--border);padding-top:1.25rem}.nav-section-label{color:var(--muted);font-size:var(--text-caption);letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;margin:0 .75rem .4rem;font-weight:600}.nav-links{gap:.25rem;display:grid}.sidebar nav a{min-height:42px;color:var(--ink-soft);font-size:var(--text-body);white-space:nowrap;border:1px solid #0000;border-radius:8px;align-items:center;gap:.75rem;padding:.5rem .75rem;font-weight:500;text-decoration:none;transition:color .15s,background-color .15s,border-color .15s;display:flex}.sidebar nav a:hover{color:var(--ink);background:var(--sidebar-hover)}.sidebar nav a.active{color:var(--accent-dark);background:var(--sidebar-active);border-color:#e0e7ff;font-weight:600}.sidebar nav a .ui-icon{width:18px;height:18px;color:var(--muted)}.sidebar nav a.active .ui-icon{color:var(--accent)}.sidebar-context{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-soft);flex-shrink:0;align-items:center;gap:.65rem;min-width:0;margin:0 .875rem .875rem;padding:.875rem .75rem;display:flex}.sidebar-context-mark,.workspace-context-mark{border-radius:var(--radius-sm);color:#fff;width:30px;height:30px;font-size:var(--text-caption);background:#4f46e5;flex:none;place-items:center;font-weight:850;display:grid;overflow:hidden}.sidebar-context>span:last-child,.workspace-context>span:last-child{gap:.04rem;min-width:0;display:grid}.sidebar-context-mark{color:var(--accent);background:var(--accent-soft);font-weight:700}.sidebar-context small,.workspace-context small{color:#9c98a1;font-size:var(--text-caption);letter-spacing:.04em;text-transform:uppercase;font-weight:700}.sidebar-context strong{color:var(--ink-soft);font-size:var(--text-small);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sidebar-context small{color:var(--muted);font-size:var(--text-caption);letter-spacing:0;text-transform:none;font-weight:500}.sidebar-collapsed .brand-copy,.sidebar-collapsed .nav-section-label,.sidebar-collapsed .nav-links a span,.sidebar-collapsed .sidebar-context>span:last-child{display:none}.sidebar-collapsed .sidebar-header,.sidebar-collapsed .sidebar-context{justify-content:center}.sidebar-collapsed .sidebar-context{margin-inline:.5rem;padding-inline:.5rem}.sidebar-collapsed .sidebar nav a{justify-content:center;padding-inline:.45rem}.app-workspace{min-width:0}.topbar{z-index:20;border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#ffffffd9;align-items:center;gap:1rem;min-width:0;min-height:76px;padding:0 1.75rem;display:flex;position:sticky;top:0}.mobile-menu-button{border-color:var(--border);width:38px;min-height:38px;color:var(--ink);box-shadow:var(--shadow-sm);background:#fff;place-items:center;padding:0;display:none}.topbar-page-context{grid-auto-flow:column;align-items:center;gap:.65rem;min-width:0;display:grid}.topbar-brand{flex-shrink:0;display:none}.topbar-page-context small{color:var(--muted);font-size:.8rem;font-weight:500}.topbar-page-context strong{color:var(--ink-soft);font-size:var(--text-body)}.workspace-context{border-right:1px solid var(--border);align-items:center;gap:.55rem;min-width:0;margin-left:0;padding-right:.85rem;display:flex}.workspace-context small{color:var(--muted)}.workspace-context strong{max-width:17rem;color:var(--ink-soft);text-overflow:ellipsis;white-space:nowrap;font-size:.8rem;overflow:hidden}.workspace-context.is-platform .workspace-context-mark{color:#6c4c0e;background:#fff0be}.user-menu{position:relative}.user-menu summary{border-radius:var(--radius-sm);cursor:pointer;border:1px solid #0000;align-items:center;gap:.5rem;min-height:40px;padding:.25rem .45rem;list-style:none;display:flex}.user-menu summary::-webkit-details-marker{display:none}.action-menu summary::-webkit-details-marker{display:none}.user-menu summary:hover,.user-menu[open] summary{border-color:var(--border);background:var(--surface-soft)}.account-avatar{color:#4f46e5;width:34px;height:34px;font-size:var(--text-caption);background:#eef2ff;border-radius:50%;flex:none;place-items:center;font-weight:850;display:grid}.user-menu-copy{gap:.02rem;min-width:0;display:grid}.user-menu-copy strong{max-width:11rem;font-size:var(--text-small);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.user-menu-copy small{color:var(--muted);font-size:var(--text-caption)}.user-menu-panel{z-index:60;border:1px solid var(--border);border-radius:var(--radius-md);width:16rem;box-shadow:var(--shadow-menu);transform-origin:100% 0;background:#fff;animation:.16s ease-out menu-in;display:grid;position:absolute;top:calc(100% + .45rem);right:0;overflow:hidden}.user-menu-identity{border-bottom:1px solid var(--border);gap:.18rem;padding:.85rem;display:grid}.user-menu-identity strong{font-size:var(--text-small)}.user-menu-identity small{color:var(--muted);font-size:var(--text-caption);overflow-wrap:anywhere}.user-menu-identity span{color:var(--accent);font-size:var(--text-caption);margin-top:.18rem;font-weight:750}.user-menu-panel>a,.user-menu-panel>button{min-height:40px;color:var(--ink-soft);text-align:left;background:#fff;border:0;border-radius:0;justify-content:flex-start;align-items:center;padding:0 .85rem;font-size:.82rem;font-weight:650;text-decoration:none;display:flex}.user-menu-panel>a:hover,.user-menu-panel>button:hover:not(:disabled){color:var(--accent-dark);background:var(--surface-soft)}.sidebar-backdrop{z-index:25;background:#14121780;border:0;border-radius:0;min-height:0;padding:0;position:fixed;inset:0}.content{min-width:0;padding:2rem clamp(1.3rem,2.5vw,2.75rem) 3.5rem}.content-inner{width:100%;max-width:88rem;margin:0 auto}.breadcrumbs{color:var(--muted);font-size:var(--text-small);flex-wrap:wrap;align-items:center;gap:.4rem;margin:0 0 .55rem;display:flex}.breadcrumbs>span{align-items:center;gap:.4rem;display:inline-flex}.breadcrumbs a{color:var(--muted);font-weight:600;text-decoration:none}.breadcrumbs a:hover{color:var(--accent)}.page-heading{justify-content:space-between;align-items:flex-start;gap:1.5rem;display:flex}.page-header{min-height:76px;margin-bottom:1.75rem;padding-bottom:0}.page-header-copy{min-width:0}.page-heading h1{margin-bottom:.28rem}.page-heading .muted{max-width:54rem}.heading-actions,.row-actions,.dialog-actions,.form-actions{align-items:center;gap:.5rem;display:flex}.heading-actions{flex-wrap:wrap;justify-content:flex-end;align-self:center}.button-link{min-height:var(--control-height);border:1px solid var(--accent);border-radius:var(--radius-md);color:#fff;background:var(--accent);white-space:nowrap;justify-content:center;align-items:center;gap:.5rem;padding:0 1.15rem;font-size:.875rem;font-weight:600;text-decoration:none;display:inline-flex;box-shadow:0 1px 2px #4f46e540,inset 0 1px #ffffff26}.secondary-link,button.secondary{border:1px solid var(--border);color:var(--ink-soft);background:#fff;box-shadow:0 1px 2px #0000000a}.secondary-link:hover,button.secondary:hover:not(:disabled){border-color:var(--border-strong);color:var(--ink);background:var(--surface-soft);box-shadow:0 2px 4px #0000000d}button.danger{border-color:var(--danger);color:#fff;background:var(--danger);box-shadow:0 1px 2px #dc262640}button.danger:hover:not(:disabled){background:#b91c1c;border-color:#b91c1c;box-shadow:0 4px 10px #dc26264d}.compact-button{border-radius:var(--radius-sm);min-height:36px;padding:0 .75rem;font-size:.8rem}.back-link{color:var(--muted);align-items:center;gap:.35rem;margin-bottom:.75rem;font-size:.825rem;font-weight:600;text-decoration:none;transition:color .15s;display:inline-flex}.back-link:hover{color:var(--accent)}.center-card{margin:10vh auto}.narrow-page{width:min(100%,68rem);margin:0 auto}.wide-form-page{width:100%;margin:0 auto}.form-page-heading{border-bottom:1px solid var(--border);margin-bottom:1.25rem;padding-bottom:1rem}.list-toolbar,.filters{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);min-width:0;box-shadow:var(--shadow-sm);align-items:flex-end;gap:.85rem;margin:1.25rem 0;padding:1.15rem;display:flex}.list-toolbar-summary{align-self:center;gap:.08rem;min-width:10rem;padding:0 .45rem;display:grid}.list-toolbar-summary strong{color:var(--ink);font-size:.85rem}.list-toolbar-summary span{color:var(--muted);font-size:var(--text-small)}.list-toolbar-fields{flex:1;justify-content:flex-end;align-items:flex-end;gap:.65rem;min-width:0;display:flex}.filters>*,.list-toolbar-fields>*{min-width:0}.filters label,.search-field label,.form-field label,.list-toolbar label{color:var(--ink-soft);font-size:var(--text-small);letter-spacing:-.01em;margin-bottom:.35rem;font-weight:650;display:block}.search-field{flex:1;min-width:min(24rem,100%)}.filters input,.filters select,.client-form input,.client-form textarea,.product-form input,.product-form textarea,.product-form select,.invoice-form input,.invoice-form select,.invoice-form textarea,.company-form input,.company-form select,.company-form textarea,dialog textarea,.list-toolbar input,.list-toolbar select{width:100%;min-height:var(--control-height);border:1px solid var(--border);border-radius:var(--radius-md);color:var(--ink);box-shadow:var(--shadow-sm);background:#fff;padding:.55rem .85rem;font-size:.875rem;transition:border-color .15s,box-shadow .15s}.filters input:hover,.filters select:hover,.client-form input:hover,.client-form textarea:hover,.product-form input:hover,.product-form textarea:hover,.product-form select:hover,.invoice-form input:hover,.invoice-form select:hover,.invoice-form textarea:hover,.company-form input:hover,.company-form select:hover,.company-form textarea:hover,.list-toolbar input:hover,.list-toolbar select:hover{border-color:var(--border-strong)}textarea{line-height:1.5}input::placeholder{color:var(--muted-light)}input:disabled,select:disabled,textarea:disabled{color:var(--muted);border-color:var(--border);background:var(--surface-soft);cursor:not-allowed;opacity:1}input[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true]{border-color:var(--danger);background:var(--danger-soft)}.filters input:focus,.filters select:focus,.client-form input:focus,.client-form textarea:focus,.product-form input:focus,.product-form textarea:focus,.product-form select:focus,.invoice-form input:focus,.invoice-form select:focus,.invoice-form textarea:focus,.company-form input:focus,.company-form select:focus,.company-form textarea:focus,dialog textarea:focus,.list-toolbar input:focus,.list-toolbar select:focus{border-color:#6366f1;outline:0;box-shadow:0 0 0 3px #6366f126}.invoice-filters{padding:0;display:block}.invoice-status-shortcuts{border-bottom:1px solid var(--border);gap:.25rem;padding:.48rem .65rem;display:flex;overflow-x:auto}.invoice-status-shortcuts button{border-radius:var(--radius-sm);min-height:34px;color:var(--muted);box-shadow:none;font-size:var(--text-small);background:0 0;border-color:#0000;flex:none;padding:0 .7rem}.invoice-status-shortcuts button:hover,.invoice-status-shortcuts button.active{border-color:var(--accent-border);color:var(--accent-dark);background:var(--accent-soft)}.invoice-filter-primary{grid-template-columns:minmax(18rem,1.5fr) minmax(13rem,.8fr) minmax(10rem,.55fr);gap:.6rem;padding:.65rem;display:grid}.advanced-filters{border-top:1px solid var(--border)}.advanced-filters summary{color:var(--ink-soft);font-size:var(--text-caption);cursor:pointer;padding:.55rem .7rem;font-weight:700}.advanced-filters summary span{color:var(--muted-light);margin-left:.3rem;font-weight:500}.invoice-advanced-filter-grid{grid-template-columns:repeat(3,minmax(10rem,1fr));gap:.6rem;padding:.1rem .65rem .65rem;display:grid}.product-filters{grid-template-columns:minmax(16rem,1.4fr) repeat(5,minmax(8rem,.55fr));display:grid}.result-summary{justify-content:space-between;align-items:baseline;gap:.55rem;padding:.2rem .08rem .42rem;display:flex}.result-summary strong{font-size:var(--text-small)}.result-summary span{color:var(--muted);font-size:var(--text-small)}.table-wrap{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-card);scrollbar-color:#cbd5e1 transparent;scrollbar-width:thin;margin-top:.75rem;position:relative;overflow:auto}table{border-collapse:collapse;width:100%}th,td{border-bottom:1px solid var(--border);text-align:left;vertical-align:middle;padding:.75rem 1rem}th{height:42px;color:var(--muted);font-size:var(--text-caption);letter-spacing:.045em;text-transform:uppercase;white-space:nowrap;background:#f8fafc;font-weight:650}tbody tr:last-child td{border-bottom:0}tbody tr{transition:background-color .15s}tbody tr:hover{background:#f8fafc}td{color:var(--ink-soft);font-size:var(--text-body);border-bottom:1px solid #f1f5f9}td strong{color:var(--ink);font-weight:600}td small{color:var(--muted);font-size:var(--text-caption);margin-top:.15rem;display:block}.entity-cell{align-items:center;gap:.75rem;min-width:0;display:flex}.entity-cell>span:last-child{gap:.08rem;min-width:0;display:grid}.entity-cell a,.invoice-number,td>a{color:var(--ink);font-weight:650;text-decoration:none}.entity-cell a:hover,.invoice-number:hover,td>a:hover{color:var(--accent)}.entity-avatar{width:34px;height:34px;color:var(--accent);background:var(--accent-soft);border:1px solid var(--accent-border);border-radius:9px;flex:none;place-items:center;font-size:.75rem;font-weight:800;display:grid}.numeric-column,.numeric-cell{text-align:right}.numeric-cell,.invoice-amount{font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;white-space:nowrap}.invoice-amount{font-size:.88rem;font-weight:750}.action-cell{white-space:nowrap;width:1%}.invoice-table table{min-width:60rem}.client-table td>*,.product-table td>*,.client-table td .flex-col,.product-table td .flex-col{overflow-wrap:anywhere;min-width:0}.client-table table{min-width:52rem}.product-table table{min-width:58rem}.legacy-list-page>.list-metrics,.legacy-list-page>.list-toolbar,.legacy-list-page>.filters{margin-block:0}.list-pagination{border-top:1px solid var(--border);background:var(--surface-soft);border-radius:0 0 var(--radius-lg) var(--radius-lg);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;padding:1rem;display:flex}.row-actions{white-space:nowrap;flex-wrap:wrap}.row-actions a,.link-button{color:var(--accent);font-size:var(--text-caption);font-weight:700}.link-button{min-height:0;color:var(--accent);background:0 0;border:0;padding:0;text-decoration:none}.link-button:hover:not(:disabled){box-shadow:none;color:var(--accent-dark);background:0 0;border-color:#0000}.invoice-edit-action{border-radius:var(--radius-sm);background:var(--accent);padding:.28rem .52rem;display:inline-flex;color:#fff!important}.action-menu{display:inline-block;position:relative}.action-menu summary{border-radius:var(--radius-sm);width:34px;height:34px;color:var(--muted);cursor:pointer;border:1px solid #0000;place-items:center;list-style:none;display:grid}.action-menu summary:hover,.action-menu[open] summary{border-color:var(--border);color:var(--ink);background:var(--surface-soft)}.action-menu-panel{z-index:50;border:1px solid var(--border);border-radius:var(--radius-md);min-width:11rem;box-shadow:var(--shadow-menu);transform-origin:100% 0;background:#fff;animation:.16s ease-out menu-in;display:grid;position:absolute;top:calc(100% + 5px);right:0;overflow:hidden}.action-menu-panel>a,.action-menu-panel>button,.action-menu-panel>span{min-height:38px;color:var(--ink-soft);text-align:left;white-space:nowrap;background:#fff;border:0;border-radius:0;justify-content:flex-start;align-items:center;gap:.5rem;padding:0 .7rem;font-size:.8rem;font-weight:620;text-decoration:none;display:flex}.action-menu-panel>a:hover,.action-menu-panel>button:hover:not(:disabled){color:var(--accent-dark);background:var(--accent-soft)}.action-menu-panel>button.danger{color:var(--danger)}.pagination{justify-content:flex-end;align-items:center;gap:.75rem;margin-top:.9rem;display:flex}.pagination button{min-height:36px;padding-inline:.8rem}.pagination span{color:var(--muted);font-size:var(--text-caption)}.loading-state,.empty-state{border:1px dashed var(--border-strong);border-radius:var(--radius-md);text-align:center;background:var(--surface);margin-top:1rem;padding:2rem}.loading-state{min-height:8rem;color:var(--muted);align-content:center;place-items:center;gap:.7rem;font-size:.82rem;display:grid}.loading-state:before{content:"";border:2px solid #dfe3eb;border-top-color:#4f46e5;border-radius:50%;width:20px;height:20px;animation:.7s linear infinite loading-spin}.empty-state{justify-items:center;gap:.55rem;display:grid}.empty-state h1,.empty-state h2,.empty-state p{margin:0}.empty-state p{max-width:34rem;color:var(--muted);font-size:var(--text-small)}.empty-state-icon{color:#4338ca;width:40px;height:40px;font-size:var(--text-small);background:#eef2ff;border-radius:10px;place-items:center;font-weight:850;display:grid}.status-badge:before{content:"";opacity:.85;background:currentColor;border-radius:50%;flex-shrink:0;width:6px;height:6px;margin-right:.35rem;display:inline-block}.status-badge{min-height:24px;font-size:var(--text-caption);letter-spacing:.03em;text-transform:uppercase;white-space:nowrap;border:1px solid #0000;border-radius:9999px;align-items:center;padding:.18rem .65rem;font-weight:600;display:inline-flex}.status-badge.status-success,.status-badge.active,.status-badge.invoice-paid{color:#047857;background:#ecfdf5;border-color:#a7f3d0}.status-badge.status-warning,.status-badge.invoice-draft{color:#b45309;background:#fffbeb;border-color:#fde68a}.status-badge.status-danger,.status-badge.inactive,.status-badge.invoice-cancelled{color:#b91c1c;background:#fef2f2;border-color:#fecaca}.status-badge.status-info,.status-badge.invoice-validated{color:#4338ca;background:#eef2ff;border-color:#c7d2fe}.status-badge.status-neutral{border-color:var(--border);color:var(--ink-soft);background:var(--surface-soft)}.field-error,.form-error{color:#982f3a;font-size:var(--text-small);margin:.25rem 0 0}.field-hint{color:var(--muted);font-size:var(--text-caption);margin-top:.25rem;display:block}.form-error{border-radius:var(--radius-sm);background:#fff5f5;border:1px solid #f1c5c8;padding:.72rem .82rem}.form-error .link-button{margin-top:.45rem;display:block}.toast{border-radius:var(--radius-sm);color:#047857;background:#ecfdf5;border:1px solid #a7f3d0;margin:.75rem 0;padding:.75rem .9rem;font-size:.82rem}.info-banner{border:1px solid var(--accent-border);border-left:3px solid var(--accent);border-radius:var(--radius-sm);color:#3730a3;background:var(--accent-soft);margin:0;padding:.75rem .85rem;font-size:.82rem;line-height:1.5}dialog{border-radius:var(--radius-xl);background:var(--surface);border:1px solid #e2e8f0e6;width:min(100% - 2rem,32rem);margin:auto;padding:1.75rem;box-shadow:0 25px 50px -12px #0f172a40,0 0 0 1px #e2e8f0cc}dialog[open]{animation:.18s cubic-bezier(.16,1,.3,1) dialog-in}dialog::backdrop{-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0f172aa6;animation:.18s ease-out backdrop-in}.dialog-actions{justify-content:flex-end;margin-top:1.5rem}.dialog-field{color:var(--ink-soft);gap:.35rem;margin-top:.9rem;font-size:.8rem;font-weight:700;display:grid}.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-top:1rem;display:grid}.metric-card{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);min-width:0;min-height:120px;box-shadow:var(--shadow-sm);align-content:center;gap:.35rem;padding:1.35rem 1.45rem;transition:transform .18s cubic-bezier(.4,0,.2,1),box-shadow .18s cubic-bezier(.4,0,.2,1),border-color .18s cubic-bezier(.4,0,.2,1);display:grid;position:relative;overflow:hidden}.metric-card:hover{border-color:var(--border-strong);box-shadow:var(--shadow-sm)}.metric-card:before{content:"";background:#e2e8f0;height:0;position:absolute;inset:0 0 auto}.metric-card.metric-accent:before{background:#4f46e5}.metric-card.metric-warning:before{background:#d97706}.metric-card.metric-success:before{background:#059669}.metric-card-heading{justify-content:space-between;align-items:center;gap:.75rem;min-width:0;display:flex}.metric-card-icon{border:1px solid var(--border);width:36px;height:36px;color:var(--muted);background:var(--surface-soft);border-radius:10px;flex:none;place-items:center;display:grid}.metric-accent .metric-card-icon{color:#4f46e5;background:#eef2ff;border-color:#c7d2fe}.metric-warning .metric-card-icon{color:#b45309;background:var(--warning-soft);border-color:#fde68a}.metric-success .metric-card-icon{color:var(--success);background:var(--success-soft);border-color:#a7f3d0}.metric-card-label{color:var(--ink-soft);font-size:.8rem;font-weight:550}.metric-card>strong{color:var(--ink);letter-spacing:-.04em;font-variant-numeric:tabular-nums;font-size:1.62rem;font-weight:740}.metric-card>p{color:var(--muted);font-size:var(--text-small);margin:0;line-height:1.45}.dashboard-grid{grid-template-columns:minmax(0,1.45fr) minmax(19rem,.55fr);gap:1rem;margin-top:1rem;display:grid}.dashboard-panel,.record-card{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);min-width:0;box-shadow:var(--shadow-sm);padding:1.5rem}.dashboard-panel-heading,.record-card-heading{border-bottom:1px solid var(--border);justify-content:space-between;align-items:flex-start;gap:.85rem;padding-bottom:.85rem;display:flex}.dashboard-panel-heading h2,.record-card-heading h2{letter-spacing:-.015em;margin-top:.25rem;font-size:1.05rem;font-weight:700}.dashboard-panel-heading>a{color:var(--accent);font-size:var(--text-small);white-space:nowrap;font-weight:650;text-decoration:none}.compact-list{display:grid}.compact-list>a{min-width:0;color:var(--ink);border-bottom:1px solid #edf0f4;justify-content:space-between;align-items:center;gap:.9rem;padding:.85rem .25rem;text-decoration:none;transition:background-color .15s;display:flex}.compact-list>a:hover{background:#f8faff}.compact-list>a:last-child{border-bottom:0}.compact-list-main,.compact-list-end{gap:.18rem;min-width:0;display:grid}.compact-list-main strong{font-size:var(--text-small);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.compact-list-main small,.compact-list-end small{color:var(--muted);font-size:var(--text-caption)}.compact-list-end{flex:none;justify-items:end}.compact-list-end>strong{font-size:var(--text-caption);font-variant-numeric:tabular-nums}.panel-state{color:var(--muted);text-align:center;padding:1.35rem .4rem;font-size:.8rem}.panel-loading{justify-content:center;align-items:center;gap:.55rem;min-height:6rem;display:flex}.panel-loading:before{content:"";border:2px solid #dfe3eb;border-top-color:#4f46e5;border-radius:50%;width:16px;height:16px;animation:.7s linear infinite loading-spin}.quick-links{margin-top:.15rem;display:grid}.quick-links a{color:var(--ink);border-bottom:1px solid #edf0f4;gap:.12rem;padding:.8rem .25rem;text-decoration:none;display:grid}.quick-links a:last-child{border-bottom:0}.quick-links a:hover span{color:var(--accent)}.quick-links span{font-size:.75rem;font-weight:700}.quick-links small{color:var(--muted);font-size:.73rem}.platform-context-banner{border-radius:var(--radius-sm);color:#634b13;background:#fffbeb;border:1px solid #f1d99c;align-items:center;gap:.75rem;margin:.8rem 0;padding:.72rem .85rem;display:flex}.platform-context-banner>span{border-radius:var(--radius-sm);color:#7c5b10;background:#fef3c7;flex:none;place-items:center;width:30px;height:30px;font-size:.66rem;font-weight:800;display:grid}.platform-context-banner strong{font-size:.8rem}.platform-context-banner p{font-size:var(--text-caption);margin:.1rem 0 0;line-height:1.45}.platform-company-panel{margin-top:.8rem}.form-field{min-width:0}.form-field textarea{resize:vertical}.form-field [aria-invalid=true]{border-color:#b84b54}.readonly-field{min-height:var(--control-height);border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-soft);align-content:center;gap:.05rem;padding:.5rem .75rem;display:grid}.readonly-field span{color:var(--muted);font-size:var(--text-caption)}.readonly-field strong{font-size:var(--text-body)}.form-actions{border-top:1px solid var(--border);justify-content:flex-end;padding-top:.55rem}.client-form,.product-form,.company-form{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-sm);gap:1.25rem;margin-top:1.25rem;padding:1.75rem;display:grid}.client-form,.product-form{grid-template-columns:repeat(2,minmax(0,1fr))}.client-form>.form-field-wide,.client-form>.info-banner,.client-form>.readonly-field,.client-form>.form-error,.client-form>.form-actions,.product-form>.info-banner,.product-form>.readonly-field,.product-form>.form-error,.product-form>.form-actions,.product-form>.price-preview,.product-form>.financial-grid{grid-column:1/-1}.financial-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem;display:grid}.price-preview,.line-preview{border:1px solid var(--accent-border);border-radius:var(--radius-md);color:var(--accent-dark);background:var(--accent-soft);gap:.15rem;padding:1rem 1.15rem;display:grid}.price-preview span,.price-preview small,.line-preview span,.line-preview small{color:var(--muted);font-size:var(--text-small)}.price-preview strong{font-size:1.15rem;font-weight:700}.form-section{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-sm);gap:1.25rem;padding:1.5rem;display:grid}.form-section-heading{border-bottom:1px solid #edf0f4;align-items:flex-start;gap:.6rem;padding-bottom:.7rem;display:flex}.form-section-heading>span{color:#4338ca;width:24px;height:24px;font-size:var(--text-caption);background:#eef2ff;border-radius:7px;flex:none;place-items:center;font-weight:800;display:grid}.form-section-heading h2{font-size:.92rem}.form-section-heading p{color:var(--muted);font-size:var(--text-small);margin:.12rem 0 0;line-height:1.45}.details-grid{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin-top:.75rem;display:grid;overflow:hidden}.details-grid div{background:var(--surface);border-bottom:1px solid #edf0f4;border-right:1px solid #edf0f4;min-width:0;padding:.72rem .8rem}.details-grid div:nth-child(2n){border-right:0}.details-grid dt{color:var(--muted);font-size:var(--text-caption);letter-spacing:.045em;text-transform:uppercase;margin-bottom:.18rem;font-weight:800}.details-grid dd{color:var(--ink-soft);overflow-wrap:anywhere;margin:0;font-size:.85rem}.record-overview-grid{grid-template-columns:minmax(0,1.5fr) minmax(16rem,.5fr);align-items:start;gap:.75rem;margin-top:.75rem;display:grid}.record-meta{margin:.4rem 0 0;display:grid}.record-meta>div{border-bottom:1px solid #edf0f4;justify-content:space-between;gap:1rem;padding:.55rem 0;display:flex}.record-meta>div:last-child{border-bottom:0}.record-meta dt{color:var(--muted);font-size:.73rem}.record-meta dd{text-align:right;overflow-wrap:anywhere;margin:0;font-size:.77rem;font-weight:680}.compact-details{margin-top:.65rem}.compact-details .detail-span{grid-column:1/-1}.invoice-form{margin:0}.invoice-form-layout{grid-template-columns:minmax(0,1fr) 22rem;align-items:start;gap:1.1rem;display:grid}.invoice-form-main{gap:.85rem;min-width:0;display:grid}.invoice-create-form .form-section{gap:.8rem;padding:1rem}.invoice-party-grid{grid-template-columns:minmax(15rem,1fr);gap:.65rem;display:grid}.invoice-basics{grid-template-columns:minmax(0,.72fr) minmax(0,.78fr) minmax(0,.95fr) minmax(0,1.25fr);gap:.6rem;padding-top:.1rem;display:grid}.form-field-label{color:var(--ink-soft);font-size:var(--text-small);margin-bottom:.3rem;font-weight:700;display:block}.invoice-number-field .readonly-field{min-height:var(--control-height);padding-block:.35rem}.invoice-number-field .readonly-field strong{font-size:.8rem}.invoice-number-field .readonly-field span{font-size:var(--text-caption)}.invoice-draft-note{color:var(--muted);align-items:center;gap:.6rem;margin:0;font-size:.75rem;display:flex}.invoice-client-block{border-radius:var(--radius-sm);background:var(--surface-soft);border:1px solid #e8eaf0;gap:.55rem;padding:.7rem;display:grid}.invoice-lines{gap:.65rem;display:grid}.empty-line-state{border:1px dashed var(--border-strong);border-radius:var(--radius-sm);color:var(--muted);text-align:center;background:var(--surface-soft);justify-items:center;gap:.18rem;margin:0;padding:1.1rem;display:grid}.empty-line-state strong{color:var(--ink-soft);font-size:var(--text-small)}.empty-line-state span{font-size:var(--text-small)}.invoice-line{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-soft);gap:.65rem;min-width:0;padding:.8rem;display:grid}.invoice-line legend{color:var(--ink-soft);font-size:var(--text-small);padding:0 .3rem;font-weight:800}.invoice-line-grid{grid-template-columns:minmax(14rem,1.5fr) repeat(4,minmax(7rem,.65fr));gap:.6rem;display:grid}.line-footer{justify-content:space-between;align-items:end;gap:.75rem;display:flex}.line-preview{min-width:13rem}.line-preview strong{font-size:.9rem}.add-line{white-space:nowrap;justify-self:start}.invoice-compose-summary{border-radius:var(--radius-md);min-width:0;color:inherit;background:#fafbff;border:1px solid #c7d2fe;padding:1rem;position:sticky;top:80px;box-shadow:0 8px 24px #4f46e50f}.invoice-summary-heading{min-width:0}.invoice-summary-meta{justify-content:space-between;align-items:center;gap:.45rem;margin-bottom:.7rem;display:flex}.invoice-summary-meta small{color:var(--muted);font-size:var(--text-caption)}.invoice-compose-summary>h2,.invoice-summary-heading>h2{font-size:.93rem}.invoice-summary-context{min-width:0}.invoice-context{margin:.6rem 0 0;display:grid}.invoice-context div{border-bottom:1px solid #e0e7ff;grid-template-columns:4.6rem minmax(0,1fr);gap:.45rem;padding:.5rem 0;display:grid}.invoice-context dt{color:var(--muted);font-size:var(--text-caption)}.invoice-context dd{font-size:var(--text-small);text-align:right;overflow-wrap:anywhere;margin:0;font-weight:700}.invoice-context dd strong,.invoice-context dd small{display:block}.invoice-context dd small{color:var(--muted);margin-top:.06rem;font-size:.66rem;font-weight:600}.invoice-totals,.invoice-summary{border:1px solid var(--accent-border);border-radius:var(--radius-md);background:#f8faff;justify-self:end;width:min(100%,30rem);padding:1.1rem}.invoice-compose-summary .invoice-totals{background:0 0;border:0;border-top:1px solid #dbe3ff;border-radius:0;width:100%;margin-top:.75rem;padding:.75rem 0 0}.invoice-totals dl,.invoice-summary dl{gap:.46rem;margin:.65rem 0 0;display:grid}.invoice-totals dl div,.invoice-summary dl div{justify-content:space-between;gap:1rem;font-size:.8rem;display:flex}.invoice-totals dt,.invoice-summary dt{color:var(--muted)}.invoice-totals dd,.invoice-summary dd{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;margin:0;font-weight:700}.invoice-totals .grand-total,.invoice-summary .grand-total{color:#3730a3;border-top:2px solid #c7d2fe;align-items:baseline;margin-top:.3rem;padding-top:.75rem;font-size:1rem}.invoice-totals .grand-total dd{letter-spacing:-.025em;font-size:1.18rem;font-weight:800}.summary-note{color:var(--muted);margin:.7rem 0;font-size:.73rem;line-height:1.5}.invoice-create-client-tools{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr) auto;align-items:end;gap:.55rem;display:grid}.invoice-create-new-client{min-height:var(--control-height)}.invoice-create-inline-state{color:var(--muted);font-size:var(--text-small);margin:0}.invoice-create-client-details{background:#fff;grid-template-columns:repeat(4,minmax(0,.72fr)) minmax(10rem,1.35fr);margin-top:0}.invoice-create-client-details div{border-bottom:0;padding:.48rem .58rem}.invoice-create-client-details .invoice-create-address{border-right:0;grid-column:auto}.invoice-create-client-details dt{font-size:var(--text-caption);margin-bottom:.08rem}.invoice-create-client-details dd{overflow-wrap:anywhere;font-size:.73rem;line-height:1.3}.invoice-global-vat{border-top:1px solid #dbe3ff;border-bottom:1px solid #dbe3ff;gap:.25rem;margin-top:.75rem;padding:.75rem 0;display:grid}.invoice-global-vat p{color:var(--muted);margin:0;font-size:.73rem;line-height:1.45}.invoice-create-lines-table{border:1px solid var(--border);border-radius:var(--radius-sm);scrollbar-color:#cbd5e1 transparent;scrollbar-width:thin;overflow-x:auto}.invoice-create-lines-table table{table-layout:fixed;min-width:43.25rem}.invoice-create-lines-table th,.invoice-create-lines-table td{height:auto;padding:.42rem .45rem}.invoice-create-lines-table th:first-child{width:2.2rem}.invoice-create-lines-table th:nth-child(2){width:29%}.invoice-create-lines-table th:nth-child(3){width:11%}.invoice-create-lines-table th:nth-child(4){width:15%}.invoice-create-lines-table th:nth-child(5){width:12%}.invoice-create-lines-table th:nth-child(6){width:15%}.invoice-create-lines-table th:last-child{width:3.1rem}.invoice-create-lines-table input,.invoice-create-lines-table select{min-height:36px;padding:.38rem .5rem;font-size:.8rem}.invoice-create-lines-table .field-error{max-width:10rem}.invoice-create-lines-table .numeric-cell{text-align:right}.invoice-create-numeric-input input{text-align:right;font-variant-numeric:tabular-nums}.invoice-create-product-meta{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.invoice-create-rate-input{position:relative}.invoice-create-rate-input input{padding-right:1.5rem}.invoice-create-rate-input span{color:var(--muted);font-size:var(--text-caption);pointer-events:none;position:absolute;top:50%;right:.48rem;transform:translateY(-50%)}.invoice-create-line-total{color:var(--ink-soft);text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.invoice-create-line-total strong{color:var(--ink);font-size:var(--text-body);font-weight:750}.invoice-create-line-total small{font-size:var(--text-caption)}.invoice-create-line-actions{justify-items:end;gap:.25rem;display:grid}.invoice-line-remove{width:36px;min-height:36px;padding:0}.invoice-create-final-actions{grid-template-columns:auto 1fr;gap:.5rem;padding-top:.2rem;display:grid}.invoice-create-final-actions button{white-space:nowrap;padding-inline:.65rem;font-size:.8rem}.invoice-lines-heading{align-items:center}.invoice-lines-heading>div{flex:1;min-width:12rem}.invoice-line-count{min-width:auto;height:auto;color:var(--muted);font-size:var(--text-caption);white-space:nowrap;background:0 0;display:block}.invoice-lines-detail{margin-top:.8rem}.invoice-lines-detail .table-wrap{box-shadow:none}.amount-words{border-top:1px solid var(--accent-border);color:var(--ink-soft);margin:.75rem 0 0;padding-top:.75rem;font-size:.82rem;font-style:italic;line-height:1.5}.invoice-lines-detail,.invoice-summary{margin-top:.8rem}.company-form{margin-top:0}.company-form label{color:var(--ink-soft);font-size:var(--text-small);gap:.28rem;font-weight:700;display:grid}.company-form label small{color:var(--muted);font-size:var(--text-caption);font-weight:500;line-height:1.45}.company-form-grid{grid-template-columns:1fr 1fr;gap:.65rem;display:grid}.company-create-form{box-shadow:none;background:0 0;border:0;gap:.75rem;margin-top:0;padding:0}.company-create-form .form-section{max-width:64rem}.company-form-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;display:grid}.company-form-fields .form-field-wide{grid-column:1/-1}.company-create-form .command-bar{z-index:8;border:1px solid var(--border);border-radius:var(--radius-md);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff5;max-width:64rem;padding:.75rem;position:sticky;bottom:.75rem;box-shadow:0 8px 24px #1018281a}.form-divider{color:var(--muted);font-size:var(--text-caption);letter-spacing:.06em;text-transform:uppercase;align-items:center;gap:.55rem;margin-top:.1rem;font-weight:800;display:flex}.form-divider:after{background:var(--border);content:"";flex:1;height:1px}.form-intro{color:var(--muted);font-size:var(--text-caption);margin:.25rem 0 0;line-height:1.45}.company-directory{min-width:0}.directory-toolbar{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);min-height:76px;box-shadow:var(--shadow-sm);justify-content:space-between;align-items:end;gap:.8rem;padding:.75rem .85rem;display:flex}.directory-toolbar>div:first-child{gap:.08rem;display:grid}.directory-toolbar>div:first-child strong{font-size:var(--text-small)}.directory-toolbar>div:first-child span{color:var(--muted);font-size:.73rem}.directory-filters{grid-template-columns:minmax(14rem,1fr) minmax(9rem,.45fr);gap:.55rem;display:grid}.directory-filters.single-filter{grid-template-columns:minmax(14rem,21rem)}.directory-filters label{color:var(--ink-soft);gap:.24rem;font-size:.75rem;font-weight:700;display:grid}.directory-filters input,.directory-filters select{width:100%;min-height:var(--control-height);border:1px solid var(--border-strong);border-radius:var(--radius-sm);font-size:var(--text-body);background:#fff;padding:.5rem .7rem}.settings-layout{grid-template-columns:minmax(16rem,20rem) minmax(0,1fr);align-items:start;gap:1.5rem;margin-top:1.5rem;display:grid}.company-identity-card{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-sm);justify-items:start;gap:.5rem;padding:1.75rem;display:grid}.company-identity-card>p{color:var(--muted);margin:0 0 .5rem;font-size:.8rem;font-weight:500}.company-profile-form{gap:1.5rem}.company-profile-form section{gap:1rem;display:grid}.platform-company-management-grid{grid-template-columns:minmax(18rem,.6fr) minmax(0,1.4fr);align-items:start;gap:1.5rem;margin-top:1.5rem;display:grid}.company-branding-editor{grid-template-columns:5rem minmax(0,1fr);align-items:center;gap:1.25rem;display:grid}.company-logo-preview{border:1px solid var(--border);border-radius:var(--radius-lg);width:5rem;height:5rem;color:var(--accent);background:var(--accent-soft);box-shadow:var(--shadow-sm);place-items:center;font-size:1.35rem;font-weight:800;display:grid;overflow:hidden}.company-logo-preview img{object-fit:contain;background:#fff;width:100%;height:100%}.company-branding-copy>p:not(.section-kicker,.toast,.field-error){color:var(--muted);margin:.25rem 0 0;font-size:.75rem;line-height:1.45}.company-branding-copy>small{color:var(--muted);font-size:var(--text-caption);margin-top:.4rem;line-height:1.4;display:block}.logo-actions{border:0;flex-wrap:wrap;justify-content:flex-start;margin-top:.55rem;padding:0}.logo-actions button{min-height:36px;font-size:var(--text-small)}.company-users-manager{border-top:1px solid var(--border);margin-top:1rem;padding-top:.85rem}.company-users-manager .company-admin-layout{grid-template-columns:minmax(19rem,23rem) minmax(0,1fr);align-items:start;gap:.75rem;margin-top:.75rem;display:grid}.company-users-heading p:last-child{max-width:48rem;color:var(--muted);margin:.25rem 0 0;font-size:.75rem;line-height:1.45}.company-users-manager .company-form h3{margin:.18rem 0 0;font-size:.92rem}.muted-copy{color:var(--muted);font-size:.73rem}@keyframes loading-spin{to{transform:rotate(360deg)}}@keyframes menu-in{0%{opacity:0;transform:translateY(-4px)scale(.985)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes dialog-in{0%{opacity:0;transform:translateY(6px)scale(.985)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes backdrop-in{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@media(max-width:1320px){.invoice-form-layout{grid-template-columns:1fr}.invoice-compose-summary{grid-template-columns:minmax(0,.9fr) minmax(18rem,1.1fr);gap:.8rem 1.5rem;display:grid;position:static}.invoice-summary-heading,.invoice-summary-footer{grid-column:1/-1}.invoice-summary-heading{justify-content:space-between;align-items:center;gap:1rem;display:flex}.invoice-summary-heading .invoice-summary-meta{order:2;margin:0}.invoice-summary-heading .invoice-summary-meta small{display:none}.invoice-summary-context .invoice-context{margin-top:0}.invoice-compose-summary .invoice-totals{border-top:0;align-self:stretch;margin-top:0;padding-top:0}.invoice-summary-footer{border-top:1px solid #dbe3ff;justify-content:space-between;align-items:center;gap:1rem;padding-top:.7rem;display:flex}.invoice-summary-footer .summary-note{max-width:34rem;margin:0}.invoice-create-final-actions{min-width:24rem}}@media(max-width:1200px){.product-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.product-filters .search-field{grid-column:span 2}.dashboard-grid,.record-overview-grid,.settings-layout,.platform-company-management-grid,.company-users-manager .company-admin-layout{grid-template-columns:1fr}}@media(max-width:980px){.app-shell{grid-template-columns:14.5rem minmax(0,1fr)}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-filter-primary{grid-template-columns:1fr 1fr}.invoice-filter-primary .search-field{grid-column:1/-1}.invoice-line-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-line-grid .form-field:first-child{grid-column:1/-1}.invoice-basics{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-create-client-details{grid-template-columns:repeat(3,minmax(0,1fr))}.invoice-create-client-details .invoice-create-address{grid-column:span 2}}@media(max-width:820px){.app-shell{display:block}.sidebar,.sidebar-collapsed .sidebar{width:min(16.5rem,100vw - 3rem);min-height:100dvh;max-height:100dvh;transition:transform .18s;position:fixed;inset:0 auto 0 0;transform:translate(-102%);box-shadow:14px 0 45px #14121738}.sidebar-mobile-open .sidebar{transform:translate(0)}.sidebar-collapse{display:none}.sidebar-collapsed .brand-copy,.sidebar-collapsed .nav-section-label,.sidebar-collapsed .nav-links a span,.sidebar-collapsed .sidebar-context>span:last-child{display:grid}.sidebar-collapsed .sidebar-header{justify-content:space-between}.sidebar-collapsed .sidebar-context{justify-content:initial;margin-inline:.875rem;padding-inline:.75rem}.sidebar-collapsed .sidebar nav a{justify-content:initial;padding:.5rem .75rem}.mobile-menu-button{display:grid}.topbar{padding-inline:.8rem}.topbar-page-context{display:none}.workspace-context{margin-left:0}}@media(max-width:700px){.login-page{padding:.6rem}.login-shell{grid-template-columns:1fr}.login-intro{min-height:auto;padding:1rem}.login-intro>div:nth-child(2),.login-intro>small{display:none}.login-shell .login-card{padding:1.4rem 1.1rem}.topbar{min-height:50px;padding:.45rem .65rem}.workspace-context{flex:1;padding-right:.5rem}.workspace-context small,.workspace-context-mark{display:none}.workspace-context strong{max-width:12rem}.user-menu-copy{display:none}.user-menu-panel{position:fixed;top:3.3rem;right:.65rem}.content{padding:1rem .7rem 2rem}.page-heading{flex-direction:column;align-items:stretch;gap:.7rem}.page-header{min-height:0}.heading-actions{justify-content:flex-start;align-self:stretch}.heading-actions>.button-link,.heading-actions>button{flex:1}.dashboard-panel-heading{flex-direction:column;align-items:flex-start}.dashboard-panel-heading>a{white-space:normal}.metric-grid{grid-template-columns:1fr 1fr}.list-toolbar,.filters,.directory-toolbar,.list-toolbar-fields{flex-direction:column;align-items:stretch}.directory-filters,.directory-filters.single-filter,.invoice-filter-primary,.invoice-advanced-filter-grid,.invoice-basics,.financial-grid,.company-form-grid,.company-form-fields{grid-template-columns:1fr}.company-form-fields .form-field-wide,.invoice-filter-primary .search-field{grid-column:auto}.product-filters{grid-template-columns:1fr 1fr;display:grid}.product-filters .search-field{grid-column:1/-1}.client-form,.product-form{grid-template-columns:1fr}.client-form>*,.product-form>*{grid-column:auto!important}.invoice-create-client-tools,.invoice-create-client-details,.details-grid{grid-template-columns:1fr}.details-grid div,.invoice-create-client-details div{border-right:0}.invoice-create-client-details .invoice-create-address{grid-column:auto}.invoice-create-new-client{justify-self:stretch}.line-footer{flex-direction:column;align-items:stretch}.invoice-summary,.invoice-totals{justify-self:stretch}.company-branding-editor{grid-template-columns:1fr}.pagination{justify-content:center}.client-table,.product-table,.invoice-table,.invoice-detail-lines,.company-table,.user-table{box-shadow:none;background:0 0;border:0;overflow:visible}.client-table table,.client-table tbody,.client-table tr,.client-table td,.product-table table,.product-table tbody,.product-table tr,.product-table td,.invoice-table table,.invoice-table tbody,.invoice-table tr,.invoice-table td,.invoice-detail-lines table,.invoice-detail-lines tbody,.invoice-detail-lines tr,.invoice-detail-lines td,.company-table table,.company-table tbody,.company-table tr,.company-table td,.user-table table,.user-table tbody,.user-table tr,.user-table td{min-width:0;display:block}.client-table thead,.product-table thead,.invoice-table thead,.invoice-detail-lines thead,.company-table thead,.user-table thead{clip:rect(0,0,0,0);width:1px;height:1px;position:absolute;overflow:hidden}.client-table tr,.product-table tr,.invoice-table tr,.invoice-detail-lines tr,.company-table tr,.user-table tr{border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-sm);background:#fff;margin-bottom:.65rem;overflow:visible}.client-table td,.product-table td,.invoice-table td,.invoice-detail-lines td,.company-table td,.user-table td{text-align:left;white-space:normal;border-bottom:1px solid #edf0f4;grid-template-columns:7rem minmax(0,1fr);gap:.55rem;height:auto;min-height:38px;display:grid}.client-table td:before,.product-table td:before,.invoice-table td:before,.invoice-detail-lines td:before,.company-table td:before,.user-table td:before{content:attr(data-label);color:var(--muted);font-size:var(--text-caption);letter-spacing:.04em;text-transform:uppercase;font-weight:800}.action-menu-panel{left:0;right:auto}.invoice-create-lines-table{border:0;overflow:visible}.invoice-create-lines-table table,.invoice-create-lines-table tbody,.invoice-create-lines-table tr,.invoice-create-lines-table td{min-width:0;display:block}.invoice-create-lines-table thead{clip:rect(0,0,0,0);width:1px;height:1px;position:absolute;overflow:hidden}.invoice-create-lines-table tr{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:.65rem;display:grid;overflow:hidden}.invoice-create-lines-table td{border-bottom:1px solid #edf0f4;border-right:1px solid #edf0f4;min-height:0;padding:.55rem;display:block}.invoice-create-lines-table td:nth-child(2),.invoice-create-lines-table td:first-child,.invoice-create-lines-table td:last-child{border-right:0;grid-column:1/-1}.invoice-create-lines-table td:nth-child(4),.invoice-create-lines-table td:nth-child(6){border-right:0}.invoice-create-lines-table td:before{content:attr(data-label);color:var(--muted);font-size:var(--text-caption);letter-spacing:.04em;text-transform:uppercase;margin-bottom:.3rem;padding-top:0;font-weight:800;display:block}.invoice-create-lines-table td:first-child{color:var(--accent-dark);background:var(--accent-soft);padding-block:.4rem}.invoice-create-lines-table td:first-child:before{margin-right:.3rem;display:inline}.invoice-create-lines-table td:last-child{border-bottom:0}.invoice-create-lines-table .field-error{max-width:none}.invoice-create-line-total{text-align:left}.invoice-create-line-actions{justify-items:stretch}.invoice-line-remove{width:100%}.invoice-lines-heading{grid-template-columns:auto minmax(0,1fr);display:grid}.invoice-lines-heading .invoice-line-count{display:none}.invoice-lines-heading .add-line{grid-column:1/-1;justify-self:stretch}.invoice-compose-summary{grid-template-columns:1fr}.invoice-summary-heading,.invoice-summary-footer{grid-column:auto}.invoice-summary-heading{display:block}.invoice-summary-heading .invoice-summary-meta{margin-bottom:.6rem}.invoice-summary-heading .invoice-summary-meta small{display:inline}.invoice-summary-footer{border-top:0;padding-top:0;display:block}.invoice-create-final-actions{min-width:0}}@media(max-width:430px){.metric-grid,.product-filters{grid-template-columns:1fr}.product-filters .search-field{grid-column:auto}.heading-actions>*{width:100%}h1{font-size:1.5rem}.page-header{margin-bottom:1rem;padding-bottom:.9rem}.metric-card{min-height:104px}.invoice-create-form .form-section,.invoice-compose-summary{padding:.8rem}.invoice-draft-note{align-items:flex-start}.invoice-client-block{padding:.55rem}.invoice-create-final-actions .secondary-link{order:2}.dialog-actions{flex-direction:column-reverse;align-items:stretch}.dialog-actions>button{width:100%}.client-table td,.product-table td,.invoice-table td,.invoice-detail-lines td,.company-table td,.user-table td,.invoice-create-lines-table td{grid-template-columns:5.75rem minmax(0,1fr);padding-inline:.7rem}.row-actions{white-space:normal}.invoice-create-final-actions{grid-template-columns:1fr}.invoice-create-final-actions>*{width:100%}}@media(max-width:370px){.content{padding-inline:.6rem}.topbar{padding-inline:.55rem}.workspace-context strong{max-width:9rem}.user-menu-panel{width:min(16rem,100vw - .9rem);right:.45rem}}@media(max-width:768px){.hide-on-mobile{display:none!important}}.data-table-container{flex-direction:column;gap:1rem;display:flex}.data-table-toolbar{justify-content:space-between;align-items:center;display:flex}.data-table-actions{align-items:center;gap:.5rem;display:flex}.data-table-visibility summary{color:var(--ink-soft);background:var(--surface-soft);border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:.4rem;padding:.35rem .65rem;font-size:.8rem;font-weight:600;display:flex}.data-table-visibility summary:hover{background:var(--border)}.th-sortable{cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;gap:.3rem;display:flex}.th-sortable:hover{color:var(--ink)}.th-sortable .sort-icon{opacity:.3;display:inline-flex}.th-sortable:hover .sort-icon{opacity:.6}.row-selected{background-color:var(--accent-soft)!important}.impersonation-banner{z-index:1000;background-color:var(--warning);color:#fff;box-shadow:var(--shadow-sm);justify-content:space-between;align-items:center;padding:.75rem 1.5rem;font-size:.875rem;display:flex;position:sticky;top:0}.impersonation-content{align-items:center;gap:.75rem;display:flex}.impersonation-icon{font-size:1.1rem}.impersonation-btn{color:#fff;border-radius:var(--radius-sm);cursor:pointer;background-color:#00000026;border:1px solid #fff3;padding:.35rem .75rem;font-size:.8rem;font-weight:600;transition:background-color .15s}.impersonation-btn:hover{background-color:#00000040}.skip-link{z-index:1100;border-radius:var(--radius-sm);color:#fff;background:var(--accent);padding:.65rem 1rem;position:fixed;top:.75rem;left:1rem;transform:translateY(-200%)}.skip-link:focus{transform:translateY(0)}.page-title{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.breadcrumbs .ui-icon{transform:rotate(180deg)}.sidebar-collapsed .sidebar-header{padding-inline:0}.sidebar-collapsed .sidebar-collapse{display:none}.sidebar-collapsed .sidebar nav{padding-top:1.5rem}.sidebar-mobile-close{display:none}.topbar-page-context>span{color:var(--border-strong)}.topbar-page-context strong{white-space:nowrap}.desktop-menu-button,.sidebar-mobile-close{width:34px;min-height:34px;color:var(--muted);box-shadow:none;background:0 0;border-color:#0000;flex-shrink:0;padding:0}.desktop-menu-button:hover:not(:disabled){border-color:var(--border);color:var(--ink);background:var(--surface-soft);box-shadow:none}.quick-nav-trigger{border-color:var(--border);min-height:36px;color:var(--muted);background:var(--surface-soft);box-shadow:none;white-space:nowrap;border-radius:7px;gap:.6rem;margin-left:auto;padding:0 .7rem;font-size:.75rem;font-weight:500}.quick-nav-trigger:hover:not(:disabled){border-color:var(--border-strong);color:var(--ink);box-shadow:none;background:#fff}.quick-nav-trigger kbd{font-family:inherit;font-size:var(--text-caption);color:var(--muted);margin-left:1.25rem}.quick-nav-dialog{width:min(35rem,100% - 2rem);max-height:calc(100dvh - 3rem);margin:max(1.5rem,12vh) auto auto;padding:0;overflow-y:auto}.quick-nav-heading{justify-content:space-between;align-items:center;gap:1rem;padding:1.25rem;display:flex}.quick-nav-heading p{font-size:var(--text-small);color:var(--muted);margin:.25rem 0 0}.quick-nav-search{border:1px solid var(--border-strong);border-radius:var(--radius-sm);color:var(--muted);align-items:center;gap:.65rem;margin:0 1.25rem .75rem;padding:0 .8rem;display:flex}.quick-nav-search:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.quick-nav-search input{background:0 0;border:0;outline:0;width:100%;min-width:0;min-height:44px;font-size:.85rem}.quick-nav-results{gap:.2rem;padding:0 .65rem .75rem;display:grid}.quick-nav-results a{border-radius:var(--radius-sm);color:var(--muted);align-items:center;gap:.8rem;padding:.7rem;text-decoration:none;display:flex}.quick-nav-results a:hover,.quick-nav-results a:focus-visible{color:var(--accent);background:var(--accent-soft)}.quick-nav-results a>span:nth-child(2){gap:.15rem;display:grid}.quick-nav-results strong{color:var(--ink);font-size:.85rem;font-weight:600}.quick-nav-results small{font-size:var(--text-caption)}.quick-nav-arrow{margin-left:auto}.quick-nav-empty{color:var(--muted);padding:1rem;font-size:.85rem}.quick-nav-footer{border-top:1px solid var(--border);color:var(--muted);background:var(--surface-soft);font-size:var(--text-caption);padding:.85rem 1.25rem}.list-page{width:100%;margin:0 auto}.legacy-list-page{gap:1.5rem;display:grid}.legacy-list-page>.page-header{margin-bottom:0}.list-metrics{grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 1.5rem}.list-loading{gap:.75rem;display:grid}.result-summary>strong{font-size:.85rem;font-weight:600}.list-results{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-sm);overflow:visible}.result-summary{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;padding:1rem 1.2rem;display:flex}.result-summary h2{font-size:.87rem}.result-summary p,.result-summary span{color:var(--muted);margin:0;font-size:.75rem}.list-results>.table-wrap{box-shadow:none;border:0;border-radius:0}.list-results>.pagination{border-top:1px solid var(--border);flex-wrap:wrap;margin:0;padding:.85rem 1.2rem}.data-table-visibility summary{width:auto}button.th-sortable{min-height:28px;color:inherit;box-shadow:none;font:inherit;letter-spacing:inherit;text-transform:inherit;background:0 0;border:0;border-radius:0;padding:0}button.th-sortable:hover:not(:disabled){color:var(--accent);box-shadow:none;background:0 0}.th-sortable .sort-icon{opacity:.35;color:inherit}th[aria-sort=ascending] .sort-icon,th[aria-sort=descending] .sort-icon{opacity:1;color:var(--accent)}.action-menu-group{gap:.2rem;padding:.5rem;display:grid}.action-menu-item{border-radius:var(--radius-sm);color:var(--ink-soft);padding:.4rem}.action-menu-item:hover{background:var(--surface-soft)}@media(max-width:1280px){.topbar-page-context small,.topbar-page-context>span,.topbar .workspace-context{display:none}.quick-nav-trigger kbd{margin-left:.5rem}}@media(max-width:820px){.desktop-menu-button{display:none}.topbar-brand{display:block}.sidebar-mobile-close{color:var(--muted);font-size:1.5rem;display:inline-flex}.sidebar-mobile-close:hover:not(:disabled){background:var(--sidebar-hover);box-shadow:none}.sidebar-collapsed .sidebar-header{padding-inline:1rem}.topbar-page-context{display:grid}.topbar-page-context small,.topbar-page-context>span,.quick-nav-trigger kbd{display:none}.list-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.list-metrics .metric-card{padding:1rem}}@media(max-width:600px){.topbar{gap:.5rem;min-height:62px}.topbar-page-context{flex:1;overflow:hidden}.topbar-brand .factura-logo{width:6.5rem}.topbar-page-context strong{text-overflow:ellipsis;font-size:.8rem;overflow:hidden}.quick-nav-trigger{flex-shrink:0;width:36px;padding:0}.quick-nav-trigger>span{display:none}.content{padding:1.3rem 1rem 2rem}.user-menu summary{padding-inline:.2rem}.user-menu summary>span:last-child{display:none}.list-metrics{grid-template-columns:1fr}.list-results>.pagination{justify-content:center;gap:.5rem;padding-inline:.6rem}.quick-nav-dialog{margin-top:1.5rem}}}@layer utilities{.collapse{visibility:collapse}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.col-span-1{grid-column:span 1/span 1}.mx-auto{margin-inline:auto}.mt-0\.5{margin-top:calc(var(--spacing) * .5)}.mt-1{margin-top:var(--spacing)}.mt-2{margin-top:calc(var(--spacing) * 2)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-8{margin-top:calc(var(--spacing) * 8)}.mb-1{margin-bottom:var(--spacing)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.h-6{height:calc(var(--spacing) * 6)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.min-h-96{min-height:calc(var(--spacing) * 96)}.w-6{width:calc(var(--spacing) * 6)}.w-10{width:calc(var(--spacing) * 10)}.w-12{width:calc(var(--spacing) * 12)}.w-full{width:100%}.max-w-4xl{max-width:var(--container-4xl)}.max-w-6xl{max-width:var(--container-6xl)}.max-w-7xl{max-width:var(--container-7xl)}.max-w-sm{max-width:var(--container-sm)}.min-w-0{min-width:0}.min-w-\[620px\]{min-width:620px}.flex-1{flex:1}.shrink-0{flex-shrink:0}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.place-content-center{place-content:center}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:var(--spacing)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}.gap-x-12{column-gap:calc(var(--spacing) * 12)}.gap-y-8{row-gap:calc(var(--spacing) * 8)}:where(.divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}:where(.divide-slate-100>:not(:last-child)){border-color:var(--color-slate-100)}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-emerald-100{border-color:var(--color-emerald-100)}.border-emerald-200{border-color:var(--color-emerald-200)}.border-indigo-100{border-color:var(--color-indigo-100)}.border-purple-100{border-color:var(--color-purple-100)}.border-purple-200\/60{border-color:#e9d5ff99}@supports (color:color-mix(in lab,red,red)){.border-purple-200\/60{border-color:color-mix(in oklab,var(--color-purple-200) 60%,transparent)}}.border-red-100{border-color:var(--color-red-100)}.border-red-200{border-color:var(--color-red-200)}.border-slate-100{border-color:var(--color-slate-100)}.border-slate-200{border-color:var(--color-slate-200)}.border-slate-300{border-color:var(--color-slate-300)}.border-slate-900{border-color:var(--color-slate-900)}.bg-amber-50{background-color:var(--color-amber-50)}.bg-emerald-50{background-color:var(--color-emerald-50)}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-indigo-50{background-color:var(--color-indigo-50)}.bg-indigo-600{background-color:var(--color-indigo-600)}.bg-purple-50{background-color:var(--color-purple-50)}.bg-red-50{background-color:var(--color-red-50)}.bg-slate-50{background-color:var(--color-slate-50)}.bg-slate-50\/50{background-color:#f8fafc80}@supports (color:color-mix(in lab,red,red)){.bg-slate-50\/50{background-color:color-mix(in oklab,var(--color-slate-50) 50%,transparent)}}.bg-slate-50\/80{background-color:#f8fafccc}@supports (color:color-mix(in lab,red,red)){.bg-slate-50\/80{background-color:color-mix(in oklab,var(--color-slate-50) 80%,transparent)}}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-200{background-color:var(--color-slate-200)}.bg-white{background-color:var(--color-white)}.p-1\.5{padding:calc(var(--spacing) * 1.5)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.p-6{padding:calc(var(--spacing) * 6)}.p-8{padding:calc(var(--spacing) * 8)}.p-12{padding:calc(var(--spacing) * 12)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-2\.5{padding-inline:calc(var(--spacing) * 2.5)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-5{padding-inline:calc(var(--spacing) * 5)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1{padding-block:var(--spacing)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-3\.5{padding-block:calc(var(--spacing) * 3.5)}.py-4{padding-block:calc(var(--spacing) * 4)}.pt-4{padding-top:calc(var(--spacing) * 4)}.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.font-black{--tw-font-weight:var(--font-weight-black);font-weight:var(--font-weight-black)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.whitespace-nowrap{white-space:nowrap}.\!text-white{color:var(--color-white)!important}.text-amber-600{color:var(--color-amber-600)}.text-blue-500{color:var(--color-blue-500)}.text-emerald-500{color:var(--color-emerald-500)}.text-emerald-600{color:var(--color-emerald-600)}.text-indigo-500{color:var(--color-indigo-500)}.text-indigo-600{color:var(--color-indigo-600)}.text-purple-600{color:var(--color-purple-600)}.text-purple-700{color:var(--color-purple-700)}.text-red-600{color:var(--color-red-600)}.text-red-700{color:var(--color-red-700)}.text-slate-300{color:var(--color-slate-300)}.text-slate-400{color:var(--color-slate-400)}.text-slate-500{color:var(--color-slate-500)}.text-slate-600{color:var(--color-slate-600)}.text-slate-700{color:var(--color-slate-700)}.text-slate-900{color:var(--color-slate-900)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}@media(hover:hover){.hover\:bg-emerald-50:hover{background-color:var(--color-emerald-50)}.hover\:bg-emerald-700:hover{background-color:var(--color-emerald-700)}.hover\:bg-indigo-50:hover{background-color:var(--color-indigo-50)}.hover\:bg-indigo-100:hover{background-color:var(--color-indigo-100)}.hover\:bg-indigo-700:hover{background-color:var(--color-indigo-700)}.hover\:bg-red-50:hover{background-color:var(--color-red-50)}.hover\:bg-slate-50:hover{background-color:var(--color-slate-50)}.hover\:bg-slate-50\/50:hover{background-color:#f8fafc80}@supports (color:color-mix(in lab,red,red)){.hover\:bg-slate-50\/50:hover{background-color:color-mix(in oklab,var(--color-slate-50) 50%,transparent)}}.hover\:bg-slate-200:hover{background-color:var(--color-slate-200)}.hover\:text-emerald-600:hover{color:var(--color-emerald-600)}.hover\:text-indigo-600:hover{color:var(--color-indigo-600)}.hover\:text-indigo-700:hover{color:var(--color-indigo-700)}.hover\:text-red-600:hover{color:var(--color-red-600)}.hover\:text-slate-600:hover{color:var(--color-slate-600)}.hover\:text-slate-900:hover{color:var(--color-slate-900)}.hover\:underline:hover{text-decoration-line:underline}}@media(min-width:48rem){.md\:col-span-2{grid-column:span 2/span 2}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:p-6{padding:calc(var(--spacing) * 6)}.md\:p-8{padding:calc(var(--spacing) * 8)}}@media(min-width:64rem){.lg\:w-80{width:calc(var(--spacing) * 80)}.lg\:flex-row{flex-direction:row}}}.list-page{gap:20px;min-width:0;display:grid}.list-page>.page-header,.list-page>.list-metrics{margin:0}.list-page>.list-metrics .metric-card{padding:18px 20px}.list-filters{border:1px solid var(--border);min-width:0;box-shadow:var(--shadow-sm);background:#fff;border-radius:12px;gap:18px;margin:0;padding:20px;display:grid}.list-filter-heading{border-bottom:1px solid #edf0f5;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding-bottom:14px;display:flex}.list-filter-heading>span{color:var(--ink-soft);font-size:var(--text-small);align-items:center;gap:9px;font-weight:600;display:flex}.list-filter-heading .ui-icon{color:#8793aa}.list-filter-heading button{min-height:28px;font-size:var(--text-caption);padding:0 4px}.list-filter-grid{align-items:end;gap:16px;min-width:0;display:grid}.client-filter-grid,.list-filters .invoice-filter-primary{grid-template-columns:minmax(200px,2fr) repeat(2,minmax(150px,1fr))}.product-filter-grid{grid-template-columns:minmax(200px,2fr) repeat(3,minmax(120px,1fr))}.list-filters label,.list-search{min-width:0;margin:0;display:block}.list-filters label>span,.list-filters .search-field>label{color:var(--ink-soft);font-size:var(--text-caption);margin:0 0 7px;font-weight:600;display:block}.list-filters input,.list-filters select{width:100%;min-width:0;min-height:40px;color:var(--ink-soft);font-size:var(--text-body);background:#fff;border:1px solid #dbe1eb;border-radius:7px;padding:9px 11px;line-height:1.5}.list-filters input:focus,.list-filters select:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);outline:none}.list-search-input{position:relative}.list-search-input>.ui-icon{color:#8c98ac;pointer-events:none;position:absolute;top:12px;left:12px}.list-filters .list-search-input input{padding-left:36px}.list-filter-secondary{border-top:1px solid #edf0f5;flex-wrap:wrap;align-items:center;gap:14px;padding-top:16px;display:flex}.list-filter-secondary>span{color:var(--muted);font-size:var(--text-caption)}.list-filter-secondary label{align-items:center;gap:8px;display:flex}.list-filter-secondary label>span{color:var(--muted);margin:0;font-weight:500}.list-filter-secondary input{width:115px;min-height:34px;padding:6px 9px}.list-filters .invoice-status-shortcuts{border:0;gap:6px;margin:0;padding:0}.list-filters .invoice-status-shortcuts button{min-height:34px;font-size:var(--text-body);padding:7px 13px}.list-filters .advanced-filters{margin:0}.list-results,.company-directory{min-width:0}.list-results .result-summary{padding:16px 20px}.list-results .result-summary strong{font-size:var(--text-small);font-weight:600}:is(.list-results,.company-directory) table{width:100%}:is(.list-results,.company-directory) th{color:#67758b;font-size:var(--text-caption);letter-spacing:.04em;background:#f8fafc;padding:14px 16px;font-weight:650}:is(.list-results,.company-directory) td{font-size:var(--text-small);padding:16px;line-height:1.5}:is(.list-results,.company-directory) tbody tr:hover{background:#fafbff}:is(.list-results,.company-directory) .entity-cell{gap:12px;min-width:0}:is(.list-results,.company-directory) .entity-cell>:last-child{min-width:0}:is(.list-results,.company-directory) .entity-cell a{font-size:var(--text-small);font-weight:600}.list-cell-copy{gap:3px;display:grid}.list-cell-copy,.entity-cell>span:last-child{overflow-wrap:anywhere}.list-results .entity-avatar{width:36px;height:36px;font-size:var(--text-caption);border-radius:10px;flex:0 0 36px}.list-results .numeric-cell{white-space:nowrap;font-variant-numeric:tabular-nums}.list-results .numeric-cell strong{font-size:var(--text-small);font-weight:650}.list-results .row-actions{flex-wrap:nowrap;justify-content:flex-end;gap:6px}.list-results .compact-button{border-radius:7px;width:32px;min-width:32px;height:32px;min-height:32px;padding:0}.list-pagination{border:1px solid var(--border);color:var(--muted);font-size:var(--text-caption);background:#fff;border-radius:10px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin:0;padding:15px 20px;display:flex}.list-range{font-variant-numeric:tabular-nums}.list-range strong{color:var(--ink-soft);font-weight:600}.list-pagination-controls{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.list-pagination-controls>span{font-variant-numeric:tabular-nums;margin-inline:10px}.list-pagination-controls>label{color:var(--muted);font-size:var(--text-caption);align-items:center;gap:8px;margin:0;font-weight:400;display:flex}.list-pagination-controls select{width:auto;min-height:32px;font-size:var(--text-body);border-radius:6px;padding:5px 8px}.list-pagination-controls button{min-height:32px;font-size:var(--text-body);border-radius:6px;padding:6px 11px}.company-directory .directory-toolbar{flex-wrap:wrap;gap:18px;padding:20px}.directory-toolbar .directory-filters{flex-wrap:wrap;align-items:end}.directory-filters label{min-width:0}.directory-filters input,.directory-filters select{min-height:40px;font-size:var(--text-body);border-radius:7px}.directory-filters label>span{font-size:var(--text-caption)}.company-directory .data-table-toolbar{border-bottom:1px solid var(--border);background:#fafbfe;margin:0;padding:12px 20px}.company-directory .data-table-toolbar:has(.data-table-actions:empty){justify-content:flex-end}.company-directory .action-menu-item{font-size:var(--text-small)}.company-directory .action-menu-item input{width:15px;height:15px}.company-directory .data-table-visibility summary{min-height:32px;font-size:var(--text-small)}.company-directory .table-wrap{box-shadow:none;border:0;border-radius:0}.company-directory .list-pagination{border:0;border-top:1px solid var(--border);border-radius:0}.user-directory-filters{gap:12px;display:flex}.user-directory-filters>label:first-child{flex:1}@media(max-width:1200px){.product-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.product-filter-grid .list-search{grid-column:1/-1}.client-filter-grid,.list-filters .invoice-filter-primary{grid-template-columns:repeat(2,minmax(0,1fr))}.client-filter-grid .list-search,.list-filters .invoice-filter-primary .list-search{grid-column:1/-1}}@media(min-width:701px){.list-results table{min-width:860px}.list-results td:first-child{min-width:230px;max-width:330px}.list-results td[data-label=Contact]{overflow-wrap:anywhere;max-width:240px}.company-directory table{min-width:650px}}@media(max-width:700px){.list-page{gap:16px}.list-filters{gap:16px;padding:16px}.product-filter-grid,.client-filter-grid,.list-filters .invoice-filter-primary{grid-template-columns:minmax(0,1fr);gap:14px}.list-filters input,.list-filters select,.list-pagination select,.directory-filters input,.directory-filters select{font-size:16px}.list-filter-secondary{align-items:stretch}.list-filter-secondary>span{width:100%}.list-filter-secondary label{flex:1;gap:6px;min-width:120px;display:grid}.list-filter-secondary input{width:100%}.list-results{overflow:visible}:is(.list-results,.company-directory) .table-wrap{padding:12px}:is(.list-results,.company-directory) td{overflow-wrap:anywhere;padding:12px}:is(.list-results,.company-directory) td:before{font-size:var(--text-caption);letter-spacing:.02em;font-weight:600}:is(.list-results,.company-directory) td:first-child{background:#f8fafc;border-radius:8px 8px 0 0;grid-template-columns:minmax(0,1fr);padding:16px 12px}:is(.list-results,.company-directory) td:first-child:before{display:none}:is(.list-results,.company-directory) td:last-child{border:0}.list-results .row-actions{justify-content:flex-start}.list-results .numeric-cell{white-space:normal}.list-pagination{padding:14px}.list-pagination-controls{width:100%}.list-pagination-controls>label{margin-right:auto}.list-pagination-controls>span{margin-inline:0}.directory-toolbar .directory-filters{width:100%}.user-directory-filters{flex-direction:column}}.list-filters .invoice-filter-primary{padding:0}@font-face{font-family:Manrope;font-style:normal;font-display:swap;font-weight:200 800;src:url(/assets/manrope-latin-ext-wght-normal-Ch3YOpNY.woff2)format("woff2");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Manrope;font-style:normal;font-display:swap;font-weight:200 800;src:url(/assets/manrope-latin-wght-normal-DHIcAJRg.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--text-caption:.75rem;--text-small:.8125rem;--text-body:.875rem;--text-section:1rem}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
