/* The dark theme for surfaces the stylesheets paint white themselves (shell-prefs.js sets data-bs-theme="dark").
   Generated from every rule in wwwroot/css that sets a white or near-white background, plus Bootstrap's own light
   utilities; regenerate it when a stylesheet gains another (docs/THEMES.md). */

[data-bs-theme="dark"] :is(
    #brief-overview .brief-ov-filters,
    .accordion-button,
    .accordion-item,
    .assignee-chip,
    .assignee-picker,
    .bg-body-tertiary,
    .bg-light,
    .bg-white,
    .brief-add .brief-tgs,
    .brief-card,
    .brief-fchip,
    .brief-md,
    .brief-pop,
    .brief-status,
    .brief-tgs.open,
    .btn-light,
    .btn-outline-secondary,
    .card-footer,
    .card-header,
    .covlbl,
    .dash-chip,
    .dash-filter,
    .dash-kpi,
    .ecell,
    .erp-rp-btn,
    .erp-rp-nav,
    .erp-rp-pop,
    .file-pick-item,
    .form-control,
    .form-select,
    .glance .btn,
    .glance .card,
    .glance .chip,
    .glance .dh .x,
    .glance .dr,
    .glance .ec,
    .glance .kpi,
    .glance .p-o,
    .glance .tb .multi-filter > summary,
    .glance .tb input:not(.form-check-input),
    .glance .tb select,
    .image-lightbox-img,
    .inline-image-chip-remove,
    .input-group-text,
    .invite-callout,
    .list-group-item,
    .loc-handle,
    .loc-map-label,
    .loc-map-note,
    .loc-mode,
    .loc-notice-card .loc-notice-body,
    .loc-review-card,
    .loc-step-dot.is-now,
    .mention-menu,
    .mon-kpi,
    .month-preview > div,
    .multi-filter-panel,
    .nav-tabs .nav-link.active,
    .nt-bell,
    .nt-dd,
    .nt-grp,
    .nt-toast,
    .nt-toolbar input,
    .nt-toolbar select,
    .offcanvas-body,
    .page-link,
    .popover,
    .rota-bin,
    .rota-gap,
    .rota-pchip.free,
    .rota-stat,
    .rs-day,
    .rs-form,
    .rs-panel .rs-req,
    .search-panel,
    .settings-card,
    .shcard,
    .sheet-scroll .sheet .sheet-employee,
    .sheet-sticky,
    .sign-in-card,
    .skmiss,
    .stat-card,
    .step button,
    .stop-task-thumb-remove,
    .table-light,
    .task-history-note,
    .tm-chip,
    .tm-combo-panel,
    .tm-dialog,
    .tm-esttl-nd,
    .tm-foot,
    .tm-foot kbd,
    .tm-head,
    .tm-ib,
    .tm-side,
    .tm-stat,
    .tm-tabs,
    .tm-timer .stop-others .btn-outline-danger,
    .tm-timer .stop-others .btn-outline-success,
    .toast,
    .worklog-file,
    button.brief-tgs:hover
) {
  background-color: #161e2b !important;
  color: var(--bs-body-color);
  border-color: var(--dsu-line);
}

[data-bs-theme="dark"] :is(.form-control, .form-select, .input-group-text) {
  background-color: #0f1520 !important;
}

[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] .text-black {
  color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .table {
  --bs-table-color: var(--bs-body-color);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
  --bs-table-border-color: var(--dsu-line);
}