/* Application commerçant Boutik237 — mobile d'abord. */
/* Sora (licence SIL OFL 1.1, voir /fonts/OFL-Sora.txt) : titres, montants et logo.
   Le texte courant garde la police du téléphone (rien à télécharger pour lire). */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url(/fonts/sora-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600 700; font-display: swap;
  src: url(/fonts/sora-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --brand-font: "Sora", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #f6f3ec;
  --card: #ffffff;
  --ink: #1b221e;
  --muted: #5f6b64;
  --line: #e7e1d5;
  --green: #0e6b47;
  --green-2: #0a5538;
  --green-soft: #e3f1ea;
  --gold: #f2b705;
  --wa: #128c4a;
  --warn: #b25d00;
  --warn-soft: #fff1dc;
  --bad: #b4321f;
  --ok: #157347;
  --momo: #ffcc00;
  --om: #ff7900;
  --r: 16px;
  --shadow: 0 1px 2px rgba(27, 34, 30, .05), 0 6px 18px rgba(27, 34, 30, .06);
  --tabs-h: 64px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(var(--tabs-h) + 24px + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}
body.bare { padding-bottom: 24px; }
a { color: var(--green); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--ink); }
h1, h2 { line-height: 1.2; font-family: var(--brand-font); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 24px; margin: 0; letter-spacing: -.2px; }
h2 { font-size: 16px; margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.block { display: flex; width: 100%; }
.warn { color: var(--warn); }
.bad { color: var(--bad); }
.ok { color: var(--ok); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Barre du haut */
.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--bg);
  max-width: 640px; margin: 0 auto;
}
.top-title { font-family: var(--brand-font); font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; flex: none; display: block; }
.back { font-size: 34px; line-height: 1; text-decoration: none; color: var(--ink); padding: 0 12px 4px 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--card); color: var(--green); display: grid; place-items: center; box-shadow: var(--shadow); }

.view { max-width: 640px; margin: 0 auto; padding: 4px 16px 0; display: flex; flex-direction: column; gap: 16px; outline: none; }
.page-h { margin-top: 4px; }

/* Onglets du bas */
.tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs a {
  height: var(--tabs-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); text-decoration: none; font-size: 11.5px; font-weight: 600; position: relative;
}
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tabs a.on { color: var(--green); }
.tabs a.on svg { stroke-width: 2.3; }
.badge {
  position: absolute; top: 8px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; display: grid; place-items: center;
}
@media (min-width: 700px) { .tabs { max-width: 640px; margin: 0 auto; border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; } }

/* Boutons */
.btn {
  border: 0; border-radius: 14px; min-height: 50px; padding: 0 16px; font-weight: 700; font-size: 15.5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; text-align: center;
  transition: transform .08s ease, filter .15s ease;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--green); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.wa { background: var(--wa); color: #fff; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.lg { min-height: 56px; font-size: 17px; }
.link { background: none; border: 0; color: var(--green); font-weight: 600; padding: 8px 4px; text-decoration: underline; text-underline-offset: 3px; }
.link.danger { color: var(--bad); }
.link.block { justify-content: center; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }

/* Formulaires */
label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; }
label small { font-weight: 400; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: #fff; width: 100%;
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.phone-in { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.phone-in span { display: grid; place-items: center; padding: 0 12px; background: #f1ede4; color: var(--muted); font-weight: 600; }
.phone-in input { border: 0 !important; border-radius: 0 !important; }
.phone-in:focus-within { outline: 2px solid var(--green); outline-offset: 1px; }
.phone-in input:focus-visible { outline: none; }
label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; min-height: 44px; }
label.check input { width: 22px; height: 22px; accent-color: var(--green); }
.error { color: var(--bad); font-size: 14px; margin: 0; }
fieldset.seg-field { border: 0; padding: 0; margin: 0; }
fieldset.seg-field legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 5px; }
fieldset.pay-numbers { border: 0; border-top: 1px solid var(--line); padding: 14px 0 0; margin: 4px 0 0; }
fieldset.pay-numbers legend { font-family: var(--brand-font); font-size: 16px; font-weight: 700; padding: 0 8px 0 0; }

/* Contrôles segmentés */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #ebe6db; border-radius: 12px; padding: 4px; gap: 4px; }
.seg > button, .seg > label { border: 0; background: none; border-radius: 9px; min-height: 40px; font-weight: 600; font-size: 14px; color: var(--muted); display: grid; place-items: center; position: relative; }
.seg > button[aria-selected="true"], .seg > label:has(input:checked) { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg > label input { position: absolute; opacity: 0; pointer-events: none; }
.seg.compact > button { min-height: 34px; padding: 0 14px; }

/* Connexion */
.auth { display: flex; flex-direction: column; gap: 14px; padding-top: 8vh; position: relative; }
.auth h1 { font-size: 28px; }
.auth-logo { border-radius: 16px; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand .wordmark { font-family: var(--brand-font); font-weight: 700; font-size: 30px; letter-spacing: -.03em; color: var(--green); }
/* « 237 » (indicatif du Cameroun) en or foncé : lisible sur le fond crème (contraste > 3:1 en gros texte). */
.wordmark .wm-num { color: #a87800; letter-spacing: -.01em; }
.lang-switch { position: absolute; top: 12px; right: 0; }
.demo-box { background: #fff6d6; border: 1px dashed #d9b84a; border-radius: 12px; padding: 12px; color: #5c4600; }
.demo-box strong { font-size: 20px; letter-spacing: 3px; margin-left: 6px; }
.code-in { text-align: center; font-size: 28px !important; letter-spacing: 10px; font-weight: 700; min-height: 60px !important; }

/* Cartes et stats */
.card { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.card-h { display: flex; justify-content: space-between; align-items: baseline; }
.card-h a { font-size: 14px; font-weight: 600; text-decoration: none; }
.hello h1 { font-size: 26px; }
.hello p { margin: 0 0 2px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--card); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; min-width: 0; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat strong { font-family: var(--brand-font); font-size: 22px; font-weight: 700; letter-spacing: -.4px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.stat strong small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stat em { font-style: normal; font-size: 12px; color: var(--muted); }
.stat.big { grid-column: 1 / -1; background: var(--green); color: #fff; }
.stat.big span, .stat.big em, .stat.big strong small { color: rgba(255,255,255,.78); }
.stat.big strong { font-size: 34px; color: var(--gold); }
.stats .stat:last-child:nth-child(even) { grid-column: 1 / -1; }
.stat.link { position: relative; }
.stat.link::after { content: '›'; position: absolute; right: 12px; top: 10px; color: var(--muted); font-size: 20px; }
.stat.wide strong { font-size: 28px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.alert { display: flex; gap: 8px; align-items: center; background: var(--warn-soft); color: var(--warn); border-radius: 14px; padding: 14px 16px; text-decoration: none; font-weight: 600; }
.alert b { background: var(--warn); color: #fff; border-radius: 999px; min-width: 26px; height: 26px; display: grid; place-items: center; font-size: 14px; }
.alert span { margin-left: auto; font-size: 22px; }
.alert.soft { background: #fff; color: var(--ink); border: 1px solid var(--line); font-weight: 500; }

.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 120px; align-items: end; }
.bar { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar i { width: 100%; max-width: 34px; min-height: 3px; background: #d5e7dd; border-radius: 6px 6px 3px 3px; display: block; }
.bar.on i { background: var(--green); }
.bar span { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: capitalize; }

/* Listes */
.list { list-style: none; margin: 0; padding: 0; }
.list.card { padding: 4px 16px; }
.list li + li { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; width: 100%; text-decoration: none; color: inherit; background: none; border: 0; text-align: left; min-height: 60px; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-main strong { overflow-wrap: anywhere; font-weight: 650; }
.row-main span { font-size: 13px; }
.row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; flex: none; }
.row-end strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.new { color: var(--bad); }
.pill { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #efebe2; color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--green-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.new { background: #fde6e2; color: var(--bad); }
.pill.grey { background: #efebe2; color: var(--muted); }
.thumb { width: 48px; height: 48px; border-radius: 12px; background: #ebe5d8; display: grid; place-items: center; font-weight: 700; color: var(--muted); overflow: hidden; flex: none; font-size: 15px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.round { border-radius: 50%; background: var(--green-soft); color: var(--green); }
.thumb.lg { width: 72px; height: 72px; font-size: 24px; }
.empty { text-align: center; padding: 32px 8px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.big-emoji { font-size: 44px; margin: 0; }

/* Caisse */
.search input { background: var(--card); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 520px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tiles .span { grid-column: 1 / -1; }
.tile { background: var(--card); border: 2px solid transparent; border-radius: 14px; padding: 6px 6px 10px; display: flex; flex-direction: column; gap: 3px; text-align: left; box-shadow: var(--shadow); min-width: 0; }
.tile.in { border-color: var(--green); }
.tile:disabled { opacity: .45; }
.tile-ph { aspect-ratio: 1; border-radius: 10px; background: #ebe5d8; display: grid; place-items: center; font-weight: 700; color: var(--muted); overflow: hidden; position: relative; margin-bottom: 4px; }
.tile-ph img { width: 100%; height: 100%; object-fit: cover; }
.tile-ph b { position: absolute; top: 4px; right: 4px; background: var(--green); color: #fff; border-radius: 999px; min-width: 24px; height: 24px; display: grid; place-items: center; font-size: 13px; }
.tile-name { font-size: 13px; font-weight: 600; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; padding: 0 2px; }
.tile-price { font-size: 13px; font-weight: 800; padding: 0 2px; }
.tile-stock { font-size: 11px; color: var(--muted); padding: 0 2px; }
.cart h2 { margin-bottom: 6px; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.lines.ro li { grid-template-columns: 1fr auto; }
.line-main { display: flex; flex-direction: column; min-width: 0; }
.line-main span { overflow-wrap: anywhere; font-weight: 600; font-size: 15px; }
.line-main .link { padding: 0; text-align: left; text-decoration: none; color: var(--muted); }
.line-total { min-width: 84px; text-align: right; font-variant-numeric: tabular-nums; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 18px; font-weight: 700; }
.stepper output { min-width: 2ch; text-align: center; font-weight: 800; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; font-size: 17px; }
.total strong { font-family: var(--brand-font); font-size: 24px; font-variant-numeric: tabular-nums; }
.methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.methods.col { grid-template-columns: 1fr; gap: 8px; }
.method { min-height: 48px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-weight: 700; font-size: 13px; padding: 0 4px; line-height: 1.15; }
.methods.col .method { min-height: 54px; font-size: 16px; }
.method.on.especes { border-color: var(--green); background: var(--green-soft); color: var(--green-2); }
.method.on.momo, .methods.col .method.momo { border-color: #d9ad00; background: var(--momo); color: #1b1b1b; }
.method.on.om, .methods.col .method.om { border-color: var(--om); background: var(--om); color: #fff; }
.method.on.credit { border-color: var(--warn); background: var(--warn-soft); color: var(--warn); }
.methods.col .method.especes { border-color: var(--green); background: var(--green-soft); color: var(--green-2); }
.credit-box { background: var(--warn-soft); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.credit-box p { margin: 0; }

/* Détail commande / client */
.order-h { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; }
.order-h p { margin: 0; }
.order-h h1 { font-size: 34px; font-variant-numeric: tabular-nums; }
.order-h h1.name { font-size: 24px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.balance { font-size: 22px; font-weight: 800; }
.kv { display: flex; flex-direction: column; gap: 10px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; }
.kv span { color: var(--muted); font-size: 14px; }
.kv strong { text-align: right; overflow-wrap: anywhere; font-weight: 600; }
.ledger .row { padding: 10px 0; min-height: 0; }
.linkbox { background: #f4f1ea; border-radius: 10px; padding: 10px 12px; overflow-x: auto; }
.linkbox code { font-size: 13px; white-space: nowrap; }

/* Formules */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plan { border: 2px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.plan.on { border-color: var(--green); background: var(--green-soft); }
.plan span { font-weight: 800; }
.plan small { color: var(--muted); font-size: 12px; }

/* Feuille (bas d'écran) */
.sheet { border: 0; padding: 0; width: 100%; max-width: 560px; max-height: 90vh; margin: auto auto 0; border-radius: 20px 20px 0 0; background: var(--card); color: var(--ink); }
@media (min-width: 640px) { .sheet { margin: auto; border-radius: 20px; } }
.sheet::backdrop { background: rgba(27, 34, 30, .45); }
.sheet-in { padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); }
.sheet-in h2 { font-size: 20px; margin: 0; }
.sheet-in > .muted { margin: 0; }
.sheet-in .row2 { margin-top: 4px; }
.sheet-h { display: flex; justify-content: space-between; align-items: center; }
.x { border: 0; background: none; font-size: 28px; width: 44px; height: 44px; color: var(--muted); }
.photo-pick { align-items: center; cursor: pointer; }
.photo-prev { width: 120px; height: 120px; border-radius: 16px; border: 2px dashed var(--line); display: grid; place-items: center; text-align: center; color: var(--muted); font-weight: 600; font-size: 13px; overflow: hidden; background: #faf8f3; }
.photo-prev img { width: 100%; height: 100%; object-fit: cover; }

/* Bandeaux */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs-h) + 16px + env(safe-area-inset-bottom));
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 50; font-weight: 600; font-size: 14px;
  max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.toast.ok { background: var(--green); }
.toast.bad { background: var(--bad); }
.toast.warn { background: var(--warn); }
.offline { background: var(--green-soft); color: var(--green-2); text-align: center; font-size: 13px; font-weight: 600; padding: 6px 12px; position: sticky; top: 0; z-index: 20; }
.offline.warn { background: var(--warn-soft); color: var(--warn); }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
@media (max-width: 360px) {
  .methods { grid-template-columns: 1fr 1fr; }
  .row3 { grid-template-columns: 1fr 1fr; }
  .row3 .wa { grid-column: 1 / -1; }
}

/* Galerie photo d'un produit */
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pslot { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #ebe5d8; }
.pslot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pslot.cover { outline: 3px solid var(--green); outline-offset: -3px; }
.pcover, .pmake {
  position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 8px; border: 0;
}
.pcover { background: var(--green); color: #fff; }
.pmake { background: rgba(255, 255, 255, .92); color: var(--ink); min-height: 26px; }
.pdel {
  position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: rgba(27, 34, 30, .72); color: #fff; font-size: 20px; line-height: 1; display: grid; place-items: center;
}
.padd {
  border: 2px dashed var(--line); background: #faf8f3; color: var(--muted); font-weight: 600; font-size: 13px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.padd span { font-size: 26px; }
#phint { margin: 6px 0 0; }
.thumb { position: relative; }
.thumb-n {
  position: absolute; right: 2px; bottom: 2px; background: rgba(27, 34, 30, .75); color: #fff;
  font-size: 10px; border-radius: 6px; padding: 0 4px; line-height: 15px;
}
.thumb.sm { width: 32px; height: 32px; border-radius: 8px; font-size: 11px; }
.hint-photo { color: var(--warn) !important; font-weight: 600; }

/* Avis */
.stars { color: #e3a008; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #ddd6c8; }
.seg-badge { background: var(--bad); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; font-size: 12px; display: inline-grid; place-items: center; margin-left: 4px; }
.seg > button { display: flex; align-items: center; justify-content: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.review-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.review-card { display: flex; flex-direction: column; gap: 6px; }
.rc-product { display: flex; align-items: center; gap: 8px; }
.rc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rc-comment { margin: 0; overflow-wrap: anywhere; }
.review-card > .small { margin: 0; }
.rc-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.rc-actions .link { margin-left: auto; }
button.alert { width: 100%; font: inherit; font-weight: 600; cursor: pointer; text-align: left; }

/* Livraisons */
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats.three .stat { padding: 12px; }
.stats.three .stat strong { font-size: 20px; }
.stats.three .stat:last-child:nth-child(even) { grid-column: auto; }
.cash-row { padding: 8px 0; border-top: 1px solid var(--line); }
.cash-row:first-of-type { border-top: 0; }
.pill.d-a_preparer { background: #efebe2; color: var(--ink); }
.pill.d-en_route { background: var(--green-soft); color: var(--green-2); }
.pill.d-livree { background: var(--green); color: #fff; }
.pill.d-echec { background: var(--warn-soft); color: var(--warn); }
.pill.d-annulee { background: #efebe2; color: var(--muted); }
.delivery-card h2 { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { display: flex; gap: 10px; position: relative; padding-bottom: 12px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); flex: none; margin-top: 4px; }
.timeline .dot.en_route, .timeline .dot.livree { background: var(--green); }
.timeline .dot.echec { background: var(--warn); }
.timeline li div { display: flex; flex-direction: column; font-size: 14px; }
.card-in { border-top: 1px solid var(--line); padding-top: 14px; }
.card-in h3 { margin: 0; font-size: 15px; }
.radio-row { flex-direction: row; align-items: center; gap: 10px; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font-weight: 600; }
.radio-row input { width: 20px; height: 20px; accent-color: var(--green); }
.radio-row:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.chips + .btn { flex: none; }

/* Équipe */
.row.inactive { opacity: .55; }
.role-cards { display: flex; flex-direction: column; gap: 8px; }
.role-card { flex-direction: row; align-items: flex-start; gap: 10px; border: 2px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; font-weight: 400; }
.role-card input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--green); flex: none; }
.role-card span { display: flex; flex-direction: column; gap: 2px; }
.role-card small { color: var(--muted); font-size: 13px; }
.role-card:has(input:checked) { border-color: var(--green); background: var(--green-soft); }

/* Rapports */
.chg { font-style: normal; font-weight: 700; font-size: 12px; margin-left: 4px; white-space: nowrap; }
.chg.up { color: var(--ok); }
.chg.down { color: var(--bad); }
.stat.big .chg.up { color: #b9f0d2; }
.stat.big .chg.down { color: #ffd2c8; }
.custom-range { align-items: end; }
.custom-range .span2 { grid-column: 1 / -1; }
.export { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dbars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 6px; }
.dbars.dense { gap: 2px; }
.dbar { flex: 1 1 0; min-width: 0; height: 100%; border: 0; background: none; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; cursor: pointer; }
.dbar i { width: 100%; max-width: 28px; border-radius: 4px 4px 0 0; background: #4f9a77; display: block; }
.dbar.best i { background: var(--green); }
.dbar.on i { background: var(--ink); }
.dbar span { font-size: 10.5px; color: var(--muted); height: 13px; line-height: 13px; }
.tip { margin: 8px 0 0; color: var(--muted); min-height: 18px; }
.hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hb-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.hb-top span { min-width: 0; overflow-wrap: anywhere; }
.hb-top strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hb-track { height: 8px; background: #f0ece3; border-radius: 4px; margin-top: 4px; overflow: hidden; }
.hb-track i { display: block; height: 100%; background: var(--green); border-radius: 0 4px 4px 0; }
.kv h2 { margin: 0 0 2px; }
.hist { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.hist th, .hist td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.hist th { font-size: 12px; color: var(--muted); font-weight: 600; }
.hist .num { text-align: right; white-space: nowrap; }
.hist-bar { display: block; height: 4px; margin-top: 4px; }
.hist-bar i { display: block; height: 100%; background: var(--green); border-radius: 2px; }

/* Phase pilote : code transmis à la main par l'équipe */
.pilot-note { background: #fff8e1; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; padding: 10px 12px; font-size: 14px; margin: 0; color: var(--ink); }
.legal-note a { color: inherit; text-decoration: underline; }

/* Zone « Supprimer ma boutique » : discrète, mais clairement à part. */
.danger-zone { border: 1px solid #f1d3cd; }
.danger-zone h2 { color: var(--bad); }
.btn.danger-outline { color: var(--bad); border-color: #e7b8ae; }
.btn.danger:disabled { opacity: .45; }
