/*
 * Cashback Pro V36.7.139
 * 1) Restore the header action popover: V137 accidentally set overflow:hidden
 *    on .app-header, clipping the account, notification and theme controls.
 * 2) Use native background-position animations after removing the stale
 *    !important positions introduced in V136. This avoids the old V136 custom
 *    property position locking the gradient at one frame.
 * 3) Keep the 3 seasonal themes' own colors and translucency.
 */

/* -------------------------------------------------------------------------
   HEADER POPOVER: never clip the account actions outside the header.
   The ::before is only a background wash; it does not need overflow clipping.
   ------------------------------------------------------------------------- */
html body.theme-halloween header.app-header,
html body.halloween-active header.app-header,
html body.theme-winter header.app-header,
html body.theme-ocean header.app-header {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  position: relative !important;
}

html body.theme-halloween header.app-header .user-pill,
html body.halloween-active header.app-header .user-pill,
html body.theme-winter header.app-header .user-pill,
html body.theme-ocean header.app-header .user-pill {
  position: relative !important;
  z-index: 1605 !important;
  overflow: visible !important;
}

html body.theme-halloween header.app-header #header-actions-menu,
html body.halloween-active header.app-header #header-actions-menu,
html body.theme-winter header.app-header #header-actions-menu,
html body.theme-ocean header.app-header #header-actions-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  z-index: 30000 !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

html body.theme-halloween header.app-header #header-actions-menu[hidden],
html body.halloween-active header.app-header #header-actions-menu[hidden],
html body.theme-winter header.app-header #header-actions-menu[hidden],
html body.theme-ocean header.app-header #header-actions-menu[hidden] {
  display: none !important;
}

/* Keep all compact quick actions visible in one vertical dropdown. */
html body.theme-halloween header.app-header #header-actions-menu,
html body.halloween-active header.app-header #header-actions-menu,
html body.theme-winter header.app-header #header-actions-menu,
html body.theme-ocean header.app-header #header-actions-menu {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  width: max-content !important;
  max-width: calc(100vw - 24px) !important;
  box-sizing: border-box !important;
}

/* Signed-in account action uses a profile icon. Keep its descriptive copy visible. */
html body.theme-halloween #header-auth-menu-login,
html body.halloween-active #header-auth-menu-login,
html body.theme-winter #header-auth-menu-login,
html body.theme-ocean #header-auth-menu-login {
  min-width: min(210px, calc(100vw - 42px)) !important;
  max-width: min(250px, calc(100vw - 42px)) !important;
  box-sizing: border-box !important;
}

/* The notification bell and theme shortcut stay individually tappable. */
html body.theme-halloween #header-actions-menu .notification-bell,
html body.halloween-active #header-actions-menu .notification-bell,
html body.theme-winter #header-actions-menu .notification-bell,
html body.theme-ocean #header-actions-menu .notification-bell,
html body.theme-halloween #header-actions-menu #theme-gallery-toggle,
html body.halloween-active #header-actions-menu #theme-gallery-toggle,
html body.theme-winter #header-actions-menu #theme-gallery-toggle,
html body.theme-ocean #header-actions-menu #theme-gallery-toggle {
  position: relative !important;
  z-index: 30001 !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

/* -------------------------------------------------------------------------
   HEADER GRADIENT: real movement on all three seasonal themes.
   Important: background-position is deliberately NOT !important. V136's
   important declaration is removed from that file in this ZIP so keyframes
   can interpolate it normally.
   ------------------------------------------------------------------------- */
html body.theme-halloween .app-header::before,
html body.halloween-active .app-header::before,
html body.theme-winter .app-header::before,
html body.theme-ocean .app-header::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background-repeat: no-repeat !important;
  background-size: 270% 270%, 270% 270%, 290% 290% !important;
  background-position: 0% 0%, 100% 100%, 0% 50%;
  animation: v367139HeaderColorTravel 19s ease-in-out infinite alternate !important;
}

html body.theme-halloween .app-header::before,
html body.halloween-active .app-header::before {
  background-image:
    radial-gradient(ellipse 76% 125% at 2% 4%, rgba(188, 119, 213, .30), transparent 72%),
    radial-gradient(ellipse 78% 120% at 98% 96%, rgba(234, 145, 91, .22), transparent 73%),
    linear-gradient(118deg, rgba(105, 58, 133, .34), rgba(53, 31, 79, .28) 52%, rgba(139, 68, 97, .29)) !important;
}

html body.theme-winter .app-header::before {
  background-image:
    radial-gradient(ellipse 76% 125% at 2% 4%, rgba(113, 190, 237, .30), transparent 72%),
    radial-gradient(ellipse 78% 120% at 98% 96%, rgba(183, 229, 251, .22), transparent 73%),
    linear-gradient(118deg, rgba(34, 117, 174, .34), rgba(18, 58, 105, .28) 52%, rgba(47, 144, 181, .29)) !important;
}

html body.theme-ocean .app-header::before {
  background-image:
    radial-gradient(ellipse 76% 125% at 2% 4%, rgba(78, 211, 200, .29), transparent 72%),
    radial-gradient(ellipse 78% 120% at 98% 96%, rgba(102, 177, 230, .22), transparent 73%),
    linear-gradient(118deg, rgba(14, 144, 152, .34), rgba(5, 64, 92, .28) 52%, rgba(28, 153, 166, .29)) !important;
}

/* Header contents remain above the moving wash. */
html body.theme-halloween .app-header > *,
html body.halloween-active .app-header > *,
html body.theme-winter .app-header > *,
html body.theme-ocean .app-header > * {
  position: relative !important;
  z-index: 1 !important;
}

/* -------------------------------------------------------------------------
   FOUR KPI CARDS: native animated movement, colors softened to remain glassy.
   ------------------------------------------------------------------------- */
html body.theme-halloween #seasonal-dashboard .seasonal-main .seasonal-kpis > article.seasonal-kpi,
html body.halloween-active #seasonal-dashboard .seasonal-main .seasonal-kpis > article.seasonal-kpi,
html body.theme-winter #seasonal-dashboard .seasonal-main .seasonal-kpis > article.seasonal-kpi,
html body.theme-ocean #seasonal-dashboard .seasonal-main .seasonal-kpis > article.seasonal-kpi {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  -webkit-backdrop-filter: blur(15px) saturate(135%) !important;
  backdrop-filter: blur(15px) saturate(135%) !important;
}

html body.theme-halloween #seasonal-dashboard .seasonal-main .seasonal-kpis > article.seasonal-kpi::before,
html body.halloween-active #seasonal-dashboard .seasonal-main .seasonal-kpis > article.seasonal-kpi::before,
html body.theme-winter #seasonal-dashboard .seasonal-main .seasonal-kpis > article.seasonal-kpi::before,
html body.theme-ocean #seasonal-dashboard .seasonal-main .seasonal-kpis > article.seasonal-kpi::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  border-radius: inherit !important;
  background-repeat: no-repeat !important;
  background-size: 270% 270%, 270% 270%, 290% 290% !important;
  background-position: 0% 0%, 100% 100%, 0% 50%;
  animation: v367139KpiColorTravel 23s ease-in-out infinite alternate !important;
}

html body.theme-halloween #seasonal-dashboard .seasonal-main .seasonal-kpis > article.seasonal-kpi::before,
html body.halloween-active #seasonal-dashboard .seasonal-main .seasonal-kpis > article.seasonal-kpi::before {
  background-image:
    radial-gradient(ellipse 76% 125% at 2% 4%, rgba(172, 96, 194, .22), transparent 73%),
    radial-gradient(ellipse 78% 120% at 98% 96%, rgba(220, 120, 78, .15), transparent 73%),
    linear-gradient(118deg, rgba(103, 56, 127, .24), rgba(53, 31, 77, .20) 52%, rgba(126, 59, 87, .20)) !important;
}

html body.theme-winter #seasonal-dashboard .seasonal-main .seasonal-kpis > article.seasonal-kpi::before {
  background-image:
    radial-gradient(ellipse 76% 125% at 2% 4%, rgba(91, 172, 222, .23), transparent 73%),
    radial-gradient(ellipse 78% 120% at 98% 96%, rgba(161, 219, 246, .16), transparent 73%),
    linear-gradient(118deg, rgba(25, 100, 153, .25), rgba(15, 53, 96, .21) 52%, rgba(34, 124, 158, .20)) !important;
}

html body.theme-ocean #seasonal-dashboard .seasonal-main .seasonal-kpis > article.seasonal-kpi::before {
  background-image:
    radial-gradient(ellipse 76% 125% at 2% 4%, rgba(48, 187, 179, .22), transparent 73%),
    radial-gradient(ellipse 78% 120% at 98% 96%, rgba(76, 157, 210, .16), transparent 73%),
    linear-gradient(118deg, rgba(8, 116, 127, .24), rgba(5, 57, 84, .20) 52%, rgba(17, 128, 145, .20)) !important;
}

html body.theme-halloween #seasonal-dashboard .seasonal-main .seasonal-kpis > article.seasonal-kpi > *,
html body.halloween-active #seasonal-dashboard .seasonal-main .seasonal-kpis > article.seasonal-kpi > *,
html body.theme-winter #seasonal-dashboard .seasonal-main .seasonal-kpis > article.seasonal-kpi > *,
html body.theme-ocean #seasonal-dashboard .seasonal-main .seasonal-kpis > article.seasonal-kpi > * {
  position: relative !important;
  z-index: 1 !important;
}

html body.theme-halloween #seasonal-dashboard .seasonal-kpis > article.seasonal-kpi:nth-child(1)::before,
html body.halloween-active #seasonal-dashboard .seasonal-kpis > article.seasonal-kpi:nth-child(1)::before { animation-delay: 0s !important; }
html body.theme-halloween #seasonal-dashboard .seasonal-kpis > article.seasonal-kpi:nth-child(2)::before,
html body.halloween-active #seasonal-dashboard .seasonal-kpis > article.seasonal-kpi:nth-child(2)::before,
html body.theme-winter #seasonal-dashboard .seasonal-kpis > article.seasonal-kpi:nth-child(2)::before,
html body.theme-ocean #seasonal-dashboard .seasonal-kpis > article.seasonal-kpi:nth-child(2)::before { animation-delay: -5.5s !important; }
html body.theme-halloween #seasonal-dashboard .seasonal-kpis > article.seasonal-kpi:nth-child(3)::before,
html body.halloween-active #seasonal-dashboard .seasonal-kpis > article.seasonal-kpi:nth-child(3)::before,
html body.theme-winter #seasonal-dashboard .seasonal-kpis > article.seasonal-kpi:nth-child(3)::before,
html body.theme-ocean #seasonal-dashboard .seasonal-kpis > article.seasonal-kpi:nth-child(3)::before { animation-delay: -11s !important; }
html body.theme-halloween #seasonal-dashboard .seasonal-kpis > article.seasonal-kpi:nth-child(4)::before,
html body.halloween-active #seasonal-dashboard .seasonal-kpis > article.seasonal-kpi:nth-child(4)::before,
html body.theme-winter #seasonal-dashboard .seasonal-kpis > article.seasonal-kpi:nth-child(4)::before,
html body.theme-ocean #seasonal-dashboard .seasonal-kpis > article.seasonal-kpi:nth-child(4)::before { animation-delay: -16.5s !important; }

/* -------------------------------------------------------------------------
   RECENT ORDERS: same low-opacity, moving color wash as dashboard KPI cards.
   ------------------------------------------------------------------------- */
html body.theme-halloween #seasonal-dashboard .seasonal-main > article.seasonal-orders::before,
html body.halloween-active #seasonal-dashboard .seasonal-main > article.seasonal-orders::before,
html body.theme-winter #seasonal-dashboard .seasonal-main > article.seasonal-orders::before,
html body.theme-ocean #seasonal-dashboard .seasonal-main > article.seasonal-orders::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  border-radius: inherit !important;
  background-repeat: no-repeat !important;
  background-size: 270% 270%, 270% 270%, 290% 290% !important;
  background-position: 0% 0%, 100% 100%, 0% 50%;
  animation: v367139OrdersColorTravel 27s ease-in-out infinite alternate !important;
}

html body.theme-halloween #seasonal-dashboard .seasonal-main > article.seasonal-orders::before,
html body.halloween-active #seasonal-dashboard .seasonal-main > article.seasonal-orders::before {
  background-image:
    radial-gradient(ellipse 76% 125% at 2% 4%, rgba(171, 93, 194, .20), transparent 73%),
    radial-gradient(ellipse 78% 120% at 98% 96%, rgba(224, 119, 75, .14), transparent 73%),
    linear-gradient(118deg, rgba(99, 53, 125, .22), rgba(53, 31, 77, .18) 52%, rgba(124, 57, 85, .18)) !important;
}
html body.theme-winter #seasonal-dashboard .seasonal-main > article.seasonal-orders::before {
  background-image:
    radial-gradient(ellipse 76% 125% at 2% 4%, rgba(91, 170, 221, .21), transparent 73%),
    radial-gradient(ellipse 78% 120% at 98% 96%, rgba(159, 218, 245, .15), transparent 73%),
    linear-gradient(118deg, rgba(24, 98, 150, .23), rgba(14, 51, 94, .19) 52%, rgba(32, 120, 154, .19)) !important;
}
html body.theme-ocean #seasonal-dashboard .seasonal-main > article.seasonal-orders::before {
  background-image:
    radial-gradient(ellipse 76% 125% at 2% 4%, rgba(47, 184, 177, .20), transparent 73%),
    radial-gradient(ellipse 78% 120% at 98% 96%, rgba(74, 154, 207, .15), transparent 73%),
    linear-gradient(118deg, rgba(7, 111, 123, .22), rgba(4, 54, 81, .18) 52%, rgba(15, 124, 141, .18)) !important;
}

html body.theme-halloween #seasonal-dashboard .seasonal-main > article.seasonal-orders > *,
html body.halloween-active #seasonal-dashboard .seasonal-main > article.seasonal-orders > *,
html body.theme-winter #seasonal-dashboard .seasonal-main > article.seasonal-orders > *,
html body.theme-ocean #seasonal-dashboard .seasonal-main > article.seasonal-orders > * {
  position: relative !important;
  z-index: 1 !important;
}

/* -------------------------------------------------------------------------
   TABLE HEADERS: one gradient belongs to the entire TR, not each TH.
   Native background-position animation is unblocked by the V136 patch.
   ------------------------------------------------------------------------- */
html body.theme-halloween:not(.default-light-mode) table thead tr,
html body.halloween-active table thead tr,
html body.theme-winter:not(.default-light-mode) table thead tr,
html body.theme-ocean:not(.default-light-mode) table thead tr,
html body.theme-dai-duong:not(.default-light-mode) table thead tr,
html body.default-dark-mode table thead tr,
html body.default-light-mode table thead tr,
html body.theme-default:not(.default-light-mode) table thead tr,
html body.theme-default.default-light-mode table thead tr {
  background-position: 0% 50%;
  background-size: 290% 100% !important;
  animation: v367139TableColorTravel 16s ease-in-out infinite alternate !important;
}
html body.theme-halloween table thead tr th,
html body.halloween-active table thead tr th,
html body.theme-winter table thead tr th,
html body.theme-ocean table thead tr th,
html body.theme-dai-duong table thead tr th,
html body.default-dark-mode table thead tr th,
html body.default-light-mode table thead tr th {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

@keyframes v367139HeaderColorTravel {
  0% { background-position: 0% 0%, 100% 100%, 0% 50%; }
  50% { background-position: 55% 38%, 40% 68%, 48% 52%; }
  100% { background-position: 100% 100%, 0% 0%, 100% 48%; }
}
@keyframes v367139KpiColorTravel {
  0% { background-position: 0% 0%, 100% 100%, 0% 50%; }
  50% { background-position: 50% 34%, 45% 70%, 50% 52%; }
  100% { background-position: 100% 100%, 0% 0%, 100% 48%; }
}
@keyframes v367139OrdersColorTravel {
  0% { background-position: 0% 0%, 100% 100%, 0% 50%; }
  50% { background-position: 48% 36%, 50% 68%, 52% 52%; }
  100% { background-position: 100% 100%, 0% 0%, 100% 48%; }
}
@keyframes v367139TableColorTravel {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  html body.theme-halloween .app-header::before,
  html body.halloween-active .app-header::before,
  html body.theme-winter .app-header::before,
  html body.theme-ocean .app-header::before,
  html body #seasonal-dashboard .seasonal-kpi::before,
  html body #seasonal-dashboard .seasonal-orders::before,
  html body table thead tr {
    animation: none !important;
    will-change: auto !important;
  }
}
