/* V36.7.78 — real light-mode scope, clear Admin surfaces and themed date selectors. */

/* The active built-in theme body uses .halloween-active + .default-light-mode.
   Override the Halloween scene itself, not only the page's inner containers. */
html body.default-light-mode.halloween-active {
  color-scheme: light !important;
  --bg-dark: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-2: #f5f7ff;
  --bg-card: #ffffff;
  --border-color: #d5deec;
  --border-light: #c3d0e3;
  --text-main: #202d42;
  --text-muted: #52647c;
  --text-sub: #687b94;
  --purple: #7563c7;
  background: #ffffff !important;
  background-image: none !important;
  background-color: #ffffff !important;
  background-attachment: fixed !important;
  color: #202d42 !important;
}
html body.default-light-mode.halloween-active .halloween-ambient-layer {
  opacity: .06 !important;
}
html body.default-light-mode.halloween-active .app-header,
html body.default-light-mode.halloween-active .main-container,
html body.default-light-mode.halloween-active footer,
html body.default-light-mode.halloween-active .app-footer {
  color: #202d42 !important;
}
html body.default-light-mode.halloween-active .main-container,
html body.default-light-mode.halloween-active .tab-content {
  background: transparent !important;
}

/* Date/time selectors follow the light palette; give the year enough room. */
html body.default-light-mode .cp-picker-panel,
html body.default-light-mode .cp-picker-panel * {
  color-scheme: light !important;
}
html body.default-light-mode .cp-picker-panel .cp-calendar-period {
  grid-template-columns: minmax(0, 1fr) 104px !important;
  gap: 8px !important;
}
html body.default-light-mode .cp-picker-panel .cp-calendar-period select {
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 6px 27px 6px 10px !important;
  border: 1px solid #cbd6e6 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #25344a !important;
  color-scheme: light !important;
  box-shadow: 0 1px 3px rgba(32, 50, 78, .06) !important;
  font-size: 14px !important;
}
html body.default-light-mode .cp-picker-panel .cp-calendar-period select:focus {
  border-color: #8ba9df !important;
  box-shadow: 0 0 0 3px rgba(100, 139, 207, .14) !important;
}
html body.default-light-mode .cp-picker-panel .cp-calendar-period select option {
  color: #25344a !important;
  background: #ffffff !important;
}
@media (max-width: 640px) {
  html body.default-light-mode .cp-picker-panel .cp-calendar-period {
    grid-template-columns: minmax(0, 1fr) 100px !important;
  }
}

/* Customer / Verification / Admin segmented navigation. */
html body.default-light-mode #tab-admin .customer-admin-subnav {
  background: #edf2fa !important;
  border: 1px solid #cbd7e7 !important;
  border-radius: 18px !important;
  box-shadow: 0 5px 16px rgba(45, 65, 95, .08) !important;
}
html body.default-light-mode #tab-admin .customer-admin-subnav-btn {
  color: #465872 !important;
  background: #ffffff !important;
  border: 1px solid #cbd6e5 !important;
  border-radius: 13px !important;
  box-shadow: 0 1px 3px rgba(35, 52, 78, .045) !important;
}
html body.default-light-mode #tab-admin .customer-admin-subnav-btn .customer-admin-tab-icon {
  color: #647b9b !important;
}
html body.default-light-mode #tab-admin .customer-admin-subnav-btn.active {
  color: #523c9b !important;
  background: linear-gradient(135deg, #eeeaff 0%, #e8f0ff 100%) !important;
  border-color: #a99ae2 !important;
  box-shadow: inset 0 0 0 1px rgba(126, 105, 196, .12), 0 2px 7px rgba(82, 60, 155, .08) !important;
}
html body.default-light-mode #tab-admin .customer-admin-subnav-btn.active .customer-admin-tab-icon {
  color: #6652b2 !important;
}
html body.default-light-mode #tab-admin .customer-admin-subnav-btn:focus-visible {
  outline: 3px solid rgba(111, 137, 205, .22) !important;
  outline-offset: 2px !important;
}

/* Admin permissions panel: white surface, defined edges, readable copy and controls. */
html body.default-light-mode #tab-admin #admin-pane-admins {
  color: #26364c !important;
  background: linear-gradient(160deg, #ffffff 0%, #f8faff 100%) !important;
  border: 1px solid #cbd7e7 !important;
  border-radius: 20px !important;
  padding: 18px !important;
  box-shadow: 0 8px 24px rgba(40, 58, 88, .09) !important;
}
html body.default-light-mode #tab-admin #admin-pane-admins h3,
html body.default-light-mode #tab-admin #admin-pane-admins h4,
html body.default-light-mode #tab-admin #admin-pane-admins h5 {
  color: #202f45 !important;
}
html body.default-light-mode #tab-admin #admin-pane-admins p,
html body.default-light-mode #tab-admin #admin-pane-admins .muted {
  color: #52647c !important;
}
html body.default-light-mode #tab-admin #admin-pane-admins input,
html body.default-light-mode #tab-admin #admin-pane-admins select,
html body.default-light-mode #tab-admin #admin-pane-admins textarea,
html body.default-light-mode #tab-admin #admin-pane-admins .form-control {
  color: #26364c !important;
  background: #ffffff !important;
  border: 1px solid #c7d3e3 !important;
}
html body.default-light-mode #tab-admin #admin-pane-admins input::placeholder,
html body.default-light-mode #tab-admin #admin-pane-admins textarea::placeholder {
  color: #8290a4 !important;
  opacity: 1 !important;
}
html body.default-light-mode #tab-admin #admin-pane-admins .btn-convert,
html body.default-light-mode #tab-admin #admin-pane-admins .btn-primary {
  color: #4d3b91 !important;
  background: #eeeaff !important;
  border: 1px solid #b9ace8 !important;
  box-shadow: 0 2px 7px rgba(82, 60, 155, .08) !important;
}
html body.default-light-mode #tab-admin #admin-pane-admins .btn-convert:active,
html body.default-light-mode #tab-admin #admin-pane-admins .btn-primary:active {
  transform: scale(.98) !important;
}
html body.default-light-mode #tab-admin #admin-pane-admins .btn-copy {
  color: #42556f !important;
  background: #ffffff !important;
  border: 1px solid #c7d3e3 !important;
}
html body.default-light-mode #tab-admin #admin-pane-admins .custom-table {
  background: #ffffff !important;
  border: 1px solid #d5deea !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}
html body.default-light-mode #tab-admin #admin-pane-admins .custom-table th {
  color: #40536d !important;
  background: #edf3fb !important;
  border-color: #d6dfeb !important;
}
html body.default-light-mode #tab-admin #admin-pane-admins .custom-table td {
  color: #34465e !important;
  background: #ffffff !important;
  border-color: #e1e7f0 !important;
}
html body.default-light-mode #tab-admin #admin-pane-admins .admin-access-card,
html body.default-light-mode #tab-admin #admin-pane-admins .admin-access-editor {
  color: #26364c !important;
  background: #f5f8fd !important;
  border-color: #d2ddeb !important;
}

/* Ensure Admin content does not inherit dark-mode cyan/purple text tokens. */
html body.default-light-mode #tab-admin #admin-pane-admins label,
html body.default-light-mode #tab-admin #admin-pane-admins th,
html body.default-light-mode #tab-admin #admin-pane-admins td,
html body.default-light-mode #tab-admin #admin-pane-admins strong,
html body.default-light-mode #tab-admin #admin-pane-admins span {
  text-shadow: none !important;
}


/* V36.7.79 — extend the light palette to every section, not only Dashboard. */
html body.default-light-mode {
  --bg-dark: #ffffff !important;
  --bg-surface: #ffffff !important;
  --bg-surface-2: #f7f9fd !important;
  --bg-card: #ffffff !important;
  --border-color: #cbd6e5 !important;
  --border-light: #b9c8dc !important;
  --text-main: #1e2b40 !important;
  --text-muted: #53657d !important;
  --text-sub: #667991 !important;
  background: #ffffff !important;
  background-image: none !important;
  background-color: #ffffff !important;
  color: #1e2b40 !important;
}
html body.default-light-mode .main-container,
html body.default-light-mode main,
html body.default-light-mode .tab-content.active,
html body.default-light-mode .tab-content.active > section,
html body.default-light-mode .tab-content.active > .section,
html body.default-light-mode .tab-content.active > .container {
  background-color: transparent !important;
  color: #1e2b40 !important;
}
html body.default-light-mode .converter-card,
html body.default-light-mode .card,
html body.default-light-mode .panel,
html body.default-light-mode .section-card,
html body.default-light-mode .dashboard-card,
html body.default-light-mode .stat-card,
html body.default-light-mode .content-card,
html body.default-light-mode .glass-card,
html body.default-light-mode .data-card,
html body.default-light-mode .filter-card,
html body.default-light-mode .profile-card,
html body.default-light-mode .order-card,
html body.default-light-mode .balance-card,
html body.default-light-mode .withdrawal-card,
html body.default-light-mode .commission-card,
html body.default-light-mode .support-card,
html body.default-light-mode .admin-card,
html body.default-light-mode .admin-section-card,
html body.default-light-mode .admin-subnav,
html body.default-light-mode .customer-admin-subnav {
  color: #26364c !important;
  background: #ffffff !important;
  border: 1px solid #cbd6e5 !important;
  box-shadow: 0 5px 18px rgba(37, 55, 82, .09) !important;
}
html body.default-light-mode .tab-content h1,
html body.default-light-mode .tab-content h2,
html body.default-light-mode .tab-content h3,
html body.default-light-mode .tab-content h4,
html body.default-light-mode .tab-content label,
html body.default-light-mode .tab-content strong,
html body.default-light-mode .tab-content .section-title {
  color: #202f45 !important;
  text-shadow: none !important;
}
html body.default-light-mode .tab-content p,
html body.default-light-mode .tab-content small,
html body.default-light-mode .tab-content .muted,
html body.default-light-mode .tab-content .text-muted,
html body.default-light-mode .tab-content .description {
  color: #53657d !important;
}
html body.default-light-mode .tab-content input:not([type="checkbox"]):not([type="radio"]),
html body.default-light-mode .tab-content select,
html body.default-light-mode .tab-content textarea {
  color: #26364c !important;
  background: #ffffff !important;
  border: 1px solid #c5d1e1 !important;
}
html body.default-light-mode .tab-content input::placeholder,
html body.default-light-mode .tab-content textarea::placeholder {
  color: #8794a7 !important;
  opacity: 1 !important;
}
html body.default-light-mode .tab-content table th {
  color: #40536d !important;
  background: #edf3fb !important;
  border-color: #d2dce9 !important;
}
html body.default-light-mode .tab-content table td {
  color: #34465e !important;
  background: #ffffff !important;
  border-color: #e0e7f0 !important;
}
html body.default-light-mode .tab-content button:not(.customer-admin-subnav-btn):not(.btn-primary):not(.btn-convert) {
  text-shadow: none !important;
}

/* Prevent a CSS rule from revealing a role-restricted Admin item to guests. */
#app-sidebar #main-tabs-nav #admin-tab-btn[hidden],
#app-sidebar #main-tabs-nav #admin-tab-btn.hidden {
  display: none !important;
}


/* V36.7.79 — prevent the static Halloween fallback from flashing before theme hydration. */
html.theme-bootstrap-default body {
  background-color: #101827 !important;
  background-image: none !important;
}
html.theme-bootstrap-default body .halloween-ambient-layer {
  display: none !important;
  opacity: 0 !important;
}
html.theme-bootstrap-light body {
  color-scheme: light !important;
  background: #ffffff !important;
  background-image: none !important;
  background-color: #ffffff !important;
  color: #1e2b40 !important;
}
html.theme-bootstrap-light body .app-header,
html.theme-bootstrap-light body .main-container,
html.theme-bootstrap-light body footer,
html.theme-bootstrap-light body .app-footer {
  background-color: #ffffff !important;
  color: #1e2b40 !important;
}
