/* ==========================================================================
   Design unique de l'app : clair, calme, une seule couleur d'accent.
   Chargé en dernier : il remplace l'ancien look (barre latérale / verre dépoli).
   ========================================================================== */

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f6;
  --line: #e7e9ee;
  --ink: #12151c;
  --muted: #667085;
  --accent: #2547d0;
  --accent-fg: var(--accent);
  --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
  --accent-ink: #ffffff;
  --ok: #0f8a5f;
  --warn: #b7791f;
  --bad: #d23b3b;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(16, 24, 40, .05);

  /* anciens noms de variables, redirigés vers les nouveaux */
  --panel-bg: var(--surface); --sidebar-bg: var(--surface); --input-bg: var(--surface);
  --border: var(--line); --text: var(--ink); --text-secondary: var(--muted);
  --accent-hover: color-mix(in srgb, var(--accent) 88%, black);
  --green-text: var(--ok); --red: var(--bad); --radius-lg: var(--r); --radius-md: var(--r-sm); --radius-sm: 10px;
  --shadow-card: var(--shadow);
  --g-ink: var(--ink); --g-muted: var(--muted); --g-card: var(--surface); --g-card-border: var(--line);
  --g-track: var(--surface-2); --g-pill: var(--surface); --g-dark: var(--ink); --g-accent: var(--accent);
  --g-bar: var(--ink); --g-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --surface: #171a21; --surface-2: #20242d; --line: #272c37; --ink: #eef0f4; --muted: #9aa3b2;
    --accent-ink: #ffffff; --ok: #34c58b; --warn: #e0a94a; --bad: #ef6b6b; --accent-fg: color-mix(in srgb, var(--accent) 50%, #fff);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115; --surface: #171a21; --surface-2: #20242d; --line: #272c37; --ink: #eef0f4; --muted: #9aa3b2;
  --accent-ink: #ffffff; --ok: #34c58b; --warn: #e0a94a; --bad: #ef6b6b; --accent-fg: color-mix(in srgb, var(--accent) 50%, #fff);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
.ico { width: 22px; height: 22px; flex: none; }
.muted { color: var(--muted); font-weight: 500; }

/* ---------- Mise en page ---------- */
.app { display: flex; min-height: 100vh; }
.side { position: sticky; top: 0; align-self: flex-start; height: 100vh; width: 248px; flex: none; display: flex; flex-direction: column;
  padding: 22px 14px 16px; background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; }
.main { flex: 1; min-width: 0; }
.page { max-width: 1080px; margin: 0 auto; padding: 36px 36px 80px; }
.mtop, .tabbar { display: none; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; font-size: 16px; padding: 0 8px; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; margin: 26px 0 18px; }
.side a, .side .linkbtn { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--muted); text-decoration: none;
  font-weight: 600; font-size: 15px; border: 0; background: none; cursor: pointer; font-family: inherit; width: 100%; text-align: left; }
.side a:hover, .side .linkbtn:hover { background: var(--surface-2); color: var(--ink); }
.side a.on { background: var(--accent-soft); color: var(--accent-fg); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.side-foot a, .side-foot .linkbtn { font-size: 14px; padding: 9px 12px; font-weight: 500; }
.side-foot .ico { width: 19px; height: 19px; }
.badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; font-style: normal; text-align: center; line-height: 20px; }

.sync { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font: inherit; font-size: 12.5px; color: var(--muted); cursor: pointer; text-align: left; }
.sync:hover { border-color: var(--accent); color: var(--ink); }
.sync .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.sync.busy .dot { background: var(--accent); animation: pulse 1s infinite; }
.sync.warn .dot { background: var(--warn); }
@keyframes pulse { 50% { opacity: .3; } }
.sync .g-sync-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Titres et blocs ---------- */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.h1, .page-header h1, .g-hero h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.sub, .page-subtitle, .g-hero-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.page-header, .g-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }

.card, .panel, .g-card, .stat-card, .hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  backdrop-filter: none; -webkit-backdrop-filter: none; padding: 22px 24px; margin-bottom: 18px; color: var(--ink);
}
.card-h, .panel-header, .g-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h2, .panel-header h2, .g-h2, .g-card-head h2 { font-size: 18px; font-weight: 700; }
.more, .g-klink { font-size: 14px; font-weight: 600; color: var(--accent-fg); text-decoration: none; }
.more:hover { text-decoration: underline; }
.empty, .empty-state, .g-empty, .g-empty-s { color: var(--muted); font-size: 14.5px; padding: 8px 0; margin: 0; text-align: left; }
.hint-text, .panel-subtitle, .g-note, .g-sub, .g-footnote { color: var(--muted); font-size: 14px; }

/* ---------- Accueil ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); text-decoration: none; transition: transform .15s, border-color .15s; position: relative; }
.tile:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.tile-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); margin-bottom: 6px; }
.tile.hot .tile-ico { background: var(--accent-soft); color: var(--accent-fg); }
.tile-n { font-size: 46px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tile.hot .tile-n { color: var(--accent-fg); }
.tile-t { font-size: 17px; font-weight: 700; line-height: 1.25; }
.tile-h { font-size: 14px; color: var(--muted); line-height: 1.4; }

.money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.money b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.money span { display: block; font-weight: 600; margin-top: 2px; }
.money small { display: block; color: var(--muted); font-size: 13px; }
.pos { color: var(--ok); } .neg { color: var(--bad); }

.rows { display: flex; flex-direction: column; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 4px; border-top: 1px solid var(--line); text-decoration: none; }
.row:first-child { border-top: 0; }
.row:hover .row-main b { color: var(--accent); }
.row-main { display: flex; flex-direction: column; min-width: 0; }
.row-main small { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-side { color: var(--muted); font-size: 13px; white-space: nowrap; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 20px; }
.btn-main, .btn-soft { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn-main { background: var(--accent); color: var(--accent-ink); }
.btn-main:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn-soft { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-soft:hover { border-color: var(--accent); }
.btn-main .ico { width: 19px; height: 19px; }

/* ---------- Menu mobile ---------- */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.list-row { display: flex; align-items: center; gap: 14px; padding: 15px 18px; text-decoration: none; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); }
.list > :first-child { border-top: 0; }
.list-row > span { display: flex; flex-direction: column; flex: 1; }
.list-row small { color: var(--muted); font-size: 13.5px; }
.list-row .ico { color: var(--accent-fg); }
.list form { margin: 0; }

/* ---------- Boutons, champs ---------- */
.btn, .g-btn, button.btn, a.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 14.5px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; transition: border-color .15s, background .15s; }
.btn:hover, .g-btn:hover { border-color: var(--accent); }
.btn-primary, .g-cta { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover, .g-cta:hover { background: color-mix(in srgb, var(--accent) 88%, black); color: var(--accent-ink); }
.g-cta { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: none; }
.g-cta i { display: none; }
.btn-secondary { background: var(--surface); }
.btn-sm { padding: 6px 13px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

input[type=text], input[type=search], input[type=email], input[type=number], input[type=date], input[type=password], input[type=url], input[type=tel], select, textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; width: 100%; max-width: 100%;
  transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
label { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); }
label > input, label > select, label > textarea { margin-top: 6px; color: var(--ink); font-weight: 400; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.form-row > label { flex: 1 1 180px; }
.form-row > label.grow { flex: 3 1 260px; }
.expense-form, .g-form { display: block; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
.g-search input { width: 280px; border-radius: 999px; padding-left: 16px; }

/* ---------- Tableaux ---------- */
.table-wrap, .g-table-wrap { overflow-x: auto; margin: 0 -4px; }
table, .g-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 4%, transparent); }
th.r, td.r, .amount { text-align: right; font-variant-numeric: tabular-nums; }
.muted-cell { color: var(--muted); font-size: 13.5px; }
.action-cell { text-align: right; white-space: nowrap; }
.g-row-link { cursor: pointer; }

/* ---------- Onglets, pastilles, étiquettes ---------- */
.g-tabs, .seg-row, .seg { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.g-tabs a, .seg a, .seg button { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px; color: var(--muted); }
.g-tabs a b { margin-left: 6px; font-weight: 700; }
.g-tabs a.on, .seg a.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.g-tabs a:hover { border-color: var(--accent); }
.tag, .g-badge, .g-chip-y, .g-chip-up, .g-chip-down { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.tag-green, .g-chip-up, .badge-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.tag-warn, .g-chip-y { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.g-chip-down { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.g-nbadge { display: none; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-on { background: var(--ok); } .status-off { background: var(--line); }

.flash-list { display: grid; gap: 10px; margin-bottom: 18px; }
.flash { padding: 13px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; }
.flash-success { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.flash-error { background: color-mix(in srgb, var(--bad) 10%, var(--surface)); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.g-newdata { margin-bottom: 14px; padding: 11px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-fg); font-weight: 600; }
.g-newdata button { margin-left: 8px; border: 0; background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 5px 14px; font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Pages existantes : tableau de bord, boîte de réception, kanban… ---------- */
.stats-page .g-hero, .stats-page .g-topbar { display: none; }
.g-grid, .g-board, .g-two, .g-inbox, .g-row2, .stat-grid, .g-todo, .g-metrics { gap: 18px; }
.g-kpis { display: flex; gap: 32px; flex-wrap: wrap; }
.g-kpi b, .g-big, .stat-value, .hero-value { font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.g-eyebrow, .stat-label, .hero-label, .g-section-title { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; }
.g-darkpill, .pill-dark, .g-pill { background: var(--ink) !important; color: var(--bg) !important; border: 0; }
.pill-light { background: var(--surface-2) !important; color: var(--ink) !important; }
.g-list, .g-feed { max-height: none; }
.g-mini { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.g-feed > .g-mini:first-child { border-top: 0; }
.g-reader, .g-msg { background: var(--surface); }
.g-msg { border-bottom: 1px solid var(--line); }
.g-bubble { background: var(--surface-2); border-radius: 18px; }
.g-bubble.boutique { background: var(--accent); color: var(--accent-ink); }
.g-sync, .g-sync-dot { display: none; }
.g-back { color: var(--accent-fg); text-decoration: none; font-weight: 600; font-size: 14px; }
.g-callout { background: var(--accent-soft); border-radius: var(--r-sm); padding: 12px 16px; }
.stand-total-card, .hero-card { background: var(--surface); }

/* ---------- Connexion ---------- */
.auth-page { display: grid; place-items: center; min-height: 100vh; padding: 20px; background: var(--bg); }
.auth-wrap { width: 100%; max-width: 420px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 34px 30px; box-shadow: var(--shadow); }
.auth-brand { font-weight: 800; color: var(--accent-fg); margin-bottom: 14px; font-size: 15px; }
.auth-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.auth-sub { color: var(--muted); font-size: 14.5px; margin: 0 0 20px; }
.auth-form { display: grid; gap: 14px; }
.auth-err { color: var(--bad); font-size: 14px; margin: 0; font-weight: 500; }
.auth-link { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; margin-top: 12px; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; color: var(--muted); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-card .btn-block { display: flex; padding: 14px 18px; font-size: 15.5px; }
.auth-card input[name=code] { font-size: 26px; letter-spacing: .3em; text-align: center; font-weight: 700; }

/* ---------- Écrans moyens et téléphone ---------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-two, .g-inbox, .g-row2, .g-grid, .g-board { grid-template-columns: 1fr !important; }
}
@media (max-width: 860px) {
  .side { display: none; }
  .mtop { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .mtop-sync { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--muted); cursor: pointer; }
  .page { padding: 22px 16px calc(96px + env(safe-area-inset-bottom)); }
  .h1, .page-header h1, .g-hero h1 { font-size: 27px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: 12px; text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 600; position: relative; }
  .tabbar a.on { color: var(--accent-fg); }
  .tabbar .badge { position: absolute; top: 2px; left: 50%; margin: 0 0 0 6px; min-width: 18px; line-height: 17px; font-size: 11px; padding: 0 5px; }
  .card, .panel, .g-card { padding: 18px; border-radius: 16px; }
  .tiles, .tiles-3 { grid-template-columns: 1fr; gap: 10px; }
  .tile { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 16px 18px; }
  .tile-ico { margin: 0; width: 38px; height: 38px; }
  .tile-n { font-size: 34px; order: 3; margin-left: auto; }
  .tile-t { flex: 1; order: 2; }
  .tile-h { order: 4; flex: 1 1 100%; }
  .tiles-3 .tile-t { flex: 1 1 60%; }
  .money { grid-template-columns: 1fr; }
  .actions .btn-main, .actions .btn-soft { width: 100%; justify-content: center; }
  .g-search input { width: 100%; }
  .g-search { width: 100%; }
  .row-main small { white-space: normal; }
  .table-wrap, .g-table-wrap { margin: 0 -8px; }
  th, td { padding: 11px 8px; }
}

/* précisions */
.btn.btn-primary, button.btn-primary, a.btn.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.action-cell { white-space: nowrap; }
.action-cell > *, .action-cell form { display: inline-flex; vertical-align: middle; margin: 0; }
.btn-icon { padding: 7px; border-radius: 10px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.btn-icon:hover { background: var(--surface-2); color: var(--ink); }

/* chiffres détaillés */
.legend { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.lg-in { background: var(--accent); } .lg-out { background: var(--line); border: 1px solid var(--muted); }
.bar-row { display: grid; grid-template-columns: 130px 1fr 130px; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.bar-row:first-child { border-top: 0; }
.bar-label { font-weight: 600; text-transform: capitalize; }
.bar-track { display: grid; gap: 4px; }
.bar-track i { display: block; height: 9px; border-radius: 99px; min-width: 3px; }
.bar-in { background: var(--accent); } .bar-out { background: var(--muted); opacity: .45; }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; } .bar-val b { display: block; } .bar-val small { font-weight: 600; }
.cat-row { display: grid; grid-template-columns: minmax(120px, 220px) 1fr 90px 44px; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cat-row:first-of-type { border-top: 0; }
.cat-track { height: 9px; border-radius: 99px; background: var(--surface-2); overflow: hidden; } .cat-track i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.cat-row b { text-align: right; font-variant-numeric: tabular-nums; } .cat-row small { color: var(--muted); text-align: right; }
@media (max-width: 860px) { .bar-row { grid-template-columns: 1fr 1fr; } .bar-track { grid-column: 1 / -1; order: 3; } .cat-row { grid-template-columns: 1fr 80px 40px; } .cat-track { grid-column: 1 / -1; order: 4; } }
@media (max-width: 860px) {
  .orders-table th:nth-child(2), .orders-table td:nth-child(2), .orders-table th:nth-child(4), .orders-table td:nth-child(4), .orders-table th:nth-child(6), .orders-table td:nth-child(6) { display: none; }
}
