/* Cashback V36.7.87 — final source-level light canvas and theme-state cleanup. */

/* Light canvas: remove the old dark/grey page surface rather than painting a second card on top. */
html.theme-bootstrap-light,
html.theme-bootstrap-light body,
html body.default-light-mode {
  background:#fff !important;
  background-color:#fff !important;
  background-image:none !important;
}
html.theme-bootstrap-light body,
html body.default-light-mode {
  --bg-dark:#fff !important;
  --bg-surface:#fff !important;
  --bg-surface-2:#f7f9fc !important;
  --bg-card:#fff !important;
  color:#25344a !important;
}
html.theme-bootstrap-light body::before,
html body.default-light-mode::before,
html body.default-light-mode.dashboard-home::before {
  content:none !important;
  display:none !important;
  background:none !important;
  opacity:0 !important;
  visibility:hidden !important;
}

/* Admin backup/update surfaces were missed by the generic .admin-card light rules. */
html.theme-bootstrap-light body #tab-admin .backup-update-subnav,
html.theme-bootstrap-light body #tab-admin .backup-update-panel,
html.theme-bootstrap-light body #tab-admin .backup-toolbar,
html body.default-light-mode #tab-admin .backup-update-subnav,
html body.default-light-mode #tab-admin .backup-update-panel,
html body.default-light-mode #tab-admin .backup-toolbar {
  color:#25344a !important;
  background:#fff !important;
  background-color:#fff !important;
  background-image:none !important;
  border:1px solid #dbe3ed !important;
  box-shadow:0 4px 14px rgba(32,48,72,.055) !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
}
html.theme-bootstrap-light body #tab-admin .backup-update-panel > p,
html body.default-light-mode #tab-admin .backup-update-panel > p {
  color:#5b6b80 !important;
}
html.theme-bootstrap-light body #tab-admin .backup-toolbar .admin-action-toggle,
html body.default-light-mode #tab-admin .backup-toolbar .admin-action-toggle {
  color:#26364c !important;
  background:#f3f6fa !important;
  border:1px solid #d5dfeb !important;
}

/* Seasonal mode is a fresh state: bootstrap-light is removed by ThemeManager
   and all light-only selectors are gated by the live body class. */
/* Landscape Admin: raise surface opacity and reduce blur so text remains crisp. */
@media (orientation:landscape) and (max-height:760px) {
  html body.theme-halloween:not(.default-light-mode) #tab-admin .admin-pane .admin-card,
  html body.theme-halloween:not(.default-light-mode) #tab-admin .admin-pane .admin-section-card,
  html body.theme-halloween:not(.default-light-mode) #tab-admin .backup-update-subnav,
  html body.theme-halloween:not(.default-light-mode) #tab-admin .backup-update-panel,
  html body.theme-halloween:not(.default-light-mode) #tab-admin .backup-toolbar,
  html body.theme-halloween:not(.default-light-mode) #tab-admin .admin-subnav {
    background:linear-gradient(145deg,rgba(57,39,80,.96),rgba(28,23,49,.97)) !important;
    -webkit-backdrop-filter:blur(2px) saturate(112%) !important;
    backdrop-filter:blur(2px) saturate(112%) !important;
    border-color:rgba(205,174,245,.30) !important;
  }
  html body.theme-winter:not(.default-light-mode) #tab-admin .admin-pane .admin-card,
  html body.theme-winter:not(.default-light-mode) #tab-admin .admin-pane .admin-section-card,
  html body.theme-winter:not(.default-light-mode) #tab-admin .backup-update-subnav,
  html body.theme-winter:not(.default-light-mode) #tab-admin .backup-update-panel,
  html body.theme-winter:not(.default-light-mode) #tab-admin .backup-toolbar,
  html body.theme-winter:not(.default-light-mode) #tab-admin .admin-subnav {
    background:linear-gradient(145deg,rgba(34,67,103,.96),rgba(12,35,62,.97)) !important;
    -webkit-backdrop-filter:blur(2px) saturate(112%) !important;
    backdrop-filter:blur(2px) saturate(112%) !important;
    border-color:rgba(160,205,245,.30) !important;
  }
  html body.theme-ocean:not(.default-light-mode) #tab-admin .admin-pane .admin-card,
  html body.theme-ocean:not(.default-light-mode) #tab-admin .admin-pane .admin-section-card,
  html body.theme-ocean:not(.default-light-mode) #tab-admin .backup-update-subnav,
  html body.theme-ocean:not(.default-light-mode) #tab-admin .backup-update-panel,
  html body.theme-ocean:not(.default-light-mode) #tab-admin .backup-toolbar,
  html body.theme-ocean:not(.default-light-mode) #tab-admin .admin-subnav {
    background:linear-gradient(145deg,rgba(10,76,91,.96),rgba(4,41,60,.97)) !important;
    -webkit-backdrop-filter:blur(2px) saturate(112%) !important;
    backdrop-filter:blur(2px) saturate(112%) !important;
    border-color:rgba(132,225,228,.30) !important;
  }
}
