/* HealthPay merchant portal — hand-authored styles for the v2 money views.
   Committed pre-built (the app has no asset build step on deploy) and served
   from `self`, which the CSP allows.

   LIGHT THEME (2026-09-10) — matches the dex admin panel. The palette is these
   tokens; the compiled `moak`/`tmoak` Tailwind utilities used by the shell and
   the older screens are remapped to light in the block at the end of this file
   (portal.css loads after app.css, so same-specificity rules win). */

:root {
  --hp-bg: #f1f5f9;
  --hp-surface: #ffffff;
  --hp-surface-2: #f8fafc;
  --hp-surface-3: #eef2f7;
  --hp-line: #e9eef4;
  --hp-text: #0f172a;
  --hp-text-dim: #475569;
  --hp-text-faint: #94a3b8;
  --hp-pos: #15803d;
  --hp-neg: #b91c1c;
  --hp-warn: #b45309;
  --hp-accent: #2C7B9A;
  --hp-accent-2: #0369a1;
}

.hp-wrap { padding: .5rem 1.25rem 3rem; max-width: 1600px; margin: 0; }
@media (min-width: 1400px) { .hp-wrap { padding-left: 2rem; padding-right: 2rem; } }

.hp-h1 { font-size: 1.25rem; font-weight: 700; color: var(--hp-text); margin: 0 0 .25rem; }
.hp-sub { font-size: .8rem; color: var(--hp-text-dim); margin: 0 0 1.25rem; }

/* KPI grid */
.hp-kpis { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .hp-kpis { grid-template-columns: repeat(4, 1fr); } }

.hp-kpi {
  background: var(--hp-surface); border: 1px solid var(--hp-line);
  border-radius: .75rem; padding: 1rem 1.1rem;
}
.hp-kpi--wide { grid-column: span 2; }
.hp-kpi__label { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--hp-text-faint); }
.hp-kpi__value { font-size: 1.5rem; font-weight: 700; color: var(--hp-text); margin-top: .3rem; font-variant-numeric: tabular-nums; }
.hp-kpi__value small { font-size: .8rem; font-weight: 600; color: var(--hp-text-dim); }
.hp-kpi__foot { font-size: .72rem; color: var(--hp-text-dim); margin-top: .35rem; }
.hp-kpi__value.is-pos { color: var(--hp-pos); }
.hp-kpi__value.is-neg { color: var(--hp-neg); }

/* generic card */
.hp-card {
  background: var(--hp-surface); border: 1px solid var(--hp-line);
  border-radius: .75rem; padding: 1.15rem 1.25rem; margin-top: 1rem;
}
.hp-card__head { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.hp-card__title { font-size: .95rem; font-weight: 600; color: var(--hp-text); flex: 1; margin: 0; }
.hp-card__title span { display: block; font-size: .72rem; font-weight: 400; color: var(--hp-text-dim); }

/* chart */
.hp-chart { width: 100%; height: 175px; display: block; }
.hp-chart .bar { fill: var(--hp-accent); }
.hp-chart .bar.out { fill: var(--hp-surface-3); }
.hp-chart text { fill: var(--hp-text-faint); font-size: 13px; font-family: inherit; }
.hp-chart .axis { stroke: var(--hp-line); stroke-width: 1; }

/* table */
.hp-table-scroll { overflow-x: auto; border: 1px solid var(--hp-line); border-radius: .6rem; }
table.hp-table { width: 100%; border-collapse: collapse; font-size: .82rem; min-width: 720px; }
.hp-table thead th {
  background: var(--hp-surface-2); color: var(--hp-text-faint);
  text-transform: uppercase; font-size: .66rem; letter-spacing: .04em;
  text-align: left; padding: .55rem .75rem; font-weight: 600; white-space: nowrap;
}
.hp-table tbody td { padding: .6rem .75rem; border-top: 1px solid var(--hp-line); color: var(--hp-text-dim); vertical-align: middle; }
.hp-table tbody tr:hover td { background: rgba(15,23,42,.035); }
.hp-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hp-table .credit { color: var(--hp-pos); font-weight: 600; }
.hp-table .debit { color: var(--hp-neg); font-weight: 600; }
.hp-table .strong { color: var(--hp-text); }
.hp-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; }

/* badges */
.hp-badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .12rem .5rem; border-radius: 999px; font-size: .68rem; font-weight: 600;
  background: var(--hp-surface-3); color: var(--hp-text);
}
.hp-badge.ok { background: #dcfce7; color: var(--hp-pos); }
.hp-badge.pending { background: #fef9c3; color: var(--hp-warn); }
.hp-badge.bad { background: #fee2e2; color: var(--hp-neg); }
.hp-badge.info { background: #e0f2fe; color: var(--hp-accent-2); }

/* filters row */
.hp-filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin-bottom: .9rem; }
.hp-field { display: flex; flex-direction: column; gap: .2rem; }
.hp-field label { font-size: .65rem; text-transform: uppercase; color: var(--hp-text-faint); letter-spacing: .04em; }
.hp-input, .hp-select {
  background: var(--hp-surface-2); border: 1px solid var(--hp-line); color: var(--hp-text);
  border-radius: .4rem; padding: .4rem .55rem; font-size: .8rem; min-width: 130px;
}
.hp-input:focus, .hp-select:focus { outline: none; border-color: var(--hp-accent); }

.hp-btn {
  display: inline-flex; align-items: center; gap: .35rem; cursor: pointer;
  background: var(--hp-accent); color: #fff; border: none;
  border-radius: .45rem; padding: .45rem .8rem; font-size: .78rem; font-weight: 600;
  text-decoration: none;
}
.hp-btn:hover { filter: brightness(1.1); }
.hp-btn.ghost { background: transparent; border: 1px solid var(--hp-line); color: var(--hp-text-dim); }

.hp-empty { text-align: center; color: var(--hp-text-faint); padding: 2.5rem 1rem; font-size: .85rem; }

/* statement */
.hp-stmt { width: 100%; border-collapse: collapse; font-size: .88rem; }
.hp-stmt td { padding: .6rem .25rem; border-bottom: 1px solid var(--hp-line); color: var(--hp-text-dim); }
.hp-stmt td.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--hp-text); }
.hp-stmt tr.total td { border-top: 2px solid var(--hp-surface-3); border-bottom: none; color: var(--hp-text); font-weight: 700; padding-top: .8rem; }
.hp-stmt tr.sub td { color: var(--hp-text-faint); font-size: .8rem; }

.hp-pager { display: flex; justify-content: space-between; align-items: center; margin-top: .8rem; font-size: .78rem; color: var(--hp-text-dim); }
.hp-pager button { background: var(--hp-surface-2); border: 1px solid var(--hp-line); color: var(--hp-text-dim); border-radius: .4rem; padding: .35rem .7rem; cursor: pointer; }
.hp-pager button:disabled { opacity: .4; cursor: default; }

@media (max-width: 640px) {
  .hp-wrap { padding: 1rem .75rem 2.5rem; }
  .hp-kpis { grid-template-columns: 1fr 1fr; }
  .hp-kpi--wide { grid-column: span 2; }
  .hp-kpi__value { font-size: 1.25rem; }
  .hp-card { padding: .9rem; }
  .hp-filters { gap: .5rem; }
  .hp-input, .hp-select { min-width: 0; width: 100%; }
  .hp-field { flex: 1 1 45%; }
}

/* ---- holds / deposits views ----
   The portal CSP puts a nonce in style-src, which makes browsers ignore inline
   style="" attributes — so every layout rule for these views lives here. */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; }

.hp-alert {
  display: block; border-radius: .5rem; padding: .6rem .85rem; margin: .6rem 0;
  font-size: .78rem; line-height: 1.5;
  background: #fef2f2; color: var(--hp-neg); border: 1px solid #fecaca;
}
.hp-alert.info { background: #eff6ff; color: var(--hp-accent-2); border-color: #bfdbfe; }

.hp-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.hp-row.between { justify-content: space-between; align-items: flex-start; margin-bottom: .7rem; }
.hp-row.mt { margin-top: .8rem; }

.hp-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }

.hp-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .85rem; margin: .4rem 0; }
.hp-form-grid.tight { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); max-width: 620px; }
.hp-stack { max-width: 620px; margin-top: .5rem; }
.hp-field .opt { text-transform: none; letter-spacing: 0; color: var(--hp-text-faint); }
.hp-field textarea.hp-input { width: 100%; resize: vertical; font-family: inherit; line-height: 1.5; }

.hp-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem 1.4rem; margin-top: .9rem; }
.hp-detail dt { font-size: .62rem; text-transform: uppercase; letter-spacing: .04em; color: var(--hp-text-faint); margin-bottom: .15rem; }
.hp-detail dd { margin: 0; font-size: .85rem; color: var(--hp-text); }
.hp-detail dd .mono { color: var(--hp-text-faint); }

.hp-section { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--hp-line); }
.hp-eyebrow { font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; color: var(--hp-text-faint); margin-bottom: .5rem; }
.hp-note { font-size: .82rem; color: var(--hp-text-dim); margin: 0 0 .6rem; }
.hp-note.warn { color: var(--hp-warn); }
.hp-note.faint { color: var(--hp-text-faint); }
.hp-hint { font-size: .76rem; color: var(--hp-text-faint); margin: .7rem 0 0; max-width: 620px; }
.hp-uid { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .72rem; color: var(--hp-text-faint); margin-top: .2rem; }
.hp-desc { margin: .9rem 0 0; font-size: .86rem; color: var(--hp-text-dim); }

.hp-btn.danger { background: transparent; border: 1px solid var(--hp-neg); color: var(--hp-neg); }
.hp-btn.sm { padding: .25rem .6rem; font-size: .72rem; }

.hp-timeline { display: flex; flex-direction: column; gap: .3rem; }
.hp-timeline__item { display: flex; gap: .55rem; font-size: .77rem; color: var(--hp-text-dim); }
.hp-timeline__time { color: var(--hp-text-faint); white-space: nowrap; }
.hp-timeline__item strong { color: var(--hp-text); font-weight: 600; }
.hp-timeline__item .actor { color: var(--hp-text-faint); }

.hp-receipt { max-height: 22rem; border-radius: .5rem; border: 1px solid var(--hp-line); display: block; margin-top: .35rem; }

/* ---- disputes / statement / fees / activity / integration / bell ----
   Same CSP constraint as the holds section above: the portal puts a nonce in
   style-src, so browsers ignore inline style="" — every layout rule for these
   v2 views lives here, served from 'self'. */

/* small utilities */
.hp-faint { color: var(--hp-text-faint); }
.hp-dim   { color: var(--hp-text-dim); }
.hp-fine  { font-size: .8rem; color: var(--hp-text-faint); }
.hp-num   { font-variant-numeric: tabular-nums; }

.hp-field.gap  { margin-bottom: .9rem; }
.hp-input.wide { min-width: min(100%, 520px); }
.hp-badge.mt   { margin-top: .3rem; }
.hp-alert.ok   { background: #f0fdf4; color: var(--hp-pos); border-color: #bbf7d0; }

.hp-kpis.mt    { margin-top: .75rem; }
.hp-card.spaced { margin-top: 1.5rem; }
.hp-pager__page { margin: 0 .5rem; }

/* fee schedule / statement / integration tables */
.hp-stmt td strong { color: var(--hp-text); }
.hp-stmt .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.hp-stmt td .hp-btn { margin-left: .5rem; }
.hp-stmt-meta { margin-bottom: 1rem; color: var(--hp-text-dim); font-size: .85rem; }
.hp-stmt-foot {
  margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--hp-line);
  display: flex; justify-content: space-between; color: var(--hp-text);
}

/* copy-to-clipboard field (payment links) */
.hp-input.copyfield { min-width: 260px; max-width: 340px; cursor: pointer; }
.hp-input.copyfield.is-copied { border-color: var(--hp-pos); }

/* QR row (payment links) */
.hp-qr-cell { text-align: center; padding: 1rem; background: rgba(15,23,42,.035); }
.hp-qr { display: inline-block; background: #fff; padding: .5rem; border-radius: .4rem; }
.hp-qr__hint { color: var(--hp-text-faint); font-size: .72rem; margin-top: .4rem; }

/* notifications bell */
.hp-bell { position: relative; }
.hp-bell__btn { position: relative; background: transparent; border: none; color: var(--hp-text); cursor: pointer; padding: .4rem; }
.hp-bell__dot { position: absolute; top: .2rem; right: .2rem; width: .5rem; height: .5rem; border-radius: 999px; background: var(--hp-neg); }
.hp-bell__panel {
  position: absolute; right: 0; margin-top: .4rem; width: 320px; max-height: 400px; overflow-y: auto;
  background: var(--hp-surface); border: 1px solid var(--hp-line); border-radius: .6rem;
  box-shadow: 0 10px 30px rgba(15,23,42,.12); z-index: 50;
}
.hp-bell__head {
  padding: .6rem .8rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--hp-text-faint); border-bottom: 1px solid var(--hp-line);
  display: flex; justify-content: space-between; align-items: center;
}
.hp-bell__close { background: none; border: none; color: var(--hp-text-faint); cursor: pointer; font-size: 1rem; line-height: 1; }
.hp-bell__item { padding: .55rem .8rem; border-bottom: 1px solid var(--hp-line); display: flex; gap: .5rem; align-items: flex-start; }
.hp-bell__kind { margin-top: .35rem; width: .4rem; height: .4rem; border-radius: 999px; flex: none; background: var(--hp-accent-2); }
.hp-bell__kind.bad { background: var(--hp-neg); }
.hp-bell__kind.ok  { background: var(--hp-pos); }
.hp-bell__body { flex: 1; }
.hp-bell__text { font-size: .8rem; color: var(--hp-text); line-height: 1.35; }
.hp-bell__ago  { font-size: .68rem; color: var(--hp-text-faint); }
.hp-bell__empty { padding: 1.2rem .8rem; text-align: center; color: var(--hp-text-faint); font-size: .8rem; }

/* ---- livewire-datatables published views (datatables::) ----
   Same CSP constraint: inline style="" is dropped. Per-column widths
   (Column::width()) are emitted as a nonce'd <style> in datatable.blade.php,
   scoped to the table id and keyed by .dt-col-N — nothing needed here for that.
   This is only the static date/time-filter input nudge. */
.dt-date-filter { padding-bottom: 5px; }


/* ═══════════════════════════════════════════════════════════════════════════
   LIGHT THEME  (v10) — dex-style shell + a hard remap of the compiled dark
   palettes. portal.css loads after app.css; !important guarantees these win
   over the Tailwind utilities baked into app.css (no build step to change it).
   ═══════════════════════════════════════════════════════════════════════════ */

.hiddencsp { display: none !important; }

/* ---- GLOBAL FORM CONTROLS ----
   resources/css/app.css ships `[type='text'],…,select,textarea { background:#212330 !important }`
   (dark, !important) baked into the compiled app.css. This beats it: same/higher
   specificity, also !important, loaded later. dex uses the same pattern. */
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=image]):not([type=range]),
select,
textarea {
  background-color: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: var(--hp-text) !important;
  border-radius: .5rem !important;
  box-shadow: none !important;
}
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus {
  outline: none !important;
  border-color: var(--hp-accent) !important;
}
input::placeholder, textarea::placeholder { color: var(--hp-text-faint) !important; }
input[type=checkbox], input[type=radio] { background-color: #fff !important; border: 1.5px solid #cbd5e1 !important; }
input[type=checkbox]:checked, input[type=radio]:checked { background-color: var(--hp-accent) !important; border-color: var(--hp-accent) !important; }

/* app.css's generic `.active { background:#161821 }` (dark) — neutralise it */
.active { background-color: transparent !important; }
.hp-pager .active, .pagination .active, li.active > span, li.active > a { background-color: var(--hp-accent) !important; color: #fff !important; border-color: var(--hp-accent) !important; }

/* select2 (if used anywhere) → light */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-results__option,
.select2-container--default .select2-search--dropdown .select2-search__field {
  background-color: #fff !important; color: var(--hp-text) !important; border-color: #cbd5e1 !important;
}

/* ---- app shell (mirrors dex: fixed sidebar + topbar + scrolling content) ---- */
.hp-body { background: var(--hp-bg); color: var(--hp-text); }
.hp-shell { display: flex; height: 100vh; overflow: hidden; }

.hp-sidebar {
  width: 15rem; flex-shrink: 0; background: #fff;
  border-right: 1px solid var(--hp-line); display: flex; flex-direction: column;
}
.hp-nav__brand { display: flex; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--hp-line); }
.hp-sidebar__scroll { flex: 1; overflow-y: auto; padding: .5rem .25rem; }
.hp-sidebar__foot { border-top: 1px solid var(--hp-line); padding: .6rem .7rem; }

.hp-account { display: flex; align-items: center; gap: .6rem; padding: .4rem; border-radius: .6rem; }
.hp-account:hover { background: var(--hp-surface-2); }
.hp-account__avatar {
  width: 2rem; height: 2rem; border-radius: 999px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .75rem;
  background: linear-gradient(to bottom right, #2C7B9A, #1a5a75);
}
.hp-account__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.hp-account__meta strong { font-size: .78rem; color: var(--hp-text); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-account__meta small { font-size: .68rem; color: var(--hp-text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-account__out { background: none; border: none; cursor: pointer; color: var(--hp-text-faint); padding: .3rem; border-radius: .4rem; }
.hp-account__out:hover { color: var(--hp-neg); }
.hp-account__out svg { width: 1rem; height: 1rem; }

.hp-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.hp-topbar {
  background: #fff; border-bottom: 1px solid var(--hp-line);
  padding: .7rem 1.5rem; display: flex; align-items: center; gap: 1rem; flex-shrink: 0;
}
.hp-topbar__title { flex: 1; min-width: 0; }
.hp-topbar__title .hp-h1, .hp-topbar__title h1 { font-size: 1.05rem; margin: 0; }
.hp-topbar__title .hp-sub { margin: .1rem 0 0; }
.hp-topbar__chip {
  display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; color: var(--hp-text-faint);
  background: var(--hp-surface-2); border: 1px solid var(--hp-line); border-radius: .5rem; padding: .3rem .6rem; white-space: nowrap;
}
.hp-topbar__chip svg { width: .8rem; height: .8rem; }
.hp-topbar__profile { font-size: .78rem; font-weight: 600; color: var(--hp-text-dim); text-decoration: none; padding: .35rem .7rem; border: 1px solid var(--hp-line); border-radius: .5rem; }
.hp-topbar__profile:hover { color: var(--hp-text); background: var(--hp-surface-2); }
.hp-content { flex: 1; overflow-y: auto; background: var(--hp-bg); padding: 1.5rem; }

/* full-width money views use their own .hp-wrap; keep it edge-to-edge */
.hp-content > .hp-wrap { max-width: none; padding: 0; }

/* ---- sidebar nav links (light) ---- */
.hp-nav__label {
  display: block; font-size: .6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: #b6c0cc; padding: .9rem 1rem .35rem;
}
.hp-nav__link, .hp-nav__toggle {
  display: flex; align-items: center; gap: .6rem; width: calc(100% - .5rem);
  padding: .5rem .75rem; margin: 1px .25rem; border-radius: .55rem;
  font-size: .82rem; font-weight: 600; color: var(--hp-text-dim);
  background: transparent; border: none; cursor: pointer; text-align: left;
  text-decoration: none; box-sizing: border-box;
}
.hp-nav__link:hover, .hp-nav__toggle:hover { background: var(--hp-surface-2); color: var(--hp-text); }
.hp-nav__link.is-active, .hp-nav__toggle.is-active { background: #e8f3f8; color: var(--hp-accent); }
.hp-nav__link svg, .hp-nav__toggle svg { width: 1.1rem; height: 1.1rem; flex: none; color: currentColor; }
.hp-nav__text { flex: 1; }
.hp-nav__chev { width: .75rem; height: .75rem; color: var(--hp-text-faint); }
.hp-nav__toggle[aria-expanded="true"] .hp-nav__chev { transform: rotate(180deg); }
.hp-nav__alert {
  font-size: .66rem; font-weight: 700; color: #fff; background: var(--hp-accent);
  border-radius: 999px; min-width: 1.1rem; height: 1.1rem; padding: 0 .28rem;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.hp-nav__sub { margin: .1rem 0 .3rem 2rem; padding-left: .6rem; border-left: 1px solid var(--hp-line); }
.hp-nav__sub a { display: block; padding: .3rem .5rem; font-size: .77rem; font-weight: 500; color: var(--hp-text-dim); border-radius: .4rem; text-decoration: none; }
.hp-nav__sub a:hover { background: var(--hp-surface-2); color: var(--hp-text); }
.hp-nav__sub a.is-active { color: var(--hp-accent); background: #e8f3f8; }

/* ───────── hard remap of compiled `moak` / `tmoak` (dark) → light ───────── */
.bg-moak-50, .bg-moak-100, .bg-moak-200 { background-color: var(--hp-surface-3) !important; }
.bg-moak-500, .bg-moak-600 { background-color: var(--hp-bg) !important; }
.bg-moak-700 { background-color: var(--hp-surface-2) !important; }
.bg-moak-800 { background-color: #ffffff !important; }
.bg-moak-900, .bg-moak-950 { background-color: #eef4f7 !important; }
input.bg-moak-700, select.bg-moak-700, textarea.bg-moak-700,
input.bg-moak-800, select.bg-moak-800, textarea.bg-moak-800 {
  background-color: #ffffff !important; border: 1px solid var(--hp-line) !important; color: var(--hp-text) !important;
}
.hover\:bg-moak-700:hover, .hover\:bg-moak-800:hover { background-color: var(--hp-surface-2) !important; }
.hover\:bg-moak-900:hover, .focus\:bg-moak-900:focus, .active\:bg-moak-900:active { background-color: #eef4f7 !important; }
.border-moak-100, .border-moak-200, .border-moak-500, .border-moak-600, .border-moak-700, .border-moak-800 { border-color: var(--hp-line) !important; }

.text-tmoak-1, .text-moak-50 { color: var(--hp-text) !important; }
.text-tmoak-2 { color: var(--hp-text-dim) !important; }
.text-tmoak-3, .text-moak-200, .text-moak-300 { color: var(--hp-text-faint) !important; }
.text-tmoak-4, .text-tmoak-5, .text-moak-400 { color: #64748b !important; }

/* ───────── standard-Tailwind dark form controls (topup / cashout / refund) → light
   Scoped to inputs/selects/textareas only — never touch bg-gray-* on
   overlays, modals, chips, etc. ───────── */
input[class*="bg-gray-"], select[class*="bg-gray-"], textarea[class*="bg-gray-"],
input[class*="bg-slate-"], select[class*="bg-slate-"], textarea[class*="bg-slate-"] {
  background-color: #ffffff !important; color: var(--hp-text) !important;
  border: 1px solid var(--hp-line) !important;
}
.border-gray-700, .border-gray-800, .border-slate-700, .border-gray-600 { border-color: var(--hp-line) !important; }

/* indigo accents used by those forms → HealthPay teal */
.bg-indigo-500, .bg-indigo-600, .bg-indigo-700 { background-color: var(--hp-accent) !important; color: #fff !important; }
.hover\:bg-indigo-600:hover, .hover\:bg-indigo-700:hover { background-color: #23697f !important; }
.border-indigo-300, .border-indigo-400, .border-indigo-500 { border-color: var(--hp-accent) !important; }
.text-indigo-500, .text-indigo-600 { color: var(--hp-accent) !important; }
.ring-indigo-200, .focus\:ring-indigo-200:focus { --tw-ring-color: rgba(44,123,154,.25) !important; }

.text-red-400 { color: var(--hp-neg) !important; }

/* ───────── Jetstream button + auth pages ───────── */
.hp-btn.hp-btn--jet { padding: .55rem 1rem; text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; border-radius: .5rem; }
.hp-btn.hp-btn--jet, .hp-btn.hp-btn--jet * { color: #fff !important; }
.bg-moak-200.text-tmoak-2 { background-color: var(--hp-surface-2) !important; color: var(--hp-text-dim) !important; border: 1px solid var(--hp-line) !important; }

.hp-auth-page {
  background: var(--hp-bg); min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.hp-auth-logo { margin-bottom: 1.25rem; }
.hp-auth-logo img { height: 44px; width: auto; }
.hp-auth-card {
  background: #fff; border: 1px solid var(--hp-line); border-radius: 1rem;
  box-shadow: 0 10px 40px -12px rgba(15,23,42,.12);
  width: 100%; max-width: 400px; padding: 2.25rem 2.25rem 1.75rem;
}
.hp-auth-title { font-size: 1.25rem; font-weight: 700; color: var(--hp-text); margin: 0; }
.hp-auth-hint  { font-size: .82rem; color: var(--hp-text-faint); margin: .25rem 0 1.5rem; }
.hp-auth-errors { margin-bottom: 1rem; }
.hp-auth-errors div, .hp-auth-errors li { color: var(--hp-neg); font-size: .8rem; }

.hp-auth-form { display: flex; flex-direction: column; }
.hp-auth-field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.hp-auth-field > span { font-size: .78rem; font-weight: 600; color: var(--hp-text-dim); }
.hp-auth-field > input {
  width: 100%; padding: .6rem .75rem !important; font-size: .88rem !important;
  border: 1.5px solid #d5dde5 !important; border-radius: .6rem !important; background: #fff !important;
}
.hp-auth-field > input:focus { border-color: var(--hp-accent) !important; box-shadow: 0 0 0 3px rgba(44,123,154,.14) !important; }

.hp-auth-remember { display: flex; align-items: center; gap: .5rem; margin: .15rem 0 1.4rem; cursor: pointer; }
.hp-auth-remember > span { font-size: .82rem; color: var(--hp-text-dim); }

.hp-btn.hp-btn--block { width: 100%; justify-content: center; padding: .7rem; font-size: .85rem; text-transform: none; letter-spacing: 0; font-weight: 700; border-radius: .6rem; }

/* other auth pages (forgot / reset / sub-admin / 2fa) still use <x-jet-button> */
.hp-auth-card .hp-btn--jet { width: 100%; justify-content: center; padding: .7rem; font-size: .82rem; text-transform: none; letter-spacing: 0; border-radius: .6rem; }
.hp-auth-card form .flex.justify-end, .hp-auth-card form .flex.items-center.justify-end { display: block; }
.hp-auth-card form .mt-4 { margin-top: 1rem; }

.hp-auth-alt { text-align: center; font-size: .8rem; color: var(--hp-text-faint); margin: 1.25rem 0 0; }
.hp-auth-alt a { color: var(--hp-accent); font-weight: 600; text-decoration: none; }
.hp-auth-alt a:hover { text-decoration: underline; }

/* kill the Chrome autofill blue/yellow tint on every input */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 40px #ffffff inset !important;
  -webkit-text-fill-color: var(--hp-text) !important;
  caret-color: var(--hp-text);
}

/* ───────── give the old full-width forms a sane measure ───────── */
.hp-content > form,
.hp-content > div > form:not(.hp-filters):not([class*="hp-"]) { max-width: 560px; }
.hp-content form input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.hp-content form select, .hp-content form textarea { max-width: 560px; }
.hp-content .hp-form-grid input, .hp-content .hp-form-grid select { max-width: none; }

@media (max-width: 820px) {
  .hp-shell { height: auto; overflow: visible; display: block; }
  .hp-sidebar { width: 100%; flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--hp-line); }
  .hp-sidebar__scroll { display: flex; }
  .hp-sidebar__foot, .hp-nav__brand { flex-shrink: 0; }
  .hp-content { padding: 1rem; }
}
