:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}#root{text-align:left;box-sizing:border-box;border-inline:none;flex-direction:column;width:100%;max-width:100%;min-height:100svh;margin:0 auto;display:flex}body{margin:0}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}#root{box-sizing:border-box;text-align:left;border-inline:1px solid var(--border);flex-direction:column;width:100%;max-width:960px;min-height:100svh;margin:0 auto;display:flex}#root.dashboard-shell-active{border-inline:none;max-width:none;margin:0}.app-loading{justify-content:center;align-items:center;min-height:40vh;padding:2rem;display:flex}.app-shell{flex-direction:column;min-height:100svh;display:flex}.app-header{border-bottom:1px solid var(--border);background:var(--bg);z-index:1;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem 1rem;padding:.875rem 1.25rem;display:flex;position:sticky;top:0}.app-header-brand-nav{flex-wrap:wrap;align-items:center;gap:.75rem 1.25rem;display:flex}.app-nav{flex-wrap:wrap;gap:.75rem 1rem;font-size:.95rem;display:flex}.app-nav a{color:var(--text);text-decoration:none}.app-nav a:hover{color:var(--text-h);text-decoration:underline}.app-brand{color:var(--text-h);font-weight:600;text-decoration:none}.app-brand:hover{text-decoration:underline}.app-header-actions{flex-wrap:wrap;align-items:center;gap:.75rem 1rem;display:flex}.app-user-email{color:var(--text);text-overflow:ellipsis;white-space:nowrap;max-width:min(100%,220px);font-size:.9rem;overflow:hidden}.app-main{flex:1;padding:1.25rem}@media (width>=640px){.app-main{padding:1.75rem 2rem}}.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}.dashboard-home{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.dashboard-home-body{flex:1;padding:0;overflow:auto}.dashboard-home-body--widgets{background:var(--inv-main-bg)}.dashboard-widgets-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:1.25rem;padding:1rem 1.25rem 1.75rem;display:grid}@media (width<=960px){.dashboard-widgets-grid{grid-template-columns:1fr}}.dashboard-widget-card{background:var(--inv-panel-bg);border:1px solid var(--inv-panel-border);border-radius:12px;padding:1.1rem 1.2rem 1.25rem;box-shadow:0 1px 3px #0f172a0f}.dashboard-widget-card--wide{grid-column:1/-1}.dashboard-widget-subtitle{color:var(--inv-text-muted,#64748b);margin:.25rem 0 0;font-size:.8125rem}.dashboard-widget-chart--stacked{min-height:300px}.dashboard-ticket-legend-item{color:inherit}.dashboard-ticket-legend-total{color:#0f172a;font-weight:700}.dashboard-widget-title{color:#0f172a;letter-spacing:-.02em;margin:0 0 1rem;font-size:1rem;font-weight:700}.dashboard-widget-chart{width:100%;min-height:280px}.dashboard-widget-chart--donut{position:relative}.dashboard-donut-center{pointer-events:none;text-align:center;flex-direction:column;align-items:center;gap:.15rem;display:flex;position:absolute;top:50%;left:56%;transform:translate(-50%,-50%)}.dashboard-donut-center-total{color:#0f172a;letter-spacing:-.03em;font-size:1.35rem;font-weight:700;line-height:1.15}.dashboard-donut-center-sub{color:#64748b;font-size:.75rem;font-weight:500}.dashboard-donut-legend-label{color:#0f172a;letter-spacing:-.01em;align-items:baseline;gap:.35rem;font-size:.875rem;font-weight:600;line-height:1.5;display:inline-flex}.dashboard-donut-legend-range{color:#475569;font-weight:500}.dashboard-donut-legend-pct{color:#0f172a;font-variant-numeric:tabular-nums;font-size:1rem;font-weight:700}.dashboard-widget-empty{text-align:center;color:var(--inv-text-muted);margin:0;padding:2.5rem 1rem;font-size:.875rem}.dashboard-widgets-loading{color:var(--inv-text-muted);margin:0;padding:2rem 1.25rem;font-size:.9rem}.dashboard-widgets-error{padding:1.25rem}.dashboard-widgets-error p{color:#991b1b;margin:0 0 .75rem;font-size:.9rem}.dashboard-widgets-retry{font:inherit;color:#fff;cursor:pointer;background:#1d4ed8;border:none;border-radius:8px;padding:.45rem 1rem;font-size:.8125rem;font-weight:600}.dashboard-widgets-retry:hover{background:#1e40af}.dashboard-debtor-list{flex-direction:column;gap:.65rem;margin:0;padding:0;list-style:none;display:flex}.dashboard-debtor-row{background:#fff;border:1px solid #e2e8f0f2;border-radius:10px;align-items:stretch;gap:.85rem;padding:.75rem .9rem;display:flex;box-shadow:0 1px 2px #0f172a0a}.dashboard-debtor-rank{color:#0f172a;flex-shrink:0;min-width:1.35rem;font-size:1rem;font-weight:700;line-height:1.4}.dashboard-debtor-main{flex:1;min-width:0}.dashboard-debtor-name{letter-spacing:.02em;color:#1e293b;margin-bottom:.45rem;font-size:.8125rem;font-weight:600;line-height:1.35}.dashboard-debtor-bar-track{background:#eef2f7;border-radius:999px;height:6px;overflow:hidden}.dashboard-debtor-bar-fill{background:linear-gradient(90deg,#86efac,#22c55e);border-radius:999px;min-width:4px;height:100%}.dashboard-debtor-amount{font-variant-numeric:tabular-nums;color:#0f172a;flex-shrink:0;align-self:flex-start;font-size:.875rem;font-weight:700;line-height:1.4}.dashboard-widget-list-scroll{max-height:min(420px,55vh);margin-right:-.15rem;padding-right:.15rem;overflow-y:auto}.dashboard-blocked-list{flex-direction:column;gap:.65rem;margin:0;padding:0;list-style:none;display:flex}.dashboard-blocked-row{border:1px solid #e2e8f0f2;background:#fff;border-left:4px solid #b42318;border-radius:10px;justify-content:space-between;align-items:flex-start;gap:.85rem;padding:.75rem .9rem;display:flex;box-shadow:0 1px 2px #0f172a0a}.dashboard-blocked-main{flex:1;min-width:0}.dashboard-blocked-title-row{flex-wrap:wrap;align-items:baseline;gap:.35rem .65rem;margin-bottom:.35rem;display:flex}.dashboard-blocked-invoice{color:#0f172a;letter-spacing:-.02em;font-size:.8125rem;font-weight:700}.dashboard-blocked-age{text-transform:uppercase;letter-spacing:.06em;color:#64748b;font-size:.6875rem;font-weight:700}.dashboard-blocked-debtor{letter-spacing:.02em;text-transform:uppercase;color:#334155;font-size:.8125rem;font-weight:600;line-height:1.35}.dashboard-blocked-client{color:#64748b;overflow-wrap:anywhere;margin-top:.25rem;font-size:.75rem;line-height:1.35}.dashboard-blocked-amount{font-variant-numeric:tabular-nums;color:#991b1b;flex-shrink:0;font-size:.875rem;font-weight:700;line-height:1.4}.invoices-dashboard{--inv-sidebar-bg:#1a1d24;--inv-sidebar-border:#2d3139;--inv-sidebar-muted:#9aa0ab;--inv-sidebar-hover:#2a2f38;--inv-main-bg:#f0f1f4;--inv-panel-bg:#fff;--inv-panel-border:#e2e4e8;--inv-text:#1c1e24;--inv-text-muted:#5c6370;--inv-tab-inactive:#eceef2;--inv-tab-active:#fff;--inv-accent:#0d0d0d;background:var(--inv-main-bg);width:100%;min-height:100svh;color:var(--inv-text);font-size:.9375rem;line-height:1.4;display:flex}.invoices-sidebar{background:var(--inv-sidebar-bg);color:#e8eaef;border-right:1px solid var(--inv-sidebar-border);box-sizing:border-box;flex-direction:column;flex-shrink:0;align-self:flex-start;width:220px;height:100svh;max-height:100svh;display:flex;position:sticky;top:0}.invoices-sidebar-brand{letter-spacing:.12em;text-transform:uppercase;color:#f2f4f8;border-bottom:1px solid var(--inv-sidebar-border);padding:1.25rem 1rem 1rem;font-size:.75rem;font-weight:700}.invoices-sidebar-nav{flex-direction:column;gap:.125rem;padding:.5rem 0;display:flex}.invoices-sidebar-link{color:var(--inv-sidebar-muted);border-left:3px solid #0000;padding:.6rem 1rem;font-size:.9rem;text-decoration:none;display:block}.invoices-sidebar-link:hover{background:var(--inv-sidebar-hover);color:#fff}.invoices-sidebar-link-active{background:var(--inv-sidebar-hover);color:#fff;border-left-color:#fff;font-weight:500}.invoices-sidebar-spacer{flex:1;min-height:1rem}.invoices-sidebar-footer{border-top:1px solid var(--inv-sidebar-border);flex-shrink:0;margin-top:auto;padding:.75rem 1rem 1rem;font-size:.8rem}.invoices-sidebar-user{color:var(--inv-sidebar-muted);text-overflow:ellipsis;white-space:nowrap;margin-bottom:.5rem;overflow:hidden}.invoices-sidebar-logout{width:100%;font:inherit;border:1px solid var(--inv-sidebar-border);color:#e8eaef;cursor:pointer;background:0 0;border-radius:6px;padding:.45rem .5rem;font-size:.85rem}.invoices-sidebar-logout:hover{background:var(--inv-sidebar-hover)}.invoices-main{flex-direction:column;flex:1;min-width:0;display:flex;overflow:hidden}.invoices-main-toolbar{background:var(--inv-panel-bg);border-bottom:1px solid var(--inv-panel-border);flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:1rem;padding:1rem 1.25rem;display:flex}.invoices-main-title{align-items:center;gap:.5rem;display:flex}.invoices-main-title h1{letter-spacing:-.02em;color:var(--inv-text);margin:0;font-size:1.25rem;font-weight:600}.dashboard-page-subtitle,.invoices-page-subtitle{color:var(--inv-text-muted,#64748b);flex:100%;margin:0;padding:0 0 0 .25rem;font-size:.875rem}.invoices-main-title-icon{opacity:.85;font-size:1.1rem}.invoices-status-tabs{background:var(--inv-tab-inactive);border-bottom:1px solid var(--inv-panel-border);flex-wrap:wrap;gap:0;padding:0 1rem;display:flex}.invoices-status-tab{font:inherit;color:var(--inv-text-muted);cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;margin-bottom:-1px;padding:.65rem 1rem;font-size:.8125rem;font-weight:500}.invoices-status-tab:hover{color:var(--inv-text)}.invoices-status-tab-active{background:var(--inv-tab-active);color:var(--inv-text);border-bottom-color:var(--inv-panel-bg);box-shadow:0 -1px 0 var(--inv-panel-bg);border-radius:8px 8px 0 0}.invoices-split{flex:1;grid-template-columns:minmax(220px,280px) 1fr;gap:0;min-height:0;display:grid}.invoices-split-left{background:var(--inv-panel-bg);border-right:1px solid var(--inv-panel-border);flex-direction:column;min-height:0;padding:.75rem;display:flex;overflow:auto}.invoices-segment{background:var(--inv-tab-inactive);border-radius:8px;margin-bottom:.75rem;padding:3px;display:flex}.invoices-seg-btn{font:inherit;color:var(--inv-text-muted);cursor:pointer;background:0 0;border:none;border-radius:6px;flex:1;padding:.4rem .5rem;font-size:.8125rem;font-weight:500}.invoices-seg-btn-active{background:var(--inv-panel-bg);color:var(--inv-text);box-shadow:0 1px 2px #0000000f}.invoices-search-label{margin-bottom:.5rem;display:block}.invoices-search-input{box-sizing:border-box;width:100%;font:inherit;border:1px solid var(--inv-panel-border);background:#fafbfc;border-radius:6px;padding:.5rem .65rem;font-size:.8125rem}.invoices-entity-list{margin:0;padding:0;list-style:none}.invoices-entity-row{width:100%;font:inherit;text-align:left;cursor:pointer;color:var(--inv-text);background:0 0;border:none;border-radius:6px;justify-content:space-between;align-items:center;gap:.5rem;margin:.125rem 0;padding:.55rem .5rem;font-size:.8125rem;display:flex}.invoices-entity-row:hover{background:#f4f5f8}.invoices-entity-row-active{background:#e8ecf4;font-weight:500}.invoices-entity-label{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.invoices-entity-count{color:var(--inv-text-muted);font-variant-numeric:tabular-nums;flex-shrink:0;font-size:.75rem}.invoices-split-right{flex-direction:column;min-width:0;min-height:0;padding:.75rem 1rem 0;display:flex}.tickets-content-panel{flex-direction:column;flex:1;min-width:0;min-height:0;padding:.75rem 1rem 0;display:flex}.tickets-assignee-filter{flex-shrink:0;align-items:center;gap:.45rem;display:inline-flex}.tickets-assignee-filter-label{color:var(--inv-text-muted);white-space:nowrap;font-size:.8125rem;font-weight:500}.tickets-assignee-filter-select{min-width:9.5rem;max-width:14rem}.tickets-priority-filter{cursor:pointer;-webkit-user-select:none;user-select:none;flex-shrink:0;align-items:center;gap:.45rem;display:inline-flex}.tickets-priority-filter-label{color:var(--inv-text-muted);white-space:nowrap;font-size:.8125rem;font-weight:500}.invoices-detail-datetime{border:1px solid var(--inv-border);background:var(--inv-surface);width:100%;max-width:16rem;color:var(--inv-text);border-radius:6px;padding:.35rem .5rem;font-size:.875rem}.invoices-toolbar-actions{flex-wrap:wrap;align-items:center;gap:.5rem;margin-left:auto;display:flex}.invoices-toolbar-btn{font:inherit;border:1px solid var(--inv-panel-border);background:var(--inv-panel-bg);color:var(--inv-text);cursor:pointer;border-radius:6px;padding:.45rem .75rem;font-size:.8125rem;font-weight:500}.invoices-toolbar-btn:hover:not(:disabled){background:#f4f5f8}.invoices-toolbar-btn:disabled{opacity:.6;cursor:not-allowed}.invoices-toolbar-sync-msg{color:var(--inv-text-muted);margin:0;font-size:.8125rem}.tickets-data-table .tickets-col-id{font-variant-numeric:tabular-nums;width:5rem;max-width:5.5rem}.tickets-data-table .tickets-col-date{width:6.25rem;max-width:6.75rem}.tickets-data-table .tickets-col-title{white-space:normal;word-break:break-word;width:42%;min-width:16rem}.tickets-data-table .tickets-col-priority{white-space:nowrap;vertical-align:middle;width:6.5rem;min-width:6.5rem;max-width:6.5rem}.tickets-data-table .tickets-col-ticket-status{white-space:nowrap;vertical-align:middle;width:9rem;min-width:9rem;max-width:9rem}.tickets-data-table .tickets-col-priority .invoices-status-cell,.tickets-data-table .tickets-col-ticket-status .invoices-status-cell,.tickets-data-table .invoices-col-assignee .invoices-status-cell{align-items:center;gap:.2rem;max-width:100%;display:inline-flex}.tickets-data-table .tickets-col-priority .invoices-status-cell .invoices-pill{text-align:center;flex:none;min-width:4.5rem}.tickets-data-table .tickets-col-ticket-status .invoices-status-cell .invoices-pill{text-align:center;flex:none;min-width:5.75rem}.tickets-data-table .invoices-col-assignee .invoices-status-cell .invoices-pill{text-align:center;flex:none;min-width:2.25rem}.tickets-data-table .tickets-col-priority .invoices-status-pencil,.tickets-data-table .tickets-col-ticket-status .invoices-status-pencil,.tickets-data-table .invoices-col-assignee .invoices-status-pencil{flex-shrink:0}.tickets-data-table .tickets-col-priority .invoices-status-select,.tickets-data-table .tickets-col-ticket-status .invoices-status-select{max-width:100%;font-size:.75rem}.tickets-detail-description{white-space:pre-wrap;border:1px solid var(--inv-panel-border);color:#1e293b;background:#fff;border-radius:10px;padding:.85rem .95rem;font-size:.9rem;line-height:1.55}.tickets-detail-panel{background:#f7f8fa;padding:1.4rem 1.45rem 3.5rem;scroll-padding-bottom:2rem}.tickets-detail-panel .invoices-detail-header{margin-bottom:1.05rem;padding-bottom:.95rem}.tickets-detail-panel .invoices-detail-list{gap:1.3rem}.tickets-detail-hero-title{color:#0f172a;letter-spacing:-.015em;white-space:nowrap;text-overflow:ellipsis;margin:.35rem 0 0;font-size:.9375rem;font-weight:700;line-height:1.4;overflow:hidden}.tickets-detail-hero-title-row{flex-wrap:nowrap;align-items:flex-start;gap:.4rem;width:100%;min-width:0;margin:.35rem 0 0;display:flex}.tickets-detail-hero-title-row--editing{flex-wrap:nowrap;align-items:center;gap:.4rem .5rem}.tickets-detail-title-display{color:#0f172a;letter-spacing:-.015em;white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;font-size:.9375rem;font-weight:700;line-height:1.4;overflow:hidden}.tickets-detail-title-prefix{color:#0f172a;white-space:nowrap;flex-shrink:0;font-size:.9375rem;font-weight:700;line-height:1.4}.tickets-detail-title-pencil{opacity:.5;flex-shrink:0;margin-top:.15rem;transition:opacity .15s,color .15s,background .15s}.tickets-detail-hero-title-row:hover .tickets-detail-title-pencil,.tickets-detail-title-pencil:focus-visible{opacity:1}.tickets-detail-title-input{color:#0f172a;letter-spacing:-.015em;background:#fff;border:1px solid #94a3b88c;border-radius:9px;flex:auto;width:auto;min-width:0;margin:0;padding:.5rem .7rem;font-size:.9375rem;font-weight:700;line-height:1.4;transition:border-color .15s,box-shadow .15s}.tickets-detail-title-input:focus{border-color:#2563eb;outline:none;box-shadow:0 0 0 3px #2563eb26}.tickets-detail-panel .invoices-detail-summary.tickets-detail-summary-compact{border:1px solid var(--inv-panel-border);border-radius:14px;padding:0;overflow:hidden;box-shadow:0 1px 2px #0f172a0a,0 6px 16px #0f172a08}.tickets-detail-summary-compact .invoices-note-form-error{margin:0;padding:.6rem 1rem 0}.tickets-detail-panel .tickets-detail-meta-row-compact.invoices-detail-row{border-bottom:none;gap:.5rem 1rem;margin:0;padding:.85rem 1rem}.tickets-detail-panel .tickets-detail-meta-row-created{background:#fcfcfd;border-bottom:1px solid #e2e8f0e6;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.tickets-detail-panel .tickets-detail-meta-row-compact .invoices-detail-label{letter-spacing:.09em;margin-bottom:.3rem;font-size:.625rem}.tickets-detail-panel .tickets-detail-meta-row-compact .invoices-detail-value{font-size:.875rem;line-height:1.4}.tickets-detail-panel .invoices-notes-section{padding-bottom:1.25rem}.tickets-detail-panel .invoices-note-list{padding-bottom:1.5rem}.tickets-detail-select{font:inherit;color:#1e293b;cursor:pointer;appearance:none;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-position:right .6rem center;background-repeat:no-repeat;background-size:.7rem;border:1px solid #94a3b88c;border-radius:8px;width:100%;max-width:100%;padding:.45rem 1.9rem .45rem .65rem;font-size:.8125rem;font-weight:600;transition:border-color .15s,box-shadow .15s}.tickets-detail-select:hover:not(:disabled){border-color:#94a3b8}.tickets-detail-select:focus{border-color:#2563eb;outline:none;box-shadow:0 0 0 3px #2563eb26}.tickets-detail-select:disabled{opacity:.6;cursor:not-allowed}.tickets-detail-status-select--in-progress{color:#1565c0;background-color:#f3f9fe;border-color:#1565c066}.tickets-detail-status-select--blocked{color:#b42318;background-color:#fef4f3;border-color:#b4231866}.tickets-detail-status-select--waiting{color:#00695c;background-color:#f1fbf9;border-color:#00695c66}.tickets-detail-status-select--done{color:#4d5f54;background-color:#f4f8f5;border-color:#4d5f5466}.tickets-detail-status-select--not-started{color:#4b5563;background-color:#f8f9fa;border-color:#4b556359}.tickets-detail-description-textarea{box-sizing:border-box;width:100%;min-height:13rem;font-size:.9rem;line-height:1.55}.tickets-detail-meta-actions{justify-content:flex-end;align-items:center;gap:.5rem;margin-top:.65rem;display:flex}.tickets-detail-char-count{color:#94a3b8;font-variant-numeric:tabular-nums;margin-right:auto;font-size:.7rem;font-weight:500}.tickets-detail-section-heading-row{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.tickets-detail-edit-btn{color:#475569;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:7px;align-items:center;gap:.3rem;padding:.2rem .55rem;font-size:.72rem;font-weight:600;transition:color .15s,background .15s,border-color .15s;display:inline-flex}.tickets-detail-edit-btn:hover,.tickets-detail-edit-btn:focus-visible{color:#2563eb;background:#2563eb14;border-color:#2563eb40;outline:none}.tickets-create-dialog-backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:60;background:#0f172a73;position:fixed;inset:0}.tickets-create-dialog{z-index:70;border:1px solid var(--inv-panel-border);background:#fff;border-radius:12px;width:min(26rem,100vw - 2rem);padding:1.25rem 1.35rem 1.35rem;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 16px 48px #0f172a2e}.tickets-create-dialog-title{color:#0f172a;margin:0 0 1rem;font-size:1.0625rem;font-weight:600}.tickets-create-field{flex-direction:column;gap:.35rem;margin-bottom:.85rem;display:flex}.tickets-create-label{text-transform:uppercase;letter-spacing:.04em;color:#475569;font-size:.75rem;font-weight:600}.tickets-create-input,.tickets-create-select{font:inherit;box-sizing:border-box;border:1px solid #94a3b88c;border-radius:8px;width:100%;padding:.55rem .65rem;font-size:.875rem}.tickets-create-actions{justify-content:flex-end;gap:.5rem;margin-top:1rem;display:flex}.tickets-create-cancel-btn{font:inherit;cursor:pointer;background:#fff;border:1px solid #94a3b88c;border-radius:8px;padding:.45rem .85rem;font-size:.8125rem}.tickets-create-submit-btn{font:inherit;color:#fff;cursor:pointer;background:#1d4ed8;border:none;border-radius:8px;padding:.45rem 1rem;font-size:.8125rem;font-weight:600}.tickets-create-submit-btn:disabled{opacity:.55;cursor:not-allowed}.tickets-create-optional{color:var(--muted-fg,#64748b);font-weight:400}.tickets-create-invoice-search{margin-bottom:.85rem}.tickets-create-invoice-search label{color:var(--fg,#0f172a);font-size:.8125rem;font-weight:600}.tickets-create-invoice-search .broker-search-combobox{margin-top:.35rem}.tickets-create-error{color:#991b1b;margin:0 0 .65rem;font-size:.8125rem}.settings-add-lookup-status{color:#64748b;margin:0 0 .65rem;font-size:.8125rem}.settings-add-company-search{margin-bottom:.85rem}.settings-add-company-search .broker-search label{letter-spacing:.04em;text-transform:uppercase;color:#64748b;font-size:.6875rem;font-weight:600}.invoices-panel-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.5rem;display:flex}.invoices-panel-title{color:var(--inv-text);margin:0;font-size:1rem;font-weight:600}.invoices-panel-tools{flex-wrap:wrap;align-items:center;gap:.35rem;display:flex}.inv-icon-btn{border:1px solid var(--inv-panel-border);background:var(--inv-panel-bg);cursor:not-allowed;opacity:.5;border-radius:6px;width:2rem;height:2rem;font-size:1rem;line-height:1}.invoices-table-filter{min-width:10rem;max-width:16rem;font:inherit;border:1px solid var(--inv-panel-border);border-radius:6px;flex:1;padding:.45rem .6rem;font-size:.8125rem}.invoices-banner-error{color:#991b1b;background:#fef2f2;border-radius:6px;margin-bottom:.5rem;padding:.5rem .75rem;font-size:.85rem}.invoices-table-card{background:var(--inv-panel-bg);border:1px solid var(--inv-panel-border);border-radius:8px;flex-direction:column;flex:1;min-height:12rem;display:flex;overflow:hidden}.invoices-table-scroll{flex:1;overflow:auto}.invoices-data-table{border-collapse:collapse;width:100%;font-size:.8125rem}.invoices-data-table th,.invoices-data-table td{text-align:left;border-bottom:1px solid var(--inv-panel-border);vertical-align:middle;white-space:nowrap;padding:.55rem .65rem}.invoices-col-wrap{white-space:normal;word-break:break-word;max-width:10rem}.invoices-col-client,.invoices-col-broker{white-space:nowrap;text-overflow:ellipsis;vertical-align:middle;width:8.5rem;max-width:8.5rem;font-size:.8125rem;overflow:hidden}.invoices-col-assignee{white-space:nowrap;text-align:center;vertical-align:middle;width:3rem;max-width:3.5rem}.invoices-col-assignee .invoices-pill{letter-spacing:.02em;padding:.15rem .35rem;font-size:.75rem}.invoices-col-date{white-space:nowrap;text-align:center;vertical-align:middle;width:4.5rem;max-width:5.5rem;font-size:.75rem}.invoices-col-reliance-status{white-space:nowrap;vertical-align:middle;width:9rem;min-width:9rem;max-width:9rem;font-size:.75rem}.invoices-col-reliance-status .invoices-pill{padding:.15rem .35rem;font-size:.75rem}.invoices-col-reliance-status .invoices-status-select{max-width:8.5rem;font-size:.75rem}.invoices-col-reliance-status .invoices-th-sort-btn{padding-left:.4rem;padding-right:.4rem}.invoices-col-reliance-status .invoices-status-cell{align-items:center;gap:.2rem;max-width:100%;display:inline-flex}.invoices-col-reliance-status .invoices-status-cell .invoices-pill{text-align:center;flex:none;min-width:5.75rem}.invoices-col-reliance-status .invoices-status-pencil{flex-shrink:0}.invoices-col-status{white-space:normal}.invoices-status-cell{align-items:center;gap:.25rem;display:flex}.invoices-status-pencil{color:#64748b;cursor:pointer;background:0 0;border:none;border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;width:1.6rem;height:1.6rem;padding:0;display:flex}.invoices-status-pencil:hover{color:#2563eb;background:#2563eb14}.invoices-status-pencil-svg{display:block}.invoices-status-select{font:inherit;border:1px solid var(--inv-panel-border);background:#fff;border-radius:4px;max-width:100%;padding:.2rem .35rem;font-size:.8125rem}.invoices-data-table th{color:var(--inv-text-muted);z-index:1;background:#fafbfc;font-size:.75rem;font-weight:600;position:sticky;top:0}.invoices-th-sortable{vertical-align:middle;padding:0}.invoices-th-sort-btn{width:100%;font:inherit;font-weight:600;font-size:inherit;color:inherit;cursor:pointer;text-align:left;background:0 0;border:none;border-radius:4px;justify-content:flex-start;align-items:center;gap:.15rem;margin:0;padding:.55rem .65rem;display:inline-flex}.invoices-th-sort-btn:hover{color:var(--inv-text);background:#94a3b81f}.invoices-th-sort-btn:focus-visible{outline-offset:-2px;outline:2px solid #2563eb}.invoices-sort-indicator{font-variant-numeric:tabular-nums;opacity:.9;min-width:1rem}.invoices-data-table tbody tr:hover{background:#f8f9fb}.invoices-data-table tbody tr.invoices-row-status-blocked{background:#f5cfcf;box-shadow:inset 4px 0 #b42318}.invoices-data-table tbody tr.invoices-row-status-blocked:hover{background:#efc4c4}.invoices-data-table tbody tr.invoices-row-status-blocked td{color:#b42318;font-weight:600}.invoices-data-table tbody tr.invoices-row-status-blocked .invoices-pill{color:#b42318;background:#b4231838;font-weight:700}.invoices-data-table tbody tr.invoices-row-status-blocked .invoices-status-select,.invoices-data-table tbody tr.invoices-row-status-blocked .invoices-status-pencil{color:#b42318}.invoices-data-table tbody tr.invoices-row-status-blocked .invoices-status-select{border-color:#b4231859}.invoices-data-table tbody tr.invoices-row-priority-high{background:#f5cfcf;box-shadow:inset 4px 0 #b42318}.invoices-data-table tbody tr.invoices-row-priority-high:hover{background:#efc4c4}.invoices-data-table tbody tr.invoices-row-priority-high td{color:#b42318;font-weight:600}.invoices-data-table tbody tr.invoices-row-priority-high .invoices-pill{color:#b42318;background:#b4231838;font-weight:700}.invoices-data-table tbody tr.invoices-row-priority-high .invoices-status-select,.invoices-data-table tbody tr.invoices-row-priority-high .invoices-status-pencil{color:#b42318}.invoices-data-table tbody tr.invoices-row-priority-high .invoices-status-select{border-color:#b4231859}.invoices-data-table tbody tr.invoices-row-status-in-progress{background:#e3f2fd}.invoices-data-table tbody tr.invoices-row-status-in-progress:hover{background:#cfe8fc}.invoices-data-table tbody tr.invoices-row-status-in-progress td{color:#1565c0}.invoices-data-table tbody tr.invoices-row-status-in-progress .invoices-pill{color:#1565c0;background:#1565c024}.invoices-data-table tbody tr.invoices-row-status-in-progress .invoices-status-select,.invoices-data-table tbody tr.invoices-row-status-in-progress .invoices-status-pencil{color:#1565c0}.invoices-data-table tbody tr.invoices-row-status-in-progress .invoices-status-select{border-color:#1565c059}.invoices-data-table tbody tr.invoices-row-status-not-started{background:#f3f4f6}.invoices-data-table tbody tr.invoices-row-status-not-started:hover{background:#e8eaef}.invoices-data-table tbody tr.invoices-row-status-not-started td{color:#4b5563}.invoices-data-table tbody tr.invoices-row-status-not-started .invoices-pill{color:#4b5563;background:#4b55631f}.invoices-data-table tbody tr.invoices-row-status-not-started .invoices-status-select,.invoices-data-table tbody tr.invoices-row-status-not-started .invoices-status-pencil{color:#4b5563}.invoices-data-table tbody tr.invoices-row-status-not-started .invoices-status-select{border-color:#4b556359}.invoices-data-table tbody tr.invoices-row-status-waiting{background:#e0f7f4}.invoices-data-table tbody tr.invoices-row-status-waiting:hover{background:#c8f0ea}.invoices-data-table tbody tr.invoices-row-status-waiting td{color:#00695c}.invoices-data-table tbody tr.invoices-row-status-waiting .invoices-pill{color:#00695c;background:#00695c1f}.invoices-data-table tbody tr.invoices-row-status-waiting .invoices-status-select,.invoices-data-table tbody tr.invoices-row-status-waiting .invoices-status-pencil{color:#00695c}.invoices-data-table tbody tr.invoices-row-status-waiting .invoices-status-select{border-color:#00695c59}.invoices-data-table tbody tr.invoices-row-status-done{background:#ecf4ee}.invoices-data-table tbody tr.invoices-row-status-done:hover{background:#e3ede7}.invoices-data-table tbody tr.invoices-row-status-done td{color:#64746f;font-weight:400}.invoices-data-table tbody tr.invoices-row-status-done .invoices-pill{color:#4d5f54;letter-spacing:.03em;background:#dfe9e3;font-weight:600}.invoices-data-table tbody tr.invoices-row-status-done .invoices-status-select,.invoices-data-table tbody tr.invoices-row-status-done .invoices-status-pencil{color:#64746f}.invoices-data-table tbody tr.invoices-row-status-done .invoices-status-select{border-color:#64746f66}.invoices-col-check{text-align:center;width:2.25rem}.invoices-col-num{text-align:right;font-variant-numeric:tabular-nums}.invoices-pill{text-transform:uppercase;letter-spacing:.04em;color:#3d4450;background:#eef0f5;border-radius:999px;padding:.15rem .45rem;font-size:.7rem;font-weight:600;display:inline-block}.invoices-empty{color:var(--inv-text-muted);text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;padding:3rem 1.5rem;display:flex}.invoices-empty-icon{opacity:.35;margin-bottom:.75rem;font-size:2.5rem}.invoices-empty-title{color:var(--inv-text);margin:0 0 .35rem;font-size:1rem;font-weight:600}.invoices-empty-hint{max-width:20rem;margin:0;font-size:.85rem}.invoices-table-footer{color:var(--inv-text-muted);flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:1.25rem;padding:.65rem 1rem .85rem;font-size:.8125rem;display:flex}.invoices-footer-spacer{flex:1}.invoices-footer-item strong{color:var(--inv-text);font-variant-numeric:tabular-nums;margin-left:.25rem}.invoices-data-row{cursor:pointer}.invoices-data-row-active{box-shadow:inset 3px 0 #2563eb}.invoices-data-row-active.invoices-row-status-blocked,.invoices-data-row-active.invoices-row-priority-high{box-shadow:inset 4px 0 #b42318,inset 9px 0 #2563eb}.invoices-data-row-active:not(.invoices-row-status-blocked):not(.invoices-row-priority-high):not(.invoices-row-status-in-progress):not(.invoices-row-status-waiting):not(.invoices-row-status-done):not(.invoices-row-status-not-started){background:#eef4ff}.invoices-data-table tbody tr.invoices-data-row-active:not(.invoices-row-status-blocked):not(.invoices-row-priority-high):not(.invoices-row-status-in-progress):not(.invoices-row-status-waiting):not(.invoices-row-status-done):not(.invoices-row-status-not-started):hover{background:#e2ebfe}.invoices-pagination{flex-wrap:wrap;align-items:center;gap:.75rem 1rem;width:100%;margin-bottom:.35rem;display:flex}.invoices-pagination-size{align-items:center;gap:.4rem;font-size:.8125rem;display:flex}.invoices-pagination-select{font:inherit;border:1px solid var(--inv-panel-border);background:#fff;border-radius:6px;padding:.25rem .4rem;font-size:.8125rem}.invoices-pagination-range{color:var(--inv-text-muted);font-size:.8125rem}.invoices-pagination-nav{align-items:center;gap:.5rem;margin-left:auto;display:flex}.invoices-pagination-btn{font:inherit;border:1px solid var(--inv-panel-border);cursor:pointer;background:#fff;border-radius:6px;padding:.3rem .65rem;font-size:.8125rem}.invoices-pagination-btn:disabled{opacity:.45;cursor:not-allowed}.invoices-pagination-page{color:var(--inv-text-muted);text-align:center;min-width:6rem;font-size:.8125rem}.invoices-detail-backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:40;background:#0f172a66;position:fixed;inset:0}.invoices-detail-panel{border-left:1px solid var(--inv-panel-border);z-index:50;background:#fafbfc;width:min(28rem,100vw);height:100%;padding:1.25rem 1.35rem 2rem;transition:transform .22s;position:fixed;top:0;right:0;overflow-y:auto;transform:translate(100%);box-shadow:-8px 0 32px #0f172a1f}.invoices-detail-panel-open{transform:translate(0)}.invoices-detail-header{border-bottom:1px solid #94a3b859;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.25rem;padding-bottom:1rem;display:flex}.invoices-detail-header-main{min-width:0}.invoices-detail-title{letter-spacing:-.02em;color:#0f172a;margin:0;font-size:1.125rem;font-weight:600}.invoices-detail-subtitle{color:var(--inv-text-muted);margin:.35rem 0 0;font-size:.8125rem;font-weight:400}.invoices-detail-subtitle-strong{color:#334155;letter-spacing:-.01em;font-weight:600}.invoices-detail-close{font:inherit;cursor:pointer;color:#64748b;background:0 0;border:none;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:2rem;height:2rem;font-size:1.35rem;line-height:1;transition:background .15s,color .15s;display:flex}.invoices-detail-close:hover{color:#0f172a;background:#94a3b833}.invoices-detail-list{flex-direction:column;gap:1.35rem;margin:0;display:flex}.invoices-detail-summary{background:#fff;border:1px solid #94a3b859;border-radius:12px;padding:1.1rem 1.15rem 1.15rem;box-shadow:0 1px 2px #0f172a0a}.invoices-detail-row{grid-template-columns:1fr 1fr;align-items:start;gap:.85rem 1.15rem;display:grid}.invoices-detail-row:not(:last-child){border-bottom:1px solid #e2e8f0e6;margin-bottom:.85rem;padding-bottom:.85rem}.invoices-detail-row .invoices-detail-field{min-width:0}.invoices-detail-field{margin:0}.invoices-detail-label{text-transform:uppercase;letter-spacing:.08em;color:#64748b;margin:0 0 .35rem;font-size:.6875rem;font-weight:700}.invoices-detail-value{color:#1e293b;word-break:break-word;margin:0;font-size:.9375rem;font-weight:500;line-height:1.45}.invoices-detail-amount{font-variant-numeric:tabular-nums;letter-spacing:-.02em;font-weight:600}.invoices-detail-status-pill{letter-spacing:.06em;text-transform:uppercase;color:#475569;background:#eef2f7;border:1px solid #4755692e;border-radius:999px;align-items:center;padding:.28rem .65rem;font-size:.6875rem;font-weight:700;display:inline-flex}.invoices-detail-status-pill--blocked{color:#b42318;background:#fdeaea;border-color:#b4231826}.invoices-detail-status-pill--in-progress{color:#1565c0;background:#e3f2fd;border-color:#1565c02e}.invoices-detail-status-pill--not-started{color:#4b5563;background:#f3f4f6;border-color:#4b556326}.invoices-detail-status-pill--waiting{color:#00695c;background:#e0f7f4;border-color:#00695c2e}.invoices-detail-status-pill--done{color:#4d5f54;background:#ecf4ee;border-color:#4d5f542e}.invoices-detail-email-list{margin:.15rem 0 0;padding:0;list-style:none}.invoices-detail-email-list li{align-items:flex-start;gap:.45rem;margin-bottom:.45rem;font-size:.9375rem;line-height:1.45;display:flex}.invoices-detail-email-list li:before{content:"•";color:#64748b;flex-shrink:0;margin-top:.12rem;font-size:.75rem;font-weight:700;line-height:1.35}.invoices-detail-email-list li:last-child{margin-bottom:0}.invoices-detail-loading,.invoices-detail-error{color:var(--inv-text-muted);font-size:.875rem}.invoices-detail-error{color:#991b1b}.invoices-notes-section{padding-top:.15rem}.invoices-detail-section-heading{margin-bottom:.85rem}.invoices-detail-section-heading .invoices-detail-label{color:#475569;margin-bottom:0;font-size:.75rem}.invoices-notes-section .invoices-notes-dd{margin:0;display:block}.invoices-note-form-error{color:#991b1b;margin:0 0 .65rem;font-size:.8rem}.invoices-note-readonly-hint{color:var(--inv-text-muted);background:#94a3b81f;border:1px solid #94a3b840;border-radius:8px;margin:0 0 1rem;padding:.65rem .75rem;font-size:.8125rem;line-height:1.45}.invoices-note-compose{flex-direction:column;gap:.65rem;margin-bottom:1.15rem;display:flex}.invoices-note-textarea{width:100%;font:inherit;resize:vertical;box-sizing:border-box;background:#fff;border:1px solid #94a3b88c;border-radius:10px;padding:.65rem .75rem;font-size:.875rem;line-height:1.45;transition:border-color .15s,box-shadow .15s}.invoices-note-textarea:focus{border-color:#2563eb;outline:none;box-shadow:0 0 0 3px #2563eb26}.invoices-note-add-btn,.invoices-note-save-btn{font:inherit;color:#fff;cursor:pointer;background:#1d4ed8;border:none;border-radius:8px;align-self:flex-start;padding:.45rem 1rem;font-size:.8125rem;font-weight:600;transition:background .15s,box-shadow .15s;box-shadow:0 1px 2px #1d4ed840}.invoices-note-add-btn:hover:not(:disabled),.invoices-note-save-btn:hover:not(:disabled){background:#1e40af;box-shadow:0 2px 6px #1d4ed859}.invoices-note-add-btn:disabled,.invoices-note-save-btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}.invoices-note-cancel-btn{font:inherit;color:#475569;cursor:pointer;background:#fff;border:1px solid #94a3b88c;border-radius:8px;padding:.45rem .85rem;font-size:.8125rem;font-weight:500;transition:background .15s,border-color .15s}.invoices-note-cancel-btn:hover:not(:disabled){background:#f8fafc;border-color:#94a3b8}.invoices-note-list{flex-direction:column;gap:.85rem;margin:0;padding:0;list-style:none;display:flex}.invoices-note-empty{color:var(--inv-text-muted);text-align:center;background:#f8fafce6;border:1px dashed #94a3b873;border-radius:10px;margin:0;padding:1rem;font-size:.85rem}.invoices-note-card{background:#fff;border:1px solid #e2e8f0f2;border-radius:10px;padding:.85rem .95rem;box-shadow:0 1px 3px #0f172a0f}.invoices-note-meta{color:#64748b;flex-wrap:wrap;align-items:baseline;gap:.35rem .75rem;margin-bottom:.5rem;font-size:.75rem;display:flex}.invoices-note-meta strong{color:#0f172a;font-size:.8125rem;font-weight:600}.invoices-note-date{font-variant-numeric:tabular-nums;color:#94a3b8;margin-left:auto;font-size:.72rem}.invoices-note-body-row{align-items:flex-start;gap:.35rem;display:flex}.invoices-note-body{color:#334155;white-space:pre-wrap;word-break:break-word;flex:1;min-width:0;margin:0;font-size:.875rem;line-height:1.5}.invoices-note-actions{flex:none;align-items:flex-start;padding-top:.05rem;display:flex}.invoices-note-edit-icon{color:#64748b;cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;width:1.75rem;height:1.75rem;padding:0;display:flex}.invoices-note-edit-icon:hover{color:#2563eb;background:#2563eb14}.invoices-note-pencil-svg{width:1rem;height:1rem;display:block}.invoices-note-actions-placeholder{flex-shrink:0;width:1.75rem;height:1.75rem}.invoices-note-edit{flex-direction:column;gap:.5rem;display:flex}.invoices-note-edit-actions{gap:.5rem;display:flex}@media (width<=900px){.invoices-dashboard{flex-direction:column}.invoices-sidebar{border-right:none;border-bottom:1px solid var(--inv-sidebar-border);flex-flow:wrap;align-items:center;width:100%;height:auto;max-height:none;position:static}.invoices-sidebar-brand{border-bottom:none;flex:1;min-width:8rem}.invoices-sidebar-nav{flex-flow:wrap;padding:.5rem}.invoices-sidebar-link{border-bottom:2px solid #0000;border-left:none;padding:.5rem .75rem}.invoices-sidebar-link-active{border-bottom-color:#fff;border-left:none}.invoices-sidebar-spacer{display:none}.invoices-sidebar-footer{border-top:1px solid var(--inv-sidebar-border);align-items:center;gap:.75rem;width:100%;display:flex}.invoices-sidebar-user{flex:1;margin-bottom:0}.invoices-sidebar-logout{width:auto}.invoices-split{grid-template-columns:1fr}.invoices-split-left{border-right:none;border-bottom:1px solid var(--inv-panel-border);max-height:40vh}}.card-surface{border:1px solid var(--border);background:var(--bg);max-width:32rem;box-shadow:var(--shadow);border-radius:12px;margin:0 auto;padding:1.5rem}.card-surface h1{letter-spacing:-.02em;margin:0 0 .75rem;font-size:1.5rem}.muted{color:var(--text);margin:0 0 1rem}.muted.small{font-size:.9rem}.profile-dl{margin:1.25rem 0 0}.profile-dl>div{border-top:1px solid var(--border);grid-template-columns:7rem 1fr;gap:.5rem 1rem;padding:.5rem 0;display:grid}.profile-dl>div:first-of-type{border-top:none;padding-top:0}.profile-dl dt{color:var(--text);margin:0;font-size:.85rem}.profile-dl dd{color:var(--text-h);margin:0;font-weight:500}.login-page{box-sizing:border-box;flex:1;justify-content:center;align-items:center;min-height:100svh;padding:1.25rem;display:flex}.login-card{width:100%}.login-header{text-align:center;margin-bottom:1.5rem}.login-header h1{margin:.5rem 0 .25rem;font-size:1.75rem}.login-icon{background:var(--accent-bg);width:3.5rem;height:3.5rem;color:var(--accent);border-radius:50%;justify-content:center;align-items:center;display:inline-flex}.login-form{flex-direction:column;gap:.5rem;display:flex}.login-form label{color:var(--text-h);margin-top:.25rem;font-size:.85rem;font-weight:500}.login-form input{font:inherit;border:1px solid var(--border);background:var(--bg);color:var(--text-h);border-radius:8px;padding:.65rem .75rem}.login-form input:focus{outline:2px solid var(--accent);outline-offset:1px}.login-form input:disabled{opacity:.65}.turnstile-wrap{min-height:65px;margin:.5rem 0 .25rem}.form-error{color:#dc2626;margin:.25rem 0 0;font-size:.9rem}@media (prefers-color-scheme:dark){.form-error{color:#f87171}}.form-success{color:#16a34a;margin:.25rem 0 0;font-size:.9rem}@media (prefers-color-scheme:dark){.form-success{color:#4ade80}}.btn-primary,.btn-secondary{font:inherit;cursor:pointer;border:none;border-radius:8px;margin-top:.5rem;padding:.65rem 1rem;font-weight:600}.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover:not(:disabled){filter:brightness(1.05)}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.btn-secondary{background:var(--code-bg);color:var(--text-h);border:1px solid var(--border)}.btn-secondary:hover{border-color:var(--accent-border)}.login-actions-row{flex-wrap:wrap;justify-content:center;gap:.75rem 1.25rem;margin-top:.75rem;display:flex}.btn-link{font:inherit;color:var(--accent);cursor:pointer;background:0 0;border:none;padding:0;text-decoration:underline}.btn-link:disabled{opacity:.5;cursor:not-allowed}.credit-check-widgets{flex-direction:column;gap:1.25rem;max-width:1100px;padding:1rem 1.25rem 1.75rem;display:flex}.credit-check-lead{color:var(--inv-text-muted,#64748b);margin:0;font-size:.95rem;line-height:1.5}.credit-check-form-widget .dashboard-widget-title{margin-bottom:1rem}.credit-check-form{flex-direction:column;gap:1.1rem;max-width:36rem;display:flex}.credit-check-field label{color:var(--inv-text,#334155);margin-bottom:.35rem;font-size:.85rem;font-weight:500;display:block}.credit-check-required{color:#dc2626;font-weight:600}.credit-check-field input,.credit-check-field select{box-sizing:border-box;width:100%;font:inherit;border:1px solid var(--inv-panel-border,#e2e8f0);background:#fff;border-radius:8px;padding:.55rem .75rem;font-size:.95rem;line-height:1.4}.credit-check-field select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-position:right .75rem center;background-repeat:no-repeat;background-size:.75rem;padding-right:2.25rem}.credit-check-field input:focus,.credit-check-field select:focus{outline:2px solid var(--accent,#2563eb);outline-offset:1px;border-color:var(--accent-border,#93c5fd)}.credit-check-field input:disabled,.credit-check-field select:disabled{opacity:.65;cursor:not-allowed}.credit-check-amount-wrap{align-items:stretch;display:flex}.credit-check-amount-prefix{border:1px solid var(--inv-panel-border,#e2e8f0);background:var(--inv-panel-bg,#f8fafc);color:var(--inv-text-muted,#64748b);border-right:none;border-radius:8px 0 0 8px;align-items:center;padding:0 .65rem;font-size:.95rem;display:flex}.credit-check-amount-wrap input{border-radius:0 8px 8px 0;flex:1}.credit-check-alert{border-radius:8px;margin:0;padding:.65rem .85rem;font-size:.9rem;line-height:1.45}.credit-check-alert-error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca}.credit-check-submit{align-self:flex-start;margin-top:.25rem}.credit-check-submit:disabled{opacity:.6;cursor:not-allowed}.credit-check-result-message{color:var(--inv-text,#334155);margin:0 0 .75rem;font-size:.95rem;line-height:1.5}.credit-check-result-meta{flex-wrap:wrap;align-items:center;gap:.75rem 1rem;margin:0;font-size:.9rem;display:flex}.credit-check-result-approved{color:var(--inv-text-muted,#64748b);font-weight:500}.broker-search label{color:var(--inv-text,#334155);margin-bottom:.35rem;font-size:.85rem;font-weight:500;display:block}.broker-search-combobox{position:relative}.broker-search-icon{color:var(--inv-text-muted,#94a3b8);pointer-events:none;font-size:1rem;position:absolute;top:50%;left:.75rem;transform:translateY(-50%)}.broker-search-input{box-sizing:border-box;width:100%;font:inherit;border:1px solid var(--inv-panel-border,#e2e8f0);background:#fff;border-radius:8px;padding:.55rem .75rem .55rem 2.25rem;font-size:.95rem}.broker-search-input:focus{outline:2px solid var(--accent,#2563eb);outline-offset:1px;border-color:var(--accent-border,#93c5fd)}.broker-search-input:disabled{opacity:.65;cursor:not-allowed}.broker-search-dropdown{z-index:20;border:1px solid var(--inv-panel-border,#e2e8f0);background:#fff;border-radius:8px;max-height:240px;margin:0;padding:.25rem 0;list-style:none;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto;box-shadow:0 4px 12px #0f172a1a}.broker-search-option{text-align:left;width:100%;font:inherit;color:var(--inv-text,#0f172a);cursor:pointer;background:0 0;border:none;padding:.55rem .85rem;font-size:.9rem;display:block}.broker-search-option:hover,.broker-search-option:focus-visible{background:var(--inv-panel-bg,#f1f5f9)}.broker-search-option-muted{color:var(--inv-text-muted,#64748b);cursor:default}.broker-search-option-muted:hover{background:0 0}.broker-search-fn-action{box-sizing:border-box;width:100%;font:inherit;text-align:left;border:none;border-top:1px solid var(--inv-panel-border,#e2e8f0);background:var(--inv-panel-bg,#f8fafc);color:var(--inv-accent,#2563eb);cursor:pointer;padding:.55rem .85rem;font-size:.9rem;font-weight:500;display:block}.broker-search-fn-action:hover:not(:disabled),.broker-search-fn-action:focus-visible{background:#eff6ff}.broker-search-fn-action:disabled{opacity:.65;cursor:not-allowed}.credit-check-history-widget .dashboard-widget-title{margin:0}.credit-check-history-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:1rem;display:flex}.credit-check-history-hint{color:var(--inv-text-muted,#64748b);margin:-.5rem 0 1rem;font-size:.875rem}.credit-check-refresh{font:inherit;border:1px solid var(--inv-panel-border,#e2e8f0);cursor:pointer;background:#fff;border-radius:6px;padding:.4rem .85rem;font-size:.85rem}.credit-check-refresh:hover:not(:disabled){background:var(--inv-panel-bg,#f8fafc)}.credit-check-refresh:disabled{opacity:.5;cursor:not-allowed}.credit-check-loading,.credit-check-empty{color:var(--inv-text-muted,#64748b);margin:0;font-size:.95rem}.credit-check-status{white-space:nowrap;border-radius:999px;padding:.2rem .55rem;font-size:.8rem;font-weight:500;display:inline-block}.credit-check-status-approved{color:#166534;background:#dcfce7}.credit-check-status-denied{color:#b91c1c;background:#fee2e2}.credit-check-status-review{color:#b45309;background:#fef3c7}.credit-check-status-insufficient{color:#475569;background:#e2e8f0}.credit-check-table-wrap{border:1px solid var(--inv-panel-border,#e2e8f0);background:#fff;border-radius:8px;overflow-x:auto}.credit-check-table{border-collapse:collapse;width:100%;font-size:.9rem}.credit-check-table th,.credit-check-table td{text-align:left;border-bottom:1px solid var(--inv-panel-border,#e2e8f0);padding:.65rem 1rem}.credit-check-table th{background:var(--inv-panel-bg,#f8fafc);color:var(--inv-text,#334155);font-weight:600}.credit-check-table tbody tr:last-child td{border-bottom:none}.credit-check-cards{flex-direction:column;gap:.75rem;margin:0;padding:0;list-style:none;display:none}.credit-check-card{background:var(--inv-panel-bg,#f8fafc);border:1px solid var(--inv-panel-border,#e2e8f0);border-radius:8px;padding:1rem 1.1rem}.credit-check-card-row{justify-content:space-between;gap:1rem;padding:.35rem 0;font-size:.9rem;display:flex}.credit-check-card-label{color:var(--inv-text-muted,#64748b);font-weight:500}@media (width<=768px){.credit-check-widgets{padding:.75rem 1rem 1.25rem}.credit-check-form{max-width:none}.credit-check-table-wrap{display:none}.credit-check-cards{display:flex}}.reports-page{padding:0 1.5rem 2rem}.reports-page-subtitle{color:var(--muted,#64748b);margin:0 0 1rem;font-size:.95rem}.reports-page .invoices-main-toolbar .reports-meta{color:var(--muted,#64748b);flex:100%;margin:0;padding:0 0 0 .25rem;font-size:.875rem}.reports-card-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem;display:grid}.reports-card{border:1px solid var(--border,#e2e8f0);background:var(--bg,#fff);color:inherit;border-radius:10px;padding:1.25rem 1.35rem;text-decoration:none;transition:border-color .15s,box-shadow .15s;display:block}.reports-card:hover{border-color:#94a3b8;box-shadow:0 2px 8px #0f172a0f}.reports-card-title{color:var(--text-h,#0f172a);margin:0 0 .5rem;font-size:1.05rem}.reports-card-desc{color:var(--muted,#64748b);margin:0;font-size:.9rem;line-height:1.45}.reports-toolbar-actions{flex-wrap:wrap;align-items:center;gap:.75rem 1rem;margin-left:auto;display:flex}.reports-back-link{color:var(--text,#334155);font-size:.9rem;text-decoration:none}.reports-back-link:hover{text-decoration:underline}html.reports-accountant-invoices-layout,body.reports-accountant-invoices-layout{height:100%;overflow:hidden}#root.dashboard-shell-active.reports-accountant-invoices-layout{height:100svh;max-height:100svh;overflow:hidden}.invoices-dashboard.invoices-dashboard-reports-accountant{height:100svh;min-height:0;max-height:100svh;overflow:hidden}.invoices-dashboard:has(.reports-accountant-page){height:100svh;min-height:0;max-height:100svh;overflow:hidden}.invoices-main.invoices-main-reports-accountant{flex:1;min-height:0;overflow:hidden}.invoices-main:has(.reports-accountant-page){flex:1;min-height:0;overflow:hidden}.reports-accountant-page{--ra-canvas:#f4f5f7;--ra-card:#fff;--ra-border:#e2e5ea;--ra-muted:#6b7280;--ra-text:#1f2937;--ra-link:#2563eb;--ra-pill-bg:#eef0f3;background:var(--ra-canvas);min-height:0;color:var(--ra-text);flex-direction:column;flex:1;gap:.75rem;padding:.75rem 1rem 1rem;display:flex;overflow:hidden}.reports-accountant-page .invoices-main-toolbar{background:0 0;border:none;flex-shrink:0;justify-content:space-between;align-items:center;gap:1rem;padding:.15rem .15rem 0;display:flex}.reports-accountant-page .invoices-main-title h1{color:var(--ra-text);margin:0;font-size:1.15rem;font-weight:600}.reports-accountant-tabs{background:#e8eaee;border-radius:10px;flex-wrap:wrap;flex-shrink:0;gap:.35rem;width:fit-content;max-width:100%;padding:.4rem;display:flex}.reports-accountant-tab{appearance:none;color:var(--ra-muted);font:inherit;cursor:pointer;background:0 0;border:none;border-radius:8px;padding:.45rem 1rem;font-size:.875rem;font-weight:500;transition:background .12s,color .12s,box-shadow .12s}.reports-accountant-tab:hover{color:var(--ra-text);background:#ffffff73}.reports-accountant-tab-active{color:var(--ra-text);background:#fff;box-shadow:0 1px 2px #0f172a14,0 0 0 1px #0f172a0a}.reports-accountant-split{flex:1;grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(180px,220px) minmax(0,1fr);align-items:stretch;gap:.85rem;min-height:0;display:grid;overflow:hidden}.reports-accountant-sidebar,.reports-accountant-main{background:var(--ra-card);border:1px solid var(--ra-border);border-radius:10px;min-height:0;box-shadow:0 1px 2px #0f172a0a}.reports-accountant-sidebar{flex-direction:column;gap:.65rem;padding:.75rem .65rem;display:flex;overflow:hidden}.reports-accountant-page .invoices-segment,.reports-accountant-page .invoices-search-label{margin:0}.reports-accountant-page .invoices-entity-list{flex:1;min-height:0;margin:0;padding:0;list-style:none;overflow:auto}.reports-accountant-page .invoices-entity-count{background:var(--ra-pill-bg);min-width:1.5rem;color:var(--ra-muted);border-radius:999px;justify-content:center;align-items:center;padding:.1rem .45rem;font-size:.72rem;font-weight:600;line-height:1.2;display:inline-flex}.reports-accountant-page .invoices-entity-row-active .invoices-entity-count{color:#1d4ed8;background:#dbeafe}.reports-accountant-main{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.reports-accountant-page .invoices-table-card{min-height:0;box-shadow:none;background:0 0;border:none;border-radius:10px;flex-direction:column;flex:1;display:flex;overflow:hidden}.reports-accountant-card-header{z-index:20;border-bottom:1px solid var(--ra-border);flex-shrink:0;position:relative;overflow:visible}.reports-accountant-table-body{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.reports-accountant-page .invoices-banner-error{flex-shrink:0}.reports-accountant-invoices-title{color:var(--ra-text);margin:0;padding:1rem 1.15rem .85rem;font-size:1.35rem;font-weight:700;line-height:1.2}.reports-accountant-filter-bar{border-top:1px solid var(--ra-border);flex-direction:column;gap:.5rem;padding:0 1rem .75rem;display:flex}.reports-accountant-filter-bar-main{border:1px solid var(--ra-border);background:#fff;border-radius:6px;align-items:stretch;gap:0;min-height:2.5rem;display:flex}.reports-accountant-filter-anchor{flex-shrink:0;position:relative}.reports-accountant-filter-btn{border:none;border-right:1px solid var(--ra-border);width:2.75rem;height:100%;min-height:2.5rem;color:var(--ra-muted);cursor:pointer;background:#fff;flex-shrink:0;justify-content:center;align-items:center;margin:0;padding:0;display:inline-flex}.reports-accountant-filter-btn:hover{color:var(--ra-text);background:#f8f9fb}.reports-accountant-filter-icon{display:block}.reports-accountant-filter-menu{z-index:20;border:1px solid var(--ra-border);background:#fff;border-radius:8px;min-width:11rem;margin:0;padding:.35rem 0;list-style:none;position:absolute;top:calc(100% + 4px);left:0;box-shadow:0 4px 16px #0f172a1f}.reports-accountant-filter-menu-item{width:100%;font:inherit;text-align:left;color:var(--ra-text);cursor:pointer;background:0 0;border:none;padding:.55rem 1rem;font-size:.875rem;display:block}.reports-accountant-filter-menu-item:hover{background:#f4f5f8}.reports-accountant-filter-popover{z-index:40;box-sizing:border-box;border:1px solid var(--ra-border);background:#fff;border-radius:8px;width:17.5rem;max-width:calc(100vw - 2rem);position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 8px 24px #0f172a24}.reports-accountant-filter-popover-header{border-bottom:1px solid var(--ra-border);justify-content:space-between;align-items:center;gap:.5rem;padding:.75rem 1rem;display:flex}.reports-accountant-filter-popover-title{color:var(--ra-text);font-size:.9375rem;font-weight:600}.reports-accountant-filter-popover-close{color:var(--ra-muted);cursor:pointer;background:0 0;border:none;padding:.15rem .35rem;font-size:1.25rem;line-height:1}.reports-accountant-filter-popover-body{box-sizing:border-box;flex-direction:column;gap:.75rem;padding:1rem;display:flex;overflow:hidden}.reports-accountant-filter-field{flex-direction:column;gap:.35rem;min-width:0;display:flex}.reports-accountant-filter-field-label{color:var(--ra-muted);font-size:.75rem;font-weight:600}.reports-accountant-filter-input{box-sizing:border-box;border:1px solid var(--ra-border);width:100%;min-width:0;max-width:100%;font:inherit;border-radius:6px;padding:.5rem .65rem;font-size:.875rem}.reports-accountant-filter-popover-footer{justify-content:flex-end;padding:.65rem 1rem .85rem;display:flex}.reports-accountant-filter-apply{font:inherit;color:var(--ra-text);cursor:pointer;background:0 0;border:none;padding:.25rem .35rem;font-size:.875rem;font-weight:700}.reports-accountant-search-form{flex-wrap:wrap;flex:1;align-items:center;gap:.35rem .5rem;min-width:0;padding:.35rem .65rem;display:flex}.reports-accountant-search-pill{max-width:100%;color:var(--ra-text);background:#e8eaee;border-radius:999px;flex-shrink:0;align-items:center;gap:.15rem;padding:.2rem .35rem .2rem .55rem;font-size:.8125rem;line-height:1.35;display:inline-flex}.reports-accountant-search-pill-label{font-weight:700}.reports-accountant-search-pill-op{font-style:italic;font-weight:400}.reports-accountant-search-pill-value{text-overflow:ellipsis;white-space:nowrap;max-width:12rem;overflow:hidden}.reports-accountant-search-pill-clear{color:#fff;cursor:pointer;background:#6b7280;border:none;border-radius:999px;flex-shrink:0;justify-content:center;align-items:center;width:1.15rem;height:1.15rem;margin-left:.15rem;padding:0;font-size:.75rem;line-height:1;display:inline-flex}.reports-accountant-search-input{width:auto;min-width:6rem;font:inherit;color:var(--ra-text);background:0 0;border:none;flex:1;margin:0;padding:.2rem .25rem;font-size:.875rem}.reports-accountant-search-input::placeholder{color:#9ca3af}.reports-accountant-search-input:focus{outline:none}.reports-accountant-filter-bar-main:focus-within{outline-offset:-2px;border-radius:4px;outline:2px solid #2563eb}.reports-accountant-filter-chips{flex-wrap:wrap;gap:.4rem;display:flex}.reports-accountant-filter-chip{background:var(--ra-pill-bg);color:var(--ra-text);border-radius:999px;align-items:center;gap:.35rem;padding:.2rem .5rem .2rem .65rem;font-size:.75rem;display:inline-flex}.reports-accountant-filter-chip-clear{color:var(--ra-muted);cursor:pointer;background:0 0;border:none;padding:0;font-size:1rem;line-height:1}.reports-accountant-page .invoices-table-scroll{overscroll-behavior:contain;flex:1;min-height:0;overflow:auto}.reports-accountant-page .invoices-data-table thead th{z-index:2;letter-spacing:.04em;text-transform:uppercase;color:var(--ra-muted);box-shadow:0 1px 0 var(--ra-border);background:#f8fafc;font-size:.6875rem;font-weight:600;position:sticky;top:0}.reports-accountant-page .invoices-th-sort-btn{font-weight:600;font-size:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;justify-content:inherit}.reports-accountant-page .invoices-col-num .invoices-th-sort-btn{justify-content:flex-end}.reports-accountant-page .invoices-col-date .invoices-th-sort-btn{justify-content:center}.reports-accountant-footer-label{font-weight:700}.reports-accountant-page .reports-accountant-table{table-layout:fixed;width:100%;min-width:52rem}.reports-accountant-page .reports-accountant-col-invoice{text-overflow:ellipsis;white-space:nowrap;width:9%;max-width:9rem;overflow:hidden}.reports-accountant-page .reports-accountant-cell-invoice{font-variant-numeric:tabular-nums;color:var(--ra-text);font-weight:600}.reports-accountant-page .reports-accountant-col-company,.reports-accountant-page .reports-accountant-col-debtor{text-overflow:ellipsis;white-space:nowrap;width:14%;max-width:12rem;overflow:hidden}.reports-accountant-page .reports-accountant-col-ref{text-overflow:ellipsis;white-space:nowrap;width:9%;overflow:hidden}.reports-accountant-page .reports-accountant-col-status{text-overflow:ellipsis;white-space:nowrap;width:7%;overflow:hidden}.reports-accountant-page .invoices-col-num{text-align:right;font-variant-numeric:tabular-nums;width:9%;color:var(--ra-text)}.reports-accountant-page .invoices-col-date{text-align:center;width:8%}.reports-accountant-page .invoices-data-table tbody tr:nth-child(2n){background:#fafbfc}.reports-accountant-page .invoices-data-table tbody tr:hover{background:#f8fafc}.reports-accountant-page .reports-accountant-status-pill{text-overflow:ellipsis;vertical-align:middle;letter-spacing:.03em;text-transform:uppercase;max-width:100%;padding:.12rem .4rem;font-size:.625rem;font-weight:600;display:inline-block;overflow:hidden}.reports-accountant-page .reports-accountant-status-funded{color:#00695c;background:#00695c1f}.reports-accountant-page .reports-accountant-status-closed{color:#4d5f54;background:#dfe9e3}.reports-accountant-page .reports-accountant-status-default{background:var(--ra-pill-bg);color:var(--ra-muted)}.reports-accountant-link{color:var(--ra-link);font-weight:500}.reports-accountant-page .invoices-empty{flex:1;min-height:0;overflow:auto}.reports-accountant-page .invoices-data-table tbody td{color:var(--ra-text);padding-top:.38rem;padding-bottom:.38rem;font-size:.8125rem;line-height:1.35}.reports-accountant-page .invoices-data-table tbody td.invoices-col-date{font-size:.75rem}.reports-accountant-page .reports-accountant-cell-muted{color:var(--ra-muted)}.reports-accountant-page .invoices-table-footer{z-index:2;border-top:1px solid var(--ra-border);background:#fafbfc;border-radius:0 0 10px 10px;flex-wrap:nowrap;flex-shrink:0;align-items:center;gap:.75rem;margin-top:auto;padding:.35rem .85rem;position:relative}.reports-accountant-page .invoices-pagination{flex-wrap:nowrap;flex:0 auto;gap:.5rem .65rem;width:auto;margin-bottom:0}.reports-accountant-page .invoices-pagination-nav{margin-left:0}@media (width<=900px){.reports-accountant-split{grid-template-columns:1fr}.reports-accountant-sidebar{max-height:280px}}.reports-export-btn,.reports-retry-btn{border:1px solid var(--border,#cbd5e1);background:var(--bg,#fff);cursor:pointer;border-radius:6px;padding:.45rem .9rem;font-size:.9rem}.reports-export-btn:disabled{opacity:.6;cursor:not-allowed}.reports-loading{color:var(--muted,#64748b);padding:1rem 0}.reports-error{background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:1rem}.reports-table-wrap{border:1px solid var(--border,#e2e8f0);border-radius:8px;max-width:100%;overflow:auto}.reports-aging-table{border-collapse:collapse;width:100%;min-width:960px;font-size:.875rem}.reports-aging-table th,.reports-aging-table td{border-bottom:1px solid var(--border,#e2e8f0);text-align:left;white-space:nowrap;padding:.55rem .65rem}.reports-aging-table th{z-index:1;background:#f8fafc;font-weight:600;position:sticky;top:0}.reports-num{text-align:right;font-variant-numeric:tabular-nums}.reports-num-total{font-weight:600}.reports-empty-cell{text-align:center;color:var(--muted,#64748b);padding:1.5rem}.settings-page{flex-direction:column;min-height:100%;padding-bottom:1.5rem;display:flex}.settings-shell{background:var(--inv-panel-bg,#fff);border:1px solid var(--inv-panel-border,#e2e8f0);border-radius:10px;margin:0 1.5rem;overflow:hidden}.settings-tabs{border-bottom:1px solid var(--inv-panel-border,#e2e8f0);background:var(--inv-panel-bg,#fff);gap:0;padding:0 1rem;display:flex}.settings-tab{font:inherit;color:var(--inv-text-muted,#64748b);border-bottom:2px solid #0000;margin-bottom:-1px;padding:.85rem 1rem;font-size:.875rem;font-weight:500;text-decoration:none;transition:color .15s,border-color .15s;display:inline-block}.settings-tab:hover{color:var(--inv-text,#1c1e24)}.settings-tab:focus-visible{outline-offset:-2px;border-radius:4px;outline:2px solid #2563eb}.settings-tab-active{color:var(--inv-text,#1c1e24);border-bottom-color:var(--inv-accent,#0d0d0d);font-weight:600}.settings-tab-body{min-height:12rem}.settings-prefund-billing{padding:1.25rem 1.35rem 1.75rem}.settings-page:has(.settings-prefund-billing){flex:0 auto;min-height:0}.settings-tab-body:has(.settings-prefund-billing){min-height:0}.settings-prefund-copy{max-width:52rem;color:var(--muted,#64748b);margin:0 0 1rem;font-size:.875rem;line-height:1.5}.settings-prefund-carrier-section{margin-bottom:.25rem}.settings-prefund-carrier-row{flex-wrap:wrap;align-items:center;gap:.65rem 1rem;display:flex}.settings-prefund-client-select{background:#fff;flex:18rem;width:100%;min-width:min(100%,14rem);max-width:32rem}.settings-prefund-loading-hint{color:#475569;white-space:nowrap;margin:0;font-size:.8125rem;font-weight:500}.settings-prefund-load-error{color:#b91c1c;margin:.65rem 0 0;font-size:.8125rem;font-weight:500}.settings-prefund-results{flex-direction:column;gap:0;margin-top:1.5rem;display:flex}.settings-prefund-results .settings-prefund-section+.settings-prefund-section{margin-top:1.5rem}.settings-prefund-section-title{color:#1e293b;align-items:baseline;gap:.5rem;margin:0 0 .65rem;font-size:.9375rem;font-weight:600;display:flex}.settings-prefund-section-count{font-variant-numeric:tabular-nums;color:#64748b;font-size:.8125rem;font-weight:600}.settings-prefund-section-count:before{content:"("}.settings-prefund-section-count:after{content:")"}.settings-prefund-table .settings-empty-cell{padding:1rem .65rem}.settings-prefund-table-wrap{background:var(--inv-panel-bg,#fff);border:1px solid var(--inv-panel-border,#e2e4e8);border-radius:8px;width:100%;max-width:100%;overflow:hidden}.settings-prefund-table{table-layout:fixed;width:100%;font-size:.8125rem}.settings-prefund-table th,.settings-prefund-table td{vertical-align:middle;min-width:0;padding:.55rem .65rem}.settings-prefund-table th{color:#475569;background:#f8fafc;font-size:.8125rem;font-weight:600}.settings-prefund-col-ellipsis{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.settings-prefund-col-delivery{white-space:nowrap}.settings-prefund-col-num{text-align:right;font-variant-numeric:tabular-nums}.settings-prefund-cg-check{width:2.75rem}.settings-prefund-cg-debtor-company{width:34%}.settings-prefund-cg-debtor-mc,.settings-prefund-cg-debtor-dot{width:12%}.settings-prefund-cg-debtor-delivery{width:16%}.settings-prefund-cg-debtor-count{width:10%}.settings-prefund-cg-inv-num{width:14%}.settings-prefund-cg-inv-ref{width:18%}.settings-prefund-cg-inv-debtor{width:34%}.settings-prefund-cg-inv-amount{width:16%}.settings-prefund-cg-inv-date{width:12%}.settings-prefund-table tbody tr:last-child td{border-bottom:1px solid var(--inv-panel-border,#e2e8f0)}.settings-prefund-invoice-total-row td{border-top:1px solid var(--inv-panel-border,#e2e4e8);background:#f8fafc;font-weight:600}.settings-prefund-check-col{text-align:center;width:2.25rem}.settings-prefund-actions{flex-wrap:wrap;align-items:center;gap:.75rem 1rem;margin-top:1.5rem;display:flex}.settings-prefund-action-status{color:#334155;flex:12rem;margin:0;font-size:.8125rem;line-height:1.4}.settings-prefund-delivery{letter-spacing:.04em;text-transform:uppercase;color:#475569;background:#eef0f5;border-radius:999px;padding:.15rem .45rem;font-size:.6875rem;font-weight:600;display:inline-block}.settings-prefund-delivery-email{color:#047857;background:#ecfdf5}.settings-prefund-delivery-mail{color:#475569;background:#f1f5f9}.settings-prefund-fetch-err{color:#b91c1c;font-size:.75rem}.settings-apply-payment{box-sizing:border-box;max-width:100%;padding:1rem 1.15rem 1.5rem;overflow-x:hidden}.settings-apply-payment-form{flex-direction:column;gap:.85rem;max-width:100%;margin-bottom:1.25rem;display:flex}.settings-apply-payment-lookup-inline{letter-spacing:.01em;color:#b91c1c;border-left:2px solid #fca5a5;flex:10rem;min-width:0;margin:0 0 0 .85rem;padding:.15rem 0 .15rem .85rem;font-size:.8125rem;font-weight:500;line-height:1.35}.settings-apply-payment-lookup-inline-muted{color:#64748b;border-left-color:#e2e8f0;font-weight:400}.settings-apply-payment-row{flex-wrap:wrap;align-items:flex-end;gap:1rem;display:flex}.settings-apply-payment-field{flex-direction:column;flex:12rem;gap:.35rem;min-width:10rem;display:flex}.settings-apply-payment-label{color:#334155;font-size:.8125rem;font-weight:600}.settings-apply-payment-invoice-row{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.settings-apply-payment-invoice-row .invoices-table-filter{flex:1}.settings-apply-payment-meta{flex-wrap:wrap;gap:1.5rem;font-size:.875rem;display:flex}.settings-apply-payment-meta-label{color:#64748b;margin-bottom:.15rem;font-size:.75rem;font-weight:600;display:block}.settings-apply-payment-type{border:none;flex-direction:column;gap:.35rem;margin:0;padding:0;display:flex}.settings-apply-payment-type legend{padding:0}.settings-apply-payment-type label{cursor:pointer;align-items:center;gap:.35rem;font-size:.875rem;display:flex}.settings-table-wrap.settings-apply-payment-queue{overflow:hidden}.settings-apply-payment-queue{background:var(--inv-panel-bg,#fff);border:1px solid var(--inv-panel-border,#e2e4e8);border-radius:8px;width:100%;max-width:100%;margin-top:.75rem;overflow:hidden}.settings-apply-payment-queue .settings-apply-payment-table{table-layout:fixed;width:100%;font-size:.8125rem}.settings-apply-payment-cg-invoice{width:10%}.settings-apply-payment-cg-client{width:19%}.settings-apply-payment-cg-debtor{width:18%}.settings-apply-payment-cg-amount{width:10%}.settings-apply-payment-cg-ref{width:28%}.settings-apply-payment-cg-actions{width:11%}.settings-apply-payment-queue .settings-apply-payment-table th,.settings-apply-payment-queue .settings-apply-payment-table td{vertical-align:middle;min-width:0;padding:.55rem .5rem}.settings-apply-payment-queue .settings-apply-payment-table th{color:#475569;border-bottom:1px solid var(--inv-panel-border,#e2e4e8);text-overflow:ellipsis;white-space:nowrap;background:#f8fafc;font-size:.8125rem;font-weight:600;overflow:hidden}.settings-apply-payment-queue .settings-apply-payment-col-invoice{font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap;font-weight:500;overflow:hidden}.settings-apply-payment-queue .settings-apply-payment-col-client,.settings-apply-payment-queue .settings-apply-payment-col-debtor{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.settings-apply-payment-queue .settings-apply-payment-table .settings-apply-payment-col-amount{text-align:center;font-variant-numeric:tabular-nums;padding-left:.5rem;padding-right:.5rem}.settings-apply-payment-amount-wrap{width:100%;min-width:0;display:block}.settings-apply-payment-queue .settings-apply-payment-col-ref{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.settings-apply-payment-ref{color:#475569;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.75rem}.settings-apply-payment-queue .settings-apply-payment-col-actions,.settings-apply-payment-queue .settings-table td.settings-apply-payment-actions-cell{text-align:right;padding-right:.65rem}.settings-apply-payment-ok{color:#15803d;font-size:.8125rem}.settings-apply-payment-err{color:#b91c1c;font-size:.8125rem}.settings-apply-payment-actions{flex-wrap:wrap;align-items:center;gap:1rem;margin-top:1rem;display:flex}.settings-apply-payment-remove{flex-shrink:0;padding:.15rem .35rem;font-size:.6875rem;line-height:1.2}.settings-apply-payment-queue .settings-table td.settings-apply-payment-actions-cell{white-space:nowrap}.settings-apply-payment-row-actions{flex-flow:row;justify-content:flex-end;align-items:center;gap:.45rem;max-width:100%;display:inline-flex}.settings-apply-payment-check-label{color:#334155;cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;flex-shrink:0;align-items:center;gap:.2rem;font-size:.75rem;display:inline-flex}.settings-apply-payment-check-label input{cursor:pointer;margin:0}.settings-apply-payment-queue .settings-apply-payment-table tbody tr:last-child td{border-bottom:none}.settings-apply-payment-queue .settings-apply-payment-table tbody tr:hover td{background:#f8fafc}.settings-apply-payment-row-new td{background:#eff6ff}.settings-apply-payment-row-new:hover td{background:#dbeafe}.settings-apply-payment-row-err td{background:#fef2f2}.settings-apply-payment-row-err:hover td{background:#fee2e2}.settings-apply-payment-review-btn[aria-pressed=true]{opacity:.85}.settings-apply-payment-queue .settings-apply-payment-amount-input{box-sizing:border-box;width:100%;min-width:0;font:inherit;font-variant-numeric:tabular-nums;text-align:center;border:1px solid var(--inv-panel-border,#e2e4e8);color:#0f172a;background:#fff;border-radius:4px;height:auto;margin:0;padding:.4rem .45rem;font-size:.8125rem;font-weight:500;line-height:1.35;display:block}.settings-apply-payment-queue .settings-apply-payment-amount-input:focus{outline-offset:0;border-color:#60a5fa;outline:2px solid #93c5fd}.settings-apply-payment-queue .settings-apply-payment-amount-input:disabled{color:#64748b;background:#f1f5f9}.settings-clients-page{flex-direction:column;gap:0;min-height:12rem;display:flex}.settings-clients-header{border-bottom:1px solid var(--inv-panel-border,#e2e8f0);background:#fafbfc;padding:1.15rem 1.15rem 1rem}.settings-clients-header-text{margin-bottom:1rem}.settings-clients-heading{color:#1e293b;letter-spacing:-.01em;margin:0 0 .35rem;font-size:1.0625rem;font-weight:600}.settings-clients-subheading{color:#64748b;max-width:42rem;margin:0;font-size:.8125rem;line-height:1.45}.settings-clients-toolbar{flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:.625rem;display:flex}.settings-clients-search{flex:16rem;min-width:14rem;max-width:22rem;height:2.25rem;padding:0 .75rem;font-size:.875rem}.settings-clients-sync-btn{color:#fff;cursor:pointer;white-space:nowrap;background:#1e293b;border:1px solid #1e293b;border-radius:6px;flex-shrink:0;height:2.25rem;padding:0 1rem;font-size:.8125rem;font-weight:600;transition:background .15s,border-color .15s}.settings-clients-sync-btn:hover:not(:disabled){background:#334155;border-color:#334155}.settings-clients-sync-btn:disabled{opacity:.55;cursor:not-allowed}.settings-clients-import-btn{background:#0f766e;border-color:#0f766e}.settings-clients-import-btn:hover:not(:disabled){background:#115e59;border-color:#115e59}.settings-clients-banner{border-radius:6px;margin:.75rem 1.15rem 0;padding:.65rem .85rem;font-size:.8125rem;line-height:1.45}.settings-clients-banner-error{color:#991b1b;background:#fef2f2;border:1px solid #fecaca}.settings-clients-banner-info{color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe}.settings-clients-delta{background:#fff;border:1px solid #e2e8f0;border-radius:8px;margin:.75rem 1.15rem 0;padding:1rem 1rem .5rem;box-shadow:0 1px 2px #0f172a0f}.settings-clients-delta-header{border-bottom:1px solid #f1f5f9;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:.75rem 1rem;margin-bottom:.75rem;padding-bottom:.75rem;display:flex}.settings-clients-delta-title{color:#1e293b;margin:0 0 .25rem;font-size:.9375rem;font-weight:600}.settings-clients-delta-copy{color:#64748b;margin:0;font-size:.8125rem}.settings-clients-delta-table{margin:0 -.25rem}.settings-clients-table-section{margin-top:.5rem}.settings-clients-company-cell{color:#1e293b;font-weight:500}.settings-clients-badge{letter-spacing:.02em;text-transform:uppercase;border-radius:999px;padding:.15rem .5rem;font-size:.6875rem;font-weight:600;display:inline-block}.settings-clients-badge-linked{color:#166534;background:#dcfce7}.settings-clients-badge-muted{color:#94a3b8;text-transform:none;background:0 0;padding:0;font-weight:400}.settings-tab-toolbar{border-bottom:1px solid var(--inv-panel-border,#e2e8f0);flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.5rem;padding:.85rem 1.15rem;display:flex}.settings-tab-search{min-width:12rem;max-width:18rem}.settings-table-wrap{overflow:auto}.settings-table{border-collapse:collapse;width:100%;font-size:.875rem}.settings-table th,.settings-table td{border-bottom:1px solid var(--inv-panel-border,#e2e8f0);text-align:left;padding:.65rem 1.15rem}.settings-table th{color:#334155;background:#f8fafc;font-size:.8125rem;font-weight:600}.settings-table tbody tr:last-child td{border-bottom:none}.settings-table tbody tr:hover td{background:#fafbfc}.settings-empty-cell{text-align:center;color:var(--muted,#64748b);padding:2rem 1rem}.settings-error{color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;margin:.75rem 1.15rem 0;padding:.75rem 1rem;font-size:.875rem}.settings-sync-panel{max-width:36rem;padding:1.25rem 1.15rem 1.5rem}.settings-sync-title{color:var(--inv-text,#0f172a);margin:0 0 .5rem;font-size:1.05rem;font-weight:600}.settings-sync-copy{color:var(--muted,#64748b);margin:0 0 1.15rem;font-size:.9rem;line-height:1.45}.settings-sync-status{color:var(--inv-text,#0f172a);margin:1rem 0 0;font-size:.875rem;line-height:1.4}.settings-tab-body .invoices-table-footer{border-top:1px solid var(--inv-panel-border,#e2e8f0);margin-top:0}
