/* Service2 light/dark theme layer. Loaded after Bootstrap and the shared shell. */

.theme-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.theme-choice {
  display: block;
  min-width: 0;
  cursor: pointer;
}

.theme-choice > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-choice__body {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #dce5f1;
  border-radius: 16px;
  background: #f8fbff;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.theme-choice:hover .theme-choice__body {
  border-color: #b9cff2;
  transform: translateY(-1px);
}

.theme-choice > input:focus-visible + .theme-choice__body {
  outline: 3px solid rgba(13, 110, 253, 0.22);
  outline-offset: 2px;
}

.theme-choice > input:checked + .theme-choice__body {
  border-color: #0d6efd;
  background: #eef5ff;
  box-shadow: 0 8px 22px rgba(13, 110, 253, 0.12);
}

.theme-choice__icon {
  font-size: 1.35rem;
  color: #315a96;
}

.theme-choice__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.theme-choice__text strong {
  color: #20324d;
}

.theme-choice__text small {
  color: #6b7a90;
}

.theme-choice__check {
  color: #0d6efd;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.theme-choice > input:checked + .theme-choice__body .theme-choice__check {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 767.98px) {
  .theme-choice-grid {
    grid-template-columns: 1fr;
  }

  .theme-choice__body {
    min-height: 68px;
  }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bs-body-color: #e5e7eb;
  --bs-body-color-rgb: 229, 231, 235;
  --bs-body-bg: #0b1220;
  --bs-body-bg-rgb: 11, 18, 32;
  --bs-border-color: #334155;
  --bs-border-color-translucent: rgba(148, 163, 184, 0.28);
  --bs-link-color: #7cb4ff;
  --bs-link-hover-color: #a8ccff;
  --bs-light: #182235;
  --bs-light-rgb: 24, 34, 53;
  --bs-dark: #e5e7eb;
  --bs-dark-rgb: 229, 231, 235;
  --app-bg-start: #0b1220;
  --app-bg-end: #111827;
  --app-header-bg: #111a2a;
  --bottom-nav-bg: rgba(15, 23, 42, 0.94);
  --menu-bg-start: #101b2d;
  --menu-bg-end: #0b1220;
  --menu-item-bg: rgba(30, 41, 59, 0.86);
  --menu-item-hover: rgba(51, 65, 85, 0.96);
}

html[data-theme="dark"] body {
  color: #e5e7eb;
  background: linear-gradient(180deg, #0b1220 0%, #0f172a 58%, #111827 100%);
}

@media (min-width: 992px) {
  html[data-theme="dark"] body:not(.app-embedded) {
    background: #0b1220;
  }
}

html[data-theme="dark"] .app-header {
  background: #111a2a;
  border-color: #273449;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .header-icon,
html[data-theme="dark"] .desktop-topbar__back,
html[data-theme="dark"] .desktop-topbar__home,
html[data-theme="dark"] .desktop-topbar__crumb,
html[data-theme="dark"] .mobile-bottom-nav .bottom-item {
  color: #9aabc0;
}

html[data-theme="dark"] .header-icon:hover,
html[data-theme="dark"] .desktop-topbar__section,
html[data-theme="dark"] .desktop-topbar__crumb--current,
html[data-theme="dark"] .desktop-topbar__profile {
  color: #e6edf7;
}

html[data-theme="dark"] .desktop-topbar__back:hover,
html[data-theme="dark"] .desktop-topbar__home:hover {
  background: #1b2940;
  color: #75adff;
}

html[data-theme="dark"] .desktop-topbar__divider {
  background: #2c3a50;
}

html[data-theme="dark"] .mobile-bottom-nav {
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .mobile-bottom-nav .bottom-item.active {
  color: #6ea8fe;
}

html[data-theme="dark"] .mobile-menu {
  background: linear-gradient(160deg, #101b2d 0%, #111827 48%, #0b1220 100%);
  border-color: #2c3a50;
  box-shadow: -16px 0 32px rgba(0, 0, 0, 0.38);
}

html[data-theme="dark"] .menu-close {
  background: rgba(30, 41, 59, 0.88);
  border-color: #334155;
  color: #cbd5e1;
}

html[data-theme="dark"] .menu-close:hover {
  background: #26364f;
  color: #f8fafc;
}

html[data-theme="dark"] .mobile-menu .list-group-item {
  background: var(--menu-item-bg);
  color: #e5edf7;
  border-color: transparent;
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] .mobile-menu .list-group-item-action:hover,
html[data-theme="dark"] .mobile-menu .list-group-item-action:focus {
  background: var(--menu-item-hover);
  border-color: #3b82f6;
  color: #f8fafc;
}

html[data-theme="dark"] .mobile-submenu {
  border-color: #334155;
  background: rgba(20, 30, 48, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .mobile-submenu__summary {
  color: #e5edf7;
}

html[data-theme="dark"] .mobile-submenu__item {
  background: rgba(30, 41, 59, 0.88);
  color: #aebed1;
}

html[data-theme="dark"] .mobile-submenu__item:hover,
html[data-theme="dark"] .mobile-submenu__item.is-active {
  background: #1e3558;
  color: #8dbaff;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .card-soft,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .offcanvas,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .list-group-item,
html[data-theme="dark"] .accordion-item,
html[data-theme="dark"] .toast,
html[data-theme="dark"] .popover {
  color: #e5e7eb;
  background-color: #111a2a;
  border-color: #2c3a50;
}

html[data-theme="dark"] .card-soft {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .card-header,
html[data-theme="dark"] .card-footer,
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer,
html[data-theme="dark"] .accordion-button {
  color: #e5e7eb;
  background-color: #111a2a;
  border-color: #2c3a50;
}

html[data-theme="dark"] .accordion-button:not(.collapsed) {
  background: #17243a;
  color: #9dc2ff;
  box-shadow: inset 0 -1px 0 #2c3a50;
}

html[data-theme="dark"] .accordion-button::after {
  filter: invert(1) grayscale(1) brightness(1.8);
}

html[data-theme="dark"] .ui-toolbar-card {
  border-color: #2c3a50;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 32%),
    linear-gradient(180deg, #111a2a 0%, #0f172a 100%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .ui-search__field,
html[data-theme="dark"] .ui-dropdown__summary,
html[data-theme="dark"] .ui-dropdown__menu,
html[data-theme="dark"] .ui-select__control,
html[data-theme="dark"] .ui-pill-btn {
  background: #0f172a;
  border-color: #334155;
  color: #dce6f2;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.15);
}

html[data-theme="dark"] .ui-search__input,
html[data-theme="dark"] .ui-search__field > i,
html[data-theme="dark"] .ui-dropdown__value,
html[data-theme="dark"] .ui-select__control {
  color: #e5edf7;
}

html[data-theme="dark"] .ui-search__dropdown {
  background: #111a2a;
  border-color: #334155;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .ui-search__option {
  background: #17243a;
  color: #d8e2ee;
}

html[data-theme="dark"] .ui-search__option.is-active,
html[data-theme="dark"] .ui-dropdown__item:hover,
html[data-theme="dark"] .ui-dropdown__item.is-active {
  background: #1d365d;
  color: #8fbdff;
}

html[data-theme="dark"] .ui-dropdown__item,
html[data-theme="dark"] .ui-pill-btn {
  color: #b7c6d8;
}

html[data-theme="dark"] .ui-pill-btn:hover {
  background: #1b2940;
  border-color: #42628d;
  color: #8fbdff;
}

html[data-theme="dark"] .ui-chip {
  background: #17345f;
  color: #9bc2ff;
}

html[data-theme="dark"] .ui-chip--green {
  background: #133c31;
  color: #7fe0b2;
}

html[data-theme="dark"] .ui-chip--orange {
  background: #483015;
  color: #ffc06c;
}

html[data-theme="dark"] .bg-white {
  background-color: #111a2a !important;
}

html[data-theme="dark"] .bg-light {
  background-color: #182235 !important;
}

html[data-theme="dark"] .text-dark {
  color: #e5e7eb !important;
}

html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .form-text {
  color: #93a4b8 !important;
}

html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-start,
html[data-theme="dark"] .border-end {
  border-color: #334155 !important;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .input-group-text,
html[data-theme="dark"] .form-check-input {
  color: #e5e7eb;
  background-color: #0f172a;
  border-color: #3b4a60;
}

html[data-theme="dark"] .form-control::placeholder {
  color: #708299;
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus,
html[data-theme="dark"] .form-check-input:focus {
  color: #f8fafc;
  background-color: #101b2d;
  border-color: #6ea8fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.18);
}

html[data-theme="dark"] .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

html[data-theme="dark"] .form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

html[data-theme="dark"] .btn-outline-secondary {
  color: #b9c7d8;
  border-color: #55657a;
}

html[data-theme="dark"] .btn-outline-secondary:hover {
  color: #fff;
  background: #405169;
  border-color: #5c6e86;
}

html[data-theme="dark"] .btn-outline-dark {
  color: #d4deea;
  border-color: #6b7c91;
}

html[data-theme="dark"] .btn-outline-light {
  color: #e5e7eb;
  border-color: #5a6b81;
}

html[data-theme="dark"] .table {
  --bs-table-color: #dce6f2;
  --bs-table-bg: transparent;
  --bs-table-border-color: #2f3e53;
  --bs-table-striped-color: #dce6f2;
  --bs-table-striped-bg: rgba(148, 163, 184, 0.055);
  --bs-table-active-color: #fff;
  --bs-table-active-bg: rgba(59, 130, 246, 0.14);
  --bs-table-hover-color: #fff;
  --bs-table-hover-bg: rgba(148, 163, 184, 0.08);
  color: #dce6f2;
}

html[data-theme="dark"] .table-light,
html[data-theme="dark"] thead.table-light {
  --bs-table-bg: #18243a;
  --bs-table-color: #dce6f2;
  --bs-table-border-color: #334155;
}

html[data-theme="dark"] .nav-tabs {
  border-color: #334155;
}

html[data-theme="dark"] .nav-tabs .nav-link {
  color: #9fb0c4;
}

html[data-theme="dark"] .nav-tabs .nav-link:hover,
html[data-theme="dark"] .nav-tabs .nav-link:focus {
  border-color: #334155 #334155 #334155;
  color: #dbeafe;
}

html[data-theme="dark"] .nav-tabs .nav-link.active,
html[data-theme="dark"] .nav-tabs .nav-item.show .nav-link {
  color: #eaf2ff;
  background: #111a2a;
  border-color: #334155 #334155 #111a2a;
}

html[data-theme="dark"] .pagination {
  --bs-pagination-color: #9bc2ff;
  --bs-pagination-bg: #111a2a;
  --bs-pagination-border-color: #334155;
  --bs-pagination-hover-color: #fff;
  --bs-pagination-hover-bg: #1b2940;
  --bs-pagination-hover-border-color: #42628d;
  --bs-pagination-focus-color: #fff;
  --bs-pagination-focus-bg: #1b2940;
  --bs-pagination-disabled-color: #6f8198;
  --bs-pagination-disabled-bg: #0f172a;
  --bs-pagination-disabled-border-color: #29364a;
}

html[data-theme="dark"] .alert-light,
html[data-theme="dark"] .alert-secondary {
  color: #d7e0eb;
  background: #182235;
  border-color: #334155;
}

html[data-theme="dark"] .breadcrumb-item,
html[data-theme="dark"] .breadcrumb-item a {
  color: #9fb0c4;
}

html[data-theme="dark"] .breadcrumb-item.active {
  color: #dce6f2;
}

html[data-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(180%);
}

html[data-theme="dark"] hr {
  color: #52627a;
}

html[data-theme="dark"] code,
html[data-theme="dark"] pre {
  color: #f0a8c8;
}

html[data-theme="dark"] pre {
  background: #0a1020;
  border-color: #2b3a50;
}

html[data-theme="dark"] .notification-matrix__header,
html[data-theme="dark"] .notification-matrix__hint {
  color: #93a4b8;
}

html[data-theme="dark"] .notification-matrix__row {
  border-color: #334155;
  background: #0f172a;
}

html[data-theme="dark"] .notification-matrix__title,
html[data-theme="dark"] .notification-matrix__check label {
  color: #dce6f2;
}

html[data-theme="dark"] .theme-choice__body {
  border-color: #334155;
  background: #0f172a;
}

html[data-theme="dark"] .theme-choice:hover .theme-choice__body {
  border-color: #4c678d;
}

html[data-theme="dark"] .theme-choice > input:checked + .theme-choice__body {
  border-color: #6ea8fe;
  background: #172a47;
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.16);
}

html[data-theme="dark"] .theme-choice__icon {
  color: #8fbdff;
}

html[data-theme="dark"] .theme-choice__text strong {
  color: #eef4fb;
}

html[data-theme="dark"] .theme-choice__text small {
  color: #93a4b8;
}


/* Dark theme refinement: calmer surfaces, stronger text contrast, finance-specific fixes. */

html[data-theme="dark"] {
  --bs-body-color: #e7edf5;
  --bs-body-color-rgb: 231, 237, 245;
  --bs-body-bg: #0f1724;
  --bs-body-bg-rgb: 15, 23, 36;
  --bs-border-color: #34465c;
  --bs-border-color-translucent: rgba(154, 170, 188, 0.26);
  --bs-link-color: #69adff;
  --bs-link-hover-color: #91c4ff;
  --bs-light: #1a2638;
  --bs-light-rgb: 26, 38, 56;
  --bs-secondary-bg: #182436;
  --bs-tertiary-bg: #172233;
  --bs-emphasis-color: #f2f6fb;
  --app-bg-start: #0f1724;
  --app-bg-end: #121c2a;
  --app-header-bg: #141f2e;
  --bottom-nav-bg: rgba(20, 31, 46, 0.96);
  --menu-bg-start: #141f2e;
  --menu-bg-end: #0f1724;
  --menu-item-bg: rgba(27, 40, 59, 0.9);
  --menu-item-hover: rgba(36, 52, 75, 0.98);
}

html[data-theme="dark"] body {
  color: #e7edf5;
  background: linear-gradient(180deg, #0f1724 0%, #111a28 58%, #121c2a 100%);
}

@media (min-width: 992px) {
  html[data-theme="dark"] body:not(.app-embedded) {
    background: #0f1724;
  }
}

html[data-theme="dark"] .app-header {
  background: #141f2e;
  border-color: #2f4055;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22);
}

@media (max-width: 991.98px) {
  html[data-theme="dark"] .app-logo {
    mix-blend-mode: normal;
    filter: brightness(1.22) saturate(1.18);
    opacity: 1;
    background: #101a28;
    border-radius: 0.55rem;
  }
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .card-soft,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .offcanvas,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .list-group-item,
html[data-theme="dark"] .accordion-item,
html[data-theme="dark"] .toast,
html[data-theme="dark"] .popover {
  color: #e7edf5;
  background-color: #151f2e;
  border-color: #304158;
}

html[data-theme="dark"] .card-header,
html[data-theme="dark"] .card-footer,
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer,
html[data-theme="dark"] .accordion-button {
  color: #e7edf5;
  background-color: #151f2e;
  border-color: #304158;
}

html[data-theme="dark"] .bg-white {
  background-color: #151f2e !important;
}

html[data-theme="dark"] .bg-light {
  background-color: #1a2638 !important;
}

html[data-theme="dark"] .text-dark {
  color: #e7edf5 !important;
}

html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .form-text {
  color: #9daec0 !important;
}

html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .border-start,
html[data-theme="dark"] .border-end {
  border-color: #34465c !important;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="dark"] .input-group-text,
html[data-theme="dark"] .form-check-input {
  color: #e7edf5;
  background-color: #111a28;
  border-color: #3a4c63;
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus,
html[data-theme="dark"] .form-check-input:focus {
  color: #f7faff;
  background-color: #141f2e;
  border-color: #5c9eea;
  box-shadow: 0 0 0 0.22rem rgba(92, 158, 234, 0.16);
}

html[data-theme="dark"] .finance-filter-card,
html[data-theme="dark"] .finance-data-card,
html[data-theme="dark"] .finance-secondary-card {
  background-color: #151f2e;
}

html[data-theme="dark"] .finance-kpi-card,
html[data-theme="dark"] .finance-secondary-kpi,
html[data-theme="dark"] .owner-kpi {
  background-color: #182436 !important;
  border-color: #33465d;
}

html[data-theme="dark"] .finance-desktop h1,
html[data-theme="dark"] .finance-desktop h2,
html[data-theme="dark"] .finance-desktop h3,
html[data-theme="dark"] .finance-desktop h4,
html[data-theme="dark"] .finance-desktop h5 {
  color: #e7edf5;
}

html[data-theme="dark"] .finance-desktop .finance-filter-card .form-label,
html[data-theme="dark"] .finance-desktop .finance-secondary-card .form-label {
  color: #a7b5c6;
}

html[data-theme="dark"] .table > thead > tr > th,
html[data-theme="dark"] .finance-desktop .finance-data-card thead th,
html[data-theme="dark"] .finance-desktop .finance-secondary-card thead th {
  color: #b9c6d6 !important;
  background: #1b283a !important;
  border-color: #3a4c62 !important;
}

html[data-theme="dark"] .table > tbody > tr > td {
  color: #dfe7f1;
  border-color: #304158;
}

html[data-theme="dark"] .table > tbody > tr:hover > * {
  background-color: rgba(105, 173, 255, 0.045);
}

html[data-theme="dark"] .alert-warning {
  color: #dbe4ee;
  background-color: #1a2535;
  border-color: #5a4b2d;
}

html[data-theme="dark"] .alert-warning strong {
  color: #e7c56f;
}

html[data-theme="dark"] .alert-info {
  color: #d2e2ef;
  background-color: #172838;
  border-color: #315872;
}

html[data-theme="dark"] .alert-success {
  color: #d7e9e1;
  background-color: #172a25;
  border-color: #356657;
}

html[data-theme="dark"] .alert-danger {
  color: #ecd8df;
  background-color: #2a1b22;
  border-color: #704152;
}

html[data-theme="dark"] .badge.bg-warning,
html[data-theme="dark"] .badge.text-bg-warning {
  color: #dfc678 !important;
  background-color: #2a3442 !important;
  border: 1px solid #46566a;
}

html[data-theme="dark"] .owner-dashboard {
  --owner-navy: #e8eef7;
  --owner-blue: #65adf5;
  --owner-teal: #61c8c2;
  --owner-green: #72c99a;
  --owner-red: #e58691;
  --owner-amber: #d4a85b;
  --owner-muted: #98a9bc;
}

html[data-theme="dark"] .owner-dashboard h1,
html[data-theme="dark"] .owner-dashboard h2 {
  color: var(--owner-navy);
}

html[data-theme="dark"] .owner-scope {
  color: #aab8c8;
  background: #151f2e;
  border-color: #34465c;
}

html[data-theme="dark"] .owner-period-button,
html[data-theme="dark"] .owner-more-periods summary {
  color: #b8c5d4;
  background: #172335;
  border-color: #34465c;
}

html[data-theme="dark"] .owner-period-button:hover,
html[data-theme="dark"] .owner-period-button:focus-visible,
html[data-theme="dark"] .owner-more-periods summary:hover {
  color: #dce8f6;
  background: #1d2b40;
  border-color: #4b6686;
}

html[data-theme="dark"] .owner-period-button.active {
  color: #f6f9fd;
  background: #2f78b8;
  border-color: #4a8dca;
}

html[data-theme="dark"] .owner-preliminary {
  color: #cbd6e3;
  background: #182435;
  border-color: #40536a;
}

html[data-theme="dark"] .owner-preliminary strong {
  color: #e8eef7;
}

html[data-theme="dark"] .owner-preliminary-icon {
  color: #f6f0df;
  background: #80683a;
}

html[data-theme="dark"] .owner-kpi {
  border-top-color: #355b7e;
}

html[data-theme="dark"] .owner-kpi-label,
html[data-theme="dark"] .owner-comparison,
html[data-theme="dark"] .owner-section-help,
html[data-theme="dark"] .owner-freshness,
html[data-theme="dark"] .owner-no-comparison,
html[data-theme="dark"] .owner-signal-detail {
  color: #95a6b9;
}

html[data-theme="dark"] .owner-kpi-value,
html[data-theme="dark"] .owner-comparison strong,
html[data-theme="dark"] .owner-mini-chart-head,
html[data-theme="dark"] .owner-signal-title {
  color: #e3ebf5;
}

html[data-theme="dark"] .owner-badge {
  border: 1px solid #43556b;
  background: #223044;
}

html[data-theme="dark"] .owner-badge.preliminary {
  color: #d9bd70;
  background: #223044;
}

html[data-theme="dark"] .owner-badge.partial {
  color: #b9cde2;
  background: #223044;
}

html[data-theme="dark"] .owner-mini-chart,
html[data-theme="dark"] .owner-empty-chart {
  background: #172335;
  border-color: #34465c;
}

html[data-theme="dark"] .owner-season-tab {
  color: #aebdcd;
  background: #172335;
  border-color: #34465c;
}

html[data-theme="dark"] .owner-season-tab.active {
  color: #f5f8fc;
  background: #294f75;
  border-color: #4778a6;
}

html[data-theme="dark"] .owner-signal {
  border-color: #34465c;
}

html[data-theme="dark"] .owner-signal:hover {
  background: #182436;
  border-color: #4b617c;
}


/* Dark theme: shared multi-select controls. */
html[data-theme="dark"] .multi-select__trigger {
  color: #e7edf5;
  background: #111a28;
  border-color: #3a4c63;
  box-shadow: none;
}

html[data-theme="dark"] .multi-select__trigger:hover {
  background: #162235;
  border-color: #4a607b;
}

html[data-theme="dark"] .multi-select__trigger:focus {
  border-color: #5c9eea;
  box-shadow: 0 0 0 0.22rem rgba(92, 158, 234, 0.16);
}

html[data-theme="dark"] .multi-select--open .multi-select__trigger {
  color: #f2f6fb;
  background: #172436;
  border-color: #54739a;
}

html[data-theme="dark"] .multi-select__caret {
  color: #9daec0;
}

html[data-theme="dark"] .multi-select__dropdown {
  color: #dfe7f1;
  background: #151f2e;
  border-color: #34465c;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .multi-select__option {
  color: #dfe7f1;
}

html[data-theme="dark"] .multi-select__option:hover {
  color: #f4f8fc;
  background: #1b2b40;
}

html[data-theme="dark"] .multi-select__option:has(input:checked) {
  color: #eef5ff;
  background: #1d3555;
}

html[data-theme="dark"] .multi-select__option input[type="checkbox"] {
  accent-color: #5c9eea;
}

html[data-theme="dark"] .multi-select__option--locked {
  color: #b8c6d6;
  opacity: 0.86;
}

html[data-theme="dark"] .multi-select__empty {
  color: #91a2b6;
}


/* Dark theme: expense report readability. */
html[data-theme="dark"] .expense-employee-cell__last,
html[data-theme="dark"] .expense-purpose-cell__main {
  color: #e3ebf5;
}

html[data-theme="dark"] .expense-row-selected > * {
  background: #1d3555 !important;
}

html[data-theme="dark"] .expense-report-table tbody tr:hover > * {
  color: #f3f7fb;
  background: #192739;
}


/* Full dark-theme audit: shared residual components. */
html[data-theme="dark"] .img-thumbnail {
  background-color: #151f2e;
  border-color: #34465c;
}

html[data-theme="dark"] .hover-shadow:hover {
  background: #182436;
}

html[data-theme="dark"] .table tbody tr[data-row-href]:hover > *,
html[data-theme="dark"] .table tbody tr.clickable-row:hover > * {
  color: #f3f7fb;
  background-color: #192739;
}

html[data-theme="dark"] .task-history {
  color: #dfe7f1;
  background: #151f2e;
  border-color: #304158;
}

html[data-theme="dark"] .task-history__summary {
  color: #e3ebf5;
}

html[data-theme="dark"] .photo-picker__thumb {
  background: #182436;
  border-color: #34465c;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .photo-picker__file {
  color: #9daec0;
}

html[data-theme="dark"] .photo-picker-sheet__panel {
  background: rgba(21, 31, 46, 0.97);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .photo-picker-sheet__handle {
  background: #46586f;
}

html[data-theme="dark"] .photo-picker-sheet__action {
  color: #e7edf5;
  background: #182436;
}

html[data-theme="dark"] .photo-picker-sheet__action--primary {
  color: #a8ceff;
  background: #1d3555;
}

html[data-theme="dark"] .photo-picker-sheet__close {
  color: #9daec0;
}

html[data-theme="dark"] .plan-badge--company_paid {
  color: #b7d7ff;
  background: #1d3555;
}

html[data-theme="dark"] .plan-badge--company_expired {
  color: #efa3ad;
  background: #321f27;
}

html[data-theme="dark"] .admin-desktop .admin-card thead th {
  color: #b9c6d6;
  background: #1b283a;
  border-color: #3a4c62;
}

html[data-theme="dark"] .admin-desktop .admin-form .form-label {
  color: #a7b5c6;
}

html[data-theme="dark"] .desktop-sidebar__brand-mark {
  background: #111a28;
  border: 1px solid #304158;
}
