/*
  AMIV Onboarding — Bootstrap 5 brand layer.
  Tokens match the live app's app.css so the redesign stays on-brand.
  Load AFTER bootstrap.min.css on every page.
*/

:root {
  --brand-primary: #4e71b6;
  --brand-primary-ink: #3c5990;
  --brand-primary-soft: #e8eef8;
  --brand-pink: #e8367f;
  --brand-pink-soft: #fbe4ee;
  --brand-ink: #1e2a3b;
  --brand-muted: #6b7280;
  --brand-line: #e4e9f0;
  --brand-page: #f5f7fb;
  --brand-sand: #f4f7fb;
  --brand-card: #ffffff;
  --brand-ok: #0f766e;
  --brand-ok-soft: #e3f3f1;
  --brand-warn: #b45309;
  --brand-warn-soft: #faf1e3;
  --brand-bad: #b42318;
  --brand-bad-soft: #fbeae8;
  --brand-radius: .75rem;
  --brand-shadow-sm: 0 1px 2px rgba(30,42,59,.04), 0 1px 3px rgba(30,42,59,.06);
  --brand-shadow-md: 0 1px 2px rgba(30,42,59,.04), 0 14px 32px -14px rgba(30,42,59,.22);
  --brand-shadow-lift: 0 10px 20px -8px rgba(78,113,182,.35);

  /* Retune Bootstrap's own tokens so every stock component (cards, buttons,
     inputs, modals) picks up the softer, rounder AMIV look automatically. */
  --bs-border-radius: .7rem;
  --bs-border-radius-lg: .9rem;
  --bs-border-radius-sm: .5rem;
  --bs-box-shadow-sm: var(--brand-shadow-sm);
  --bs-box-shadow: var(--brand-shadow-md);
  --bs-body-font-family: "Nunito Sans", system-ui, -apple-system, sans-serif;
}

body {
  font-family: "Nunito Sans", system-ui, -apple-system, sans-serif;
  background: var(--brand-page);
  color: var(--brand-ink);
}

a { color: var(--brand-primary); }
a:hover { color: var(--brand-primary-ink); }

h1, h2, h3, h4, h5 { font-weight: 800; letter-spacing: -.01em; }
.text-muted { color: var(--brand-muted) !important; }
.small, small { font-size: .8125rem; }

/* --- Buttons --- */
.btn {
  font-weight: 700; border-radius: var(--brand-radius);
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
/* .btn uses a tighter line-height (1.2) than .form-control's 1.5, so matching
   padding-y alone isn't enough — this padding compensates for that gap so a
   default-sized button placed next to an input (search bar, "Verify NPI")
   renders the same total height. Scoped away from .btn-sm/.btn-lg so their
   own Bootstrap sizing isn't overridden. */
.btn:not(.btn-sm):not(.btn-lg) {
  --bs-btn-padding-y: .7rem;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--brand-shadow-lift); }
.btn-primary:active { transform: translateY(0); }

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand-primary);
  --bs-btn-border-color: var(--brand-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand-primary-ink);
  --bs-btn-hover-border-color: var(--brand-primary-ink);
  --bs-btn-active-bg: var(--brand-primary-ink);
  --bs-btn-active-border-color: var(--brand-primary-ink);
  --bs-btn-disabled-bg: var(--brand-primary);
  --bs-btn-disabled-border-color: var(--brand-primary);
  --bs-btn-focus-shadow-rgb: 78, 113, 182;
}

.btn-outline-secondary {
  --bs-btn-color: var(--brand-ink);
  --bs-btn-border-color: var(--brand-line);
  --bs-btn-hover-color: var(--brand-ink);
  --bs-btn-hover-bg: #f8fafc;
  --bs-btn-hover-border-color: var(--brand-line);
  --bs-btn-active-color: var(--brand-ink);
  --bs-btn-active-bg: #f1f5f9;
  --bs-btn-active-border-color: var(--brand-line);
}

.btn-outline-muted {
  --bs-btn-color: var(--brand-muted);
  --bs-btn-border-color: var(--brand-muted);
  --bs-btn-hover-color: var(--brand-ink);
  --bs-btn-hover-bg: #f8fafc;
  --bs-btn-hover-border-color: var(--brand-muted);
  --bs-btn-active-color: var(--brand-ink);
  --bs-btn-active-bg: #f1f5f9;
  --bs-btn-active-border-color: var(--brand-muted);
}

.btn-link {
  --bs-btn-color: var(--brand-primary);
  --bs-btn-hover-color: var(--brand-primary-ink);
  font-weight: 700;
  text-decoration: none;
}
.btn-link:hover { text-decoration: underline; }

/* --- Forms --- */
.form-control, .form-select {
  border-color: var(--brand-line);
  border-radius: .6rem;
  padding-top: .55rem;
  padding-bottom: .55rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 .2rem rgba(78, 113, 182, .18);
}
.form-label { font-weight: 700; font-size: .875rem; }
.required-mark {
  color: var(--bs-danger, #dc3545);
  font-weight: 700;
  margin-left: 0.15em;
}
.form-required-legend .required-mark { margin-left: 0; margin-right: 0.25em; }
.review-confirm .required-mark { margin-right: 0.2em; }
.form-check-input:checked {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}
.form-check-input:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 .2rem rgba(78, 113, 182, .18);
}

/* --- Alerts (status banners) --- */
.alert-danger {
  --bs-alert-color: var(--brand-bad);
  --bs-alert-bg: var(--brand-bad-soft);
  --bs-alert-border-color: var(--brand-bad-soft);
}
.alert-success {
  --bs-alert-color: var(--brand-ok);
  --bs-alert-bg: var(--brand-ok-soft);
  --bs-alert-border-color: var(--brand-ok-soft);
}
.alert-info {
  --bs-alert-color: var(--brand-primary-ink);
  --bs-alert-bg: var(--brand-primary-soft);
  --bs-alert-border-color: var(--brand-primary-soft);
}
.alert-warning {
  --bs-alert-color: var(--brand-warn);
  --bs-alert-bg: var(--brand-warn-soft);
  --bs-alert-border-color: var(--brand-warn-soft);
}

/* --- Status pills (reused across staff + nurse views) --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
}
.pill-muted { background: #eef0f4; color: var(--brand-muted); }
.pill-info  { background: var(--brand-primary-soft); color: var(--brand-primary-ink); }
.pill-warn  { background: var(--brand-warn-soft); color: var(--brand-warn); }
.pill-ok    { background: var(--brand-ok-soft); color: var(--brand-ok); }
.pill-bad   { background: var(--brand-bad-soft); color: var(--brand-bad); }
.pill-archived { background: #e9ebf0; color: #475569; }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* Note / comment block (e.g. archive reason) */
.note-card {
  background: #fafbfd; border: 1px solid var(--brand-line); border-radius: var(--bs-border-radius);
  padding: .85rem 1rem; font-size: 13.5px;
}
.note-card .note-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-muted); margin-bottom: .3rem; }

/* Stat tiles (staff dashboard) */
.stat-tile {
  background: var(--brand-card); border: 1px solid var(--brand-line); border-radius: var(--bs-border-radius-lg);
  padding: 1.1rem 1.25rem; box-shadow: var(--brand-shadow-sm);
}
a.stat-tile,
.stat-tile--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.stat-tile:hover,
a.stat-tile:focus-visible,
.stat-tile--link:hover,
.stat-tile--link:focus-visible {
  border-color: var(--brand-primary);
  box-shadow: var(--brand-shadow-md, 0 4px 14px rgba(78, 113, 182, .12));
  transform: translateY(-1px);
  color: inherit;
}
a.stat-tile:focus-visible,
.stat-tile--link:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}
.stat-tile .stat-num { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-tile .stat-label { color: var(--brand-muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* --- Shared chrome --- */
.brand-topbar {
  background: var(--brand-primary);
  padding: .8rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.brand-topbar img { height: 24px; width: auto; display: block; }
.brand-topbar nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
@media (min-width: 768px) {
  .brand-topbar { padding: .9rem 1.5rem; }
  .brand-topbar img { height: 28px; }
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  background:
    radial-gradient(820px circle at 12% -8%, rgba(78,113,182,.13), transparent 58%),
    radial-gradient(680px circle at 108% 108%, rgba(232,54,127,.11), transparent 55%),
    var(--brand-sand);
}

.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-logo img { height: 32px; width: auto; }

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--brand-card);
  border: 1px solid var(--brand-line);
  border-radius: 1.1rem;
  padding: 2rem;
  box-shadow: var(--brand-shadow-md);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--brand-muted);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 1.25rem 0;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--brand-line);
}

.auth-card .input-group .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.auth-card .input-group .btn-outline-secondary {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.auth-card .form-check {
  min-height: 1.25rem;
  margin-bottom: 0;
}

/* Icon-only row actions (View / Archive / Restore) — keep the pair on one line
   instead of wrapping when the Actions column gets tight. */
.table-brand td:has(.icon-action-btn) { white-space: nowrap; }
.icon-action-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; flex: none;
  border: none; background: transparent; color: var(--brand-muted);
  transition: background-color .15s ease, color .15s ease;
}
.icon-action-btn:hover { background: #f1f5f9; color: var(--brand-ink); }
.icon-action-btn.tint-danger:hover { background: var(--brand-bad-soft); color: var(--brand-bad); }
.icon-action-btn.tint-primary:hover { background: var(--brand-primary-soft); color: var(--brand-primary-ink); }

.icon-btn-toggle {
  border: none;
  background: transparent;
  color: var(--brand-muted);
  cursor: pointer;
  padding: 0 .75rem;
}
.icon-btn-toggle:hover { color: var(--brand-ink); }

.brand-foot {
  text-align: center;
  color: var(--brand-muted);
  font-size: .8125rem;
  line-height: 1.5;
  padding: 1.5rem 1rem 2.5rem;
}

/* --- Nurse shell (app.css is not loaded on nurse routes) --- */
.nurse-body {
  background: var(--brand-page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nurse-wrap,
.apply-wrap {
  flex: 1;
  width: 100%;
}

.nurse-wrap { max-width: 880px; }
.apply-wrap { max-width: 720px; }

.nurse-wrap > section.card,
.apply-wrap > section.card,
.nurse-wrap > .row > [class*="col-"] > section.card {
  margin-bottom: 1.5rem;
}

.nurse-wrap > section.card:last-of-type,
.apply-wrap > section.card:last-of-type,
.nurse-wrap > .row:last-child > [class*="col-"] > section.card {
  margin-bottom: 0;
}

.apply-wrap .document-row .form-control { flex: 1; min-width: 0; }
.apply-wrap .npi-error {
  color: var(--brand-bad);
  font-size: .8125rem;
  margin-top: .5rem;
}

.brand-topbar nav a.small {
  font-size: .8125rem !important;
  line-height: 1.3;
}

/* Step grid (nurse dashboard) */
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.step-card { border: 1px solid var(--brand-line); border-radius: 12px; padding: 16px; background: var(--brand-card); }
.step-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.step-card-head .pill { flex-shrink: 0; white-space: nowrap; }

/* =========================================================
   Staff app shell (sidebar layout used by all /staff pages)
   Mobile (<992px): sidebar is a Bootstrap offcanvas opened from a
   slim top bar. Desktop (>=992px): offcanvas-lg neutralizes itself
   and the sidebar sits as a normal static column — see Bootstrap's
   "responsive offcanvas" pattern (class="offcanvas offcanvas-lg").
   ========================================================= */
.staff-shell { display: block; min-height: 100vh; }
@media (min-width: 992px) {
  .staff-shell { display: grid; grid-template-columns: 240px 1fr; }
}

.mobile-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--brand-card);
  border-bottom: 1px solid var(--brand-line);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.mobile-topbar img { height: 24px; width: auto; }
.mobile-topbar-toggle {
  border: none; background: transparent; color: var(--brand-ink);
  padding: 6px; margin: -6px; border-radius: 8px; line-height: 0;
}
.mobile-topbar-toggle:hover { background: #f3f4f6; }

.sidebar {
  --bs-offcanvas-width: 272px;
  background: var(--brand-card);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 992px) {
  .sidebar {
    background: var(--brand-card) !important;
    border-right: 1px solid var(--brand-line) !important;
    padding: 24px 16px;
    position: sticky !important;
    top: 0;
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
  }
  .sidebar .offcanvas-header { display: none; }
}
.side-brand { display: block; margin-bottom: 24px; }
.side-brand img { width: 148px; }
.side-section {
  margin: 18px 12px 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-muted);
}
.side-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  color: var(--brand-ink); text-decoration: none; font-weight: 700; font-size: 14px;
  margin-bottom: 2px; transition: background-color .15s ease, color .15s ease;
}
.side-link svg { flex: none; opacity: .75; }
.side-link:hover { background: #f3f4f6; color: var(--brand-ink); }
.side-link.active { background: var(--brand-primary-soft); color: var(--brand-primary-ink); }
.side-link.active svg { opacity: 1; }
.side-link.subtle { font-weight: 600; color: var(--brand-muted); font-size: 13px; }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--brand-line); }
.side-who { font-size: 12px; color: var(--brand-muted); padding: 0 12px 8px; word-break: break-all; }
.staff-main { min-width: 0; width: 100%; }
.staff-main.staff-main--full { max-width: none; flex: 1 1 auto; }
.staff-wrap {
  padding: 20px 16px 48px;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
.staff-form-page { max-width: 680px; }
.staff-add-lead-page {
  max-width: min(920px, 100%);
}
.staff-add-lead-page .add-lead-section {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-muted);
  margin: 0 0 12px;
  padding-top: 4px;
}
.staff-add-lead-page .add-lead-section + .row {
  margin-bottom: 0;
}
.staff-add-lead-page .add-lead-section:not(:first-child) {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--brand-line);
}
.staff-settings-page { max-width: 760px; }
.staff-settings-page .list-group-item { border-color: var(--brand-line); cursor: pointer; }
.staff-settings-page .list-group-item:last-child { border-bottom: 0; }
.staff-settings-page .list-group-item .form-switch .form-check-input { cursor: pointer; }
.staff-settings-page .list-group-item .form-switch .form-check-input:disabled { cursor: default; opacity: 1; }
@media (min-width: 768px) {
  .staff-wrap { padding: 28px 32px 64px; }
}

/* Page head / status pills reused across staff + nurse pages */
.next-action {
  background: var(--brand-primary-soft); color: var(--brand-primary-ink);
  padding: 10px 14px; border-radius: 10px; font-size: 13.5px; margin-top: 10px; display: inline-block;
}

/* Label/value lists (application meta, submitted details) */
.meta-list { margin: 0; }
.meta-list > div {
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 13.5px; padding: 8px 0; border-bottom: 1px dashed var(--brand-line);
}
.meta-list > div:last-child { border-bottom: none; }
.meta-list dt { color: var(--brand-muted); font-weight: 700; margin: 0; }
.meta-list dd { margin: 0; text-align: right; font-weight: 600; }

/* Staff lead — onboarding form 4-column grid (xl), 2 on md, 1 on mobile */
.lead-onboarding-form-grid { margin-top: 0.25rem; }
.lead-form-panel {
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #fafbfd 0%, #fff 100%);
  min-height: 100%;
}
.lead-form-panel-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-muted);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--brand-line);
}
.lead-onboarding-form-grid .meta-list-stacked > div {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--brand-line);
}
.lead-onboarding-form-grid .meta-list-stacked > div:last-child { border-bottom: none; padding-bottom: 0; }
.lead-onboarding-form-grid .meta-list-stacked dt {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--brand-muted);
}
.lead-onboarding-form-grid .meta-list-stacked dd {
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
  width: 100%;
}
.lead-onboarding-docs { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--brand-line); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.timeline li { display: flex; gap: 12px; align-items: flex-start; }
.tl-mark {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
}
.timeline li.done .tl-mark { background: var(--brand-ok-soft); color: var(--brand-ok); }
.timeline li.todo .tl-mark { background: #eef0f4; color: var(--brand-muted); }
.timeline .tl-title { font-weight: 700; font-size: 14px; }
.timeline .tl-time { color: var(--brand-muted); font-size: 12.5px; }

/* Uploaded documents list */
.doc-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.doc-list-item { font-size: 13.5px; display: flex; gap: 6px; flex-wrap: wrap; }

/* Confirmation / success panel */
.confirm-panel {
  text-align: center; padding: 2.25rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.confirm-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--brand-ok-soft); color: var(--brand-ok);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}

/* Tables (Applications list) */
.table-brand thead th {
  font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--brand-muted); font-weight: 800; border-bottom: 1px solid var(--brand-line);
  background: #fafbfd;
}
.table-brand td { vertical-align: middle; font-size: 13.75px; }
.table-brand tr:last-child td { border-bottom: none; }
/* Bootstrap paints each <td>'s background from --bs-table-bg / --bs-table-bg-state,
   so a background set on <tr> itself never shows — use .table-hover's own
   variable mechanism instead (requires class="table-hover" on the <table>). */
.table-brand.table-hover { --bs-table-hover-bg: #fafbfd; }
.table-brand tbody tr > * { transition: background-color .12s ease; }
.table-brand tbody tr[data-href] { cursor: pointer; }
.table-brand.table-hover > tbody > tr[data-href]:hover > * { --bs-table-bg-state: var(--brand-primary-soft); }

/* Below phone width, turn rows into stacked cards instead of a horizontally
   scrolling table — add class "cards-mobile" to the <table>, a data-label
   on each <td> to show as its field name, and one of the modifier classes
   below on <td> to control how that particular cell behaves. */
@media (max-width: 575.98px) {
  .table-brand.cards-mobile thead { display: none; }
  .table-brand.cards-mobile,
  .table-brand.cards-mobile tbody,
  .table-brand.cards-mobile tr,
  .table-brand.cards-mobile td {
    display: block;
    width: 100%;
  }
  .table-brand.cards-mobile tr {
    border: 1px solid var(--brand-line);
    border-radius: var(--bs-border-radius);
    box-shadow: var(--brand-shadow-sm);
    padding: .8rem .9rem;
    margin-bottom: .6rem;
  }
  .table-brand.cards-mobile tr:last-child { margin-bottom: 0; }
  .table-brand.cards-mobile td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    padding: .3rem 0;
    border: none;
  }
  .table-brand.cards-mobile td[data-label]::before {
    content: attr(data-label);
    flex: none;
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--brand-muted);
    padding-top: .15rem;
  }
  /* The applicant name/email — the card's heading, no label. */
  .table-brand.cards-mobile td.card-title-cell {
    padding: 0 0 .5rem;
    margin-bottom: .35rem;
    border-bottom: 1px solid var(--brand-line);
  }
  /* View / Archive / Restore icons — right-aligned footer, no label. */
  .table-brand.cards-mobile td.card-actions-cell {
    justify-content: flex-end;
    padding: .5rem 0 0;
    margin-top: .35rem;
    border-top: 1px dashed var(--brand-line);
  }
  /* Columns that add little on a small screen — full detail is one tap away. */
  .table-brand.cards-mobile td.card-hide-mobile { display: none; }
}

/* Wizard stepper (multi-step forms, e.g. nurse onboarding) */
.stepper {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0;
  margin: 0 0 2rem;
  counter-reset: none;
}
.stepper li {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  position: relative;
  z-index: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--brand-muted);
}
.stepper li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--brand-line);
  z-index: -1;
}
.stepper li.done:not(:last-child)::after { background: var(--brand-ok-soft); }
.stepper .bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin: 0 auto 6px;
  background: #eef0f4;
  color: var(--brand-muted);
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}
.stepper .step-label {
  display: block;
  padding: 0 4px;
  word-break: break-word;
}
.stepper li.active { color: var(--brand-ink); }
.stepper li.active .bubble { background: var(--brand-primary); color: #fff; }
.stepper li.done .bubble { background: var(--brand-ok-soft); color: var(--brand-ok); }
@media (max-width: 480px) {
  .stepper .step-label { display: none; }
  .stepper li { font-size: 0; }
  .stepper .bubble { margin-bottom: 0; }
}

/* Simple tab toggle (no JS component dependency) */
.tab-toggle { display: flex; gap: 6px; border-bottom: 1px solid var(--brand-line); margin-bottom: 0; }
.tab-toggle button,
.tab-toggle a {
  border: none; background: transparent; padding: 10px 4px; margin-right: 20px;
  font-weight: 700; font-size: 14px; color: var(--brand-muted); border-bottom: 2px solid transparent;
  cursor: pointer; text-decoration: none; display: inline-block;
}
.tab-toggle button.active,
.tab-toggle a.active { color: var(--brand-primary-ink); border-bottom-color: var(--brand-primary); }
