/* Cashback V36.7.84 — remove the source of the grey light-mode backdrop.
   Also align seasonal date-picker glass and remove the extra Knowledge pane shell. */

/* 1) LIGHT MODE ROOT CANVAS
   The old dark veil was a fixed pseudo-element on body.dashboard-home.
   The source rule in dashboard-premium.css is now scoped to dark mode only;
   this explicit guard also protects installations with stale theme classes. */
html:has(body.default-light-mode) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}
html body.default-light-mode,
html body.theme-default.default-light-mode {
  --bg-dark: #ffffff !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}
html body.default-light-mode.dashboard-home::before,
html body.theme-default.default-light-mode.dashboard-home::before {
  content: none !important;
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  background: none !important;
}

/* 2) SEASONAL DATE/TIME PICKER GLASS
   Same translucency and blur for Halloween, Winter and Underwater.
   Only panel backgrounds are tinted; text and controls stay fully opaque. */
html body.theme-halloween:not(.default-light-mode) .cp-picker-panel,
html body.theme-winter:not(.default-light-mode) .cp-picker-panel,
html body.theme-ocean:not(.default-light-mode) .cp-picker-panel {
  -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
  backdrop-filter: blur(18px) saturate(135%) !important;
  border: 1px solid rgba(190, 215, 245, .28) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255,255,255,.10) !important;
}
html body.theme-halloween:not(.default-light-mode) .cp-picker-panel {
  background: linear-gradient(145deg, rgba(72, 42, 105, .76), rgba(20, 18, 48, .68)) !important;
  color: #f2edff !important;
}
html body.theme-winter:not(.default-light-mode) .cp-picker-panel {
  background: linear-gradient(145deg, rgba(44, 105, 160, .76), rgba(9, 35, 70, .68)) !important;
  color: #edf6ff !important;
}
html body.theme-ocean:not(.default-light-mode) .cp-picker-panel {
  background: linear-gradient(145deg, rgba(13, 112, 132, .76), rgba(3, 43, 65, .68)) !important;
  color: #e9fbff !important;
}
html body.theme-halloween:not(.default-light-mode) .cp-picker-head,
html body.theme-winter:not(.default-light-mode) .cp-picker-head,
html body.theme-ocean:not(.default-light-mode) .cp-picker-head {
  background: rgba(9, 23, 46, .28) !important;
  border-bottom-color: rgba(190, 215, 245, .22) !important;
}
html body.theme-halloween:not(.default-light-mode) .cp-picker-content,
html body.theme-winter:not(.default-light-mode) .cp-picker-content,
html body.theme-ocean:not(.default-light-mode) .cp-picker-content {
  background: transparent !important;
}
html body.theme-halloween:not(.default-light-mode) .cp-calendar-day,
html body.theme-winter:not(.default-light-mode) .cp-calendar-day,
html body.theme-ocean:not(.default-light-mode) .cp-calendar-day,
html body.theme-halloween:not(.default-light-mode) .cp-calendar-nav button,
html body.theme-winter:not(.default-light-mode) .cp-calendar-nav button,
html body.theme-ocean:not(.default-light-mode) .cp-calendar-nav button {
  background: rgba(7, 17, 35, .42) !important;
  border-color: rgba(190, 215, 245, .13) !important;
}
html body.theme-halloween:not(.default-light-mode) .cp-calendar-day.is-selected,
html body.theme-winter:not(.default-light-mode) .cp-calendar-day.is-selected,
html body.theme-ocean:not(.default-light-mode) .cp-calendar-day.is-selected {
  background: var(--purple, #8b5cf6) !important;
  border-color: var(--purple, #8b5cf6) !important;
}

/* 3) ADMIN KNOWLEDGE PANE
   Remove only the outer rectangular pane surface; preserve its inputs,
   buttons and table as individual readable controls. */
html body.theme-halloween:not(.default-light-mode) #admin-pane-knowledge,
html body.theme-winter:not(.default-light-mode) #admin-pane-knowledge,
html body.theme-ocean:not(.default-light-mode) #admin-pane-knowledge {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
