*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--color-ivory);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; }
a { color: inherit; }
img { max-width: 100%; display: block; }

:root {
  --font-brand: 'Clash Display', serif;
  --font-body: 'Archivo', sans-serif;

  /* Same palette as the customer site (hari-prem/CLAUDE.md) — this is a
     second front door onto the same business, not a different product. */
  --color-ivory:       #FAF6EF;
  --color-charcoal:    #1A1A2E;
  --color-gold:        #B8860B;
  --color-copper:      #A0522D;
  --color-text:        #1A1A1A;
  --color-text-muted:  #8A7E6E;
  --color-card-bg:     #FFFFFF;
  --color-card-border: #EDE8E0;
  --color-good:        #2E7D32;
  --color-good-bg:     rgba(46,125,50,0.10);
  --color-warn:        #B3541E;
  --color-warn-bg:     rgba(179,84,30,0.10);
  --color-danger:      #A0522D;
  --color-danger-bg:   rgba(160,82,45,0.10);
  --color-whatsapp:    #25D366;
  --color-gold-bg:     rgba(184,134,11,0.10);

  /* One spacing scale, used everywhere — this is what "consistent padding
     across the whole site" cashes out to in code: every gap/padding/margin
     value in this file is one of these six numbers. */
  --sp-1: 6px;
  --sp-2: 10px;
  --sp-3: 16px;
  --sp-4: 20px;
  --sp-5: 28px;
  --sp-6: 36px;

  --sidebar-w: 232px;
  --radius-card: 14px;
  --radius-pill: 50px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-ivory: #15141F;
    --color-charcoal: #252548;
    --color-text: #F0EDE6;
    --color-text-muted: #A79EC0;
    --color-card-bg: #1D1C2B;
    --color-card-border: rgba(255,255,255,0.08);
    --color-good-bg: rgba(46,125,50,0.20);
    --color-warn-bg: rgba(179,84,30,0.22);
    --color-danger-bg: rgba(160,82,45,0.22);
    --color-gold-bg: rgba(184,134,11,0.18);
  }
}

/* ── Page transition (same fade the customer site uses on every route
   change: 150ms out, 250ms back in) ─────────────────────────────────── */
#app { transition: opacity 150ms ease-in; }
#app.entering { opacity: 0; }

/* ── Shell layout ─────────────────────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--color-charcoal); color: #fff;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: var(--sp-4) var(--sp-3);
}
.sidebar-brand { display: flex; align-items: center; gap: var(--sp-2); padding: 0 var(--sp-1) var(--sp-5); }
.sidebar-brand img { height: 30px; width: auto; }
.sidebar-brand-text { font-family: var(--font-brand); font-size: 15px; font-weight: 700; letter-spacing: 0.01em; }
.sidebar-brand-text small { display: block; font-family: var(--font-body); font-size: 10px; font-weight: 500; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 1px; }

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
/* Same interaction as the customer site's .sidebar-item: a 3px gold
   accent bar marks the active item rather than a filled block — quieter,
   and it's the same "active" language used everywhere else on hariprem.in. */
.sidebar-link {
  position: relative; display: flex; align-items: center; gap: 11px; padding: var(--sp-2) var(--sp-2) var(--sp-2) 14px;
  border-radius: 10px; color: rgba(255,255,255,0.62); font-size: 13.5px; font-weight: 500; text-decoration: none;
  cursor: pointer; border: none; background: none; width: 100%; text-align: left; transition: color 150ms, background 150ms;
}
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar-link.active { color: var(--color-gold); font-weight: 700; }
.sidebar-link.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px; background: var(--color-gold); border-radius: 0 2px 2px 0;
}

.sidebar-footer { border-top: 1px solid rgba(255,255,255,0.10); padding-top: var(--sp-3); margin-top: var(--sp-2); }
.sidebar-user { font-size: 12px; color: rgba(255,255,255,0.5); padding: 0 4px var(--sp-1); }
.sidebar-user strong { color: #fff; display: block; font-size: 13.5px; margin-bottom: 1px; }
.sidebar-logout {
  width: 100%; padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.16);
  background: none; color: rgba(255,255,255,0.75); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: opacity 150ms;
}
.sidebar-logout:active { opacity: 0.7; }
.sidebar-logout:hover { border-color: rgba(255,255,255,0.35); color: #fff; }

.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 149; }

.main { flex: 1; min-width: 0; padding: var(--sp-5) var(--sp-6) var(--sp-6); max-width: 1400px; }

/* Mobile top bar — hidden on desktop, shown only when the sidebar
   collapses into an off-canvas drawer (see breakpoint below). */
.mobile-topbar { display: none; }

.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.page-title { font-family: var(--font-brand); font-size: 26px; font-weight: 700; margin: 0; }
.page-subtitle { font-size: 13px; color: var(--color-text-muted); margin: 4px 0 0; }
.page-actions { display: flex; gap: var(--sp-2); align-items: center; flex-wrap: wrap; }

/* ── Buttons / inputs — pill-shaped everywhere, same as every button on
   hariprem.in (CLAUDE.md: "Buttons and chips: Pill-shaped, 50px radius"). */
.btn {
  padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-pill); border: 1px solid var(--color-card-border); background: var(--color-card-bg);
  color: var(--color-text); font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: border-color 150ms, background 150ms, opacity 150ms;
}
.btn:hover { border-color: var(--color-gold); }
.btn:active { opacity: 0.8; }
.btn-primary { background: var(--color-gold); border-color: var(--color-gold); color: #fff; }
.btn-primary:hover { background: #A57A0A; }
.btn-danger { color: var(--color-danger); }
.btn-danger:hover { border-color: var(--color-danger); }
.btn-whatsapp { background: var(--color-whatsapp); border-color: var(--color-whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #1EBE59; }
.btn-sm { padding: 7px var(--sp-3); font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.input, select.input, textarea.input {
  width: 100%; padding: var(--sp-2) 14px; border-radius: var(--radius-card); border: 1px solid var(--color-card-border);
  background: var(--color-card-bg); color: var(--color-text); font-size: 13.5px;
}
.input:focus, select.input:focus, textarea.input:focus { outline: none; border-color: var(--color-gold); }
textarea.input { resize: vertical; min-height: 70px; font-family: var(--font-body); border-radius: var(--radius-card); }
.field-label { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); margin-bottom: 6px; }
.field { margin-bottom: var(--sp-3); }

/* ── Cards — same shape/weight as the customer site's inquiry/admin
   cards: white bg, 1px #EDE8E0 border, 14px radius, 14/16px padding. */
.card {
  background: var(--color-card-bg); border: 1px solid var(--color-card-border); border-radius: var(--radius-card); padding: var(--sp-3) var(--sp-4);
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-4); }
.stat-card { background: var(--color-card-bg); border: 1px solid var(--color-card-border); border-radius: var(--radius-card); padding: var(--sp-3) var(--sp-4); }
.stat-card-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); margin-bottom: var(--sp-1); }
.stat-card-value { font-family: var(--font-brand); font-size: 24px; font-weight: 700; color: var(--color-text); font-variant-numeric: tabular-nums; }
.stat-card-value.accent { color: var(--color-gold); }
.stat-card-value.danger { color: var(--color-danger); }
.stat-card-sub { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }

/* Vertical stack of cards/sections with one consistent gap — replaces
   ad hoc margin-top on individual elements. */
.stack { display: flex; flex-direction: column; gap: var(--sp-3); }

.section-title { font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; margin: 0 0 var(--sp-3); display: flex; align-items: center; justify-content: space-between; }
.section-hint { font-size: 12px; color: var(--color-text-muted); margin: calc(-1 * var(--sp-2)) 0 var(--sp-3); line-height: 1.5; }

/* A secondary block within a card (e.g. the quote form under the item
   list) — separated by a rule rather than living in its own card, since
   it's still part of "this order," not a new topic. */
.subsection { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--color-card-border); }

/* ── Badges / pills — exact palette of the customer site's
   .inquiry-status-pill, so "Placed" looks identical on both apps. */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 600; white-space: nowrap; }
.badge-good { color: var(--color-good); background: var(--color-good-bg); }
.badge-warn { color: var(--color-warn); background: var(--color-warn-bg); }
.badge-danger { color: var(--color-danger); background: var(--color-danger-bg); }
.badge-neutral { color: var(--color-text-muted); background: #F3ECE0; }
.badge-gold { color: var(--color-gold); background: var(--color-gold-bg); }
@media (prefers-color-scheme: dark) { .badge-neutral { background: rgba(255,255,255,0.08); } }

/* ── Tables ───────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; background: var(--color-card-bg); border: 1px solid var(--color-card-border); border-radius: var(--radius-card); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.data-table th {
  text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--color-text-muted); padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--color-card-border); white-space: nowrap;
}
.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { color: var(--color-text); }
.data-table td { padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--color-card-border); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(184,134,11,0.05); cursor: pointer; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-empty { padding: var(--sp-6) var(--sp-4); text-align: center; color: var(--color-text-muted); font-size: 13px; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3); }
.pagination-info { font-size: 12.5px; color: var(--color-text-muted); }
.pagination-controls { display: flex; gap: var(--sp-2); }

/* Mobile card-list rendering of the orders table, swapped in below the
   breakpoint (see media query) — a horizontally-scrolling data table is
   never a good phone experience, so <table> is replaced entirely rather
   than just shrunk. */
.mobile-order-list { display: none; flex-direction: column; gap: var(--sp-2); }
.mobile-order-card {
  background: var(--color-card-bg); border: 1px solid var(--color-card-border); border-radius: var(--radius-card);
  padding: var(--sp-3); display: flex; flex-direction: column; gap: 6px; cursor: pointer;
}
.mobile-order-card:active { opacity: 0.85; }
.mobile-order-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-2); }
.mobile-order-card-name { font-weight: 700; font-size: 13.5px; }
.mobile-order-card-meta { font-size: 11.5px; color: var(--color-text-muted); }
.mobile-order-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); flex-wrap: wrap; margin-top: 2px; }
.mobile-order-card-total { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── Filter bar ───────────────────────────────────────────────────────── */
.filter-bar { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-3); align-items: center; }
.filter-bar .input { width: auto; min-width: 200px; }
.filter-bar select.input { min-width: 150px; }

/* ── Customer directory ───────────────────────────────────────────────── */
.customer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: var(--sp-3); }
.customer-card {
  background: var(--color-card-bg); border: 1px solid var(--color-card-border); border-radius: var(--radius-card); padding: var(--sp-3) var(--sp-4);
  cursor: pointer; transition: border-color 150ms, transform 150ms;
}
.customer-card:hover { border-color: var(--color-gold); transform: translateY(-2px); }
.customer-card:active { transform: translateY(0); opacity: 0.9; }
.customer-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.customer-card-name { font-size: 15px; font-weight: 700; }
.customer-card-owner { font-size: 12px; color: var(--color-text-muted); margin-top: 1px; }
.customer-card-phone { font-size: 12px; color: var(--color-text-muted); margin-bottom: var(--sp-3); }
.customer-card-stats { display: flex; gap: var(--sp-4); padding-top: var(--sp-2); border-top: 1px solid var(--color-card-border); }
.customer-card-stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); }
.customer-card-stat-value { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Staggered entrance, same restrained treatment CLAUDE.md calls for on
   the customer site's product cards — a quiet fade + rise, capped so a
   long list doesn't keep animating for seconds. */
.customer-card, .order-summary-row, .mobile-order-card {
  animation: card-in 320ms cubic-bezier(0.16,1,0.3,1) backwards;
}
@media (prefers-reduced-motion: reduce) {
  .customer-card, .order-summary-row, .mobile-order-card, #app { animation: none !important; transition: none !important; }
}
@keyframes card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.customer-grid .customer-card:nth-child(1),  .order-row-list .order-summary-row:nth-child(1),  .mobile-order-list .mobile-order-card:nth-child(1)  { animation-delay: 0ms; }
.customer-grid .customer-card:nth-child(2),  .order-row-list .order-summary-row:nth-child(2),  .mobile-order-list .mobile-order-card:nth-child(2)  { animation-delay: 30ms; }
.customer-grid .customer-card:nth-child(3),  .order-row-list .order-summary-row:nth-child(3),  .mobile-order-list .mobile-order-card:nth-child(3)  { animation-delay: 60ms; }
.customer-grid .customer-card:nth-child(4),  .order-row-list .order-summary-row:nth-child(4),  .mobile-order-list .mobile-order-card:nth-child(4)  { animation-delay: 90ms; }
.customer-grid .customer-card:nth-child(5),  .order-row-list .order-summary-row:nth-child(5),  .mobile-order-list .mobile-order-card:nth-child(5)  { animation-delay: 120ms; }
.customer-grid .customer-card:nth-child(n+6),.order-row-list .order-summary-row:nth-child(n+6),.mobile-order-list .mobile-order-card:nth-child(n+6) { animation-delay: 150ms; }

/* ── Customer / order detail layout ──────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: var(--sp-4); align-items: start; }

.order-row-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.order-summary-row {
  background: var(--color-card-bg); border: 1px solid var(--color-card-border); border-radius: var(--radius-card); padding: var(--sp-3);
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; transition: border-color 150ms;
}
.order-summary-row:hover { border-color: var(--color-gold); }
.order-summary-row:active { opacity: 0.85; }
.order-summary-main { display: flex; flex-direction: column; gap: 3px; }
.order-summary-title { font-size: 13.5px; font-weight: 700; }
.order-summary-meta { font-size: 12px; color: var(--color-text-muted); }
.order-summary-side { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.order-summary-total { font-weight: 700; font-variant-numeric: tabular-nums; }

.item-row { padding: var(--sp-3) 0; border-bottom: 1px solid var(--color-card-border); }
.item-row:first-child { padding-top: 0; }
.item-row:last-child { border-bottom: none; }
.item-row-name { font-weight: 700; font-size: 13.5px; margin-bottom: var(--sp-1); }
.item-size-row { display: flex; align-items: center; gap: var(--sp-2); padding: 5px 0; font-size: 12.5px; flex-wrap: wrap; }
.item-size-label { color: var(--color-text-muted); min-width: 100px; }
.item-size-price { color: var(--color-gold); font-weight: 700; }

.total-row {
  display: flex; align-items: center; justify-content: space-between; padding: var(--sp-3) 0 0; margin-top: var(--sp-2);
  border-top: 1px solid var(--color-card-border);
}
.total-row-label { font-weight: 700; font-size: 13.5px; }
.total-row-value { font-family: var(--font-brand); font-size: 20px; font-weight: 700; color: var(--color-gold); font-variant-numeric: tabular-nums; }

.rate-history-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 6px 0; border-bottom: 1px dashed var(--color-card-border); }
.rate-history-row:last-child { border-bottom: none; }

.payment-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; padding: var(--sp-1) 0; border-bottom: 1px solid var(--color-card-border); gap: var(--sp-2); }
.payment-row:last-child { border-bottom: none; }
.payment-amount { font-weight: 700; color: var(--color-good); font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* ── Login ────────────────────────────────────────────────────────────── */
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--color-charcoal); padding: var(--sp-4); }
.login-card { width: 100%; max-width: 360px; background: var(--color-ivory); border-radius: 18px; padding: var(--sp-5) var(--sp-4); }
.login-brand { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.login-brand img { height: 34px; }
.login-brand-text { font-family: var(--font-brand); font-size: 18px; font-weight: 700; }
.login-brand-text small { display: block; font-family: var(--font-body); font-size: 10.5px; font-weight: 600; color: var(--color-text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.login-error { color: var(--color-danger); font-size: 12.5px; margin-top: calc(-1 * var(--sp-1)); margin-bottom: var(--sp-2); }

/* ── Modal ────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,18,14,0.55); display: flex; align-items: center; justify-content: center;
  z-index: 200; opacity: 0; pointer-events: none; transition: opacity 200ms;
}
.modal-overlay.visible { opacity: 1; pointer-events: auto; }
.modal-card {
  width: 100%; max-width: 420px; background: var(--color-ivory); border-radius: 18px; padding: var(--sp-4); margin: var(--sp-3);
  transform: translateY(14px) scale(0.98); transition: transform 220ms cubic-bezier(0.34,1.1,0.64,1); max-height: 86vh; overflow-y: auto;
}
.modal-overlay.visible .modal-card { transform: translateY(0) scale(1); }
.modal-title { font-size: 16px; font-weight: 700; margin: 0 0 var(--sp-3); }
.modal-actions { display: flex; gap: var(--sp-2); justify-content: flex-end; margin-top: var(--sp-3); }

/* ── Misc ─────────────────────────────────────────────────────────────── */
.muted { color: var(--color-text-muted); }
.skeleton { background: linear-gradient(90deg, var(--color-card-border) 0%, rgba(237,232,224,0.4) 50%, var(--color-card-border) 100%); background-size: 200% 100%; animation: skeleton-shine 1.3s ease-in-out infinite; border-radius: var(--radius-card); }
@keyframes skeleton-shine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.toast {
  position: fixed; bottom: var(--sp-4); left: 50%; transform: translateX(-50%); background: var(--color-charcoal); color: #fff;
  padding: 11px 20px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; z-index: 500; opacity: 0; transition: opacity 200ms, transform 200ms;
  pointer-events: none;
}
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(-6px); }

.bar-row { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-1); }
.bar-label { flex: 0 0 42%; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1; height: 8px; background: var(--color-gold-bg); border-radius: var(--radius-pill); overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--color-gold); border-radius: var(--radius-pill); transition: width 400ms ease; }
.bar-count { flex: 0 0 auto; font-size: 12px; font-weight: 700; min-width: 60px; text-align: right; font-variant-numeric: tabular-nums; }

.empty-state { padding: var(--sp-5) var(--sp-4); text-align: center; color: var(--color-text-muted); font-size: 13px; }

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE — the sidebar becomes an off-canvas drawer (same slide +
   backdrop mechanic as the customer site's own .sidebar), tables become
   card lists, and every fixed-width control drops to 100%.
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .app-shell { display: block; }

  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 150;
    transform: translateX(-100%); transition: transform 280ms cubic-bezier(0.4,0,0.2,1);
    box-shadow: none; width: min(280px, 82vw);
  }
  .sidebar.open { transform: translateX(0); box-shadow: 10px 0 32px rgba(0,0,0,0.30); }
  .sidebar-backdrop.show { display: block; }

  .mobile-topbar {
    display: flex; align-items: center; gap: var(--sp-2);
    padding: max(16px, env(safe-area-inset-top) + 10px) var(--sp-3) var(--sp-3);
    position: sticky; top: 0; z-index: 90; background: var(--color-ivory);
    border-bottom: 1px solid var(--color-card-border);
  }
  .mobile-topbar-btn {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--color-card-border); background: var(--color-card-bg);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; color: var(--color-text);
  }
  .mobile-topbar-title { font-family: var(--font-brand); font-size: 16px; font-weight: 700; }

  .main { padding: var(--sp-3); }
  .page-header { margin-bottom: var(--sp-3); }
  .page-title { font-size: 21px; }

  .filter-bar .input, .filter-bar select.input { width: 100%; min-width: 0; }
  .filter-bar { flex-direction: column; align-items: stretch; }

  /* Orders table → card list */
  .table-wrap table.data-table { display: none; }
  .table-wrap { border: none; background: none; }
  .mobile-order-list { display: flex; }
  .pagination { padding: var(--sp-3) 0 0; flex-wrap: wrap; }

  .customer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }

  .page-actions { width: 100%; }
  .page-actions .btn, .page-actions a.btn { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
  .modal-card { margin: var(--sp-2); }
}
