/* Cashback Pro V36.8.17
 * - Remove the leftover light-mode rectangle around customer withdrawal filters.
 * - Restore accessible contrast for forgot-password actions.
 * - Theme the floating admin action menu for light/default and seasonal palettes.
 * - Extend the drawer scrim to the viewport top after the app header scrolls away.
 */

/* 1) Withdrawal history: keep the inputs/buttons, remove only their extra wrapper. */
html body.default-light-mode .customer-withdrawals-card .customer-withdrawals-filters,
html body.light-mode .customer-withdrawals-card .customer-withdrawals-filters,
html.default-light-mode body .customer-withdrawals-card .customer-withdrawals-filters,
html.light-mode body .customer-withdrawals-card .customer-withdrawals-filters,
html.theme-bootstrap-default.theme-bootstrap-light body .customer-withdrawals-card .customer-withdrawals-filters {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
}

html body.default-light-mode .customer-withdrawals-card .customer-withdrawals-filters::before,
html body.default-light-mode .customer-withdrawals-card .customer-withdrawals-filters::after,
html body.light-mode .customer-withdrawals-card .customer-withdrawals-filters::before,
html body.light-mode .customer-withdrawals-card .customer-withdrawals-filters::after,
html.default-light-mode body .customer-withdrawals-card .customer-withdrawals-filters::before,
html.default-light-mode body .customer-withdrawals-card .customer-withdrawals-filters::after,
html.light-mode body .customer-withdrawals-card .customer-withdrawals-filters::before,
html.light-mode body .customer-withdrawals-card .customer-withdrawals-filters::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* 2) Forgot-password links were inheriting the pale cyan dark-theme token. */
html body.default-light-mode #tab-profile button.text-action,
html body.default-light-mode #auth-modal button.text-action,
html body.light-mode #tab-profile button.text-action,
html body.light-mode #auth-modal button.text-action {
  color: #245b98 !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(36, 91, 152, .42) !important;
  text-underline-offset: 3px !important;
  text-shadow: none !important;
  opacity: 1 !important;
  transition: color .16s ease, background-color .16s ease, text-decoration-color .16s ease !important;
}
html body.default-light-mode #tab-profile button.text-action:hover,
html body.default-light-mode #auth-modal button.text-action:hover,
html body.light-mode #tab-profile button.text-action:hover,
html body.light-mode #auth-modal button.text-action:hover {
  color: #173f70 !important;
  text-decoration-color: currentColor !important;
  background: rgba(63, 126, 201, .09) !important;
  border-radius: 6px !important;
}
html body.default-light-mode #tab-profile button.text-action:focus-visible,
html body.default-light-mode #auth-modal button.text-action:focus-visible,
html body.light-mode #tab-profile button.text-action:focus-visible,
html body.light-mode #auth-modal button.text-action:focus-visible {
  outline: 2px solid #4f86c6 !important;
  outline-offset: 3px !important;
}

/* 3) Default light mode: real light surfaces and dark readable labels for every
   item in the floating customer/action menu, including inline menu fallback. */
html body.default-light-mode .admin-action-menu > .admin-action-toggle,
html body.light-mode .admin-action-menu > .admin-action-toggle {
  color: #263b56 !important;
  background: linear-gradient(145deg, #ffffff, #edf3fb) !important;
  border: 1px solid #c4d2e5 !important;
  box-shadow: 0 3px 10px rgba(44, 69, 107, .09), inset 0 1px 0 #ffffff !important;
}
html body.default-light-mode .admin-action-menu > .admin-action-toggle:hover,
html body.light-mode .admin-action-menu > .admin-action-toggle:hover {
  color: #174b83 !important;
  background: linear-gradient(145deg, #ffffff, #e3efff) !important;
  border-color: #86aee0 !important;
  box-shadow: 0 5px 14px rgba(58, 112, 179, .16) !important;
}
html body.default-light-mode .admin-action-popover-portal,
html body.light-mode .admin-action-popover-portal,
html body.default-light-mode .admin-action-menu > .admin-action-items,
html body.light-mode .admin-action-menu > .admin-action-items {
  color: #263b56 !important;
  background: linear-gradient(150deg, rgba(251, 253, 255, .99), rgba(232, 240, 251, .99)) !important;
  border: 1px solid rgba(116, 145, 185, .48) !important;
  box-shadow: 0 16px 38px rgba(35, 58, 94, .22), 0 0 0 1px rgba(255,255,255,.72) inset !important;
  -webkit-backdrop-filter: blur(18px) saturate(125%) !important;
  backdrop-filter: blur(18px) saturate(125%) !important;
}
html body.default-light-mode .admin-action-popover-portal > button,
html body.light-mode .admin-action-popover-portal > button,
html body.default-light-mode .admin-action-menu > .admin-action-items > button,
html body.light-mode .admin-action-menu > .admin-action-items > button {
  color: #263b56 !important;
  background: linear-gradient(145deg, #ffffff, #f4f7fc) !important;
  border: 1px solid #c8d5e6 !important;
  box-shadow: 0 1px 3px rgba(38, 59, 86, .06) !important;
  font-weight: 650 !important;
  transition: transform .14s ease, color .14s ease, background .14s ease,
              border-color .14s ease, box-shadow .14s ease !important;
}
html body.default-light-mode .admin-action-popover-portal > button:hover,
html body.light-mode .admin-action-popover-portal > button:hover,
html body.default-light-mode .admin-action-menu > .admin-action-items > button:hover,
html body.light-mode .admin-action-menu > .admin-action-items > button:hover {
  color: #174b83 !important;
  background: linear-gradient(145deg, #ffffff, #e6f0ff) !important;
  border-color: #8aaddc !important;
  box-shadow: 0 4px 10px rgba(57, 105, 166, .14) !important;
  transform: translateY(-1px) !important;
}
html body.default-light-mode .admin-action-popover-portal > button:active,
html body.light-mode .admin-action-popover-portal > button:active,
html body.default-light-mode .admin-action-menu > .admin-action-items > button:active,
html body.light-mode .admin-action-menu > .admin-action-items > button:active {
  transform: translateY(1px) scale(.975) !important;
  box-shadow: inset 0 2px 5px rgba(38, 59, 86, .14) !important;
}
html body.default-light-mode .admin-action-popover-portal > button:focus-visible,
html body.light-mode .admin-action-popover-portal > button:focus-visible,
html body.default-light-mode .admin-action-menu > .admin-action-items > button:focus-visible,
html body.light-mode .admin-action-menu > .admin-action-items > button:focus-visible {
  outline: 2px solid #5d8fc9 !important;
  outline-offset: 2px !important;
}
html body.default-light-mode .admin-action-popover-portal > button[onclick*="adminResetCustomerPassword"],
html body.light-mode .admin-action-popover-portal > button[onclick*="adminResetCustomerPassword"],
html body.default-light-mode .admin-action-menu > .admin-action-items > button[onclick*="adminResetCustomerPassword"],
html body.light-mode .admin-action-menu > .admin-action-items > button[onclick*="adminResetCustomerPassword"] {
  color: #805400 !important;
  background: linear-gradient(145deg, #fffaf0, #fff1d2) !important;
  border-color: #e6c16e !important;
}
html body.default-light-mode .admin-action-popover-portal > button[onclick*="deleteAdminUser"],
html body.light-mode .admin-action-popover-portal > button[onclick*="deleteAdminUser"],
html body.default-light-mode .admin-action-menu > .admin-action-items > button[onclick*="deleteAdminUser"],
html body.light-mode .admin-action-menu > .admin-action-items > button[onclick*="deleteAdminUser"],
html body.default-light-mode .admin-action-popover-portal > button.danger-action,
html body.light-mode .admin-action-popover-portal > button.danger-action,
html body.default-light-mode .admin-action-menu > .admin-action-items > button.danger-action,
html body.light-mode .admin-action-menu > .admin-action-items > button.danger-action {
  color: #a32638 !important;
  background: linear-gradient(145deg, #fffafa, #fff0f1) !important;
  border-color: #e5a1aa !important;
}

/* Seasonal palettes: each theme owns its own accent, border and pressed state. */
html body.theme-halloween .admin-action-popover-portal,
html body.theme-halloween .admin-action-menu > .admin-action-items {
  color: #fff1e5 !important;
  background: linear-gradient(150deg, rgba(48, 27, 55, .985), rgba(24, 17, 39, .99)) !important;
  border: 1px solid rgba(242, 151, 82, .58) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.44), 0 0 22px rgba(245,132,60,.17) !important;
}
html body.theme-halloween .admin-action-popover-portal > button,
html body.theme-halloween .admin-action-menu > .admin-action-items > button {
  color: #fff1e5 !important;
  background: linear-gradient(145deg, rgba(77, 49, 82, .98), rgba(48, 33, 61, .98)) !important;
  border: 1px solid rgba(226, 164, 119, .42) !important;
}
html body.theme-halloween .admin-action-popover-portal > button:hover,
html body.theme-halloween .admin-action-menu > .admin-action-items > button:hover {
  color: #ffffff !important;
  background: linear-gradient(145deg, rgba(133, 75, 65, .98), rgba(88, 48, 89, .98)) !important;
  border-color: rgba(255, 177, 104, .82) !important;
}
html body.theme-halloween.default-light-mode .admin-action-popover-portal,
html body.theme-halloween.default-light-mode .admin-action-menu > .admin-action-items {
  color: #57351f !important;
  background: linear-gradient(150deg, #fffaf4, #f9e9dc) !important;
  border-color: #e8b18a !important;
  box-shadow: 0 14px 34px rgba(114, 67, 36, .18) !important;
}
html body.theme-halloween.default-light-mode .admin-action-popover-portal > button,
html body.theme-halloween.default-light-mode .admin-action-menu > .admin-action-items > button {
  color: #57351f !important;
  background: linear-gradient(145deg, #fffefd, #fff1e6) !important;
  border-color: #e8c3a7 !important;
}

html body.theme-winter .admin-action-popover-portal,
html body.theme-winter .admin-action-menu > .admin-action-items {
  color: #edf7ff !important;
  background: linear-gradient(150deg, rgba(19, 48, 82, .99), rgba(7, 27, 52, .99)) !important;
  border: 1px solid rgba(125, 195, 245, .60) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.42), 0 0 22px rgba(93,178,235,.18) !important;
}
html body.theme-winter .admin-action-popover-portal > button,
html body.theme-winter .admin-action-menu > .admin-action-items > button {
  color: #edf7ff !important;
  background: linear-gradient(145deg, rgba(37, 75, 116, .98), rgba(22, 52, 88, .98)) !important;
  border: 1px solid rgba(143, 196, 235, .42) !important;
}
html body.theme-winter .admin-action-popover-portal > button:hover,
html body.theme-winter .admin-action-menu > .admin-action-items > button:hover {
  color: #ffffff !important;
  background: linear-gradient(145deg, rgba(49, 111, 164, .98), rgba(35, 82, 139, .98)) !important;
  border-color: rgba(166, 224, 255, .82) !important;
}
html body.theme-winter.default-light-mode .admin-action-popover-portal,
html body.theme-winter.default-light-mode .admin-action-menu > .admin-action-items {
  color: #244260 !important;
  background: linear-gradient(150deg, #f8fcff, #e4f1fd) !important;
  border-color: #a9cce8 !important;
  box-shadow: 0 14px 34px rgba(43, 91, 133, .18) !important;
}
html body.theme-winter.default-light-mode .admin-action-popover-portal > button,
html body.theme-winter.default-light-mode .admin-action-menu > .admin-action-items > button {
  color: #244260 !important;
  background: linear-gradient(145deg, #ffffff, #eef7ff) !important;
  border-color: #b9d5ed !important;
}

html body.theme-ocean .admin-action-popover-portal,
html body.theme-ocean .admin-action-menu > .admin-action-items {
  color: #e7ffff !important;
  background: linear-gradient(150deg, rgba(5, 62, 76, .99), rgba(3, 31, 48, .99)) !important;
  border: 1px solid rgba(73, 218, 215, .60) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.42), 0 0 22px rgba(45,211,204,.17) !important;
}
html body.theme-ocean .admin-action-popover-portal > button,
html body.theme-ocean .admin-action-menu > .admin-action-items > button {
  color: #e7ffff !important;
  background: linear-gradient(145deg, rgba(10, 85, 98, .98), rgba(5, 58, 76, .98)) !important;
  border: 1px solid rgba(102, 220, 213, .42) !important;
}
html body.theme-ocean .admin-action-popover-portal > button:hover,
html body.theme-ocean .admin-action-menu > .admin-action-items > button:hover {
  color: #ffffff !important;
  background: linear-gradient(145deg, rgba(8, 123, 130, .98), rgba(7, 83, 113, .98)) !important;
  border-color: rgba(110, 247, 230, .82) !important;
}
html body.theme-ocean.default-light-mode .admin-action-popover-portal,
html body.theme-ocean.default-light-mode .admin-action-menu > .admin-action-items {
  color: #15505a !important;
  background: linear-gradient(150deg, #f4ffff, #def5f4) !important;
  border-color: #9ed8d6 !important;
  box-shadow: 0 14px 34px rgba(20, 102, 108, .17) !important;
}
html body.theme-ocean.default-light-mode .admin-action-popover-portal > button,
html body.theme-ocean.default-light-mode .admin-action-menu > .admin-action-items > button {
  color: #15505a !important;
  background: linear-gradient(145deg, #ffffff, #e9fbfa) !important;
  border-color: #b2dfdc !important;
}

/* 4) When the app header has scrolled fully away, the scrim must rise with the
   lifted menu. The drawer and toggle stay above it due to their existing z-index. */
@media (max-width: 980px) and (orientation: portrait) {
  html.v169-header-scrolled body.sidebar-expanded #sidebar-backdrop.sidebar-backdrop,
  html.v169-header-scrolled body.sidebar-expanded .sidebar-backdrop {
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100vh !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.default-light-mode .admin-action-popover-portal > button,
  html body.default-light-mode .admin-action-menu > .admin-action-toggle,
  html body.theme-halloween .admin-action-popover-portal > button,
  html body.theme-winter .admin-action-popover-portal > button,
  html body.theme-ocean .admin-action-popover-portal > button {
    transition: none !important;
  }
}
