/* The existing GitHub Dark tokens are the single palette for every workspace. */
html[data-theme="dark"] body :is(.finance-workspace,.provider-results-workspace){
    --fw-ink:var(--gh-text-strong);--fw-muted:#a5afba;--fw-line:var(--gh-border);
    --fw-bg:var(--gh-canvas-subtle);--fw-soft:var(--gh-canvas);--fw-accent:var(--gh-accent-hover);--fw-tint:var(--gh-surface-raised);
    color:var(--fw-ink);
}
html[data-theme="dark"] body .central-finance{--cf-ink:var(--gh-text-strong);--cf-muted:#a5afba;--cf-line:var(--gh-border);--cf-surface:var(--gh-canvas-subtle);}
html[data-theme="dark"] body .freight-finance{--freight-ink:var(--gh-text-strong);--freight-muted:#a5afba;--freight-line:var(--gh-border);}
html[data-theme="dark"] body .finance-overview{--overview-muted:#a5afba;}
html[data-theme="dark"] body .client-bank-panel{--cb-ink:var(--gh-text-strong);--cb-muted:#a5afba;--cb-line:var(--gh-border);background:var(--gh-canvas-subtle);}
html[data-theme="dark"] body :is(.collection-queue-page,.load-dashboard){--op-border:var(--gh-border);--op-text:var(--gh-text);}
html[data-theme="dark"] body :is(.central-navigation,.operations-navigation .report-tab,.collection-filter-card,.load-filter-card,.load-list-filters,.today-route-summary,.freight-receivable,.freight-result>article,.fleet-rule){
    color:var(--gh-text);background:var(--gh-canvas-subtle);border-color:var(--gh-border);box-shadow:none;
}
html[data-theme="dark"] body :is(.central-navigation>a,.operations-navigation .report-tab>span){color:var(--gh-text);}
html[data-theme="dark"] body :is(.central-navigation>a.is-active,.operations-navigation .report-tab.active){
    color:var(--gh-text-strong);background:var(--gh-surface-raised);border-color:var(--gh-accent);
    box-shadow:inset 3px 0 var(--gh-accent);
}
html[data-theme="dark"] body :is(.central-navigation>a:hover,.operations-navigation .report-tab:hover){background:var(--gh-surface-raised);}
html[data-theme="dark"] body :is(.finance-workspace,.central-finance,.collection-filter-card,.load-filter-card,.load-list-filters,.report-workspace,.completed-workspace) :is(.form-control,.form-select,.search-select-input,.system-date-field__display,.load-route-filter>summary){
    background-color:var(--gh-canvas);border-color:#484f58;color:var(--gh-text);color-scheme:dark;
}
html[data-theme="dark"] body :is(.finance-workspace,.central-finance,.collection-filter-card,.load-filter-card,.load-list-filters,.report-workspace,.completed-workspace) :is(input,textarea)::placeholder{color:#919ba6;opacity:1;}
html[data-theme="dark"] body :is(.collection-filter-card,.load-filter-card) .collection-filter-period>.operations-date-range{background:var(--gh-canvas);border-color:#484f58;}
html[data-theme="dark"] body :is(.collection-filter-card,.load-filter-card) .operations-date-range :is(.system-date-field,.system-date-field__display){background:transparent;}
html[data-theme="dark"] body :is(.collection-filter-card,.load-filter-card) :is(label,legend,label>span){color:#c9d1d9;}
html[data-theme="dark"] body :is(.collection-filter-card,.load-filter-card) .operations-date-range>span:not(.system-date-field){color:#a5afba;}
html[data-theme="dark"] body :is(.collection-filter-card,.load-filter-card) .operations-filter-actions .collection-filter-clear{background:var(--gh-surface-raised);border-color:var(--gh-border);color:var(--gh-text);}
html[data-theme="dark"] body :is(.finance-workspace,.central-finance,.collection-filter-card,.load-filter-card) :is(.form-control,.form-select,.search-select-input):focus{border-color:var(--gh-accent-hover);box-shadow:0 0 0 3px var(--gh-accent-muted);}
html[data-theme="dark"] body :is(.collection-metric-card small,.central-hero p,.fw-metric>div,.fw-context-line,.fw-context-line b,.central-metric>small){color:#a5afba;}
html[data-theme="dark"] body :is(.fw-metric--primary>strong,.freight-receivable article>strong,.today-route-summary h2,.today-route-summary tbody th a,.central-metric>strong){color:var(--gh-text-strong);}
html[data-theme="dark"] body :is(.fw-metric-icon,.central-metric-icon){background:var(--gh-surface-raised);color:var(--gh-accent-hover);}
html[data-theme="dark"] body :is(.fw-metric--danger,.central-metric--out) :is(.fw-metric-icon,.central-metric-icon){background:rgba(248,81,73,.14);color:#ff7b72;}
html[data-theme="dark"] body :is(.fw-metric--success,.central-metric--in) :is(.fw-metric-icon,.central-metric-icon){background:rgba(63,185,80,.14);color:#7ee787;}
html[data-theme="dark"] body :is(.finance-workspace,.central-finance) .table :is(th,td){border-color:var(--gh-border);}
html[data-theme="dark"] body :is(.finance-workspace,.central-finance) :is(.table thead th,.central-projection-formula,.central-pending,.central-batch-plan){background:var(--gh-canvas);color:#a5afba;border-color:var(--gh-border);}
html[data-theme="dark"] body :is(.finance-workspace .table>tbody>tr:hover,.central-finance .table tbody tr:hover,.central-account:hover,.central-account.is-selected){background:var(--gh-surface-raised);}
html[data-theme="dark"] body .today-route-summary :is(header,th,td){border-color:var(--gh-border);}
html[data-theme="dark"] body .today-route-summary thead th{background:var(--gh-canvas);color:#a5afba;}
html[data-theme="dark"] body .today-route-summary tbody tr:hover{background:var(--gh-surface-raised);}
html[data-theme="dark"] body .today-route-summary>header>span{color:#a5afba;}
html[data-theme="dark"] body :is(.today-route-summary a,.today-route-more>summary){color:var(--gh-accent-hover);}
html[data-theme="dark"] body .today-route-potential{color:var(--gh-text-strong);}
html[data-theme="dark"] body .today-route-potential>span{background:#30363d;}
html[data-theme="dark"] body .today-route-potential i{background:#58a6ff;}
html[data-theme="dark"] body .today-route-count.is-collection{background:rgba(210,153,34,.16);color:#e3b341;}
html[data-theme="dark"] body .today-route-count.is-collected{background:var(--gh-surface-raised);color:#c9d1d9;}
html[data-theme="dark"] body .today-route-count.is-boarding{background:rgba(63,185,80,.14);color:#7ee787;}
html[data-theme="dark"] body :is(.collection-mode-tabs,.load-global-selection,.collection-batch-bar,.load-wizard-selection){background:var(--gh-surface-raised);color:var(--gh-text);border-color:var(--gh-border);}
html[data-theme="dark"] body .collection-mode-tabs .collection-mode-filter{color:#c9d1d9;}
html[data-theme="dark"] body .collection-mode-tabs .collection-mode-filter[aria-current="page"]{background:var(--gh-canvas);color:var(--gh-text-strong);box-shadow:inset 0 -2px var(--gh-accent);}
html[data-theme="dark"] body .client-bank-panel :is(.offcanvas-header,.cb-progress,.cb-upload,.cb-filters,.cb-entry,.cb-bank-summary,.cb-modes label,.cb-existing,.cb-check,.cb-matches,.cb-panel-footer,.cb-empty,.cb-review-table){background:var(--gh-canvas-subtle);border-color:var(--gh-border);}
html[data-theme="dark"] body .client-bank-panel :is(.form-control,.form-select){background:var(--gh-canvas);border-color:#484f58;color:var(--gh-text);}
html[data-theme="dark"] body .fw-metric>div>.central-icon{background:var(--gh-surface-raised);color:var(--gh-accent-hover);}
html[data-theme="dark"] body .fw-metric--danger>div>.central-icon{background:rgba(248,81,73,.14);color:#ff7b72;}
html[data-theme="dark"] body .fw-metric--success>div>.central-icon{background:rgba(63,185,80,.14);color:#7ee787;}
html[data-theme="dark"] body .collection-status.is-waiting{background:rgba(210,153,34,.16);color:#e3b341;}
html[data-theme="dark"] body .collection-status.is-progress{background:rgba(63,185,80,.14);color:#7ee787;}
html[data-theme="dark"] body .collection-status.is-overdue{background:rgba(248,81,73,.16);color:#ff7b72;}
html[data-theme="dark"] body :is(.report-workspace,.completed-workspace) :is(.metric-value,.page-title,.h5,.h4){color:var(--gh-text-strong);}
html[data-theme="dark"] body :is(.finance-workspace,.central-finance,.collection-queue-page,.load-dashboard,.report-workspace,.completed-workspace) .btn-primary{background:#1f6feb;border-color:#388bfd;color:#fff;}
html[data-theme="dark"] body :is(.finance-workspace,.central-finance,.collection-queue-page,.load-dashboard,.report-workspace,.completed-workspace) .btn-primary:hover{background:#1a64ce;border-color:#58a6ff;color:#fff;}
html[data-theme="dark"] body :is(.finance-workspace,.central-finance,.collection-queue-page,.load-dashboard,.report-workspace,.completed-workspace) .btn-outline-primary{background:transparent;border-color:#484f58;color:#58a6ff;}
html[data-theme="dark"] body :is(.admin-period-switcher,.admin-metric,.admin-insight-card,.admin-expense-panel,.admin-finance-tabs,.admin-section-card,.admin-recurring-grid>article,.admin-account-card,.admin-budget-list>article,.admin-category-directory>article,.admin-executive-panel>*,.admin-executive-alerts a,.admin-calendar-grid>article,.admin-invoice-card,.admin-card-config,.admin-statement-upload,.admin-payment-summary,.admin-account-note,.admin-payroll-person,.admin-payroll-state article,.admin-payroll-details li,.admin-finance-modal .modal-content,.admin-employee-modal .modal-content){background:var(--gh-canvas-subtle);border-color:var(--gh-border);color:var(--gh-text);}
html[data-theme="dark"] body :is(.admin-executive-panel,.admin-executive-alerts){background:var(--gh-border);border-color:var(--gh-border);}
html[data-theme="dark"] body :is(.admin-expense-filters,.admin-expense-panel__footer,.admin-finance-modal .modal-header,.admin-finance-modal .modal-footer,.admin-simple-table th,.admin-report-summary article,.admin-report-table th,.admin-calendar-summary article,.admin-calendar-weekdays,.admin-calendar-grid>.is-empty,.admin-invoice-values span,.admin-statement-batch>header,.admin-payroll-state,.admin-payroll-details>section){background:var(--gh-canvas);border-color:var(--gh-border);color:#a5afba;}
html[data-theme="dark"] body :is(.admin-finance-modal,.admin-employee-modal,.admin-statement-upload,.admin-invoice-pay,.admin-reconcile-form) :is(input,select,textarea,.system-date-field__display){background:var(--gh-canvas);border-color:#484f58;color:var(--gh-text);}
html[data-theme="dark"] body :is(.admin-segmented input:checked+span,.admin-finance-tabs a.is-active,.admin-period-picker button,.admin-payroll-person__numbers span,.admin-report-total td){background:var(--gh-surface-raised);border-color:var(--gh-border);color:var(--gh-text);}
html[data-theme="dark"] body :is(.admin-progress,.admin-trend-track,.admin-category-item>i){background:#30363d;}
html[data-theme="dark"] body .admin-employee-form__section,html[data-theme="dark"] body .admin-employee-form__footer{background:var(--gh-canvas-subtle)!important;border-color:var(--gh-border);}
html[data-theme="dark"] body .contracts-page{--contracts-ink:var(--gh-text-strong);--contracts-muted:#a5afba;--contracts-line:var(--gh-border);}
html[data-theme="dark"] body :is(.contracts-page .contracts-filter,.contracts-page .contracts-list,.contracts-page .contracts-pending-section,.contracts-page .contracts-list>.card-header,.contracts-page .contracts-pending-section>.card-header,.shipment-module-hero,.contracts-heading){background:var(--gh-canvas-subtle);border-color:var(--gh-border);box-shadow:none;}
html[data-theme="dark"] body :is(.shipment-module-hero,.contracts-heading) h1{color:var(--gh-text-strong);}
html[data-theme="dark"] body .contracts-page .contracts-table thead th{background:var(--gh-canvas);color:#a5afba;border-color:var(--gh-border);}
html[data-theme="dark"] body .contracts-page .contracts-table tbody td{color:var(--gh-text);border-color:var(--gh-border);}
html[data-theme="dark"] body .contracts-page .contracts-table tbody tr:hover{background:var(--gh-surface-raised);}
