@charset "UTF-8";html{color-scheme:light;--mat-sys-background: #faf9fd;--mat-sys-error: #ba1a1a;--mat-sys-error-container: #ffdad6;--mat-sys-inverse-on-surface: #f2f0f4;--mat-sys-inverse-primary: #abc7ff;--mat-sys-inverse-surface: #2f3033;--mat-sys-on-background: #1a1b1f;--mat-sys-on-error: #ffffff;--mat-sys-on-error-container: #93000a;--mat-sys-on-primary: #ffffff;--mat-sys-on-primary-container: #00458f;--mat-sys-on-primary-fixed: #001b3f;--mat-sys-on-primary-fixed-variant: #00458f;--mat-sys-on-secondary: #ffffff;--mat-sys-on-secondary-container: #3e4759;--mat-sys-on-secondary-fixed: #131c2b;--mat-sys-on-secondary-fixed-variant: #3e4759;--mat-sys-on-surface: #1a1b1f;--mat-sys-on-surface-variant: #44474e;--mat-sys-on-tertiary: #ffffff;--mat-sys-on-tertiary-container: #5f00c0;--mat-sys-on-tertiary-fixed: #270057;--mat-sys-on-tertiary-fixed-variant: #5f00c0;--mat-sys-outline: #74777f;--mat-sys-outline-variant: #c4c6d0;--mat-sys-primary: #005cbb;--mat-sys-primary-container: #d7e3ff;--mat-sys-primary-fixed: #d7e3ff;--mat-sys-primary-fixed-dim: #abc7ff;--mat-sys-scrim: #000000;--mat-sys-secondary: #565e71;--mat-sys-secondary-container: #dae2f9;--mat-sys-secondary-fixed: #dae2f9;--mat-sys-secondary-fixed-dim: #bec6dc;--mat-sys-shadow: #000000;--mat-sys-surface: #faf9fd;--mat-sys-surface-bright: #faf9fd;--mat-sys-surface-container: #efedf0;--mat-sys-surface-container-high: #e9e7eb;--mat-sys-surface-container-highest: #e3e2e6;--mat-sys-surface-container-low: #f4f3f6;--mat-sys-surface-container-lowest: #ffffff;--mat-sys-surface-dim: #dbd9dd;--mat-sys-surface-tint: #005cbb;--mat-sys-surface-variant: #e0e2ec;--mat-sys-tertiary: #7d00fa;--mat-sys-tertiary-container: #ecdcff;--mat-sys-tertiary-fixed: #ecdcff;--mat-sys-tertiary-fixed-dim: #d5baff;--mat-sys-neutral-variant20: #2d3038;--mat-sys-neutral10: #1a1b1f;--mat-sys-level0: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12);--mat-sys-level1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12);--mat-sys-level2: 0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12);--mat-sys-level3: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12);--mat-sys-level4: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12);--mat-sys-level5: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12);--mat-sys-body-large: 400 1rem / 1.5rem Inter, system-ui, sans-serif;--mat-sys-body-large-font: Inter, system-ui, sans-serif;--mat-sys-body-large-line-height: 1.5rem;--mat-sys-body-large-size: 1rem;--mat-sys-body-large-tracking: .031rem;--mat-sys-body-large-weight: 400;--mat-sys-body-medium: 400 .875rem / 1.25rem Inter, system-ui, sans-serif;--mat-sys-body-medium-font: Inter, system-ui, sans-serif;--mat-sys-body-medium-line-height: 1.25rem;--mat-sys-body-medium-size: .875rem;--mat-sys-body-medium-tracking: .016rem;--mat-sys-body-medium-weight: 400;--mat-sys-body-small: 400 .75rem / 1rem Inter, system-ui, sans-serif;--mat-sys-body-small-font: Inter, system-ui, sans-serif;--mat-sys-body-small-line-height: 1rem;--mat-sys-body-small-size: .75rem;--mat-sys-body-small-tracking: .025rem;--mat-sys-body-small-weight: 400;--mat-sys-display-large: 400 3.562rem / 4rem "Bricolage Grotesque", Inter, sans-serif;--mat-sys-display-large-font: "Bricolage Grotesque", Inter, sans-serif;--mat-sys-display-large-line-height: 4rem;--mat-sys-display-large-size: 3.562rem;--mat-sys-display-large-tracking: -.016rem;--mat-sys-display-large-weight: 400;--mat-sys-display-medium: 400 2.812rem / 3.25rem "Bricolage Grotesque", Inter, sans-serif;--mat-sys-display-medium-font: "Bricolage Grotesque", Inter, sans-serif;--mat-sys-display-medium-line-height: 3.25rem;--mat-sys-display-medium-size: 2.812rem;--mat-sys-display-medium-tracking: 0;--mat-sys-display-medium-weight: 400;--mat-sys-display-small: 400 2.25rem / 2.75rem "Bricolage Grotesque", Inter, sans-serif;--mat-sys-display-small-font: "Bricolage Grotesque", Inter, sans-serif;--mat-sys-display-small-line-height: 2.75rem;--mat-sys-display-small-size: 2.25rem;--mat-sys-display-small-tracking: 0;--mat-sys-display-small-weight: 400;--mat-sys-headline-large: 400 2rem / 2.5rem "Bricolage Grotesque", Inter, sans-serif;--mat-sys-headline-large-font: "Bricolage Grotesque", Inter, sans-serif;--mat-sys-headline-large-line-height: 2.5rem;--mat-sys-headline-large-size: 2rem;--mat-sys-headline-large-tracking: 0;--mat-sys-headline-large-weight: 400;--mat-sys-headline-medium: 400 1.75rem / 2.25rem "Bricolage Grotesque", Inter, sans-serif;--mat-sys-headline-medium-font: "Bricolage Grotesque", Inter, sans-serif;--mat-sys-headline-medium-line-height: 2.25rem;--mat-sys-headline-medium-size: 1.75rem;--mat-sys-headline-medium-tracking: 0;--mat-sys-headline-medium-weight: 400;--mat-sys-headline-small: 400 1.5rem / 2rem "Bricolage Grotesque", Inter, sans-serif;--mat-sys-headline-small-font: "Bricolage Grotesque", Inter, sans-serif;--mat-sys-headline-small-line-height: 2rem;--mat-sys-headline-small-size: 1.5rem;--mat-sys-headline-small-tracking: 0;--mat-sys-headline-small-weight: 400;--mat-sys-label-large: 600 .875rem / 1.25rem Inter, system-ui, sans-serif;--mat-sys-label-large-font: Inter, system-ui, sans-serif;--mat-sys-label-large-line-height: 1.25rem;--mat-sys-label-large-size: .875rem;--mat-sys-label-large-tracking: .006rem;--mat-sys-label-large-weight: 600;--mat-sys-label-large-weight-prominent: 700;--mat-sys-label-medium: 600 .75rem / 1rem Inter, system-ui, sans-serif;--mat-sys-label-medium-font: Inter, system-ui, sans-serif;--mat-sys-label-medium-line-height: 1rem;--mat-sys-label-medium-size: .75rem;--mat-sys-label-medium-tracking: .031rem;--mat-sys-label-medium-weight: 600;--mat-sys-label-medium-weight-prominent: 700;--mat-sys-label-small: 600 .688rem / 1rem Inter, system-ui, sans-serif;--mat-sys-label-small-font: Inter, system-ui, sans-serif;--mat-sys-label-small-line-height: 1rem;--mat-sys-label-small-size: .688rem;--mat-sys-label-small-tracking: .031rem;--mat-sys-label-small-weight: 600;--mat-sys-title-large: 400 1.375rem / 1.75rem "Bricolage Grotesque", Inter, sans-serif;--mat-sys-title-large-font: "Bricolage Grotesque", Inter, sans-serif;--mat-sys-title-large-line-height: 1.75rem;--mat-sys-title-large-size: 1.375rem;--mat-sys-title-large-tracking: 0;--mat-sys-title-large-weight: 400;--mat-sys-title-medium: 600 1rem / 1.5rem Inter, system-ui, sans-serif;--mat-sys-title-medium-font: Inter, system-ui, sans-serif;--mat-sys-title-medium-line-height: 1.5rem;--mat-sys-title-medium-size: 1rem;--mat-sys-title-medium-tracking: .009rem;--mat-sys-title-medium-weight: 600;--mat-sys-title-small: 600 .875rem / 1.25rem Inter, system-ui, sans-serif;--mat-sys-title-small-font: Inter, system-ui, sans-serif;--mat-sys-title-small-line-height: 1.25rem;--mat-sys-title-small-size: .875rem;--mat-sys-title-small-tracking: .006rem;--mat-sys-title-small-weight: 600;--mat-sys-corner-extra-large: 28px;--mat-sys-corner-extra-large-top: 28px 28px 0 0;--mat-sys-corner-extra-small: 4px;--mat-sys-corner-extra-small-top: 4px 4px 0 0;--mat-sys-corner-full: 9999px;--mat-sys-corner-large: 16px;--mat-sys-corner-large-end: 0 16px 16px 0;--mat-sys-corner-large-start: 16px 0 0 16px;--mat-sys-corner-large-top: 16px 16px 0 0;--mat-sys-corner-medium: 12px;--mat-sys-corner-none: 0;--mat-sys-corner-small: 8px;--mat-sys-dragged-state-layer-opacity: .16;--mat-sys-focus-state-layer-opacity: .12;--mat-sys-hover-state-layer-opacity: .08;--mat-sys-pressed-state-layer-opacity: .12}:root{--bg-base:#f5f6fa;--bg-deep:#eceef5;--bg-elevated:#ffffff;--surface:#ffffff;--surface-2:#f4f5fb;--border:#e2e8f0;--border-strong:#cbd5e1;--text-primary:#1e293b;--text-secondary:#475569;--text-muted:#64748b;--primary:#5b52e6;--primary-hover:#4c46c9;--primary-contrast:#ffffff;--link:#4f46e5;--accent-1:#f9a825;--accent-2:#ff6d00;--accent-grad:linear-gradient(135deg,#f9a825,#ff6d00);--on-accent:#2a1a02;--success:#22c55e;--success-bg:#dcfce7;--success-text:#15803d;--warning:#f59e0b;--warning-bg:#fef3c7;--warning-text:#b45309;--danger:#ef4444;--danger-bg:#fee2e2;--danger-text:#b91c1c;--info:#38bdf8;--focus-ring:rgba(99,102,241,.55);--shadow-focus:0 0 0 3px var(--focus-ring);--font-display:"Bricolage Grotesque","Inter",system-ui,sans-serif;--font-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;--text-xs:.75rem;--text-sm:.875rem;--text-base:1rem;--text-lg:1.125rem;--text-xl:1.25rem;--text-2xl:1.5rem;--text-3xl:2rem;--text-display:clamp(1.9rem,1.2rem + 2.6vw,2.75rem);--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--space-12:48px;--space-16:64px;--radius-full:9999px;--shadow-glow:0 0 0 1px var(--border) inset;--ease:cubic-bezier(.2,0,0,1);--dur-fast:.12s;--dur-base:.18s;--dur-slow:.28s}[data-theme=dark]{--bg-base:#0f0c29;--bg-deep:#0a0820;--bg-elevated:#16132e;--surface:rgba(255,255,255,.045);--surface-2:rgba(255,255,255,.07);--border:rgba(255,255,255,.1);--border-strong:rgba(255,255,255,.18);--text-primary:#f1f5f9;--text-secondary:#c7cbe0;--text-muted:#94a3b8;--primary:#6366f1;--primary-hover:#4f46e5;--link:#a5b4fc;--success-bg:rgba(34,197,94,.12);--success-text:#4ade80;--warning-bg:rgba(245,158,11,.12);--warning-text:#fbbf24;--danger-bg:rgba(239,68,68,.13);--danger-text:#fca5a5;--shadow-glow:0 0 0 1px var(--border) inset,0 1px 0 rgba(255,255,255,.06) inset;color-scheme:dark}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--color-primary: var(--primary);--color-primary-dark: var(--primary-hover);--color-secondary: #7c3aed;--color-success: var(--success-text);--color-warning: var(--warning-text);--color-error: var(--danger-text);--color-bg: var(--bg-base);--color-surface: var(--surface);--color-text: var(--text-primary);--color-text-muted: var(--text-muted);--color-border: var(--border);--radius-sm: 6px;--radius-md: 8px;--radius-lg: 12px;--shadow-sm: 0 1px 2px rgb(0 0 0 / .05);--shadow-md: 0 4px 6px rgb(0 0 0 / .07);--shadow-lg: 0 10px 15px rgb(0 0 0 / .1);--font-sans: "Inter", system-ui, -apple-system, sans-serif;font-family:var(--font-sans);font-size:16px;line-height:1.5;color:var(--color-text);background-color:var(--color-bg);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:focus-visible{outline:none;box-shadow:var(--shadow-focus);border-radius:var(--radius-sm)}.icon-btn .material-icons{font-size:1.125rem;line-height:1}.error{color:var(--color-error);font-size:.875rem;margin-top:.5rem}.login-container{max-width:400px;margin:10vh auto;padding:2rem;background:var(--color-surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg)}.login-container h1{font-size:1.25rem;color:var(--color-primary);margin-bottom:.25rem}.login-container h2{font-size:1.5rem;margin-bottom:1.5rem}.login-container form{display:flex;flex-direction:column;gap:1rem}.login-container label{display:flex;flex-direction:column;gap:.25rem;font-size:.875rem;font-weight:500}.login-container input{padding:.625rem .75rem;border:1px solid var(--color-border);border-radius:var(--radius-sm);font-size:1rem;transition:border-color .15s}.login-container input:focus{outline:none;border-color:var(--color-primary);box-shadow:0 0 0 3px #2563eb26}.login-container button[type=submit]{padding:.75rem;background:var(--color-primary);color:#fff;border:none;border-radius:var(--radius-sm);font-size:1rem;font-weight:600;cursor:pointer;transition:background .15s}.login-container button[type=submit]:hover:not(:disabled){background:var(--color-primary-dark)}.login-container button[type=submit]:disabled{opacity:.65;cursor:not-allowed}.dashboard header{display:flex;align-items:center;justify-content:space-between;padding:1rem 2rem;background:var(--color-surface);border-bottom:1px solid var(--color-border);box-shadow:var(--shadow-sm)}.dashboard .user-info{display:flex;align-items:center;gap:1rem}.dashboard .user-info .tenant{background:var(--color-bg);border:1px solid var(--color-border);padding:.25rem .5rem;border-radius:var(--radius-sm);font-size:.75rem;color:var(--color-text-muted)}.dashboard .user-info button{padding:.375rem .75rem;border:1px solid var(--color-border);border-radius:var(--radius-sm);background:transparent;cursor:pointer}.dashboard .user-info button:hover{background:var(--color-bg)}.dashboard main{padding:2rem}.not-found{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;gap:1rem;text-align:center}.not-found h1{font-size:6rem;color:var(--color-primary);line-height:1}.not-found a{color:var(--color-primary);text-decoration:underline}.btn{display:inline-flex;align-items:center;gap:.375rem;padding:.5rem 1rem;border-radius:var(--radius-sm);border:1px solid transparent;font-size:.875rem;font-weight:500;line-height:1.4;cursor:pointer;transition:background .15s,border-color .15s,color .15s,opacity .15s;text-decoration:none}.btn:disabled{opacity:.6;cursor:not-allowed}.btn--primary{background:var(--color-primary);color:#fff}.btn--primary:hover:not(:disabled){background:var(--color-primary-dark)}.btn--secondary{background:var(--color-surface);color:var(--color-text);border-color:var(--color-border)}.btn--secondary:hover:not(:disabled){background:var(--color-bg)}.btn--outline-primary{background:transparent;color:var(--color-primary);border-color:var(--color-primary)}.btn--outline-primary:hover:not(:disabled){background:#2563eb0f}.btn--danger{background:var(--color-error);color:#fff}.btn--danger:hover:not(:disabled){background:#b91c1c}.btn--stripe{background:#635bff;color:#fff}.btn--stripe:hover:not(:disabled){background:#4f49d4}.btn--sm{padding:.3rem .65rem;font-size:.8125rem}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:.35rem .55rem;border-radius:var(--radius-sm);border:1px solid var(--color-border);background:transparent;cursor:pointer;font-size:.875rem;transition:background .15s}.icon-btn:hover:not(:disabled){background:var(--color-bg)}.icon-btn:disabled{opacity:.5;cursor:not-allowed}.icon-btn--danger{border-color:#fca5a5;color:var(--color-error)}.icon-btn--danger:hover:not(:disabled){background:#fef2f2}.icon-btn--stripe{border-color:#c7c4ff;color:#635bff}.icon-btn--stripe:hover:not(:disabled){background:#f5f4ff}.alert{padding:.75rem 1rem;border-radius:var(--radius-sm);font-size:.875rem;margin-bottom:1rem}.alert--error{background:var(--danger-bg);color:var(--danger-text);border:1px solid color-mix(in srgb,var(--danger) 35%,transparent)}.alert--warning{background:var(--warning-bg);color:var(--warning-text);border:1px solid color-mix(in srgb,var(--warning) 35%,transparent)}.alert--info{background:#eff6ff;color:#1d4ed8;border:1px solid #93c5fd}.alert--success{background:var(--success-bg);color:var(--success-text);border:1px solid color-mix(in srgb,var(--success) 35%,transparent)}.page-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin-bottom:1.5rem}.page-header__left{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.page-header__right{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.page-title{font-size:1.5rem;font-weight:700;color:var(--color-text);margin:0}.back-link{color:var(--color-text-muted);text-decoration:none;font-size:.875rem}.back-link:hover{color:var(--color-primary);text-decoration:underline}.invoices-page{padding:2rem;max-width:1200px;margin:0 auto}.page-loading{display:flex;justify-content:center;padding:4rem}.spinner{width:40px;height:40px;border:3px solid var(--color-border);border-top-color:var(--color-primary);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.form-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);padding:1.5rem;margin-bottom:1.25rem}.form-section-title{font-size:.9375rem;font-weight:600;color:var(--color-text);margin-bottom:1rem}.form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}.form-field{display:flex;flex-direction:column;gap:.25rem}.form-field label{font-size:.8125rem;font-weight:500;color:var(--color-text-muted)}.form-field input,.form-field select,.form-field textarea{padding:.5625rem .75rem;border:1px solid var(--color-border);border-radius:var(--radius-sm);font-size:.9375rem;background:var(--color-surface);transition:border-color .15s;width:100%}.form-field input:focus,.form-field select:focus,.form-field textarea:focus{outline:none;border-color:var(--color-primary);box-shadow:0 0 0 3px #2563eb1f}.form-field input.ng-invalid.ng-touched,.form-field select.ng-invalid.ng-touched,.form-field textarea.ng-invalid.ng-touched{border-color:var(--color-error)}.form-field .field-error{font-size:.8125rem;color:var(--color-error);margin-top:.125rem}.form-field--full{grid-column:1/-1}.items-table-wrapper{overflow-x:auto;margin-bottom:1rem}.items-table{width:100%;border-collapse:collapse;font-size:.9rem}.items-table thead tr{background:var(--color-bg);border-bottom:2px solid var(--color-border)}.items-table thead tr th{padding:.625rem .75rem;text-align:left;font-size:.8125rem;font-weight:600;color:var(--color-text-muted);white-space:nowrap}.items-table tbody tr{border-bottom:1px solid var(--color-border);transition:background .1s}.items-table tbody tr.row--even,.items-table tbody tr.item-row--even{background:#f8fafc}.items-table tbody tr:hover{background:#f0f7ff}.items-table tbody tr td{padding:.5rem .75rem;color:var(--color-text)}.items-table tbody tr td input{padding:.375rem .5rem;border:1px solid transparent;border-radius:var(--radius-sm);font-size:.9rem;background:transparent;width:100%;transition:border-color .15s}.items-table tbody tr td input:focus{outline:none;border-color:var(--color-primary);background:var(--color-surface);box-shadow:0 0 0 2px #2563eb1a}.items-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.col-description{width:40%}.col-qty{width:12%;min-width:64px}.col-price{width:16%;min-width:100px}.col-total{width:14%;min-width:100px}.col-actions{width:14%;min-width:80px}.text-right{text-align:right!important}.line-total{font-weight:600;color:var(--color-text)}.order-controls{display:flex;gap:.25rem}.totals-block{display:flex;flex-direction:column;align-items:flex-end;gap:.375rem;padding-top:1rem;border-top:1px solid var(--color-border)}.totals-row{display:flex;justify-content:flex-end;gap:2rem;width:100%;max-width:320px}.totals-row--total{border-top:2px solid var(--color-primary);padding-top:.375rem;margin-top:.25rem}.totals-row--paid{color:var(--color-success);font-size:.875rem}.totals-label{font-size:.9rem;color:var(--color-text-muted);flex:1}.totals-value{font-size:.9rem;font-weight:500;white-space:nowrap;text-align:right}.totals-value--total{font-size:1.125rem;font-weight:700;color:var(--color-primary)}.totals-value--discount{color:var(--color-success)}.stats-bar{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem;margin-bottom:1.5rem}.stat-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);padding:1rem 1.25rem;box-shadow:var(--shadow-sm);border-left:4px solid transparent}.stat-card .stat-label{font-size:.8125rem;font-weight:500;color:var(--color-text-muted)}.stat-card .stat-value{font-size:1.75rem;font-weight:700;color:var(--color-text);margin-top:.125rem}.stat-card--blue{border-left-color:var(--color-primary)}.stat-card--blue .stat-value{color:var(--color-primary)}.stat-card--green{border-left-color:var(--color-success)}.stat-card--green .stat-value{color:var(--color-success)}.stat-card--red{border-left-color:var(--color-error)}.stat-card--red .stat-value{color:var(--color-error)}.stat-card--gray{border-left-color:var(--color-text-muted)}.filter-bar{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.25rem}.filter-btn{padding:.375rem .875rem;border:1px solid var(--color-border);border-radius:20px;background:var(--color-surface);font-size:.8125rem;cursor:pointer;transition:all .15s;color:var(--color-text-muted)}.filter-btn:hover{background:var(--color-bg);color:var(--color-text)}.filter-btn--active{background:var(--color-primary);border-color:var(--color-primary);color:#fff}.table-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);overflow:hidden;margin-bottom:1.25rem}.table-wrapper{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;font-size:.9rem}.data-table thead tr{border-bottom:2px solid var(--color-border);background:var(--color-bg)}.data-table thead tr th{padding:.75rem 1rem;text-align:left;font-size:.8125rem;font-weight:600;color:var(--color-text-muted);white-space:nowrap}.data-table tbody tr{border-bottom:1px solid var(--color-border);transition:background .1s}.data-table tbody tr:last-child{border-bottom:none}.data-table tbody tr:hover{background:#f8fbff}.data-table tbody tr td{padding:.75rem 1rem}.table-loading,.empty-state{padding:3rem;text-align:center;color:var(--color-text-muted);font-size:.9rem}.action-group{display:flex;align-items:center;gap:.25rem}.client-cell{display:flex;flex-direction:column;gap:.125rem}.client-name{font-weight:500;color:var(--color-text)}.client-email{font-size:.8125rem;color:var(--color-text-muted)}.amount-cell{font-weight:600;white-space:nowrap}.invoice-link{color:var(--color-primary);font-weight:600;text-decoration:none}.invoice-link:hover{text-decoration:underline}.overdue-date{color:var(--color-error);font-weight:500}.badge{display:inline-block;padding:.2em .6em;border-radius:20px;font-size:.75rem;font-weight:600;letter-spacing:.02em;white-space:nowrap;text-transform:capitalize}.badge--gray{background:#f1f5f9;color:#475569}.badge--blue{background:#eff6ff;color:#1d4ed8}.badge--green{background:#f0fdf4;color:var(--color-success)}.badge--red{background:#fef2f2;color:var(--color-error)}.badge--orange{background:#fffbeb;color:var(--color-warning)}.badge--purple{background:#f5f3ff;color:#7c3aed}.badge--lg{font-size:.875rem;padding:.3em .8em}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:.5rem;padding:1rem 1.5rem;border-top:1px solid var(--color-border);flex-wrap:wrap}.pagination-info{font-size:.8125rem;color:var(--color-text-muted);margin-right:auto}.loading-state{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:3rem;color:var(--color-text-muted);font-size:.9rem}.invoice-detail-page{padding:2rem;max-width:1200px;margin:0 auto}.detail-grid{display:grid;grid-template-columns:1fr 280px;gap:1.5rem;align-items:start}@media(max-width:900px){.detail-grid{grid-template-columns:1fr}}.detail-meta-row{display:grid;grid-template-columns:1.5fr repeat(3,1fr);gap:1.5rem;margin-bottom:1.25rem}@media(max-width:768px){.detail-meta-row{grid-template-columns:1fr 1fr}}.detail-section{display:flex;flex-direction:column;gap:.25rem}.detail-section-label{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--color-text-muted);margin-bottom:.25rem}.detail-value{font-size:.9375rem;color:var(--color-text)}.detail-value--large{font-size:1.0625rem;font-weight:600;color:var(--color-text)}.detail-value--muted{font-size:.9rem;color:var(--color-text-muted)}.divider{border:none;border-top:1px solid var(--color-border);margin:1rem 0 1.25rem}.detail-notes{margin-top:1.25rem}.stripe-session-id{font-size:.75rem;word-break:break-all;font-family:var(--font-mono)}.timeline{list-style:none;display:flex;flex-direction:column;gap:.75rem}.timeline-item{display:flex;justify-content:space-between;align-items:flex-start;gap:.5rem}.timeline-item--paid{color:var(--color-success);font-weight:500}.timeline-label{font-size:.8125rem;font-weight:500;color:var(--color-text-muted)}.timeline-date{font-size:.8125rem;color:var(--color-text);text-align:right}.tour-highlight{outline:3px solid var(--tour-color, #6366f1);outline-offset:4px;border-radius:8px;transition:outline .3s ease;animation:tour-pulse 1.5s ease-in-out infinite}@keyframes tour-pulse{0%,to{box-shadow:0 0 color-mix(in srgb,var(--tour-color, #6366f1) 40%,transparent)}50%{box-shadow:0 0 0 8px color-mix(in srgb,var(--tour-color, #6366f1) 0%,transparent)}}.tour-card-glow{box-shadow:0 0 0 3px #6366f1,0 6px 24px #6366f140;transform:translateY(-2px);transition:box-shadow .3s,transform .3s}.tax-disclaimer{background:var(--warning-bg);border:1px solid color-mix(in srgb,var(--warning) 35%,transparent);border-radius:var(--radius-sm);padding:.75rem 1rem;font-size:.8rem;color:var(--warning-text);margin:1rem 0}
