/**
 * app.css — Mobile-first UI shell (design §Mobile-First UI).
 *
 * Professional light theme driven by CSS custom properties (dark-ready).
 * Components: header + sync chip, bottom nav + "Más" sheet, list cards,
 * badges (negative/low), POS grid, modals, toasts, forms, progress bar.
 * Touch targets are >= 44px. No data tables — list-based cards only.
 */

/* ─── Design Tokens ─────────────────────────────────────────────────────────── */

:root {
  /* Colors */
  --color-bg: #f4f6f9;
  --color-surface: #ffffff;
  --color-surface-2: #eef1f6;
  --color-border: #dfe4ec;
  --color-text: #1c2333;
  --color-text-2: #475063;
  /* Darkened from #8a93a3 (~3.0:1) to meet WCAG 2.2 AA 4.5:1 on the light
     surfaces it is used on (white ≈ 5.8:1, surface-2 #eef1f6 ≈ 5.2:1). */
  --color-text-3: #5b6472;
  --color-primary: #2f6fed;
  --color-primary-dark: #1e56c4;
  --color-primary-soft: #e8f0fe;
  --color-success: #1e9e5a;
  --color-success-soft: #e6f6ee;
  --color-warning: #d97706;
  --color-warning-soft: #fdf3e3;
  --color-danger: #dc3545;
  --color-danger-soft: #fdecec;
  --color-info: #2563eb;
  --color-info-soft: #e8f0fe;

  /* Typography */
  --font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-xs: 11px;
  --font-size-sm: 13px;
  --font-size-md: 15px;
  --font-size-lg: 17px;
  --font-size-xl: 20px;
  --font-size-xxl: 26px;
  --line-height: 1.45;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(16, 24, 40, 0.07);
  --shadow-pop: 0 8px 24px rgba(16, 24, 40, 0.16);

  /* Layout */
  --header-h: 56px;
  --nav-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --touch-min: 44px;
}

/* ─── Reset / Base ──────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}

h1, h2, h3, h4, p {
  margin: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: var(--font-size-md);
}

[hidden] {
  display: none !important;
}

/* Visually hidden but exposed to assistive technology (WCAG 1.3.1). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Focus visibility (WCAG 2.4.7 / 2.4.11) ────────────────────────────────── */

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ─── Reduced motion (WCAG 2.3.3) ───────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Loading skeleton ──────────────────────────────────────────────────────── */

.skeleton-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-md) 0;
}
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
}
.skeleton-card {
  height: 128px;
}
.skeleton-row {
  height: 56px;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* ─── App Shell ─────────────────────────────────────────────────────────────── */

.app-main {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-lg) calc(var(--nav-h) + var(--safe-bottom) + var(--space-xl));
  min-height: 100vh;
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.app-header-inner {
  max-width: 480px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.app-logo {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex: 0 0 auto;
}
.app-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-header .icon-btn {
  flex: 0 0 auto;
}

.icon-btn {
  width: var(--touch-min);
  height: var(--touch-min);
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--color-text-2);
  font-size: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:active {
  background: var(--color-surface-2);
}

/* ─── Inline SVG icons ──────────────────────────────────────────────────────── */

/* Base icon: flows inline with text and inherits the surrounding color
   (`stroke="currentColor"` in core/icons.js). Per-context sizes below. */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 auto;
}
.app-logo svg {
  width: 22px;
  height: 22px;
}
.icon-btn svg {
  width: 22px;
  height: 22px;
}
.nav-item .nav-icon svg {
  width: 20px;
  height: 20px;
}
.sheet-item .nav-icon svg {
  width: 22px;
  height: 22px;
}
.segmented .seg-btn svg {
  width: 16px;
  height: 16px;
}
.login-brand .brand-logo svg {
  width: 44px;
  height: 44px;
}
.empty-state .empty-icon svg {
  width: 28px;
  height: 28px;
}
.repeater-row .repeater-remove svg {
  width: 14px;
  height: 14px;
}
.row-body > svg {
  width: 20px;
  height: 20px;
}

/* Sync chip */
.sync-chip {
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text-2);
  font-size: var(--font-size-xs);
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sync-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
.sync-chip.ok {
  color: var(--color-success);
  border-color: var(--color-success-soft);
  background: var(--color-success-soft);
}
.sync-chip.warn {
  color: var(--color-warning);
  border-color: var(--color-warning-soft);
  background: var(--color-warning-soft);
}
.sync-chip.bad {
  color: var(--color-danger);
  border-color: var(--color-danger-soft);
  background: var(--color-danger-soft);
}

/* ─── Bottom Nav ────────────────────────────────────────────────────────────── */

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  display: flex;
}
.nav-item {
  flex: 1 1 0;
  min-width: 0;
  height: var(--nav-h);
  background: none;
  border: none;
  color: var(--color-text-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: var(--font-size-xs);
  font-weight: 500;
}
.nav-item .nav-icon {
  font-size: 20px;
  line-height: 1;
}
.nav-item.active {
  color: var(--color-primary);
  font-weight: 700;
}
.nav-item:active {
  background: var(--color-surface-2);
}

/* "Más" sheet */
.sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(16, 24, 40, 0.45);
}
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 51;
  background: var(--color-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-pop);
  padding: var(--space-lg) var(--space-lg) calc(var(--space-lg) + var(--safe-bottom));
  transform: translateY(0);
  transition: transform 0.22s ease;
}
.sheet.sheet-closing {
  transform: translateY(100%);
}
.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  margin: 0 auto var(--space-lg);
}
.sheet-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-md);
}
.sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.sheet-item {
  min-height: 86px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--color-text);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-align: center;
  padding: var(--space-sm);
}
.sheet-item .nav-icon {
  font-size: 22px;
}
.sheet-item:active {
  background: var(--color-surface-2);
}

/* ─── Cards & Rows ──────────────────────────────────────────────────────────── */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-lg);
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.card-title {
  font-size: var(--font-size-md);
  font-weight: 700;
}
.card-header-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.badge-group {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.card-sub {
  font-size: var(--font-size-xs);
  color: var(--color-text-3);
  margin-top: 2px;
}
.card-body {
  padding: var(--space-lg);
}
.card-body.compact {
  padding: var(--space-sm) var(--space-lg);
}

/* List card row (replaces data tables) */
.row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  min-height: 56px;
}
.row:last-child {
  border-bottom: none;
}
.row:active {
  background: var(--color-surface-2);
}
.row-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.row-name {
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.row-meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-3);
  margin-top: 2px;
}
.row-value {
  flex: 0 0 auto;
  text-align: right;
  font-weight: 600;
}
.row-value .row-meta {
  font-weight: 400;
}
.row-chevron {
  color: var(--color-text-3);
  font-size: 14px;
}
.row.clickable {
  cursor: pointer;
}

/* Stat cards (dashboard) */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
}
.stat-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.stat-value {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-top: 4px;
}
.stat-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-3);
  margin-top: 4px;
}
.stat-card.negative .stat-value {
  color: var(--color-danger);
}
.stat-card.low .stat-value {
  color: var(--color-warning);
}
.stat-card.positive .stat-value {
  color: var(--color-success);
}

/* ─── Badges ────────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 1px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  white-space: nowrap;
}
.badge-negative {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}
.badge-low {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}
.badge-ok {
  background: var(--color-success-soft);
  color: var(--color-success);
}
.badge-info {
  background: var(--color-info-soft);
  color: var(--color-info);
}
.badge-muted {
  background: var(--color-surface-2);
  color: var(--color-text-2);
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */

.btn {
  min-height: var(--touch-min);
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--font-size-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter 0.12s ease;
}
.btn:active {
  filter: brightness(0.94);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-secondary {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-danger {
  background: var(--color-danger);
  color: #fff;
}
.btn-ghost {
  background: none;
  color: var(--color-primary);
}
.btn-sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

/* ─── Forms ─────────────────────────────────────────────────────────────────── */

.field {
  margin-bottom: var(--space-lg);
}
.field-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-2);
  margin-bottom: 6px;
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: var(--touch-min);
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: 2px solid var(--color-primary-soft);
  border-color: var(--color-primary);
}
.textarea {
  min-height: 88px;
  resize: vertical;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}
/* Repeater row: picker + amount + remove button (multi-product/material forms). */
.repeater-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr auto;
  gap: var(--space-sm);
  align-items: end;
}
.repeater-row .field {
  margin-bottom: var(--space-md);
}
.repeater-row .repeater-remove {
  margin-bottom: calc(var(--space-md) + 2px);
  min-width: 40px;
  padding: 6px 10px;
}
.field-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-3);
  margin-top: 4px;
}
/* Checkbox row (e.g. leftover-convertible toggle). */
.field-check {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: var(--touch-min);
  font-size: var(--font-size-sm);
  color: var(--color-text-2);
  cursor: pointer;
}
.field-check input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

/* Segmented control (retail/wholesale, period toggles) */
.segmented {
  display: inline-flex;
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
  width: 100%;
}
.segmented .seg-btn {
  flex: 1 1 0;
  min-height: 38px;
  border: none;
  background: none;
  border-radius: calc(var(--radius-md) - 3px);
  color: var(--color-text-2);
  font-weight: 600;
  font-size: var(--font-size-sm);
}
.segmented .seg-btn.active {
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: var(--shadow-card);
}

/* Stepper */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stepper button {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 18px;
  font-weight: 700;
}
.stepper input {
  width: 56px;
  height: 40px;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  text-align: center;
  font-size: var(--font-size-md);
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ─── Product grid (POS) ────────────────────────────────────────────────────── */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
  min-height: 96px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  color: var(--color-text);
}
.product-card:active {
  background: var(--color-surface-2);
}
.product-card .product-name {
  font-weight: 700;
  font-size: var(--font-size-sm);
}
.product-card .product-price {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-primary);
}
.product-card .product-stock {
  font-size: var(--font-size-xs);
  color: var(--color-text-3);
}
.product-card.product-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ─── Cart (POS) ────────────────────────────────────────────────────────────── */

.cart-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}
.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px dashed var(--color-border);
}
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-size-lg);
  font-weight: 800;
  padding-top: var(--space-md);
}

/* ─── Progress bar (ROI) ────────────────────────────────────────────────────── */

.progress {
  height: 10px;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  transition: width 0.3s ease;
}
.progress-fill.done {
  background: var(--color-success);
}

/* Bar chart (reports — CSS div bars, no chart lib) */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: var(--space-sm);
  height: 140px;
  padding: var(--space-lg) var(--space-lg) var(--space-sm);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
}
.bar-col {
  flex: 1 1 0;
  min-width: 34px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.bar-fill {
  width: 100%;
  max-width: 38px;
  min-height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.bar-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-3);
  white-space: nowrap;
}

/* ─── Modals ────────────────────────────────────────────────────────────────── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(16, 24, 40, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--space-lg);
  box-shadow: var(--shadow-pop);
}
.modal-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-md);
}
.modal-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.modal-actions .btn {
  flex: 1 1 0;
}

@media (min-width: 560px) {
  .modal-backdrop {
    align-items: center;
    padding: var(--space-xl);
  }
  .modal {
    border-radius: var(--radius-lg);
    max-width: 440px;
  }
}

/* ─── Toasts ────────────────────────────────────────────────────────────────── */

.toast-root {
  position: fixed;
  top: calc(var(--header-h) + var(--space-md));
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  pointer-events: none;
  padding: 0 var(--space-lg);
}
.toast {
  max-width: 440px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--color-text);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 600;
  box-shadow: var(--shadow-pop);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toast-in 0.2s ease;
}
.toast.success {
  background: var(--color-success);
}
.toast.warn {
  background: var(--color-warning);
}
.toast.error {
  background: var(--color-danger);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Login ─────────────────────────────────────────────────────────────────── */

.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
  padding: var(--space-xl);
}
.login-brand {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.login-brand .brand-logo {
  font-size: 48px;
}
.login-brand h1 {
  font-size: var(--font-size-xxl);
  font-weight: 800;
  margin-top: var(--space-md);
}
.login-brand p {
  color: var(--color-text-3);
  font-size: var(--font-size-sm);
  margin-top: var(--space-xs);
}
.form-error {
  color: var(--color-danger);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin: var(--space-md) 0 0;
  padding: 10px 14px;
  background: var(--color-danger-soft);
  border-radius: var(--radius-sm);
}
.login-actions {
  margin-top: var(--space-md);
}

/* ─── Empty states & misc ───────────────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  color: var(--color-text-3);
}
.empty-state .empty-icon {
  font-size: 40px;
  display: block;
  margin-bottom: var(--space-md);
}
.empty-state p {
  font-size: var(--font-size-sm);
  margin-top: var(--space-xs);
}

.section-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-text-3);
  margin: var(--space-xl) 0 var(--space-md);
}

.list-actions {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
}
.list-actions .btn {
  flex: 1 1 0;
}

.money {
  font-variant-numeric: tabular-nums;
}

.pull-right {
  margin-left: auto;
}

.divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-md) 0;
}