/* Cashback Pro V36.7.115 — coherent table header palette across the entire app. */
html body table.custom-table thead,
html body table.custom-table thead tr { background: transparent !important; }
html body .custom-table thead th,
html body table thead th {
  color: var(--text-main, #f1f5ff) !important;
  background: linear-gradient(112deg,
    color-mix(in srgb, var(--bg-surface, #263a59) 86%, var(--purple, #8b5cf6) 14%),
    color-mix(in srgb, var(--bg-surface, #263a59) 76%, var(--purple, #8b5cf6) 24%)) !important;
  border-color: var(--border-color, rgba(159,184,225,.28)) !important;
}

/* Default Dark: one continuous navy-to-indigo glass gradient, not alternating
   purple blocks on each column. Keep all header cells visually consistent. */
html body.default-dark-mode .custom-table thead th,
html body.default-dark-mode table thead th,
html body.theme-default:not(.default-light-mode) .custom-table thead th {
  color: #f1f5ff !important;
  background: linear-gradient(112deg, rgba(31, 58, 91, .97) 0%, rgba(44, 58, 103, .96) 52%, rgba(63, 48, 93, .95) 100%) !important;
  background-color: rgba(35, 55, 88, .96) !important;
  border-color: rgba(159, 184, 225, .23) !important;
  border-bottom: 1px solid rgba(155, 185, 232, .36) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.075), inset 0 -1px 0 rgba(109,151,215,.10) !important;
}

/* Default Light: pearl-blue into restrained lavender; avoid flat white headers. */
html body.default-light-mode .custom-table thead th,
html body.default-light-mode table thead th,
html body.theme-default.default-light-mode .custom-table thead th {
  color: #263b56 !important;
  background: linear-gradient(112deg, rgba(205,224,246,.96) 0%, rgba(220,228,248,.95) 54%, rgba(231,219,246,.94) 100%) !important;
  background-color: rgba(216,229,247,.95) !important;
  border-color: rgba(111,139,180,.28) !important;
  border-bottom: 1px solid rgba(111,139,180,.38) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.78), inset 0 -1px 0 rgba(140,155,196,.12) !important;
}

/* Seasonal themes use matching but restrained header tints. */
html body.theme-halloween:not(.default-light-mode) .custom-table thead th,
html body.theme-halloween:not(.default-light-mode) table thead th {
  color: #fff3ff !important;
  background: linear-gradient(112deg, rgba(73,43,91,.97), rgba(88,48,91,.96) 54%, rgba(99,55,69,.95)) !important;
  border-color: rgba(218,167,231,.26) !important;
}
html body.theme-winter:not(.default-light-mode) .custom-table thead th,
html body.theme-winter:not(.default-light-mode) table thead th {
  color: #f1f8ff !important;
  background: linear-gradient(112deg, rgba(25,64,101,.97), rgba(37,84,124,.96) 54%, rgba(44,83,119,.95)) !important;
  border-color: rgba(160,209,244,.28) !important;
}
html body.theme-ocean:not(.default-light-mode) .custom-table thead th,
html body.theme-ocean:not(.default-light-mode) table thead th,
html body.theme-dai-duong:not(.default-light-mode) .custom-table thead th {
  color: #eaffff !important;
  background: linear-gradient(112deg, rgba(7,68,84,.97), rgba(9,88,103,.96) 54%, rgba(20,76,100,.95)) !important;
  border-color: rgba(130,220,222,.25) !important;
}

/* Consistent rhythm for header cells and preserve sticky table headings. */
html body .custom-table thead th,
html body table thead th {
  font-weight: 750 !important;
  letter-spacing: .01em;
  vertical-align: middle;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
  background-clip: padding-box !important;
}

/* Knowledge category filter: make the native select easy to find and use. */
#kb-category-filter {
  min-height: 44px;
  padding: 9px 38px 9px 13px;
  border-radius: 12px;
  font-weight: 650;
  cursor: pointer;
}
.kb-category-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(124,151,193,.28);
  background: rgba(111,151,207,.13);
  color: var(--text-main, currentColor);
  font-size: .88em;
  font-weight: 650;
  white-space: nowrap;
}
.kb-category-badge[data-category="faq"] { background: rgba(72,151,213,.14); }
.kb-category-badge[data-category="policy"] { background: rgba(145,111,204,.15); }
.kb-category-badge[data-category="guide"] { background: rgba(63,164,143,.14); }
.kb-category-badge[data-category="rates"] { background: rgba(203,151,66,.15); }
.kb-category-badge[data-category="troubleshooting"] { background: rgba(207,102,113,.14); }
.kb-empty-state { text-align: center; padding: 22px 12px !important; color: var(--text-muted, #8290a3); }
@media (prefers-reduced-motion: reduce) {
  .kb-category-badge { transition: none !important; }
}
