/* Visual baseline: the three approved Switchboard concepts, especially the support shell. */
.switchboard-layout { --workspace-rail: 74px; --workspace-panel: 204px; --app-header-h: 58px; font-size: 14px; line-height: 1.5; }
html:not([data-theme="light"]) .switchboard-layout {
    --background: #101619; --surface: #151c20; --card: #161e22; --card-hover: #202c30;
    --foreground: #edf2f5; --foreground-muted: #afbdc7; --foreground-subtle: #8f9fa9;
    --border: #2c383e; --border-strong: #41515a; --brand: #99efca; --brand-ink: #09261d;
    --primary-subtle: rgba(153,239,202,.09);
}
.switchboard-layout .dashboard-main { padding-top: var(--app-header-h); min-width: 0; min-height: 100dvh; }
.switchboard-layout .dashboard-content { padding: 28px; gap: 24px; flex: 1; }
.switchboard-topbar { position: fixed; inset: 0 0 auto; height: var(--app-header-h); z-index: 115; display: flex; align-items: center; gap: 24px; padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--border); }
.switchboard-topbar-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.switchboard-topbar-brand > a { color: var(--foreground); font-size: 21px; letter-spacing: -.6px; font-weight: 700; text-decoration: none; }
.switchboard-topbar-brand > a > span { font-weight: 550; }
.switchboard-project-switch { display: flex; align-items: center; gap: 28px; color: var(--foreground); text-decoration: none; border-left: 1px solid var(--border); padding-left: 24px; font-size: 13px; white-space: nowrap; }
.switchboard-project-switch i { font-size: 10px; color: var(--foreground-muted); }
.switchboard-global-search { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 5px; background: var(--background); max-width: 570px; flex: 1; margin: 0 auto; color: var(--foreground-muted); }
.switchboard-global-search input { color: var(--foreground); background: transparent; border: 0; width: 100%; min-width: 0; font: inherit; font-size: 13px; outline: none; }
.switchboard-global-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 2px var(--primary-subtle); }
.switchboard-global-search button { background: none; border: 0; color: var(--foreground-subtle); cursor: pointer; }
.switchboard-topbar-actions { display: flex; align-items: center; gap: 18px; }
.switchboard-attention-link { color: var(--foreground-muted); font-size: 20px; }
.switchboard-staff { display: flex; align-items: center; gap: 10px; color: var(--foreground); text-decoration: none; border-left: 1px solid var(--border); padding-left: 18px; }
.switchboard-staff > i { font-size: 10px; color: var(--foreground-muted); margin-left: 6px; }
.switchboard-avatar { display: flex; align-items: center; justify-content: center; height: 32px; width: 32px; border-radius: 50%; color: #10252a; background: linear-gradient(140deg,#c1e3e9,#7997a6); border: 1px solid #9ab4c0; font-size: 12px; font-weight: 600; }
.switchboard-staff-name { font-size: 12px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.switchboard-staff-name small { display: block; color: var(--foreground-muted); font-size: 11px; }
.switchboard-layout .workspace-environment { font-size: 10px; font-weight: 500; color: #d9b976; border-color: #594d30; background: rgba(213,173,85,.06); }
.switchboard-layout .switchboard-sidebar { top: var(--app-header-h); height: calc(100dvh - var(--app-header-h)); }
.workspace-context-top { min-height: 64px; padding: 0 20px; border-bottom: 0; }
.workspace-wordmark { font-size: 18px; }
.workspace-context-top.workspace-context-top-long { padding: 0 12px; }
.workspace-context-top-long .workspace-wordmark { font-size: 14px; }
.workspace-group-heading { display: none; }
.workspace-rail { background: var(--background); }
.workspace-groups { padding: 12px 4px; gap: 8px; }
.workspace-group { min-height: 64px; gap: 7px; font-size: 11px; color: var(--foreground); }
.workspace-group i { font-size: 20px; }
.workspace-pages { padding: 0 12px 20px; gap: 5px; }
.workspace-pages > .workspace-section-label { display: none; }
.workspace-page { padding: 12px 11px; font-size: 13px; font-weight: 400; }
.workspace-page i { font-size: 16px; opacity: .8; }
.workspace-page.active { color: var(--foreground); font-weight: 500; background: linear-gradient(90deg,var(--primary-subtle),rgba(144,165,172,.07)); }
.workspace-context-footer { padding: 16px; }
.workspace-collapse { opacity: .55; }
.workspace-collapse:hover { opacity: 1; }
.switchboard-layout .workspace-page-intro h1, .switchboard-layout .workspace-page-intro h2 { font-size: 30px; line-height: 1.2; font-weight: 650; letter-spacing: -.8px; margin: 0 0 7px; }
.switchboard-layout .workspace-page-intro p { font-size: 16px; line-height: 1.5; }
.switchboard-layout .dashboard-card { border-radius: 5px; background: var(--surface); box-shadow: none; overflow: hidden; }
.switchboard-layout .card-header { min-height: 52px; padding: 14px 20px; }
.switchboard-layout .card-header h3 { font-size: 16px; font-weight: 600; letter-spacing: -.25px; }
.switchboard-layout .card-body { padding: 20px; }
.switchboard-layout .card-body.no-padding { padding: 0; }
.switchboard-layout .data-table th { font-size: 12px; font-weight: 450; text-transform: none; letter-spacing: 0; color: var(--foreground-muted); background: rgba(143,164,176,.045); padding: 12px 18px; }
.switchboard-layout .data-table td { padding: 14px 18px; font-size: 13px; border-bottom-color: var(--border); }
.switchboard-layout .data-table tbody tr:last-child td { border-bottom: 0; }
.switchboard-layout .status-badge { font-size: 11px; font-weight: 450; letter-spacing: 0; text-transform: none; border-radius: 4px; padding: 3px 8px; }
.switchboard-layout .btn { border-radius: 4px; font-size: 13px; min-height: 36px; padding: 8px 14px; }
.switchboard-layout .btn-brand { background: linear-gradient(135deg,#b0f7d5,#82eac0); border: 1px solid #9bf0ca; color: #0d2920; font-weight: 600; }
.switchboard-layout .form-input { border-radius: 4px; font-size: 13px; min-height: 38px; background: var(--surface); }
.switchboard-layout .crm-muted { line-height: 1.6; }
.switchboard-footer { display: flex; justify-content: space-between; gap: 20px; padding: 10px 24px; border-top: 1px solid var(--border); color: var(--foreground-subtle); font-size: 10px; letter-spacing: .3px; }
.switchboard-footer span span { margin: 0 8px; }
.workspace-search-results { display: grid; }
.workspace-search-result { display: flex; justify-content: space-between; gap: 20px; padding: 14px 20px; color: var(--foreground); text-decoration: none; border-top: 1px solid var(--border); }
.workspace-search-result:hover { background: var(--primary-subtle); }
.workspace-search-result small { display: block; color: var(--foreground-muted); margin-top: 3px; }
.switchboard-layout .workspace-invoice-layout.has-detail { grid-template-columns: minmax(0,1fr) minmax(320px,36%); gap: 20px; }
.switchboard-layout .workspace-invoice-inspector { padding: 22px; top: 80px; }
.switchboard-layout .workspace-invoice-amount { font-size: 32px; font-weight: 600; margin: 24px 0; }
.switchboard-layout .workspace-invoice-facts { font-size: 13px; gap: 15px; }
.switchboard-layout .workspace-invoice-description { font-size: 13px; }
.switchboard-layout .workspace-invoice-table .workspace-row-selected { box-shadow: inset 3px 0 var(--brand); background: rgba(153,191,185,.12); }
.switchboard-layout .workspace-invoice-link { color: var(--foreground); font-weight: 500; }
.switchboard-layout .workspace-invoice-filters label { font-size: 12px; }
.switchboard-layout .workspace-invoice-filters .form-input { font-size: 13px; }
.switchboard-layout .workspace-source-summary { font-size: 11px; }
@media(min-width:769px) { .switchboard-topbar .mobile-menu-btn { display:none; } }
@media(max-width:1280px) { .switchboard-staff-name { display:none; } .switchboard-topbar { gap:18px; } .switchboard-topbar-actions { gap:12px; } .switchboard-layout .dashboard-content { padding:24px; } .switchboard-layout .workspace-invoice-layout.has-detail { grid-template-columns:minmax(0,1fr); } .switchboard-layout .workspace-invoice-inspector { position:static; } }
@media(max-width:1000px) { .switchboard-project-switch { display:none; } .switchboard-layout { --workspace-panel:185px; } .switchboard-layout .dashboard-content { padding:20px; } }
@media(max-width:768px) {
    .switchboard-layout { --workspace-rail:68px; --workspace-panel:216px; --app-header-h:60px; }
    .switchboard-topbar { padding:0 14px; gap:12px; }
    .switchboard-topbar-brand > a { font-size:18px; }
    .switchboard-topbar .mobile-menu-btn { display:inline-flex; }
    .switchboard-global-search { display:none; }
    .switchboard-topbar-actions { margin-left:auto; gap:10px; }
    .switchboard-topbar-actions .theme-toggle, .switchboard-attention-link, .switchboard-staff > i { display:none; }
    .switchboard-staff { padding-left:0; border:0; }
    .switchboard-avatar { width:28px; height:28px; font-size:10px; }
    .switchboard-layout .dashboard-content { padding:22px 16px; gap:20px; }
    .switchboard-layout .workspace-page-intro h1, .switchboard-layout .workspace-page-intro h2 { font-size:27px; }
    .switchboard-layout .workspace-page-intro p { font-size:14px; }
    .switchboard-layout .data-table td { padding:12px; }
    .switchboard-layout .switchboard-sidebar { top:0; height:100dvh; z-index:130; }
    .switchboard-layout .sidebar-overlay { z-index:125; }
    .switchboard-layout .workspace-invoice-facts { grid-template-columns:95px minmax(0,1fr); }
    .switchboard-footer { padding-bottom:84px; }
}
.switchboard-view-tabs { display:flex; gap:28px; border-bottom:1px solid var(--border); overflow-x:auto; }
.switchboard-view-tabs a { padding:10px 14px 14px; font-size:13px; color:var(--foreground-muted); text-decoration:none; white-space:nowrap; border-bottom:2px solid transparent; }
.switchboard-view-tabs a.active { color:var(--brand); border-bottom-color:var(--brand); }
.workspace-mode-note { margin:0; font-size:12px; color:var(--foreground-subtle); display:flex; gap:8px; align-items:center; }
.invoice-overview-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-bottom:1px solid var(--border); }
.invoice-overview-strip > div { padding:18px; border-right:1px solid var(--border); }
.invoice-overview-strip > div:last-child { border-right:0; }
.invoice-overview-strip span { display:block; color:var(--foreground-muted); font-size:12px; }
.invoice-overview-strip strong { display:block; font-size:27px; font-weight:600; font-variant-numeric:tabular-nums; margin-top:4px; }
.invoice-attention-count { color:#eebf6d; }
.switchboard-layout .workspace-invoice-layout > .workspace-ledger { border:0; background:transparent; }
.switchboard-layout .workspace-invoice-filters { padding:0 0 18px; border:0; }
.switchboard-layout .invoice-overview-strip { border:1px solid var(--border); border-radius:4px; margin-bottom:18px; background:var(--surface); }
.switchboard-layout .workspace-ledger > .table-container { border:1px solid var(--border); border-radius:5px; background:var(--surface); }
.switchboard-layout .workspace-inspector-title h2 { font-size:22px; font-weight:600; }
.switchboard-layout .workspace-invoice-amount > span:first-child { font-size:12px; margin-bottom:6px; }
.switchboard-layout .workspace-coverage { background:transparent; }
.switchboard-layout .workspace-coverage summary { padding:8px 12px; }
@media(max-width:768px) { .switchboard-view-tabs { gap:4px; } .switchboard-view-tabs a { padding:10px; } .invoice-overview-strip > div { padding:12px; } .invoice-overview-strip strong { font-size:23px; } }
/* Match the reference's restrained mint actions and compact operational tables. */
.switchboard-layout { --link: #8bc9ed; }
.switchboard-layout a.btn.btn-brand, .switchboard-layout a.btn.btn-brand:link, .switchboard-layout a.btn.btn-brand:visited, .switchboard-layout a.btn.btn-brand:hover { background:linear-gradient(135deg,#b0f7d5,#82eac0);color:#0d2920;border-color:#9bf0ca; }
.switchboard-layout .overview-panel .overview-action { background:linear-gradient(135deg,#b0f7d5,#82eac0);border-color:#9bf0ca; }
.switchboard-layout .overview-secondary .overview-table td { padding-top:11px;padding-bottom:11px; }
.switchboard-layout .overview-primary .overview-table td { padding-top:12px;padding-bottom:12px; }
.switchboard-layout .overview-chart { min-height:170px; }
.switchboard-layout .overview-kpi { padding-top:19px;padding-bottom:19px; }
.switchboard-layout .overview-panel-header { min-height:52px;padding-top:12px;padding-bottom:12px; }
.switchboard-layout .workspace-invoice-table th, .switchboard-layout .workspace-invoice-table td { padding:12px 14px; }
.switchboard-layout .workspace-invoice-table th:nth-child(2) { width:22%; }
.switchboard-layout .invoice-page-size { width:auto;min-height:32px;font-size:12px;padding:4px 8px; }
.invoice-currency-unknown { color:var(--foreground-subtle);font-size:10px;text-decoration:none;cursor:help; }
.switchboard-layout .sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
@media(max-width:768px) {
    .workspace-invoice-layout.default-invoice-selection .workspace-invoice-inspector { display:none; }
    .switchboard-layout .workspace-ledger > .table-container { border:0;background:none;overflow:visible; }
    .switchboard-layout .workspace-invoice-table, .switchboard-layout .workspace-invoice-table tbody { display:block;width:100%;min-width:0; }
    .switchboard-layout .workspace-invoice-table thead { display:none; }
    .switchboard-layout .workspace-invoice-table tbody tr { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:14px;margin-bottom:10px;border:1px solid var(--border);border-radius:5px;background:var(--surface); }
    .switchboard-layout .workspace-invoice-table td { display:block;padding:0;border:0;white-space:normal;font-size:12px;overflow-wrap:anywhere; }
    .switchboard-layout .workspace-invoice-table td:nth-child(1) { grid-column:1;grid-row:1;font-size:14px; }
    .switchboard-layout .workspace-invoice-table td:nth-child(2) { grid-column:1/-1;grid-row:2;color:var(--foreground-muted); }
    .switchboard-layout .workspace-invoice-table td:nth-child(3) { grid-column:1;grid-row:3;color:var(--foreground-muted); }
    .switchboard-layout .workspace-invoice-table td:nth-child(4) { grid-column:2;grid-row:3;text-align:right;color:var(--foreground-muted); }
    .switchboard-layout .workspace-invoice-table td:nth-child(5) { grid-column:1/-1;grid-row:4; }
    .switchboard-layout .workspace-invoice-table td:nth-child(6) { grid-column:2;grid-row:1;font-weight:600;text-align:right; }
    .switchboard-layout .workspace-invoice-table .empty-row td { grid-column:1/-1; }
    .switchboard-layout .workspace-invoice-table .workspace-invoice-link { min-height:32px; }
    .switchboard-layout .ledger-pager { flex-wrap:wrap;gap:10px; }
}
.workspace-saved-views { display:flex;flex-direction:column;gap:5px;margin-top:22px;padding-top:19px;border-top:1px solid var(--border); }
.workspace-saved-views > .workspace-section-label { padding:0 11px 10px;font-size:10px; }
.workspace-saved-views .workspace-page { font-size:12px;font-weight:400; }
