/* =============================================================
   GOFSCO Appearance switch
   Dark (original) theme is default and untouched.
   Every light override is scoped to html[data-theme="light"] and screen only.
   ============================================================= */

/* ---------- Toggle button (both themes) ---------- */
.gofsco-appearance-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  flex: 0 0 auto;
  min-height: 38px;
  min-width: 38px;
  padding: .35rem .75rem;
  border: 1.5px solid rgba(255, 193, 7, .55);
  border-radius: 999px;
  background: rgba(255, 193, 7, .08);
  color: #FFC107;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .12s;
}
.gofsco-appearance-toggle:hover { background: #FFC107; color: #111; border-color: #FFC107; }
.gofsco-appearance-toggle:active { transform: scale(.97); }
.gofsco-appearance-toggle:focus-visible { outline: 3px solid #FFC107; outline-offset: 2px; }
.gofsco-email-toggle-form { display: inline-flex; margin: 0; }
.gofsco-email-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 2.25rem; padding: .4rem .8rem; border: 1px solid rgba(255, 204, 0, .55);
  border-radius: 999px; background: rgba(255, 204, 0, .08); color: #FFD54F;
  font: inherit; font-size: .82rem; font-weight: 700; line-height: 1; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.gofsco-email-toggle:hover { background: #FFC107; color: #111; border-color: #FFC107; }
.gofsco-email-toggle:active { transform: scale(.97); }
.gofsco-email-toggle:focus-visible { outline: 3px solid #FFC107; outline-offset: 2px; }
.gofsco-email-toggle[aria-pressed="false"] { color: #ff8a80; border-color: rgba(255, 138, 128, .55); background: rgba(255, 82, 82, .08); }
.gofsco-email-toggle[aria-pressed="false"]:hover { background: #ff8a80; color: #111; border-color: #ff8a80; }
.gofsco-appearance-toggle__icon { width: 1.15em; height: 1.15em; flex: none; }
.gofsco-appearance-toggle__icon--moon { display: none; }
html[data-theme="light"] .gofsco-appearance-toggle__icon--sun { display: none; }
html[data-theme="light"] .gofsco-appearance-toggle__icon--moon { display: inline-block; }

/* Keep login language and appearance controls together in the top corner. */
.gofsco-login .login-top-controls {
  position: fixed;
  top: 18px;
  left: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
}
.gofsco-login .login-top-controls .gofsco-appearance-toggle {
  position: static;
  min-height: 40px;
  padding-inline: 16px;
  background: rgba(20, 20, 20, .85);
  backdrop-filter: blur(8px);
}

@media (max-width: 767.98px) {
  .gofsco-topbar__controls .gofsco-appearance-toggle {
    min-height: 34px; min-width: 34px; padding: .3rem .5rem; font-size: .68rem;
  }
  .gofsco-topbar__controls .gofsco-email-toggle { padding: .4rem .65rem; }
}
@media (max-width: 480px) {
  .gofsco-topbar__controls .gofsco-appearance-toggle__text { display: none; }
  .gofsco-topbar__controls .gofsco-email-toggle span { display: none; }
  .gofsco-login .login-top-controls {
    top: calc(10px + env(safe-area-inset-top));
    left: 12px;
    gap: 6px;
  }
  .gofsco-login .login-top-controls .gofsco-appearance-toggle { padding: 7px 13px; }
  .gofsco-login .login-top-controls .gofsco-appearance-toggle__text { display: none; }
}

@media print { .gofsco-appearance-toggle { display: none !important; } }
@media screen { html[data-theme="dark"] { color-scheme: dark; } }

/* =============================================================
   LIGHT THEME (screen only)
   ============================================================= */
@media screen {
html[data-theme="light"] {
  --g-gold:      #B58100;           /* deepened gold for text contrast on cream */
  --g-gold-dark: #8F6500;
  --g-gold-dim:  rgba(255, 193, 7, .18);
  --g-dark:      #F6F1E4;
  --g-dark2:     #EFE7D2;
  --g-card:      #FFFCF4;
  --g-text:      #2A2620;
  --g-muted:     #6B6355;
  --g-border:    rgba(181, 129, 0, .32);
  --g-input-bg:  #FFFFFB;
  --g-input-bdr: #CFC4A8;
  --gl-surface:  #FFFCF4;
  --gl-surface2: #F8F1DF;
  --gl-line:     #E2D7BC;
  --gl-ink:      #1F1B15;
  --gl-brand:    #FFC107;           /* fill gold, used under dark text */
  color-scheme: light;
}

html[data-theme="light"] body {
  background-color: var(--g-page) !important;
  background-image: none !important;
  color: var(--g-text);
}
html[data-theme="light"] h1, html[data-theme="light"] h2, html[data-theme="light"] h3,
html[data-theme="light"] h4, html[data-theme="light"] h5, html[data-theme="light"] h6 { color: var(--gl-ink); }

html[data-theme="light"] a:not(.btn):not(.nav-link):not(.gofsco-topbar__account-action):not(.dashboard-link) { color: #8A5F00; }
html[data-theme="light"] :focus-visible { outline-color: #8A5F00; }

/* ---------- Top navigation ---------- */
html[data-theme="light"] .navbar.bg-primary,
html[data-theme="light"] .bg-primary:not(.badge) {
  background-color: rgba(255, 252, 244, .97) !important;
  border-bottom: 3px solid var(--gl-brand) !important;
  box-shadow: 0 2px 14px rgba(90, 70, 20, .10) !important;
}
html[data-theme="light"] .navbar-dark .navbar-brand,
html[data-theme="light"] .navbar-dark .nav-link,
html[data-theme="light"] .navbar-dark .navbar-text { color: #6E4E00 !important; }
html[data-theme="light"] .navbar-dark .nav-link:hover { color: var(--gl-ink) !important; }
html[data-theme="light"] .gofsco-topbar__brand { color: #6E4E00 !important; border-inline-end-color: var(--gl-line); }
html[data-theme="light"] .gofsco-topbar__logo-frame { background: #1F1B15; border-color: rgba(181, 129, 0, .5); }
html[data-theme="light"] .gofsco-topbar__account-actions,
html[data-theme="light"] .gofsco-topbar__controls { border-color: var(--gl-line) !important; }
html[data-theme="light"] .gofsco-topbar__account-action { color: #6E4E00 !important; }
html[data-theme="light"] .gofsco-topbar__logout-action { color: var(--gl-ink) !important; }
html[data-theme="light"] .gofsco-topbar__account-action:hover,
html[data-theme="light"] .gofsco-topbar__account-action:focus-visible { background: var(--gl-brand); color: #111 !important; }
html[data-theme="light"] .gofsco-user-summary { color: var(--gl-ink); }
html[data-theme="light"] .gofsco-user-summary strong { color: #6E4E00; }
html[data-theme="light"] .gofsco-user-summary span { color: var(--g-muted); }
html[data-theme="light"] .navbar-toggler { border-color: rgba(110, 78, 0, .4); }
html[data-theme="light"] .navbar-toggler-icon {
  filter: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236E4E00' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
html[data-theme="light"] .gofsco-appearance-toggle { color: #6E4E00; border-color: rgba(181, 129, 0, .6); background: #FFF6D6; }
html[data-theme="light"] .gofsco-appearance-toggle:hover { background: #2A2620; color: #FFC107; border-color: #2A2620; }
html[data-theme="light"] .gofsco-appearance-toggle:focus-visible { outline-color: #8A5F00; }
html[data-theme="light"] .gofsco-email-toggle { color: #6E4E00; border-color: rgba(181, 129, 0, .6); background: #FFF6D6; }
html[data-theme="light"] .gofsco-email-toggle:hover { background: #2A2620; color: #FFC107; border-color: #2A2620; }
html[data-theme="light"] .gofsco-email-toggle[aria-pressed="false"] { color: #9d2727; border-color: rgba(157, 39, 39, .4); background: #fff0ed; }
html[data-theme="light"] .gofsco-email-toggle[aria-pressed="false"]:hover { background: #9d2727; color: #fff; border-color: #9d2727; }

/* ---------- Sidebar ---------- */
html[data-theme="light"] .flex-shrink-0.p-3.bg-light,
html[data-theme="light"] .flex-shrink-0.bg-light,
html[data-theme="light"] .gofsco-sidebar {
  background-color: #FBF7EC !important;
  border-inline-end-color: var(--gl-brand) !important;
}
html[data-theme="light"] .link-dark { color: var(--g-text) !important; }
html[data-theme="light"] .link-dark:hover,
html[data-theme="light"] .fs-5.fw-semibold { color: #6E4E00 !important; }
html[data-theme="light"] .btn-toggle,
html[data-theme="light"] .btn-toggle-nav a,
html[data-theme="light"] .sidebar .nav-link { color: var(--g-text) !important; }
html[data-theme="light"] .btn-toggle:hover, html[data-theme="light"] .btn-toggle:focus,
html[data-theme="light"] .btn-toggle-nav a:hover, html[data-theme="light"] .btn-toggle-nav a:focus,
html[data-theme="light"] .sidebar .nav-link.active {
  color: #5C4100 !important;
  background-color: rgba(255, 193, 7, .24) !important;
}
html[data-theme="light"] .btn-toggle::before { filter: brightness(.35); }

/* ---------- Main content ---------- */
html[data-theme="light"] main.col-md-9,
html[data-theme="light"] main.col-lg-10,
html[data-theme="light"] .gofsco-main {
  background-color: rgba(255, 252, 244, .72);
  backdrop-filter: none;
}
html[data-theme="light"] footer.footer { color: var(--g-muted) !important; }

/* ---------- Cards / counters ---------- */
html[data-theme="light"] .card {
  background-color: var(--gl-surface) !important;
  border-color: var(--gl-line) !important;
  color: var(--g-text) !important;
  box-shadow: 0 1px 2px rgba(80, 60, 20, .06), 0 6px 18px rgba(80, 60, 20, .06);
}
html[data-theme="light"] .card-header { background-color: #FFF3CC !important; color: #5C4100 !important; border-bottom-color: var(--gl-line) !important; }
html[data-theme="light"] .card-body, html[data-theme="light"] .card-footer { color: var(--g-text) !important; }
html[data-theme="light"] .card-footer { background: var(--gl-surface2) !important; border-top-color: var(--gl-line) !important; }

html[data-theme="light"] .counter-box {
  background: var(--gl-surface) !important;
  border-color: var(--gl-line) !important;
  color: var(--g-text) !important;
  box-shadow: 0 1px 2px rgba(80, 60, 20, .07), 0 8px 22px rgba(80, 60, 20, .07) !important;
}
html[data-theme="light"] .counter-box p { color: #4A4336 !important; }
html[data-theme="light"] .counter-box .counter { color: var(--gl-ink) !important; }




html[data-theme="light"] .counter-box:hover { border-color: var(--gl-brand) !important; }

/* Table colours (both themes) are owned by gofsco-theme.css. */

/* DataTables controls + scrollbars */
html[data-theme="light"] .dataTables_wrapper,
html[data-theme="light"] div.dt-container { color: var(--g-text); }
html[data-theme="light"] .dataTables_wrapper .dataTables_info,
html[data-theme="light"] div.dt-container .dt-info,
html[data-theme="light"] .dataTables_wrapper label,
html[data-theme="light"] div.dt-container label { color: var(--g-muted) !important; }
html[data-theme="light"] .dataTables_wrapper .dataTables_paginate .paginate_button,
html[data-theme="light"] div.dt-container .dt-paging .dt-paging-button { color: var(--g-text) !important; }
html[data-theme="light"] .dataTables_wrapper .dataTables_paginate .paginate_button.current,
html[data-theme="light"] div.dt-container .dt-paging .dt-paging-button.current {
  background: var(--gl-brand) !important; border-color: #D9A300 !important; color: #111 !important;
}
html[data-theme="light"] .table-responsive,
html[data-theme="light"] div.dt-container .dt-layout-table,
html[data-theme="light"] div.dt-container .dt-scroll,
html[data-theme="light"] .dataTables_wrapper .dataTables_scroll,
html[data-theme="light"] #DTSRequestsTable_wrapper { scrollbar-color: #D9A300 #EAE1CB; }
html[data-theme="light"] .table-responsive::-webkit-scrollbar-track,
html[data-theme="light"] div.dt-container .dt-layout-table::-webkit-scrollbar-track,
html[data-theme="light"] div.dt-container .dt-scroll::-webkit-scrollbar-track,
html[data-theme="light"] .dataTables_wrapper .dataTables_scroll::-webkit-scrollbar-track,
html[data-theme="light"] #DTSRequestsTable_wrapper::-webkit-scrollbar-track { background: #EAE1CB; }
html[data-theme="light"] .table-responsive::-webkit-scrollbar-thumb,
html[data-theme="light"] div.dt-container .dt-layout-table::-webkit-scrollbar-thumb,
html[data-theme="light"] div.dt-container .dt-scroll::-webkit-scrollbar-thumb,
html[data-theme="light"] .dataTables_wrapper .dataTables_scroll::-webkit-scrollbar-thumb,
html[data-theme="light"] #DTSRequestsTable_wrapper::-webkit-scrollbar-thumb { background: #D9A300; border-color: #EAE1CB; }
html[data-theme="light"] .request-table-scroll-control { background: var(--gl-surface); color: var(--g-text); border-color: rgba(181, 129, 0, .45); }
html[data-theme="light"] .request-table-scroll-label { color: var(--g-text); }

/* ---------- Forms ---------- */
html[data-theme="light"] .form-control,
html[data-theme="light"] .form-select,
html[data-theme="light"] select,
html[data-theme="light"] select.form-control,
html[data-theme="light"] select.form-select,
html[data-theme="light"] .filter-dropdown,
html[data-theme="light"] textarea,
html[data-theme="light"] input[type="text"], html[data-theme="light"] input[type="search"],
html[data-theme="light"] input[type="email"], html[data-theme="light"] input[type="password"],
html[data-theme="light"] input[type="number"], html[data-theme="light"] input[type="date"],
html[data-theme="light"] input[type="tel"], html[data-theme="light"] input[type="datetime-local"] {
  color-scheme: light;
  background-color: #FFFFFB !important;
  border-color: #CFC4A8 !important;
  color: var(--gl-ink) !important;
}
html[data-theme="light"] select option,
html[data-theme="light"] select optgroup { background-color: #FFFFFB !important; color: var(--gl-ink) !important; }
html[data-theme="light"] select option:checked { background-color: var(--gl-brand) !important; color: #111 !important; }
html[data-theme="light"] select:disabled, html[data-theme="light"] select option:disabled { color: #8A8170 !important; }
html[data-theme="light"] .form-control:disabled, html[data-theme="light"] .form-control[readonly],
html[data-theme="light"] .form-select:disabled { background-color: #F1EADA !important; color: #5E5646 !important; }
html[data-theme="light"] .form-control:focus,
html[data-theme="light"] .form-select:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus {
  background-color: #FFFFFF !important;
  border-color: #D9A300 !important;
  color: var(--gl-ink) !important;
  box-shadow: 0 0 0 .2rem rgba(217, 163, 0, .3) !important;
}
html[data-theme="light"] .form-control::placeholder,
html[data-theme="light"] textarea::placeholder,
html[data-theme="light"] input::placeholder { color: #756B59 !important; }
html[data-theme="light"] .form-label,
html[data-theme="light"] label { color: var(--g-text) !important; }
html[data-theme="light"] .form-floating label { color: var(--g-muted) !important; }
html[data-theme="light"] .form-text { color: var(--g-muted) !important; }
html[data-theme="light"] .form-check-input { background-color: #FFFFFB; border-color: #A89B7C; }
html[data-theme="light"] .form-check-input:checked { background-color: #D9A300; border-color: #B58100; }
html[data-theme="light"] .input-group-text { background: #F3E6BE; border-color: #CFC4A8; color: #4A3500; }

/* Custom searchable select + search suggestions */
html[data-theme="light"] .gofsco-searchable-menu,
html[data-theme="light"] .gofsco-search-suggestions {
  background: var(--gl-surface); border-color: #D9A300; box-shadow: 0 12px 28px rgba(80, 60, 20, .16);
}
html[data-theme="light"] .gofsco-searchable-option,
html[data-theme="light"] .gofsco-search-suggestion { color: var(--gl-ink); border-bottom-color: var(--gl-line); }
html[data-theme="light"] .gofsco-searchable-option:hover,
html[data-theme="light"] .gofsco-searchable-option:focus,
html[data-theme="light"] .gofsco-search-suggestion:hover,
html[data-theme="light"] .gofsco-search-suggestion:focus { background: var(--gl-brand) !important; color: #111 !important; }
html[data-theme="light"] .gofsco-searchable-option[aria-selected=true] { background: rgba(255, 193, 7, .28); }
html[data-theme="light"] .gofsco-searchable-empty,
html[data-theme="light"] .gofsco-search-suggestion.is-empty { color: var(--g-muted); }
html[data-theme="light"] .hr-lookup-toggle { color: #8A5F00; }

/* Select2 */
html[data-theme="light"] .select2-container--default .select2-selection--single,
html[data-theme="light"] .select2-container--default .select2-selection--multiple,
html[data-theme="light"] .select2-container .select2-selection {
  background-color: #FFFFFB !important; border-color: #CFC4A8 !important; color: var(--gl-ink) !important;
}
html[data-theme="light"] .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--gl-ink) !important; }
html[data-theme="light"] .select2-container--default .select2-selection__placeholder { color: #8A8170 !important; }
html[data-theme="light"] .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: #FFF3CC !important; border-color: #DCCB98 !important; color: #4A3500 !important;
}
html[data-theme="light"] .select2-dropdown {
  background-color: var(--gl-surface) !important; border-color: #D9A300 !important; color: var(--gl-ink) !important;
}
html[data-theme="light"] .select2-search--dropdown .select2-search__field {
  background: #FFFFFB !important; border-color: #CFC4A8 !important; color: var(--gl-ink) !important;
}
html[data-theme="light"] .select2-results__option { color: var(--gl-ink) !important; background: transparent; }
html[data-theme="light"] .select2-container--default .select2-results__option--highlighted,
html[data-theme="light"] .select2-container--default .select2-results__option--highlighted[aria-selected],
html[data-theme="light"] .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: var(--gl-brand) !important; color: #111 !important;
}
html[data-theme="light"] .select2-container--default .select2-results__option[aria-selected=true],
html[data-theme="light"] .select2-container--default .select2-results__option--selected { background-color: rgba(255, 193, 7, .25) !important; }

/* ---------- Buttons ---------- */
html[data-theme="light"] .btn-primary { background-color: var(--gl-brand) !important; border-color: #D9A300 !important; color: #111 !important; }
html[data-theme="light"] .btn-primary:hover,
html[data-theme="light"] .btn-primary:focus { background-color: #E6AC00 !important; color: #111 !important; }
html[data-theme="light"] .btn-secondary { background-color: #ECE3CE !important; border-color: #CFC4A8 !important; color: var(--gl-ink) !important; }
html[data-theme="light"] .btn-outline-secondary { border-color: #A89B7C !important; color: var(--g-text) !important; }
html[data-theme="light"] .btn-outline-secondary:hover { background: #ECE3CE !important; }
html[data-theme="light"] .btn-outline-light { border-color: #A89B7C !important; color: var(--g-text) !important; }
html[data-theme="light"] .btn-outline-warning { color: #8A5F00 !important; border-color: #D9A300 !important; }
html[data-theme="light"] .btn-outline-warning:hover { background: var(--gl-brand) !important; color: #111 !important; }
html[data-theme="light"] .btn-dark { background: #2A2620 !important; color: #FFF6D6 !important; }
html[data-theme="light"] .btn-report-exit { border-color: #A89B7C !important; color: var(--g-text) !important; }
html[data-theme="light"] .btn-report-exit:hover,
html[data-theme="light"] .btn-report-exit:focus { color: #A3202F !important; }
html[data-theme="light"] .btn-report-save { background: #FFFFFB !important; }
html[data-theme="light"] .btn-close { filter: none; }

/* ---------- Text utilities ---------- */
html[data-theme="light"] .text-primary { color: #8A5F00 !important; }
html[data-theme="light"] .text-muted,
html[data-theme="light"] .text-secondary { color: var(--g-muted) !important; }
html[data-theme="light"] .text-white:not(.badge):not(.btn):not(.bg-success):not(.bg-danger):not(.bg-primary):not(.bg-dark):not(.bg-info):not(.bg-secondary) { color: var(--gl-ink) !important; }
html[data-theme="light"] .text-light:not(.badge):not(.btn) { color: var(--g-text) !important; }
html[data-theme="light"] .text-warning:not(.badge) { color: #8A5F00 !important; }
html[data-theme="light"] .text-info:not(.badge) { color: #0B6E78 !important; }
html[data-theme="light"] .text-success:not(.badge) { color: #15703F !important; }
html[data-theme="light"] .text-danger:not(.badge) { color: #A3202F !important; }
html[data-theme="light"] .bg-dark:not(.badge) { background-color: var(--gl-surface2) !important; color: var(--gl-ink) !important; }
html[data-theme="light"] .bg-black { background-color: var(--gl-surface2) !important; }
html[data-theme="light"] .border-bottom, html[data-theme="light"] .border-top,
html[data-theme="light"] .border { border-color: var(--gl-line) !important; }
html[data-theme="light"] hr { border-color: var(--gl-line); opacity: 1; }
html[data-theme="light"] .badge.bg-primary { background-color: var(--gl-brand) !important; color: #111 !important; }
html[data-theme="light"] .badge.bg-warning { color: #111 !important; }
html[data-theme="light"] .badge.bg-light { background: #ECE3CE !important; color: var(--gl-ink) !important; }

/* Alerts */
html[data-theme="light"] .alert-info { background: #E3F2F3; border-color: #A9D3D7; color: #0B4A50; }
html[data-theme="light"] .alert-warning { background: #FFF3CC; border-color: #E8CF7A; color: #5C4100; }
html[data-theme="light"] .alert-danger { background: #FBE3E4; border-color: #EBB2B6; color: #7A1822; }
html[data-theme="light"] .alert-success { background: #E2F2E7; border-color: #A9D6B6; color: #154F2C; }
html[data-theme="light"] .alert-dark, html[data-theme="light"] .alert-secondary { background: #EFE7D2; border-color: #DCCB98; color: var(--gl-ink); }

/* ---------- Dropdowns / popovers / tooltips / modals / offcanvas ---------- */
html[data-theme="light"] .dropdown-menu {
  --bs-dropdown-bg: var(--gl-surface);
  --bs-dropdown-color: var(--gl-ink);
  --bs-dropdown-link-color: var(--gl-ink);
  --bs-dropdown-link-hover-bg: rgba(255, 193, 7, .22);
  --bs-dropdown-link-hover-color: var(--gl-ink);
  --bs-dropdown-border-color: var(--gl-line);
  --bs-dropdown-divider-bg: var(--gl-line);
  background-color: var(--gl-surface) !important;
  border-color: var(--gl-line) !important;
  color: var(--gl-ink) !important;
  box-shadow: 0 12px 30px rgba(80, 60, 20, .16);
}
html[data-theme="light"] .dropdown-menu .dropdown-item,
html[data-theme="light"] .dropdown-menu .dropdown-header,
html[data-theme="light"] .dropdown-menu .list-group-item { color: var(--gl-ink) !important; }
html[data-theme="light"] .dropdown-menu .dropdown-item:hover,
html[data-theme="light"] .dropdown-menu .dropdown-item:focus { background-color: rgba(255, 193, 7, .22) !important; }
html[data-theme="light"] .dropdown-menu .text-muted,
html[data-theme="light"] .dropdown-menu small { color: var(--g-muted) !important; }
html[data-theme="light"] .dropdown-menu-dark { background-color: var(--gl-surface) !important; }

html[data-theme="light"] .list-group-item {
  background-color: var(--gl-surface); border-color: var(--gl-line); color: var(--gl-ink);
}
html[data-theme="light"] .list-group-item-action:hover { background-color: rgba(255, 193, 7, .16); }
html[data-theme="light"] .list-group-item.active { background: var(--gl-brand); border-color: #D9A300; color: #111; }

html[data-theme="light"] .popover {
  --bs-popover-bg: var(--gl-surface);
  --bs-popover-border-color: #DCCB98;
  --bs-popover-header-bg: #FFF3CC;
  --bs-popover-header-color: #4A3500;
  --bs-popover-body-color: var(--gl-ink);
  background-color: var(--gl-surface) !important; color: var(--gl-ink) !important;
}
html[data-theme="light"] .popover-header { background: #FFF3CC !important; color: #4A3500 !important; }
html[data-theme="light"] .popover-body { color: var(--gl-ink) !important; }
html[data-theme="light"] .tooltip { --bs-tooltip-bg: #2A2620; --bs-tooltip-color: #FFF6D6; }

html[data-theme="light"] .modal-content {
  --bs-modal-bg: var(--gl-surface);
  --bs-modal-color: var(--gl-ink);
  background-color: var(--gl-surface) !important;
  color: var(--gl-ink) !important;
  border-color: var(--gl-line) !important;
}
html[data-theme="light"] .modal-header { background: #FFF3CC !important; border-bottom-color: var(--gl-line) !important; color: #4A3500 !important; }
html[data-theme="light"] .modal-title { color: #4A3500 !important; }
html[data-theme="light"] .modal-footer { background: var(--gl-surface2) !important; border-top-color: var(--gl-line) !important; }
html[data-theme="light"] .modal-body { color: var(--gl-ink) !important; }
html[data-theme="light"] .modal-backdrop.show { opacity: .4; }
html[data-theme="light"] .btn-close-white { filter: none; }
html[data-theme="light"] .offcanvas { background: var(--gl-surface); color: var(--gl-ink); }

html[data-theme="light"] .nav-tabs { border-bottom-color: var(--gl-line); }
html[data-theme="light"] .nav-tabs .nav-link { color: var(--g-text) !important; }
html[data-theme="light"] .nav-tabs .nav-link.active { background: var(--gl-surface); border-color: var(--gl-line) var(--gl-line) var(--gl-surface); color: #5C4100 !important; }
html[data-theme="light"] .nav-pills .nav-link.active { background: var(--gl-brand); color: #111 !important; }
html[data-theme="light"] .pagination { --bs-pagination-bg: var(--gl-surface); --bs-pagination-color: #5C4100; --bs-pagination-border-color: var(--gl-line); --bs-pagination-active-bg: var(--gl-brand); --bs-pagination-active-color: #111; --bs-pagination-active-border-color: #D9A300; }
html[data-theme="light"] .accordion { --bs-accordion-bg: var(--gl-surface); --bs-accordion-color: var(--gl-ink); --bs-accordion-btn-color: var(--gl-ink); --bs-accordion-active-bg: #FFF3CC; --bs-accordion-active-color: #4A3500; --bs-accordion-border-color: var(--gl-line); }
html[data-theme="light"] .progress { background-color: #ECE3CE; }

/* ---------- HR / purchase / operations components ---------- */
html[data-theme="light"] .hr-self-note { background: #FFF6D6 !important; color: var(--gl-ink) !important; }
html[data-theme="light"] .hr-tile { background: var(--gl-surface) !important; border-color: #CFC4A8 !important; color: var(--gl-ink) !important; }
html[data-theme="light"] .hr-tile:hover { border-color: #D9A300 !important; }
html[data-theme="light"] .hr-confirm { background: var(--gl-surface) !important; color: var(--gl-ink) !important; border-color: #CFC4A8 !important; }
html[data-theme="light"] .hr-cancel { border-color: #A89B7C !important; color: var(--gl-ink) !important; }
html[data-theme="light"] .hr-back { border-color: #B58100 !important; color: #6E4E00 !important; }
html[data-theme="light"] .hr-wrap, html[data-theme="light"] .hr-form,
html[data-theme="light"] .hr-head, html[data-theme="light"] .hr-kpi { color: var(--gl-ink); }
html[data-theme="light"] .hr-kpi, html[data-theme="light"] .hr-person { background: var(--gl-surface) !important; border-color: var(--gl-line) !important; }
html[data-theme="light"] .hr-req-hint, html[data-theme="light"] .hr-req-count { color: var(--g-muted) !important; }
html[data-theme="light"] .ops-root, html[data-theme="light"] .ops-report { color: var(--gl-ink); }
html[data-theme="light"] .ops-card { box-shadow: 0 6px 18px rgba(80, 60, 20, .06); }
html[data-theme="light"] .ops-empty { color: var(--g-text); }

/* ---------- Notifications ---------- */
html[data-theme="light"] .gofsco-topbar__notification .nav-link { color: #6E4E00 !important; }
html[data-theme="light"] .gofsco-topbar__notification .nav-link:hover,
html[data-theme="light"] .gofsco-topbar__notification .nav-link:focus-visible { background: rgba(255, 193, 7, .22); }
html[data-theme="light"] .gofsco-push-prompt__card { background: var(--gl-surface) !important; color: var(--gl-ink) !important; border-color: #D9A300 !important; }

/* ---------- AI assistant chat widget (gf-) ---------- */
html[data-theme="light"] #gf-panel { background: var(--gl-surface) !important; color: var(--gl-ink) !important; border-color: #D9A300 !important; box-shadow: 0 18px 44px rgba(80, 60, 20, .22) !important; }
html[data-theme="light"] #gf-messages { background: #F8F1DF !important; }
html[data-theme="light"] #gf-panel .gf-bubble { background: #FFFFFB !important; color: var(--gl-ink) !important; border-color: var(--gl-line) !important; }
html[data-theme="light"] #gf-panel .gf-footer, html[data-theme="light"] #gf-quick { background: var(--gl-surface) !important; border-color: var(--gl-line) !important; }
html[data-theme="light"] #gf-input { background: #FFFFFB !important; color: var(--gl-ink) !important; border-color: #CFC4A8 !important; }
html[data-theme="light"] #gf-panel .gf-qbtn, html[data-theme="light"] #gf-panel .gf-chip { background: #FFF6D6 !important; color: #4A3500 !important; border-color: #DCCB98 !important; }
html[data-theme="light"] #gf-panel .gf-qbtn:hover, html[data-theme="light"] #gf-panel .gf-chip:hover { background: var(--gl-brand) !important; color: #111 !important; }
html[data-theme="light"] #gf-panel .gf-sub, html[data-theme="light"] #gf-panel .gf-guide-intro,
html[data-theme="light"] #gf-panel .gf-guide-section-text, html[data-theme="light"] #gf-panel .gf-recovery-intro { color: var(--g-muted) !important; }
html[data-theme="light"] #gf-panel .gf-guide-title, html[data-theme="light"] #gf-panel .gf-guide-section-title,
html[data-theme="light"] #gf-panel .gf-welcome-name { color: var(--gl-ink) !important; }
html[data-theme="light"] #gf-panel .gf-guide-section { background: #FFFFFB !important; border-color: var(--gl-line) !important; }
html[data-theme="light"] #gf-panel .gf-guide-link { color: #8A5F00 !important; }
html[data-theme="light"] #gf-panel .gf-recovery-error { color: #A3202F !important; }

/* ---------- Support live chat widget (sc-) ---------- */
html[data-theme="light"] .sc-dialog, html[data-theme="light"] #support-chat-modal .modal-content { background: var(--gl-surface) !important; color: var(--gl-ink) !important; border-color: #D9A300 !important; }
html[data-theme="light"] .sc-head { background: #FFF3CC !important; color: #4A3500 !important; }
html[data-theme="light"] .sc-thread { background: #F8F1DF !important; }
html[data-theme="light"] .sc-message { background: #FFFFFB !important; color: var(--gl-ink) !important; border-color: var(--gl-line) !important; }
html[data-theme="light"] .sc-composer, html[data-theme="light"] .sc-form { background: var(--gl-surface) !important; border-color: var(--gl-line) !important; }
html[data-theme="light"] .sc-intro, html[data-theme="light"] .sc-empty { color: var(--g-muted) !important; }
html[data-theme="light"] .sc-error { color: #A3202F !important; }
html[data-theme="light"] .sc-chat-toast { background: var(--gl-surface) !important; color: var(--gl-ink) !important; border-color: #D9A300 !important; }
html[data-theme="light"] .sc-message-preview { color: var(--g-text) !important; }

/* ---------- Install guidance popup (ig-) ---------- */
html[data-theme="light"] .ig-dialog { background: var(--gl-surface) !important; color: var(--gl-ink) !important; border-color: #D9A300 !important; }
html[data-theme="light"] .ig-header, html[data-theme="light"] .ig-footer { background: #FFF3CC !important; border-color: var(--gl-line) !important; }
html[data-theme="light"] .ig-title, html[data-theme="light"] .ig-panel-title { color: var(--gl-ink) !important; }
html[data-theme="light"] .ig-body, html[data-theme="light"] .ig-step, html[data-theme="light"] .ig-summary { color: var(--g-text) !important; }
html[data-theme="light"] .ig-note, html[data-theme="light"] .ig-eyebrow { color: var(--g-muted) !important; }
html[data-theme="light"] .ig-tab { background: #FFFFFB !important; color: var(--gl-ink) !important; border-color: var(--gl-line) !important; }
html[data-theme="light"] .ig-tab[aria-selected="true"] { background: var(--gl-brand) !important; color: #111 !important; }

/* ---------- Login ---------- */
html[data-theme="light"] .gofsco-login,
html[data-theme="light"] body.gofsco-login { color: var(--gl-ink); }
html[data-theme="light"] .gofsco-login .bg-layer {
  background: radial-gradient(900px 520px at 12% 0%, rgba(255, 193, 7, .22), transparent 62%),
              linear-gradient(180deg, #FAF6EC 0%, #F1E9D5 100%);
}
html[data-theme="light"] .gofsco-login .bg-layer picture { display: none; }
html[data-theme="light"] .gofsco-login .login-logo { filter: drop-shadow(0 4px 12px rgba(80, 60, 20, .22)); }
html[data-theme="light"] .gofsco-login .app-title { color: var(--gl-ink); }
html[data-theme="light"] .gofsco-login .app-title .gold { color: #B58100; }
html[data-theme="light"] .gofsco-login .app-subtitle,
html[data-theme="light"] .gofsco-login .welcome-sub { color: #6B6355; }
html[data-theme="light"] .gofsco-login .login-card {
  background: rgba(255, 252, 244, .96);
  border-color: rgba(181, 129, 0, .35);
  box-shadow: 0 1px 2px rgba(80, 60, 20, .08), 0 24px 60px rgba(80, 60, 20, .16);
}
html[data-theme="light"] .gofsco-login .welcome-heading { color: #8A5F00; }
html[data-theme="light"] .gofsco-login .input-wrap input { background: #FFFFFB !important; border-color: #CFC4A8 !important; color: var(--gl-ink) !important; }
html[data-theme="light"] .gofsco-login .input-wrap input:focus { border-color: #D9A300 !important; box-shadow: 0 0 0 3px rgba(217, 163, 0, .25) !important; }
html[data-theme="light"] .gofsco-login .input-wrap input::placeholder { color: #8A8170 !important; }
html[data-theme="light"] .gofsco-login .input-wrap .icon-start,
html[data-theme="light"] .gofsco-login .input-wrap .icon-end { color: #7A705E; }
html[data-theme="light"] .gofsco-login .login-extras label { color: #4A4336 !important; }
html[data-theme="light"] .gofsco-login .login-extras a { color: #8A5F00; }
html[data-theme="light"] .gofsco-login .or-divider { color: #7A705E; }
html[data-theme="light"] .gofsco-login .or-divider::before,
html[data-theme="light"] .gofsco-login .or-divider::after { background: var(--gl-line); }
html[data-theme="light"] .gofsco-login .btn-login-support { color: #6E4E00; border-color: #D9A300; }
html[data-theme="light"] .gofsco-login .btn-login-support:hover { background: rgba(255, 193, 7, .18); }
html[data-theme="light"] .gofsco-login .btn-login-live:hover { color: #111; }
html[data-theme="light"] .gofsco-login .login-error { background: #FBE3E4; border-color: #EBB2B6; color: #7A1822; }
html[data-theme="light"] .gofsco-login .lang-toggle,
html[data-theme="light"] .gofsco-login .gofsco-appearance-toggle {
  background: rgba(255, 252, 244, .92); color: #6E4E00; border-color: rgba(181, 129, 0, .55);
}
html[data-theme="light"] .gofsco-login .lang-toggle:hover,
html[data-theme="light"] .gofsco-login .gofsco-appearance-toggle:hover { background: var(--gl-brand); color: #111; }
html[data-theme="light"] .gofsco-login .login-footer { color: #7A705E; }

/* Request details report already light; keep it crisp on cream */
html[data-theme="light"] .request-log-details .border.rounded { border-color: var(--gl-line) !important; }

/* ---------- Dashboard counters (actual counter.css variants) ---------- */
html[data-theme="light"] .counter-box::before { opacity: 1; }
html[data-theme="light"] .counter-box.Yellow  { background: linear-gradient(145deg, #FFF8DE, #FFFCF4) !important; border-color: rgba(217, 163, 0, .4) !important; }
html[data-theme="light"] .counter-box.Yellow .counter { color: #8A5F00 !important; }
html[data-theme="light"] .counter-box.Yellow p { color: #6E4E00 !important; }
html[data-theme="light"] .counter-box.Yellow i { color: rgba(181, 129, 0, .28) !important; }
html[data-theme="light"] .counter-box.colored { background: linear-gradient(145deg, #FFF0E3, #FFFCF4) !important; border-color: rgba(234, 108, 20, .35) !important; }
html[data-theme="light"] .counter-box.colored .counter { color: #B4500C !important; }
html[data-theme="light"] .counter-box.colored p { color: #8F3F0A !important; }
html[data-theme="light"] .counter-box.colored i { color: rgba(234, 108, 20, .25) !important; }
html[data-theme="light"] .counter-box.Aqua { background: linear-gradient(145deg, #E9F6EC, #FFFCF4) !important; border-color: rgba(22, 128, 61, .3) !important; }
html[data-theme="light"] .counter-box.Aqua .counter { color: #15703F !important; }
html[data-theme="light"] .counter-box.Aqua p { color: #155B33 !important; opacity: 1 !important; }
html[data-theme="light"] .counter-box.Aqua i { color: rgba(22, 128, 61, .22) !important; }
html[data-theme="light"] .counter-box.Crimson { background: linear-gradient(145deg, #FCEBEB, #FFFCF4) !important; border-color: rgba(185, 28, 28, .3) !important; }
html[data-theme="light"] .counter-box.Crimson .counter { color: #B42318 !important; }
html[data-theme="light"] .counter-box.Crimson p { color: #8F1D16 !important; opacity: 1 !important; }
html[data-theme="light"] .counter-box.Crimson i { color: rgba(185, 28, 28, .22) !important; }
html[data-theme="light"] .counter-box.Gold { background: linear-gradient(145deg, #EEEFFC, #FFFCF4) !important; border-color: rgba(79, 70, 229, .3) !important; }
html[data-theme="light"] .counter-box.Gold .counter { color: #4338CA !important; }
html[data-theme="light"] .counter-box.Gold p { color: #3730A3 !important; opacity: 1 !important; }
html[data-theme="light"] .counter-box.Gold i { color: rgba(79, 70, 229, .22) !important; }
html[data-theme="light"] .dashboard-link:focus-visible .counter-box { outline: 3px solid #8A5F00; outline-offset: 2px; }

/* ---------- Pending approval banner (gofsco.css) ---------- */
html[data-theme="light"] .pending-approval-banner { background: linear-gradient(135deg, #FFF1BF 0%, #FFF9E6 100%) !important; color: #3D2C00 !important; border-color: #D9A300 !important; }
html[data-theme="light"] .pending-approval-banner:hover,
html[data-theme="light"] .pending-approval-banner:focus-visible { color: #1F1B15 !important; border-color: #B58100 !important; }
html[data-theme="light"] .pending-approval-banner strong { color: #3D2C00 !important; }
html[data-theme="light"] .pending-approval-banner small { color: #6E4E00 !important; }

/* ---------- Purchase request editor (gpr-/gpq-, EditorTemplates) ---------- */
html[data-theme="light"] .gpr-toggle { background: #FFF6D6 !important; border-color: #D9A300 !important; color: var(--gl-ink); }
html[data-theme="light"] .gpr-toggle strong,
html[data-theme="light"] .gpr-card h4,
html[data-theme="light"] .gpr-line-head strong,
html[data-theme="light"] .gpr-operations legend,
html[data-theme="light"] .gpq h5,
html[data-theme="light"] .gpq-head strong { color: #6E4E00 !important; }
html[data-theme="light"] .gpr-card { background: #FFFBEE !important; border-color: #D9A300 !important; color: var(--gl-ink); }
html[data-theme="light"] .gpr-line { background: #FFFCF4 !important; border-color: #D9A300 !important; color: var(--gl-ink); }
html[data-theme="light"] .gpr-hint { color: var(--g-muted) !important; }
html[data-theme="light"] .gpr-operation span { background: #FFFFFB !important; border-color: #CFC4A8 !important; color: var(--gl-ink) !important; }
html[data-theme="light"] .gpr-operation input:checked + span { background: #FFC107 !important; border-color: #B58100 !important; color: #111 !important; }
html[data-theme="light"] .gpr-operation input:focus-visible + span { outline: 3px solid #8A5F00; outline-offset: 2px; }
html[data-theme="light"] .gpq-opt { color: #6E4E00 !important; border-color: #B58100 !important; }
html[data-theme="light"] .gpq-row { background: #FFFCF4 !important; border-color: rgba(181, 129, 0, .5) !important; }

/* Technical review supply panel: inline style on [data-supply] (_PurchaseSupplyFields) */
html[data-theme="light"] [data-supply][style] { background: #FFFBEE !important; color: var(--gl-ink) !important; border-color: #D9A300 !important; }
html[data-theme="light"] [data-supply] label[style],
html[data-theme="light"] [data-supply] [style*="#ffcc00"] { color: #6E4E00 !important; }
html[data-theme="light"] [data-supply] [style*="color:#fff"] { color: var(--gl-ink) !important; }
html[data-theme="light"] [data-supply] [data-stock-text] { color: #1659A5 !important; }

/* ---------- HR (HumanResources/Index inline styles) ---------- */
html[data-theme="light"] .hr-badge.closed { background: #2A2620 !important; color: #FFC107 !important; }
html[data-theme="light"] .hr-wrap .hr-kpi div { background: #FFFCF4 !important; }

/* ---------- Notification dropdown (_NotificationBell) ---------- */
html[data-theme="light"] [data-notification-bell] { color: #6E4E00 !important; }
html[data-theme="light"] .gofsco-topbar__notification .dropdown-menu .border-bottom { border-color: var(--gl-line) !important; }
html[data-theme="light"] .gofsco-topbar__notification .dropdown-menu .text-primary { color: #8A5F00 !important; }
html[data-theme="light"] [data-notification-toast] { box-shadow: 0 10px 24px rgba(80, 60, 20, .18) !important; }

/* ---------- AI chat: retheme via the widget's own custom properties ---------- */
html[data-theme="light"] {
  --gf-black: #FFF3CC;
  --gf-dark: #FFFCF4;
  --gf-darker: #F8F1DF;
  --gf-bubble: #FFFFFB;
  --gf-border: #E2D7BC;
  --gf-light: #1F1B15;
  --gf-muted: #6B6355;
  --gf-yellow: #C99200;
  --gf-yellow-dk: #8A5F00;
}

/* ---------- Support chat actual surfaces ---------- */
html[data-theme="light"] .sc-intro { background: #F8F1DF !important; border-color: var(--gl-line) !important; color: var(--gl-ink) !important; }
html[data-theme="light"] .sc-form input,
html[data-theme="light"] .sc-composer textarea { background: #FFFFFB !important; border-color: #CFC4A8 !important; color: var(--gl-ink) !important; }
html[data-theme="light"] .sc-fab { background: #FFFCF4 !important; color: #8A5F00 !important; }

/* ---------- Narrow header: keep controls inside the viewport ---------- */
@media (max-width: 767.98px) {
  html[data-theme] .gofsco-topbar__controls { flex-wrap: nowrap; overflow: visible; min-width: 0; }
  html[data-theme] .gofsco-topbar__controls .gofsco-appearance-toggle { order: 0; }
}
@media (max-width: 420px) {
  .gofsco-topbar__controls .gofsco-appearance-toggle__text,
  .gofsco-topbar__account-action span { display: none; }
  .gofsco-topbar__account-action { min-width: 34px; }
  .gofsco-topbar__identity { flex-basis: 40px; }
}
} /* end @media screen */

/* Contrast corrections protected by the bilingual appearance regression suite. */
@media screen {
  html[data-theme] .pending-approval-banner__count { background: #b51f32; color: #fff; }
  html[data-theme="dark"] .employee-new-request-button { color: #80b5ff !important; border-color: #80b5ff; }
  html[data-theme="dark"] .counter-box.colored p { color: #e4a081 !important; }
  html[data-theme="dark"] .counter-box.Gold p { color: #e4a081 !important; }
  html[data-theme="dark"] .gofsco-return-link { color: #8ab9ff; }
  html[data-theme="dark"] .detail-val.empty { color: #b5bec7 !important; }
  html[data-theme="dark"] input::placeholder,
  html[data-theme="dark"] textarea::placeholder { color: #a0a0a0 !important; opacity: 1; }
  html[data-theme="dark"] .gofsco-topbar__notification .dropdown-menu,
  html[data-theme="dark"] .gofsco-topbar__notification .list-group-item {
    background: #1b1b1b !important; color: #eee !important;
  }
  html[data-theme="dark"] .gofsco-topbar__notification .dropdown-menu .text-muted { color: #b0b0b0 !important; }
  html[data-theme] .priority-sla-popover,
  html[data-theme] .priority-sla-popover strong,
  html[data-theme] .priority-sla-popover th,
  html[data-theme] .priority-sla-popover td { color: #242424 !important; }
  html[data-theme] .priority-sla-popover a,
  html[data-theme="light"] .ops-root .btn-outline-primary,
  html[data-theme="light"] .ops-root a.fw-semibold,
  html[data-theme="light"] .ops-root a:not([class]) { color: #084eae !important; }
  html[data-theme="light"] .ops-root .btn-outline-primary:hover,
  html[data-theme="light"] .ops-root .btn-outline-primary:focus-visible { background: #084eae !important; color: #fff !important; }
  html[data-theme="light"] .employee-new-request-button { color: #1949ad !important; border-color: #1949ad; }
  html[data-theme="light"] .gofsco-topbar__brand-name { color: #593e00 !important; }
  html[data-theme="light"] input::placeholder,
  html[data-theme="light"] textarea::placeholder { color: #756b59 !important; opacity: 1; }
  html[data-theme="light"] .hr-form input::placeholder,
  html[data-theme="light"] .gofsco-login .input-wrap input::placeholder { color: #756b59 !important; opacity: 1; }
  html[data-theme="light"] .counter-box a { color: inherit !important; }
  html[data-theme="light"] .hr-form {
    --hr-ink: #2a2620; --hr-mute: #625847; --hr-gold: #795900; --hr-line: #d5c7a6;
  }
  html[data-theme="light"] .hr-form fieldset { background: #fffcf4 !important; box-shadow: 0 4px 12px #5b421014; }
  html[data-theme="light"] .hr-form legend { background: #f5edda !important; }
  html[data-theme="light"] .hr-form .hr-step { background: #ffcc00; color: #111; }
  html[data-theme="light"] .hr-head h3 { color: #2a2620; }
  html[data-theme="light"] .asset-detail-card { background: #fffcf4 !important; border-color: #d5c7a6; }
  html[data-theme="light"] .asset-detail-header { background: #f5edda !important; color: #2a2620; }
  html[data-theme="light"] .asset-detail-card .detail-val { color: #2a2620; }
  html[data-theme="light"] .detail-label,
  html[data-theme="light"] .detail-val.empty { color: #625847 !important; }
  html[data-theme="light"] .ops-summary { background: #fffcf4 !important; color: #2a2620; border-color: #d5c7a6; }
  html[data-theme="light"] .ops-summary .text-muted { color: #625847 !important; }
  html[data-theme="light"] .ops-summary .ops-summary-head h5 { color: #594100; }
  html[data-theme="light"] .ops-summary .ops-tile { background: #f7efd8 !important; color: #594100 !important; border-color: #bfa75f; }
  html[data-theme="light"] .ops-summary .ops-tile.warn { background: #fff1bd !important; }
  html[data-theme="light"] .ops-summary .ops-tile.danger { background: #fbe9e6 !important; color: #8d2630 !important; }
  html[data-theme="light"] .ops-summary .ops-num { color: #594100; }
  html[data-theme="light"] .ops-root input::placeholder,
  html[data-theme="light"] .ops-root textarea::placeholder { color: #5b5b5b !important; opacity: 1; }
  html[data-theme="dark"] .gf-qbtn.new-req { background: #23733d; border-color: #23733d; }
  html[data-theme="dark"] .gf-qbtn.new-req:hover { background: #175b30; border-color: #175b30; }
  html[data-theme="dark"] .gofsco-login .login-footer { color: #aaa; }
  html[data-theme="light"] .gofsco-login .login-footer { color: #665c4c; }
  html[data-theme="light"] #gf-clear { color: #6e4e00; }
  html[data-theme="light"] .gf-name { color: #705000; }
  html[data-theme="light"] .gofsco-login .app-title .gold { color: #795900; }
  html[data-theme="light"] #support-chat-title { color: #705000; }
  html[data-theme="light"] #support-chat-subtitle { color: #625847; }
  html[data-theme="light"] #support-chat-close { color: #625847; }
}

/* AJAX-generated request rows retain pale cell backgrounds in both themes. */
#DTSRequestsTable tbody a.read-more,
#DTSRequestsTable tbody a.read-less {
  color: var(--g-info-fg);
  text-decoration: underline;
}

/* Keep every stock-panel instruction legible in dark mode; asset names stay blue. */
@media screen {
html[data-theme="dark"] [data-supply] label,
html[data-theme="dark"] [data-supply] p,
html[data-theme="dark"] [data-supply] [data-stock-page],
html[data-theme="dark"] [data-supply] [data-supply-message],
html[data-theme="dark"] [data-supply] [data-stock-availability] {
  color: #FFCC00 !important;
}
html[data-theme="dark"] [data-supply] [data-stock-text] {
  color: #72B7FF !important;
}
}
