/* V36.7.80 — consistent light surfaces, guest navigation cleanup and fully themed controls. */

/* Light mode uses one page canvas across every tab, not a gray legacy pane. */
html body.default-light-mode {
  --bg-dark: #ffffff !important;
  --bg-surface: #ffffff !important;
  --bg-surface-2: #f3f6fc !important;
  --bg-card: #ffffff !important;
  --border-color: #d4deeb !important;
  --border-light: #c4d1e2 !important;
  --text-main: #1d2b40 !important;
  --text-muted: #53647b !important;
  --text-sub: #687a91 !important;
  background: #ffffff !important;
  background-image: none !important;
  background-color: #ffffff !important;
}
html body.default-light-mode .main-container,
html body.default-light-mode main,
html body.default-light-mode .tab-content,
html body.default-light-mode .tab-content.active,
html body.default-light-mode #tab-finance,
html body.default-light-mode #tab-orders,
html body.default-light-mode #tab-converter,
html body.default-light-mode #tab-profile,
html body.default-light-mode #tab-support,
html body.default-light-mode #tab-admin {
  background: transparent !important;
  background-color: transparent !important;
  color: #1d2b40 !important;
}
html body.default-light-mode .halloween-ambient-layer,
html body.default-light-mode .theme-ambient-fx { opacity: .035 !important; }

/* Header account/lock action menu must not retain the dark glass panel in light mode. */
html body.default-light-mode .app-header .header-actions-menu {
  background: rgba(255,255,255,.98) !important;
  border: 1px solid #d2dceb !important;
  box-shadow: 0 12px 30px rgba(35,52,78,.16) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}
html body.default-light-mode .app-header .header-actions-menu .header-auth-menu-login {
  background: #f3f6fc !important;
  border: 1px solid #cbd7e7 !important;
  color: #26374e !important;
  box-shadow: 0 2px 7px rgba(35,52,78,.07) !important;
}
html body.default-light-mode .app-header .header-actions-menu .header-auth-menu-login-icon {
  background: #eaf1fc !important;
  color: #426b9b !important;
}
html body.default-light-mode .app-header .header-actions-menu .notification-bell,
html body.default-light-mode .app-header .header-actions-menu #theme-gallery-toggle {
  background: #f3f6fc !important;
  border: 1px solid #d2dceb !important;
  color: #405570 !important;
}

/* Guest mode: remove empty Account/Admin headings, not only their buttons. */
#app-sidebar #main-tabs-nav .nav-section-heading[hidden] { display:none !important; }

/* Opaque cards prevent the page/background art showing through the withdrawal area. */
.customer-withdrawals-card,
.bank-management-card {
  background: var(--bg-surface, #fff) !important;
  background-color: var(--bg-surface, #fff) !important;
  border: 1px solid var(--border-color, #d4deeb) !important;
  box-shadow: 0 8px 24px rgba(25,42,68,.09) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 1 !important;
}
.customer-withdrawal-row,
.customer-bank-item {
  background: var(--bg-surface-2, #f3f6fc) !important;
  border-color: var(--border-color, #d4deeb) !important;
}

/* Calendar month/year selectors are custom in-app selection sheets, not Android native popups. */
.cp-calendar-period { display:flex !important; align-items:center !important; gap:8px !important; flex:1 1 auto !important; min-width:0 !important; }
.cp-calendar-period > .cp-calendar-period-trigger {
  min-width:0 !important;
  min-height:42px !important;
  padding:8px 11px !important;
  border-radius:12px !important;
  font-size:13px !important;
  font-weight:750 !important;
  background:var(--bg-surface, #fff) !important;
  color:var(--text-main) !important;
}
.cp-calendar-period > #cp-calendar-month { flex:1 1 0 !important; width:auto !important; }
.cp-calendar-period > #cp-calendar-year { flex:0 0 112px !important; width:112px !important; }
.cp-calendar-period-trigger {
  display:flex !important; align-items:center !important; justify-content:center !important;
  min-width:0 !important; min-height:42px !important; padding:8px 11px !important;
  border:1px solid var(--border-color) !important; border-radius:12px !important;
  font-size:13px !important; font-weight:750 !important;
  background:var(--bg-surface, #fff) !important; color:var(--text-main) !important;
  box-shadow:0 2px 7px rgba(25,42,68,.06) !important;
}
.cp-calendar-period-trigger[aria-expanded="true"] { border-color:var(--purple) !important; }
.cp-picker-panel .cp-select-trigger { border-color:var(--border-color) !important; }
@media(max-width:560px) {
  .cp-calendar-period { gap:6px !important; }
  .cp-calendar-period > #cp-calendar-year { flex-basis:108px !important; width:108px !important; }
}

.cp-calendar-period { position:relative !important; }
.cp-calendar-select-menu {
  position:absolute !important; z-index:20 !important; top:calc(100% + 7px) !important;
  left:0 !important; right:0 !important; max-height:min(48dvh,360px) !important;
  overflow:auto !important; display:grid !important; gap:5px !important;
  padding:8px !important; border:1px solid var(--border-color) !important;
  border-radius:14px !important; background:var(--bg-surface) !important;
  color:var(--text-main) !important; box-shadow:0 14px 34px rgba(0,0,0,.22) !important;
}
.cp-calendar-select-option {
  display:flex !important; align-items:center !important; justify-content:space-between !important;
  gap:8px !important; width:100% !important; min-height:40px !important; padding:8px 10px !important;
  border:1px solid transparent !important; border-radius:10px !important;
  background:var(--bg-surface-2) !important; color:var(--text-main) !important;
  text-align:left !important; font:inherit !important; font-size:13px !important;
}
.cp-calendar-select-option.is-selected { border-color:var(--purple) !important; background:color-mix(in srgb,var(--purple) 15%,var(--bg-surface)) !important; }
.cp-calendar-select-option i { color:var(--purple) !important; font-style:normal !important; font-weight:900 !important; }
