/* Coffee & Puns — Vendor Payment Manager
   Modern, minimalist design system in the style of premium fintech dashboards
   (Stripe/Wise-like): a neutral, quiet canvas with the brand teal reserved
   for primary actions and active navigation state only. Brand tokens are CSS
   custom properties so real brand colors can be tuned later (see /settings)
   without touching any markup. Status + categorical chart colors follow a
   validated, colorblind-safe palette — do not change without re-running the
   validator. */

:root {
  /* --- Brand tokens, sampled from the Coffee & Puns (CAP) logo teal.
     Fine-tune anytime via Settings — nothing else needs to change. --- */
  --brand-ink: #1a1d1f;
  --brand-ink-secondary: #5a6268;
  --brand-muted: #8b9297;
  --brand-accent: #2a9d8f;
  --brand-accent-hover: #23897d;
  --brand-accent-wash: #e6f5f3;
  --brand-logo-bg: #2a9d8f;
  --brand-page: #f7f8f9;
  --brand-surface: #ffffff;
  --brand-border: rgba(20, 26, 30, 0.08);
  --brand-border-strong: rgba(20, 26, 30, 0.14);

  /* --- Chart chrome (dataviz skill defaults, light mode) --- */
  --chart-surface: #fcfcfb;
  --chart-page: #f9f9f7;
  --ink-primary: #0b0b0b;
  --ink-secondary: #52514e;
  --ink-muted: #898781;
  --gridline: #e7e7e3;
  --baseline: #c3c2b7;

  /* --- Categorical (fixed order, never cycle) --- */
  --series-1: #2a78d6; /* blue */
  --series-2: #1baf7a; /* aqua */
  --series-3: #eda100; /* yellow */
  --series-4: #008300; /* green */
  --series-5: #4a3aa7; /* violet */
  --series-6: #e34948; /* red */
  --series-7: #e87ba4; /* magenta */
  --series-8: #eb6834; /* orange */

  /* --- Status (fixed — never themed, never reused for series) --- */
  --status-good: #0ca30c;
  --status-warning: #c98500;
  --status-serious: #ec835a;
  --status-critical: #d03b3b;

  --radius-sm: 7px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 1px 2px rgba(20, 26, 30, 0.04), 0 4px 12px rgba(20, 26, 30, 0.04);
  --shadow-dropdown: 0 8px 24px rgba(20, 26, 30, 0.12), 0 2px 6px rgba(20, 26, 30, 0.06);

  --sidebar-w: 236px;
  --sidebar-w-collapsed: 68px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--brand-page);
  color: var(--brand-ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-weight: 600; margin: 0 0 4px; letter-spacing: -0.01em; }
h1 { font-size: 21px; }
h2 { font-size: 16.5px; }
h3 { font-size: 14.5px; }
p { margin: 0 0 8px; color: var(--brand-ink-secondary); }
.tabular { font-variant-numeric: tabular-nums; }
.icon { flex-shrink: 0; }

/* --- Shell layout --- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--brand-surface);
  border-right: 1px solid var(--brand-border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: width 0.15s ease;
}
html.sidebar-collapsed .sidebar { width: var(--sidebar-w-collapsed); }

.brand-mark { display: flex; align-items: center; gap: 10px; padding: 6px 6px 18px; position: relative; }
.brand-logo {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-text { min-width: 0; overflow: hidden; }
.brand-name { font-weight: 700; font-size: 14.5px; line-height: 1.2; white-space: nowrap; }
.brand-sub { font-size: 11.5px; color: var(--brand-muted); white-space: nowrap; }
.sidebar-toggle {
  margin-left: auto; flex-shrink: 0; width: 26px; height: 26px; border-radius: var(--radius-sm);
  border: none; background: transparent; color: var(--brand-muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-toggle:hover { background: var(--brand-page); color: var(--brand-ink-secondary); }
html.sidebar-collapsed .brand-text,
html.sidebar-collapsed .sidebar-toggle { display: none; }
html.sidebar-collapsed .brand-mark { justify-content: center; padding-right: 6px; }

.nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--brand-ink-secondary); font-size: 13.5px; font-weight: 500;
}
.nav-link .nav-icon { display: flex; color: inherit; opacity: 0.75; }
.nav-link:hover { background: var(--brand-page); text-decoration: none; }
.nav-link.active { background: var(--brand-accent-wash); color: var(--brand-accent-hover); }
.nav-link.active .nav-icon { opacity: 1; }
.nav-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.sidebar-collapsed .nav-link { justify-content: center; padding: 10px; }
html.sidebar-collapsed .nav-label { display: none; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* --- Topbar --- */
.topbar {
  display: flex; align-items: center;
  padding: 12px 28px; border-bottom: 1px solid var(--brand-border);
  background: var(--brand-surface);
  gap: 12px;
}
.sidebar-toggle-collapsed {
  display: none; width: 30px; height: 30px; border-radius: var(--radius-sm);
  border: 1px solid var(--brand-border-strong); background: var(--brand-surface); color: var(--brand-ink-secondary);
  cursor: pointer; align-items: center; justify-content: center;
}
.sidebar-toggle-collapsed:hover { background: var(--brand-page); }
html.sidebar-collapsed .sidebar-toggle-collapsed { display: flex; }
.topbar-spacer { flex: 1; }

.profile-menu { position: relative; }
.profile-trigger {
  display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 5px;
  border-radius: 999px; border: 1px solid transparent; background: transparent; cursor: pointer;
  color: var(--brand-ink);
}
.profile-trigger:hover { background: var(--brand-page); }
.profile-trigger .avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--brand-accent-wash); color: var(--brand-accent-hover);
  display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; flex-shrink: 0;
}
.profile-trigger .profile-name { font-size: 13.5px; font-weight: 600; }
.profile-chevron { color: var(--brand-muted); transition: transform 0.12s ease; }
.profile-menu.open .profile-chevron { transform: rotate(180deg); }

.profile-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
  width: 220px; background: var(--brand-surface); border: 1px solid var(--brand-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-dropdown); padding: 8px;
}
.profile-menu.open .profile-dropdown { display: block; }
.profile-dropdown-header { padding: 8px 10px 12px; border-bottom: 1px solid var(--gridline); margin-bottom: 6px; }
.profile-dropdown-name { font-size: 13.5px; font-weight: 600; margin-bottom: 5px; }
.profile-dropdown-item {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 8px 10px; border-radius: var(--radius-sm); border: none; background: transparent;
  font-size: 13.5px; font-weight: 500; color: var(--brand-ink); cursor: pointer; font-family: inherit;
}
.profile-dropdown-item:hover { background: var(--brand-page); text-decoration: none; }
.profile-dropdown-item.danger { color: var(--status-critical); }

.content { padding: 24px 28px 48px; max-width: 1180px; }

/* --- Cards / stat tiles --- */
.card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.stat-tile .stat-label { font-size: 12.5px; color: var(--ink-secondary); margin-bottom: 8px; font-weight: 500; }
.stat-tile .stat-value { font-size: 27px; font-weight: 650; letter-spacing: -0.01em; }
.stat-tile .stat-delta { font-size: 12px; margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; }
.stat-delta.up { color: var(--status-good); }
.stat-delta.down { color: var(--status-critical); }
.stat-delta.flat { color: var(--ink-muted); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 15px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; background: var(--brand-accent); color: #fff;
}
.btn:hover { background: var(--brand-accent-hover); text-decoration: none; }
.btn.secondary { background: var(--brand-surface); color: var(--brand-ink); border-color: var(--brand-border-strong); }
.btn.secondary:hover { background: var(--brand-page); }
.btn.danger { background: var(--status-critical); }
.btn.danger:hover { background: #a92727; }
.btn.sm { padding: 6px 11px; font-size: 12.5px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* --- Forms --- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--brand-ink); margin-bottom: 5px; }
.field .hint { font-size: 11.5px; color: var(--brand-muted); margin-top: 4px; }
input, select, textarea {
  width: 100%; padding: 8px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--brand-border-strong); font-size: 13.5px;
  font-family: inherit; background: #fff; color: var(--brand-ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-accent); outline-offset: 0; border-color: var(--brand-accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-actions { display: flex; gap: 8px; margin-top: 18px; }
.checkbox-list { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 8px 0; }
.checkbox-row { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 400; width: auto; }
.checkbox-row input[type="checkbox"] { width: auto; }
.error-banner {
  background: #fdecea; border: 1px solid #f3c9c3; color: #8f2f2a;
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px;
}
.notice-banner {
  background: var(--brand-accent-wash); border: 1px solid var(--brand-border-strong); color: var(--brand-ink);
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px;
}

/* --- Toasts (one-shot flash messages) --- */
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 300;
  display: flex; align-items: flex-start; gap: 10px;
  max-width: 380px; padding: 12px 14px;
  background: var(--brand-surface); border: 1px solid var(--brand-border-strong);
  border-left: 3px solid var(--brand-accent);
  border-radius: var(--radius-md); box-shadow: var(--shadow-dropdown);
  font-size: 13px; color: var(--brand-ink);
  animation: toast-in 0.22s ease-out;
}
.toast-error { border-left-color: #c0392b; }
.toast-info { border-left-color: var(--brand-muted); }
.toast.hiding { opacity: 0; transform: translateY(8px); transition: opacity 0.25s ease, transform 0.25s ease; }
.toast-message { line-height: 1.45; }
.toast-code { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.toast-code code {
  background: var(--brand-page); border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm); padding: 4px 10px; font-size: 13.5px; font-weight: 600;
}
.toast-copy {
  border: 1px solid var(--brand-border-strong); background: var(--brand-surface);
  border-radius: var(--radius-sm); padding: 3px 10px; font-size: 12px; cursor: pointer; color: var(--brand-ink-secondary);
}
.toast-copy:hover { background: var(--brand-page); }
.toast-close {
  border: none; background: transparent; color: var(--brand-muted); cursor: pointer;
  font-size: 17px; line-height: 1; padding: 0 2px; flex-shrink: 0;
}
.toast-close:hover { color: var(--brand-ink); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Tables --- */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em;
     color: var(--ink-muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--gridline); }
td { padding: 13px 14px; border-bottom: 1px solid var(--gridline); vertical-align: middle; }
th.num, td.num { text-align: right; }
tr:last-child td { border-bottom: none; }
tr.row-link:hover { background: var(--brand-page); cursor: pointer; }
.table-wrap { overflow-x: auto; }
.empty-state { padding: 40px 20px; text-align: center; color: var(--brand-muted); }

/* --- Badges (status: icon + label, never color alone) --- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  border: 1px solid transparent;
}
.badge .icon { flex-shrink: 0; }
.badge.st-DRAFT { background: #f1f1f0; color: var(--ink-secondary); }
.badge.st-SUBMITTED { background: #eaf1fb; color: #184f95; }
.badge.st-UNDER_REVIEW { background: #fdf3e0; color: #8a6400; }
.badge.st-APPROVED { background: #e6f6ea; color: #0b6b0b; }
.badge.st-REJECTED { background: #fbeae9; color: #a3302f; }
.badge.st-ON_HOLD { background: #fdece4; color: #9a4a26; }
.badge.st-PAID { background: #e6f6ea; color: #0b6b0b; }
.badge.overdue { background: #fbeae9; color: #a3302f; }

.role-pill {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: var(--brand-page); border: 1px solid var(--brand-border-strong); color: var(--brand-ink-secondary);
}

/* --- Login --- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--brand-page); }
.login-card { width: 360px; background: var(--brand-surface); border: 1px solid var(--brand-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 32px 28px; }
.login-logo { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 22px; }

/* --- Chart components --- */
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-secondary); margin-top: 10px; }
.chart-legend .item { display: flex; align-items: center; gap: 6px; }
.chart-legend .swatch { width: 9px; height: 9px; border-radius: 2px; }
.chart-tooltip {
  position: absolute; pointer-events: none; background: var(--ink-primary); color: #fff;
  font-size: 11.5px; padding: 6px 9px; border-radius: 6px; transform: translate(-50%, -110%);
  white-space: nowrap; opacity: 0; transition: opacity 0.1s ease; z-index: 20;
}
.chart-tooltip.visible { opacity: 1; }
.axis-label { fill: var(--ink-muted); font-size: 10.5px; }

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .two-col { grid-template-columns: 1fr; } }

.list-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--gridline); font-size: 13px; }
.list-row:last-child { border-bottom: none; }

.attachment-thumb-link { display: block; margin-top: 10px; }
.attachment-thumb {
  max-width: 100%; max-height: 220px; display: block;
  border: 1px solid var(--brand-border); border-radius: var(--radius-sm);
}
.attachment-thumb:hover { border-color: var(--brand-border-strong); }

.comment { padding: 10px 0; border-bottom: 1px solid var(--gridline); }
.comment:last-of-type { border-bottom: none; }
.comment-meta { font-size: 12.5px; margin-bottom: 3px; }
.comment-body { font-size: 13px; white-space: pre-wrap; color: var(--brand-ink-secondary); }

/* --- AI assistant chat --- */
.chat-card { max-width: 760px; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.chat-messages { flex: 1; min-height: 320px; max-height: 60vh; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-bubble {
  max-width: 85%; padding: 10px 14px; border-radius: var(--radius-md);
  font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
}
.chat-msg.assistant .chat-bubble { background: var(--brand-page); border: 1px solid var(--brand-border); color: var(--brand-ink); border-bottom-left-radius: 4px; }
.chat-msg.user .chat-bubble { background: var(--brand-accent); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble.thinking { color: var(--brand-muted); font-style: italic; animation: chat-pulse 1.2s ease-in-out infinite; }
@keyframes chat-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.chat-input-row { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--brand-border); }
.chat-input-row input { flex: 1; }
.muted { color: var(--brand-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.section { margin-bottom: 22px; }
.helper-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.filter-chip {
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  border: 1px solid var(--brand-border-strong); background: #fff; color: var(--brand-ink-secondary);
}
.filter-chip.active { background: var(--brand-ink); color: #fff; border-color: var(--brand-ink); }

/* --- Tabs (page-level section switcher, e.g. Team & Logins) --- */
.tab-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--brand-border); }
.tab-link {
  padding: 10px 16px; font-size: 13.5px; font-weight: 600; color: var(--brand-ink-secondary);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-link:hover { color: var(--brand-ink); text-decoration: none; }
.tab-link.active { color: var(--brand-accent-hover); border-bottom-color: var(--brand-accent); }

/* --- Icon-only small buttons (table row actions) --- */
.icon-btn { padding: 6px 9px; }
.col-name { white-space: nowrap; }
.col-actions { white-space: nowrap; }
.col-role { white-space: nowrap; }
.perm-col { text-align: center; }
.perm-col input[type="checkbox"] { width: auto; }

/* Role <select>s default to width:100%, which in a narrow table column (or
   next to other wide form fields) can end up too narrow to show the
   selected option's own text — it doesn't wrap or ellipsize, it just
   clips. A fixed comfortable width sidesteps that regardless of
   surrounding layout, and comfortably fits longer custom role names too. */
.role-select { width: auto; min-width: 160px; }

/* --- Clickable dashboard stat tiles --- */
a.stat-tile-link { text-decoration: none; color: inherit; display: block; }
a.stat-tile-link:hover { border-color: var(--brand-border-strong); box-shadow: var(--shadow-dropdown); }

/* --- Sortable table headers --- */
.sort-link { color: inherit; text-decoration: none; }
.sort-link:hover, .sort-link.active { color: var(--brand-ink); }

/* --- Pagination footer --- */
.pagination {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--gridline);
  font-size: 12.5px;
}

/* --- Invoice status stepper --- */
.stepper-card { padding: 16px 20px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.step { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.step-dot {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 600;
  background: var(--brand-page); color: var(--brand-muted);
  border: 1.5px solid var(--brand-border-strong);
}
.step-label { font-size: 12.5px; color: var(--brand-muted); white-space: nowrap; }
.step.done .step-dot { background: var(--brand-accent); border-color: var(--brand-accent); color: #fff; }
.step.done .step-label { color: var(--brand-ink-secondary); }
.step.current .step-dot { background: var(--brand-surface); border-color: var(--brand-accent); color: var(--brand-accent); }
.step.current .step-label { color: var(--brand-ink); font-weight: 600; }
.step.current.step-danger .step-dot { border-color: #c0392b; color: #c0392b; }
.step.current.step-danger .step-label { color: #8f2f2a; }
.step.current.step-warn .step-dot { border-color: #b9770e; color: #b9770e; }
.step.current.step-warn .step-label { color: #8a5a08; }
.step-line { flex: 1; height: 2px; min-width: 12px; background: var(--gridline); border-radius: 2px; }
.step-line.done { background: var(--brand-accent); }

/* --- Responsive: sidebar becomes an icon rail below tablet width --- */
@media (max-width: 760px) {
  .sidebar { width: var(--sidebar-w-collapsed); padding: 12px 8px; }
  .brand-text, .sidebar-toggle { display: none; }
  .brand-mark { justify-content: center; padding-right: 0; }
  .nav-link { justify-content: center; padding: 10px; }
  .nav-label { display: none; }
  .sidebar-toggle-collapsed { display: none !important; }
  .content { padding: 18px 16px 40px; }
  .topbar { padding: 10px 16px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* --- Responsive tables ---
   Baseline: every .table-wrap scrolls horizontally rather than breaking the
   page layout. Tables opting into .table-cards additionally collapse each
   row into a stacked card on phones, using the td's data-label as the
   inline heading (the pattern Stripe/Linear-style dashboards use). */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 640px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr {
    border: 1px solid var(--brand-border); border-radius: var(--radius-md);
    padding: 6px 12px; margin-bottom: 10px; background: var(--brand-surface);
  }
  .table-cards td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    border-bottom: 1px solid var(--gridline); padding: 8px 0; text-align: right;
  }
  .table-cards td:last-child { border-bottom: none; }
  .table-cards td::before {
    content: attr(data-label);
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--brand-muted); font-weight: 600; text-align: left; flex-shrink: 0;
  }
  .stepper { flex-wrap: wrap; row-gap: 10px; }
  .step-label { font-size: 11.5px; }
  .pagination { flex-direction: column; gap: 10px; align-items: flex-start; }
}
