/* Caféino — caisse (POS). Thème sombre acier brossé, accents bois. Optimisé tablette paysage (et ~900 px en démo côte à côte). */

.pos {
  /* Les alias --wood* de base.css sont résolus sur :root (valeurs claires) : on les ré-ancre ici pour le thème sombre. */
  --wood: var(--accent); --wood-grad: var(--accent-grad); --wood-soft: var(--accent-soft); --wood-ink: var(--accent-ink); --on-wood: var(--on-accent);
  --wood-strong: #E0A06A;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --steel-grad: repeating-linear-gradient(90deg, rgba(255, 255, 255, .014) 0 1px, transparent 1px 3px), linear-gradient(180deg, #1b1c1e, #141516);
  --card-grad: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 60%);
  height: 100dvh; overflow: hidden; user-select: none; -webkit-user-select: none;
}
.pos input, .pos textarea { user-select: text; -webkit-user-select: text; }
.pos * { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.boot { height: 100dvh; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.boot-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--wood); animation: pulse 1.4s infinite; }
.grow { flex: 1; }
.small { font-size: 13px; }
.pos .icon-btn { width: 44px; height: 44px; }
.pos .layer-head > .icon-btn { flex: none; }
.pos .btn-sm { min-height: 44px; }
.pos .toast-action { min-height: 36px; padding: 0 12px; }
.pos .switch input { inset: -8px 0; }
.kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; font: 600 12px/1 var(--font); color: var(--muted); background: var(--surface-3); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .4); }

.app { display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100dvh; animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; } }

/* ---------- Rail de navigation (acier brossé) ---------- */
.rail {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; overflow-y: auto; scrollbar-width: none;
  background: var(--steel-grad); border-right: 1px solid var(--line); box-shadow: inset -1px 0 0 rgba(255, 255, 255, .02);
}
.rail::-webkit-scrollbar { display: none; }
.rail { overflow-x: hidden; }
.nav-btn > span, .me > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-logo { display: grid; place-items: center; padding: 4px 0 12px; color: #fff; }
.rail-logo .logo { font-size: 14px; }
.nav-btn {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; padding: 7px 2px; min-height: 56px; border-radius: 12px; line-height: 1.2;
  color: var(--muted); font-size: 11.5px; font-weight: 600; transition: background .18s, color .18s, transform .12s;
}
.nav-btn:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.nav-btn:active { transform: scale(.95); }
.nav-btn.active { background: var(--wood-soft); color: var(--wood-ink); box-shadow: inset 0 0 0 1px rgba(196, 141, 90, .25); }
.nav-btn.active::before { content: ''; position: absolute; left: -8px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--wood); }
.nav-btn .count {
  position: absolute; top: 3px; right: 10px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--danger); color: #fff; font-size: 11px; display: grid; place-items: center; animation: pop .35s cubic-bezier(.2, 1.5, .4, 1);
  box-shadow: 0 0 0 2px #151617;
}
.nav-btn.locked { opacity: .68; min-height: 52px; }
.nav-btn.locked:hover { opacity: .95; }
.nav-btn .lock { position: absolute; top: 6px; right: 14px; color: var(--wood-ink); }
.rail > * { flex-shrink: 0; }   /* le rail défile plutôt que d'écraser ses boutons */
.rail-sep { margin: 6px 6px 4px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; font-weight: 700; }
.rail-foot { margin-top: auto; padding-top: 6px; }
.me { width: 100%; display: grid; justify-items: center; gap: 2px; padding: 8px 2px; border-radius: 12px; transition: background .15s; }
.me:hover { background: rgba(255, 255, 255, .05); }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--wood-grad); color: var(--on-wood); font-family: var(--font-display); font-weight: 700; font-size: 17px; flex: none; box-shadow: 0 0 0 2px rgba(0, 0, 0, .3), 0 4px 10px rgba(0, 0, 0, .35); }
.av.sm { width: 36px; height: 36px; font-size: 15px; }
.me-name { font-size: 12px; font-weight: 700; color: var(--ink); margin-top: 3px; }
.me-role { font-size: 10.5px; color: var(--muted); }
.me-lock { display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; font-size: 10px; color: var(--muted); opacity: 0; transition: opacity .15s; }
.me:hover .me-lock, .me:focus-visible .me-lock { opacity: 1; }
@keyframes pop { from { transform: scale(.4); } }

/* ---------- Barre du haut ---------- */
.main { display: grid; grid-template-rows: 60px minmax(0, 1fr); min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 10px; padding: 0 14px 0 20px; min-width: 0;
  border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #1c1d1f, var(--surface));
}
.topbar h1 { font-size: 19px; font-weight: 700; white-space: nowrap; margin-right: 6px; }
.clock { color: var(--muted); font-size: 13.5px; font-weight: 600; text-transform: capitalize; white-space: nowrap; font-variant-numeric: tabular-nums; margin-left: 4px; }
.conn { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; padding: 0 4px; }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.conn-ok i { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.conn-warn i { background: var(--warn); }
.conn-danger { color: var(--danger); }
.conn-danger i { background: var(--danger); animation: pulse 1.4s infinite; }
.tb-btn { color: var(--ink-2); transition: background .15s, color .15s, transform .12s; }
.tb-btn:active { transform: scale(.92); }
.tb-btn.off { color: var(--muted); }
.alert-pill {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px; border-radius: 999px; min-width: 0;
  background: var(--wood-grad); color: var(--on-wood); font-weight: 700; font-size: 13.5px; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(196, 141, 90, .28); animation: pillin .35s var(--ease);
}
@keyframes pillin { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
.ready-chip { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 13px; white-space: nowrap; animation: pillin .35s var(--ease); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 220, 180, .55); } 70% { box-shadow: 0 0 0 9px rgba(255, 220, 180, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 220, 180, 0); } }

.content { min-height: 0; position: relative; overflow: hidden; }
.pos #toasts { top: 70px; }
.screen-root { animation: screenin .28s var(--ease); }
@keyframes screenin { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Caisse ---------- */
.register { display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: 100%; }
.catalog { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.catalog-head { display: grid; gap: 10px; padding: 14px 16px 6px; }
.search { position: relative; display: block; }
.search > .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 40px; padding-right: 48px; background: var(--surface); min-height: 46px; border-radius: 12px; }
.search .kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search-x { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); }
.search-x:hover { color: var(--ink); }
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab { flex: none; height: 44px; padding: 0 15px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; white-space: nowrap; color: var(--ink-2); transition: background .18s, color .18s, transform .12s; }
.cat-tab:active { transform: scale(.96); }
.cat-tab.active { background: var(--ink); color: var(--bg); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }

.products { overflow-y: auto; padding: 8px 16px 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 10px; align-content: start; overscroll-behavior: contain; }
.prod {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 12px; min-height: 138px;
  border-radius: 16px; background: var(--card-grad), var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: left; overflow: hidden;
  transition: transform .16s var(--ease), background-color .15s, box-shadow .2s; touch-action: manipulation; -webkit-touch-callout: none;
}
@media (hover: hover) { .prod:hover { background-color: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong), 0 6px 18px rgba(0, 0, 0, .25); } }
.prod.rt-press { transform: scale(.955); transition-duration: .08s; }
.prod.in-ticket { box-shadow: inset 0 0 0 1px rgba(196, 141, 90, .5); }
.prod.rt-bump { animation: tilebump .42s var(--ease); }
@keyframes tilebump { 0% { box-shadow: inset 0 0 0 2px var(--wood), 0 0 0 0 rgba(196, 141, 90, .5); } 100% { box-shadow: inset 0 0 0 1px rgba(196, 141, 90, .5), 0 0 0 10px rgba(196, 141, 90, 0); } }
.prod::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at 50% 50%, rgba(196, 141, 90, .28), transparent 70%); opacity: 0; transform: scale(.3); }
.prod.rt-hold::after { animation: holdfill .33s linear forwards; }
@keyframes holdfill { to { opacity: 1; transform: scale(1.4); } }
.prod.rt-nope { animation: nope .32s; }
@keyframes nope { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.prod-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; min-width: 0; }
.prod-top .ptag { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.prod .item-icon { width: 48px; height: 48px; font-size: 26px; border-radius: 13px; }
.prod-name { font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.prod-price { font-weight: 700; color: var(--wood-ink); font-size: 14px; }
.prod.out { opacity: .5; }
.prod.out .item-icon { filter: grayscale(1); }
.qty-badge { min-width: 30px; height: 26px; padding: 0 8px; border-radius: 13px; display: grid; place-items: center; background: var(--wood-grad); color: var(--on-wood); font-size: 13px; font-weight: 800; animation: pop .3s cubic-bezier(.2, 1.6, .4, 1); box-shadow: 0 3px 8px rgba(140, 90, 48, .35); }
.ptag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); vertical-align: middle; }
.tag-new { background: rgba(86, 183, 131, .16); color: var(--ok); }
.tag-sig { background: var(--wood-grad); color: var(--on-wood); }
.tag-home { background: var(--wood-soft); color: var(--wood-ink); box-shadow: inset 0 0 0 1px rgba(196, 141, 90, .35); }
.tag-out { background: var(--danger-soft); color: var(--danger); }
.empty-results { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 40px 10px; color: var(--muted); text-align: center; }

.ticket { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -12px 0 30px rgba(0, 0, 0, .18); }
.ticket-head { display: grid; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg); border-radius: 13px; padding: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { min-height: 44px; padding: 0 12px; border-radius: 10px; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.seg button.active { background: var(--surface-3); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .04); }
.seg button:disabled { opacity: .35; }
.seg-inline { display: inline-grid; }
.table-select { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 48px; padding: 0 14px; border-radius: 12px; font-weight: 700; font-size: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--muted); transition: background .2s, box-shadow .2s, color .2s; }
.table-select .ico:first-child { margin-right: auto; }
.table-select:not(.set) { justify-content: space-between; }
.table-select.set { color: var(--ink); box-shadow: inset 0 0 0 2px var(--wood); background: var(--wood-soft); }
.table-select.set > .ico:first-child { color: var(--wood-ink); margin-right: 0; }
.takeaway-info { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
.ticket-lines { overflow-y: auto; overflow-x: hidden; padding: 2px 16px; overscroll-behavior: contain; }
.ticket-empty { height: 100%; min-height: 180px; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); text-align: center; font-size: 14px; animation: fadein .3s ease; }
.ticket-empty small { font-size: 12px; opacity: .8; }
.tl { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); animation: slidein .26s var(--ease); }
@keyframes slidein { from { opacity: 0; transform: translateX(14px); } }
.tl-main { flex: 1; min-width: 0; display: grid; gap: 2px; text-align: left; border-radius: 8px; padding: 2px 0; }
.tl-main.editable:active { opacity: .7; }
.tl-name { font-weight: 650; display: flex; align-items: center; gap: 5px; overflow-wrap: anywhere; }
.tl-edit { color: var(--muted); display: inline-flex; }
.tl-opts { color: var(--wood-ink); font-size: 12.5px; }
.tl-unit { color: var(--muted); font-size: 12.5px; }
.tl-side { flex: none; display: grid; justify-items: end; gap: 6px; }
.tl-side .stepper output { min-width: 22px; }
.tl-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.tl.rt-flash .tl-price { animation: priceflash .55s var(--ease); }
@keyframes priceflash { 0% { color: var(--wood-strong); transform: scale(1.12); } }
.tl.rt-flash .stepper output { animation: pop .3s cubic-bezier(.2, 1.6, .4, 1); }
.stepper.sm { padding: 2px; }
.stepper.sm button { width: 44px; height: 44px; border-radius: 10px; transition: background .12s, transform .1s; }
.stepper.sm button:active { transform: scale(.9); background: var(--surface-3); }
.ticket-foot { display: grid; gap: 12px; padding: 14px 16px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.ticket-foot .input { background: var(--surface-2); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 600; color: var(--ink-2); }
.total-row em { font-style: normal; color: var(--muted); font-weight: 500; }
.total-row strong { font-family: var(--font-display); font-size: 30px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.foot-actions { display: flex; gap: 10px; align-items: center; }
.btn.sq { width: 56px; padding: 0; flex: none; }

/* Voile de réussite (envoi au bar) */
.burst { position: fixed; z-index: 90; display: grid; place-items: center; pointer-events: none; background: rgba(15, 16, 17, .82); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s ease; }
.burst.show { opacity: 1; }
.burst-in { display: grid; justify-items: center; gap: 6px; text-align: center; transform: scale(.9); transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); }
.burst.show .burst-in { transform: none; }
.burst-in strong { font-family: var(--font-display); font-size: 21px; margin-top: 6px; }
.burst-in span { color: var(--muted); font-weight: 600; font-size: 14px; }
.burst .check-svg { width: 76px; height: 76px; }

/* Coche animée (paiement, envoi) */
.check-svg { display: block; }
.check-svg .ck-c { fill: var(--ok-soft); stroke: var(--ok); stroke-width: 2.5; stroke-dasharray: 145; stroke-dashoffset: 145; animation: ckdraw .5s var(--ease) forwards; }
.check-svg .ck-p { fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: ckdraw .32s var(--ease) .36s forwards; }
@keyframes ckdraw { to { stroke-dashoffset: 0; } }

/* ---------- Tableau des commandes ---------- */
.board-wrap { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; }
.board-tools { display: flex; align-items: center; gap: 14px; padding: 14px 16px 0; font-size: 13.5px; min-height: 66px; flex-wrap: wrap; }
.board-hint { display: flex; align-items: center; gap: 8px; }
.callout { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 6px 4px 14px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); font-weight: 700; animation: pillin .35s var(--ease); }
.call-no { min-width: 56px; height: 44px; padding: 0 12px; border-radius: 11px; background: var(--ok); color: #0d1f15; font-family: var(--font-display); font-size: 18px; font-weight: 700; animation: pop .35s cubic-bezier(.2, 1.5, .4, 1); transition: transform .1s; }
.call-no:active { transform: scale(.94); }
.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; padding: 12px 16px 16px; overflow-x: auto; min-height: 0; }
.col { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; min-width: 0; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.col-new { background: linear-gradient(180deg, rgba(196, 141, 90, .1), var(--surface) 160px); box-shadow: inset 0 0 0 1px rgba(196, 141, 90, .35); }
.col-head { display: flex; align-items: center; gap: 9px; padding: 14px 14px 10px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.col-head .n { margin-left: auto; min-width: 26px; height: 24px; padding: 0 8px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); font-size: 12.5px; }
.sdot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.s-new { background: var(--wood); box-shadow: 0 0 0 3px rgba(196, 141, 90, .2); } .s-preparing { background: var(--warn); } .s-ready { background: var(--ok); } .s-served { background: var(--muted); }
.col-body { overflow-y: auto; overflow-x: hidden; padding: 2px 10px 12px; display: grid; gap: 10px; align-content: start; overscroll-behavior: contain; }
.col-empty { padding: 24px 8px; text-align: center; color: var(--muted); font-size: 13.5px; }
.ocard { position: relative; display: grid; gap: 9px; padding: 12px; border-radius: 14px; background: var(--card-grad), var(--surface-2); box-shadow: inset 0 0 0 1px var(--line), 0 2px 6px rgba(0, 0, 0, .18); animation: cardin .34s var(--ease); min-width: 0; }
@keyframes cardin { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.ocard.is-new { box-shadow: inset 0 0 0 2px var(--wood); animation: cardin .34s var(--ease), glow 2s ease-in-out .4s infinite; }
@keyframes glow { 50% { box-shadow: inset 0 0 0 2px var(--wood), 0 0 0 5px rgba(196, 141, 90, .16); } }
.ocard.arrive::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(105deg, transparent 30%, rgba(228, 184, 140, .32) 50%, transparent 70%) no-repeat; background-size: 250% 100%; animation: sweep 1.3s ease-out .15s 2 both; }
@keyframes sweep { from { background-position: 130% 0; } to { background-position: -30% 0; } }
.ocard:has(.t-late) { box-shadow: inset 0 0 0 1px rgba(232, 102, 79, .55), 0 2px 6px rgba(0, 0, 0, .18); }
.ocard.is-new:has(.t-late) { box-shadow: inset 0 0 0 2px var(--danger); }
.col-served .ocard { opacity: .78; }
.oc-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.oc-no { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.oc-where { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; color: var(--ink-2); white-space: nowrap; min-width: 0; overflow: hidden; }
.oc-call { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 14px; }
.oc-call b { font-family: var(--font-display); font-size: 18px; }
.oc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.otimer { display: grid; gap: 5px; --tc: var(--ok); }
.otimer.t-warn { --tc: var(--warn); }
.otimer.t-late { --tc: var(--danger); }
.ot-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.ot-el { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--tc); font-variant-numeric: tabular-nums; min-width: 58px; }
.ot-txt { font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-late .ot-txt { color: var(--danger); }
.ot-eta { margin-left: auto; white-space: nowrap; }
.ot-bar { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.ot-bar i { display: block; height: 100%; border-radius: inherit; background: var(--tc); transition: width 1s linear, background-color .4s; }
.t-late .ot-bar i { animation: latepulse 1.2s ease-in-out infinite; }
@keyframes latepulse { 50% { opacity: .55; } }
.oc-items { display: grid; gap: 5px; font-size: 14px; }
.oc-items b { color: var(--wood-ink); margin-right: 2px; }
.oc-items small { display: block; color: var(--muted); font-size: 12.5px; padding-left: 22px; }
.oc-note { display: flex; gap: 6px; align-items: flex-start; padding: 7px 9px; border-radius: 9px; background: var(--warn-soft); color: var(--warn); font-size: 13px; font-weight: 600; }
.oc-rating { display: grid; gap: 3px; padding: 8px 10px; border-radius: 10px; background: rgba(226, 166, 74, .08); box-shadow: inset 0 0 0 1px rgba(226, 166, 74, .2); }
.oc-rating q { font-size: 13px; color: var(--ink-2); font-style: italic; quotes: '« ' ' »'; }
.stars { font-size: 14px; letter-spacing: 1px; color: var(--surface-3); white-space: nowrap; }
.stars b { color: #f0b54a; font-weight: 400; }
.oc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 2px; }
.oc-total { font-weight: 700; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.oc-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ocard .btn-sm { min-height: 44px; }
.ocard.is-new .oc-actions { width: 100%; }
.ocard.is-new .oc-actions .btn { flex: 1; }
.flip-ghost { position: fixed !important; z-index: 60; margin: 0; pointer-events: none; animation: none !important; opacity: 1 !important; will-change: transform; }
.flip-ghost::after, .flip-ghost * { animation: none !important; }
.rt-hide { visibility: hidden; }

/* ---------- Tables & additions ---------- */
.bills { display: grid; grid-template-columns: minmax(0, 1fr) 380px; height: 100%; }
.tables-area { display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.tables-summary { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 16px 20px 4px; }
.sum-chip { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 14px; min-height: 44px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.sum-chip b { font-family: var(--font-display); font-size: 18px; color: var(--ink); }
.sum-chip.wood { background: var(--wood-soft); color: var(--wood-ink); box-shadow: inset 0 0 0 1px rgba(196, 141, 90, .45); align-items: center; }
.sum-chip.wood b { color: var(--wood-ink); }
.legend { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; flex-wrap: wrap; }
.legend i { width: 9px; height: 9px; border-radius: 3px; margin-left: 6px; background: var(--tcol); }
.tables-grid { overflow-y: auto; padding: 12px 20px 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-content: start; }
.ts-free { --tcol: var(--line-strong); }
.ts-waiting { --tcol: var(--wood); }
.ts-preparing { --tcol: var(--warn); }
.ts-ready { --tcol: var(--ok); }
.ts-served { --tcol: #9fb4d6; }
.tcard {
  position: relative; overflow: hidden; min-height: 128px; border-radius: 18px; padding: 14px 14px 16px; display: grid; align-content: space-between; gap: 10px; text-align: left;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .14s var(--ease), box-shadow .2s, background .3s;
}
.tcard:active { transform: scale(.97); }
.tcard.ts-free { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.tcard.ts-free .tn { color: var(--muted); }
.tcard:not(.ts-free) { background: linear-gradient(155deg, color-mix(in srgb, var(--tcol) 16%, transparent), var(--surface) 72%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tcol) 45%, transparent); }
.tcard.ts-waiting { animation: tablewait 2s ease-in-out infinite; }
@keyframes tablewait { 50% { box-shadow: inset 0 0 0 1px var(--wood), 0 0 0 4px rgba(196, 141, 90, .14); } }
.tcard.selected { box-shadow: inset 0 0 0 2px var(--wood), 0 8px 22px rgba(0, 0, 0, .3); }
.tc-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--tcol); opacity: .9; }
.tcard.ts-free .tc-bar { opacity: 0; }
.tc-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-width: 0; }
.tc-top .badge { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tn { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.tamt { font-weight: 700; font-size: 16px; }
.tstate { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.bill-panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -12px 0 30px rgba(0, 0, 0, .18); }
.bill-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; animation: fadein .25s ease; }
.bill-head h2 { font-size: 22px; }
.bill-lines { overflow-y: auto; padding: 10px 18px; animation: fadein .25s ease; }
.bill-order { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.bo-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.bo-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 2px 0; }
.bo-line small { display: block; color: var(--muted); font-size: 12.5px; }
.bill-pending { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; margin: 4px 0 6px; border-radius: 12px; background: var(--wood-soft); color: var(--wood-ink); font-size: 13px; font-weight: 600; text-align: left; }
.bill-pending span { flex: 1; }
.bill-foot { display: grid; gap: 12px; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.bill-empty { height: 100%; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); text-align: center; padding: 30px; }

/* ---------- Tableau de bord ---------- */
.dash { height: 100%; overflow-y: auto; padding: 18px 20px 28px; display: grid; gap: 14px; align-content: start; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.demo-note { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { display: grid; gap: 4px; padding: 16px; border-radius: 16px; background: var(--card-grad), var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.kpi .label { color: var(--muted); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .value { font-family: var(--font-display); font-size: 27px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 4px; }
.kpi .value small { font-size: 15px; color: var(--muted); font-weight: 600; }
.kpi .sub { color: var(--muted); font-size: 12.5px; }
.kpi .up { color: var(--ok); font-weight: 700; }
.kpi .down { color: var(--danger); font-weight: 700; }
.kpi.accent { background: linear-gradient(150deg, rgba(196, 141, 90, .22), var(--surface) 75%); box-shadow: inset 0 0 0 1px rgba(196, 141, 90, .4); }
.kpi.rating .kstar { font-style: normal; color: #f0b54a; font-size: 24px; }
.kpi.live { box-shadow: inset 0 0 0 1px rgba(86, 183, 131, .3); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; animation: livepulse 1.8s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(86, 183, 131, .5); } 70% { box-shadow: 0 0 0 7px rgba(86, 183, 131, 0); } 100% { box-shadow: 0 0 0 0 rgba(86, 183, 131, 0); } }
.panels { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.panel { padding: 16px 18px 18px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.panel h3 { font-family: var(--font); font-size: 14.5px; font-weight: 700; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.panel h3.mt { margin-top: 22px; }
.panel h3 small { color: var(--muted); font-weight: 500; font-size: 12.5px; }

.chart { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.yaxis { height: var(--h); display: flex; flex-direction: column; justify-content: space-between; font-size: 11px; color: var(--muted); text-align: right; margin-top: -6px; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.plot { position: relative; min-width: 0; }
.gridlines { position: absolute; inset: 0 0 auto 0; height: var(--h); display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.gridlines i { display: block; border-top: 1px solid var(--line); }
.gridlines i:last-child { border-top-color: var(--line-strong); }
.bars { position: relative; height: var(--h); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; align-items: end; }
.bar-col { height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; }
.bar { width: min(100%, 34px); background: linear-gradient(180deg, #d29a66, var(--wood) 60%, #a26b3d); border-radius: 5px 5px 0 0; min-height: 2px; transition: height .6s var(--ease), filter .12s; transform-origin: bottom; animation: barin .6s var(--ease) both; }
.bar-col:nth-child(2n) .bar { animation-delay: .03s; } .bar-col:nth-child(3n) .bar { animation-delay: .06s; }
@keyframes barin { from { transform: scaleY(0); } }
.bar-col:hover .bar { filter: brightness(1.2); }
.bar-col.cur .bar { background: linear-gradient(180deg, #ecc293, #d29a66); box-shadow: 0 0 0 1px rgba(236, 194, 147, .4); }
.xlabels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; margin-top: 7px; font-size: 11px; color: var(--muted); text-align: center; white-space: nowrap; }

.hbars { display: grid; gap: 11px; }
.hrow { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.hrow .hl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.htrack { height: 10px; border-radius: 0 5px 5px 0; background: rgba(255, 255, 255, .03); }
.htrack i { display: block; height: 100%; background: var(--wood); border-radius: 0 5px 5px 0; min-width: 2px; transition: width .6s var(--ease); transform-origin: left; animation: hbarin .6s var(--ease) both; }
@keyframes hbarin { from { transform: scaleX(0); } }
.hrow:hover .htrack i { background: var(--wood-strong); }
.hv { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

.rv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rv { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); animation: cardin .35s var(--ease); }
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rv p { font-size: 14px; color: var(--ink-2); }

.tip { position: fixed; z-index: 300; pointer-events: none; padding: 8px 11px; border-radius: 10px; background: #000; color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.4; box-shadow: 0 10px 24px rgba(0, 0, 0, .5); opacity: 0; transform: translate(-50%, calc(-100% - 12px)); transition: opacity .1s; white-space: nowrap; }
.tip.show { opacity: 1; }
.tip b { font-weight: 700; }

/* ---------- Menu & stock ---------- */
.stock { height: 100%; overflow-y: auto; padding: 18px 20px 28px; }
.stock-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.si-txt { display: grid; gap: 4px; min-width: 0; }
.stock-intro p { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.si-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.si-actions .btn { min-height: 48px; }
.stock-cat { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 8px; min-height: 44px; }
.stock-cat h2 { font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 8px; min-width: 0; }
.stock-cat h2 small { font-size: 11.5px; font-weight: 700; color: var(--muted); background: var(--surface-3); border-radius: 999px; padding: 2px 8px; }
.sc-add { gap: 6px; color: var(--ink-2); }
.srow { display: grid; grid-template-columns: 46px minmax(0, 1fr) 160px 170px; gap: 14px; align-items: center; padding: 10px 14px; margin-bottom: 8px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, box-shadow .25s; }
.srow.own { grid-template-columns: 46px minmax(0, 1fr) 150px 150px auto; grid-template-areas: "ic main price avail acts"; padding-right: 10px; }
.srow.own > .item-icon { grid-area: ic; }
.srow.own > .sr-main { grid-area: main; }
.srow.own > .sr-price { grid-area: price; }
.srow.own > .avail { grid-area: avail; }
.srow.own > .sr-acts { grid-area: acts; }
.srow .item-icon { width: 46px; height: 46px; font-size: 23px; border-radius: 12px; transition: filter .25s, opacity .25s; }
.srow.out { background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(232, 102, 79, .25); }
.srow.out .item-icon { filter: grayscale(1); opacity: .5; }
.srow.out .sr-main { opacity: .55; }
.srow.rt-nope { animation: nope .32s; }
.srow.rt-pop, .prod.rt-pop, .cm-row.rt-pop { animation: rowpop .9s var(--ease); }
@keyframes rowpop { 0% { box-shadow: inset 0 0 0 2px var(--wood), 0 0 0 0 rgba(196, 141, 90, .45); transform: scale(.985); } 40% { transform: none; } 100% { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 12px rgba(196, 141, 90, 0); } }
.sr-main { display: grid; min-width: 0; }
.sr-main strong { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sr-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.price-input { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 13px; }
.price-input .input { width: 108px; text-align: right; min-height: 44px; padding: 8px 10px; background: var(--surface-2); }
.avail { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.srow.out .avail { color: var(--danger); }
.sr-acts { display: flex; align-items: center; gap: 2px; }
.sr-mv { color: var(--ink-2); }
.sr-mv:disabled, .cm-row .icon-btn:disabled { opacity: .25; cursor: default; background: none; }
.sr-edit { gap: 6px; margin-left: 6px; }
.srow-empty { padding: 14px 16px; margin-bottom: 8px; border-radius: 14px; color: var(--muted); font-size: 13.5px; box-shadow: inset 0 0 0 1px var(--line); background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(255, 255, 255, .015) 10px 20px); }
.tag-pop { background: rgba(240, 181, 74, .14); color: #f0c46a; }
.pos .btn-danger { background: var(--danger); color: #fff; }
.pos .btn-danger:hover:not(:disabled) { filter: brightness(1.08); }
.pos select.input { color-scheme: dark; cursor: pointer; }
.nw { white-space: nowrap; }

/* Éditeur d'article (propriétaire) */
.pe-layer .layer-panel { width: min(1000px, 100%); }
.pe-body { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 22px; align-items: start; }
.pe-form { display: grid; gap: 14px; min-width: 0; }
.pe-form .input { background: var(--surface-2); }
.pe-form .field > span small { font-weight: 500; }
.pe-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.pe-price { width: 100%; }
.pe-price .input { width: auto; flex: 1; min-width: 0; }
.field.bad .input { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.pe-err { display: inline-flex; align-items: center; gap: 4px; color: var(--danger); font-size: 12.5px; font-weight: 600; animation: fadein .2s ease; }
.pe-set { border: 0; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); min-width: 0; }
.pe-set > legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 14.5px; }
.pe-set > legend + * { clear: both; }
.pe-set > * + * { margin-top: 10px; }
.pe-icon-row { display: flex; align-items: center; gap: 12px; }
.pe-icon-cur { width: 52px; height: 52px; font-size: 28px; border-radius: 13px; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; max-height: 152px; overflow-y: auto; padding: 4px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); overscroll-behavior: contain; }
.emo { height: 44px; border-radius: 10px; font-size: 22px; display: grid; place-items: center; transition: background .12s, transform .1s, box-shadow .12s; }
.emo:hover { background: var(--surface-3); }
.emo:active { transform: scale(.9); }
.emo.on { background: var(--wood-soft); box-shadow: inset 0 0 0 2px var(--wood); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 600; font-size: 14px; color: var(--ink-2); transition: background .15s, box-shadow .15s, color .15s, transform .1s; }
.chip:active { transform: scale(.96); }
.chip.on { background: var(--wood-soft); color: var(--wood-ink); box-shadow: inset 0 0 0 2px var(--wood); }
.pe-tag-in { flex: 1 1 160px; width: auto; }
.pe-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; cursor: pointer; }
.pe-toggle > span:first-child { display: grid; gap: 1px; min-width: 0; }
.pe-toggle b { font-weight: 650; font-size: 14px; }
.pe-toggle small { color: var(--muted); font-size: 12.5px; }
.pe-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.pe-check { position: relative; display: flex; min-width: 0; }
.pe-check input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.pe-check > span { position: relative; flex: 1; min-width: 0; display: grid; gap: 1px; align-content: center; min-height: 52px; padding: 7px 12px 7px 42px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background .15s, box-shadow .15s; }
.pe-check > span::before { content: ''; position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 5px; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line-strong); }
.pe-check b { font-size: 14px; font-weight: 650; }
.pe-check small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pe-check input:checked + span { background: var(--wood-soft); box-shadow: inset 0 0 0 2px var(--wood); }
.pe-check input:checked + span::before { box-shadow: none; background: var(--wood) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a120b' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.pe-check input:focus-visible + span { box-shadow: var(--focus); }
.diet-auto { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 12px; font-weight: 600; font-size: 14px; color: var(--muted); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.diet-auto small { font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 2px; }
.diet-auto.on { color: var(--ok); background: var(--ok-soft); box-shadow: none; }
.pe-prep { flex: none; }
.pe-prep button { width: 44px; height: 44px; border-radius: 10px; }
.pe-prep button:disabled { opacity: .3; }
.pe-prep output { min-width: 64px; }
.pe-side { position: sticky; top: 0; display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.pv-label { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pv-label + .pv-label, .pv-tile + .pv-label, .pv-card + .pv-facts { margin-top: 6px; }
.pv-tile { width: 156px; pointer-events: none; animation: none; }
.pv-tile .prod-name { overflow-wrap: anywhere; }
.pv-card { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: #fff; color: #151515; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.pv-card.out { opacity: .6; }
.pv-ic { width: 58px; height: 58px; flex: none; display: grid; place-items: center; font-size: 29px; border-radius: 13px; background: #f3ebe2; }
.pv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pv-name { font-weight: 650; font-size: 14.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 7px; overflow-wrap: anywhere; line-height: 1.25; }
.pv-tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: #f4ebe1; color: #7b4d26; }
.pv-tag.pop { background: #fdf1d8; color: #855610; }
.pv-desc { color: #67635d; font-size: 12.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pv-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; font-size: 14px; }
.pv-add { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #151515; color: #fff; }
.pv-out { font-size: 11px; font-weight: 700; color: #bb3a26; background: #fbe6e2; border-radius: 999px; padding: 3px 8px; }
.pv-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.pv-facts li { display: flex; align-items: flex-start; gap: 7px; min-width: 0; overflow-wrap: anywhere; }
.pv-facts .ico { flex: none; margin-top: 1px; color: var(--muted); }
.pe-foot { align-items: center; flex-wrap: wrap; }
.pe-del { gap: 6px; }
.pe-confirm { flex: 1 1 100%; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: 13.5px; animation: fadein .2s ease; }
.pe-confirm span { color: var(--ink); }
.pe-confirm .ico { flex: none; }
.pe-foot.is-confirm .btn { flex: 1; }

/* Catégories (propriétaire) */
.cm-layer .layer-panel { width: min(660px, 100%); }
.cm-list { display: grid; gap: 8px; }
.cm-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 44px 44px 44px; gap: 6px; align-items: center; padding: 6px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.cm-ic { width: 48px; height: 48px; font-size: 24px; border-radius: 12px; transition: box-shadow .15s, transform .1s; }
.cm-ic:active { transform: scale(.94); }
.cm-ic.on { box-shadow: inset 0 0 0 2px var(--wood); }
.cm-name { background: var(--surface) !important; font-weight: 600; }
.cm-n { padding: 0 6px; white-space: nowrap; }
.cm-del { color: var(--danger); }
.cm-picker { display: grid; gap: 8px; padding: 10px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); animation: fadein .2s ease; }
.cm-picker .emoji-grid { background: none; box-shadow: none; padding: 0; }
.cm-free { display: flex; gap: 8px; }
.cm-free .input { flex: 1; min-width: 0; background: var(--surface-2); }
.cm-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-size: 13.5px; animation: fadein .2s ease; }
.cm-note > span { flex: 1 1 240px; color: var(--ink); }
.cm-note .ico { flex: none; }
.cm-note.warn { background: var(--warn-soft); color: var(--warn); }
.cm-add { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.cm-add .cm-ic { background: var(--surface-3); }
.cm-add .input { background: var(--surface-2); }
.cm-add + .cm-picker { margin-top: 8px; }

/* ---------- Réglages ---------- */
.settings { height: 100%; overflow-y: auto; padding: 18px 20px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; align-content: start; }
.card { display: grid; gap: 14px; align-content: start; padding: 18px; border-radius: 16px; background: var(--card-grad), var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.card h3 { font-family: var(--font); font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card .row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; }
.card .row .muted { margin-top: 3px; }
.card .input { background: var(--surface-2); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.staff-row { justify-content: flex-start !important; }
a.btn { text-decoration: none; }
.owner-card { background: linear-gradient(150deg, rgba(196, 141, 90, .16), var(--surface) 70%); box-shadow: inset 0 0 0 1px rgba(196, 141, 90, .38); }
.owner-app { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 16px; align-items: start; }
.qr-box { width: 136px; height: 136px; padding: 10px; border-radius: 14px; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
.qr-box svg { width: 100%; height: 100%; display: block; }
.owner-text { display: grid; gap: 8px; min-width: 0; }
.owner-text p { font-size: 14px; }
.url { display: block; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12px; color: var(--wood-ink); background: var(--bg); padding: 6px 9px; border-radius: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; -webkit-user-select: all; }

/* ---------- Connexion (PIN) ---------- */
.login { position: fixed; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: 24px; background: radial-gradient(1100px 560px at 50% -12%, #2b241e, #0e0e0f 62%); animation: fadein .4s ease; }
.login-box { width: min(720px, 100%); display: grid; gap: 22px; justify-items: center; text-align: center; }
.login-body { width: 100%; display: grid; gap: 22px; justify-items: center; }
.login-body > * { animation: stepin .32s var(--ease); }
@keyframes stepin { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.login .logo { font-size: 46px; color: #fff; }
.login-sub { color: var(--muted); font-size: 14px; letter-spacing: .04em; }
.staff-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; width: 100%; margin-top: 8px; }
.staff-card { display: grid; justify-items: center; gap: 6px; padding: 22px 14px; border-radius: 20px; background: var(--card-grad), var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .14s var(--ease), box-shadow .2s; }
.staff-card:hover { box-shadow: inset 0 0 0 1px var(--wood), 0 10px 26px rgba(0, 0, 0, .3); }
.staff-card:active { transform: scale(.97); }
.staff-card .av { width: 64px; height: 64px; font-size: 26px; margin-bottom: 4px; }
.staff-card strong { font-size: 17px; }
.demo-hint { color: var(--muted); font-size: 13px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .04); }
.pin-wrap { display: grid; justify-items: center; gap: 14px; }
.pin-wrap .av { width: 60px; height: 60px; font-size: 24px; }
.pin-dots { display: flex; gap: 14px; margin: 6px 0 4px; }
.pin-dots span { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-strong); transition: background .15s, transform .15s var(--ease); }
.pin-dots span.on { background: var(--wood); box-shadow: none; transform: scale(1.12); }
.pinpad { display: grid; grid-template-columns: repeat(3, 74px); gap: 12px; }
.pinpad button { height: 74px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 25px; font-weight: 600; font-family: var(--font-display); display: grid; place-items: center; transition: background .12s, transform .1s; }
.pinpad button:active { background: var(--surface-3); transform: scale(.93); }
.pinpad .ghost { background: none; box-shadow: none; color: var(--muted); }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- Modales spécifiques ---------- */
.tpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.tp { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 2px; padding: 14px 6px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: transform .1s; }
.tp:active { transform: scale(.95); }
.tp b { font-family: var(--font-display); font-size: 22px; }
.tp small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.tp:not(.ts-free) { background: color-mix(in srgb, var(--tcol) 14%, var(--surface-2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tcol) 50%, transparent); }
.tp:not(.ts-free) small { color: var(--ink-2); }
.tp.sel { box-shadow: inset 0 0 0 2px var(--wood); }

.opt-group { border: 0; margin: 14px 0 0; padding: 0; }
.opt-group legend { font-weight: 700; font-size: 14.5px; margin-bottom: 8px; padding: 0; }
.opt-group legend small { color: var(--muted); font-weight: 500; }
.opt-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 600; font-size: 14px; transition: background .15s, box-shadow .15s, color .15s, transform .1s; }
.opt:active span { transform: scale(.96); }
.opt span em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.opt input:checked + span { background: var(--wood-soft); color: var(--wood-ink); box-shadow: inset 0 0 0 2px var(--wood); }
.opt input:focus-visible + span { box-shadow: var(--focus); }

/* Actions rapides (appui long) */
.qa-layer .layer-panel { width: min(420px, 100%); }
.qa { display: grid; gap: 12px; padding: 18px 18px 20px; }
.qa-head { display: flex; align-items: center; gap: 12px; }
.qa-head .item-icon { width: 52px; height: 52px; font-size: 28px; }
.qa-head h2 { font-size: 19px; }
.qa-head p { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; margin-top: 2px; }
.qa-desc { color: var(--ink-2); font-size: 14px; }
.qa-list { display: grid; gap: 8px; }
.qa-btn { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; min-height: 52px; padding: 8px 14px; border-radius: 14px; text-align: left; font-weight: 650; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .12s, transform .1s; }
.qa-btn:hover { background: var(--surface-3); }
.qa-btn:active { transform: scale(.98); }
.qa-btn small { grid-column: 2; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.qa-btn.danger { color: var(--danger); background: var(--danger-soft); box-shadow: none; }
.qa-btn.ok { color: var(--ok); background: var(--ok-soft); box-shadow: none; }
.qa-info { padding: 4px 2px; }

/* Encaissement */
.pay-head { align-items: flex-start; }
.pay-head > div:first-child { flex: 1; min-width: 0; }
.pay-head p { margin-top: 2px; font-size: 13.5px; }
.pay-due { text-align: right; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.pay-due strong { display: block; font-family: var(--font-display); font-size: 30px; color: var(--ink); letter-spacing: -.02em; text-transform: none; white-space: nowrap; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.method { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 8px 10px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 14.5px; color: var(--ink-2); text-align: left; transition: background .18s, box-shadow .18s, color .18s, transform .1s; }
.method:active { transform: scale(.97); }
.method span { display: grid; line-height: 1.2; }
.method small { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.method.active { background: var(--wood-soft); color: var(--wood-ink); box-shadow: inset 0 0 0 2px var(--wood); }
.cash-box { display: grid; gap: 12px; margin-top: 14px; animation: fadein .2s ease; }
.cash-read { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.recv { display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-strong); }
.recv span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.recv strong { font-family: var(--font-display); font-size: 24px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.recv:not(.fresh) strong::after { content: ''; display: inline-block; width: 2px; height: .9em; margin-left: 3px; vertical-align: -2px; background: var(--wood); animation: caret 1s steps(1) infinite; }
.recv.fresh strong { color: var(--ink-2); }
.recv.rt-nope { animation: nope .32s; }
@keyframes caret { 50% { opacity: 0; } }
.cash-pad { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 10px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.key { height: 54px; border-radius: 12px; background: var(--card-grad), var(--surface-2); box-shadow: inset 0 0 0 1px var(--line), 0 1px 0 rgba(0, 0, 0, .4); font-family: var(--font-display); font-size: 22px; font-weight: 600; display: grid; place-items: center; transition: background .1s, transform .08s; touch-action: manipulation; }
.key:active { background: var(--surface-3); transform: scale(.94); }
.key-fn { color: var(--muted); }
.quick { display: grid; grid-auto-rows: 1fr; gap: 8px; }
.quick button { min-height: 44px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 15px; transition: background .12s, box-shadow .15s, transform .08s; }
.quick button:active { transform: scale(.96); }
.quick button.active { box-shadow: inset 0 0 0 2px var(--wood); color: var(--wood-ink); background: var(--wood-soft); }
.quick .quick-clear { background: none; box-shadow: none; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.change { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 14px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); font-weight: 700; transition: background .2s, color .2s; }
.change span { font-size: 12.5px; }
.change strong { font-family: var(--font-display); font-size: 24px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.change.bad { background: var(--danger-soft); color: var(--danger); }
.change.big { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 14px 16px; }
.change.big span { font-size: 15px; }
.change.big strong { font-size: 34px; }
.method-note { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 18px 16px; border-radius: 14px; background: var(--surface-2); color: var(--ink-2); font-size: 14px; animation: fadein .2s ease; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.paid-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; animation: fadein .3s ease; }
.paid-main { display: grid; gap: 16px; align-content: start; padding-top: 8px; }
.paid-check { width: 84px; height: 84px; position: relative; }
.paid-check .check-svg { width: 84px; height: 84px; }
.paid-check::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(86, 183, 131, .45); animation: ring 1s ease-out .3s; }
@keyframes ring { to { box-shadow: 0 0 0 26px rgba(86, 183, 131, 0); } }
.paid-msg { font-size: 18px; font-weight: 600; }
.paid-actions { display: grid; gap: 10px; }
.pickup { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--wood-soft); color: var(--wood-ink); box-shadow: inset 0 0 0 1px rgba(196, 141, 90, .4); }
.pickup span { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pickup strong { font-family: var(--font-display); font-size: 44px; line-height: 1.1; color: var(--ink); animation: pop .45s cubic-bezier(.2, 1.5, .4, 1) .2s both; }
.pickup small { color: var(--ink-2); font-size: 12.5px; }

.module-modal { display: grid; justify-items: start; gap: 12px; padding: 26px 24px 22px; }
.mm-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--wood-soft); color: var(--wood-ink); }
.module-modal h2 { font-size: 23px; }
.module-modal p { color: var(--ink-2); }
.module-modal ul { list-style: none; padding: 0; margin: 4px 0 6px; display: grid; gap: 9px; }
.module-modal li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.module-modal li .ico { color: var(--ok); }
.mm-actions { display: flex; gap: 10px; width: 100%; justify-content: flex-end; margin-top: 4px; flex-wrap: wrap; }

/* ---------- Ticket de caisse (aperçu papier + impression 80 mm) ---------- */
.paper {
  background: #fbfaf6; color: #151515; border-radius: 4px 4px 0 0; padding: 18px 16px 22px; max-height: 62vh; overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45); position: relative; animation: paperin .5s var(--ease) .1s both;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%;
}
@keyframes paperin { from { opacity: 0; transform: translateY(-14px); } }
.rc { font-family: ui-monospace, 'Cascadia Mono', Consolas, 'Courier New', monospace; font-size: 12px; line-height: 1.5; }
.rc-center { text-align: center; }
.rc-logo { font-size: 22px; color: #111; margin-bottom: 6px; display: flex; justify-content: center; }
.rc-logo .logo { padding-top: .5em; }
.rc-sep { border-top: 1px dashed #999; margin: 8px 0; }
.rc-row { display: flex; justify-content: space-between; gap: 10px; }
.rc-sub { color: #555; padding-left: 14px; font-size: 11px; }
.rc-total { font-weight: 800; font-size: 14px; margin: 2px 0; }
.rc-pickup b { font-size: 22px; }
#print-root { display: none; }

@media print {
  @page { size: 80mm auto; margin: 3mm; }
  body.pos { height: auto; overflow: visible; background: #fff; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; width: 72mm; color: #000; }
  #print-root .rc { font-size: 11.5px; }
}

/* ---------- Écran PIN : session et blocage ---------- */
.pin-note { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--danger-soft); color: var(--danger); font-size: 13px; font-weight: 700; animation: stepin .3s var(--ease); }
.pin-note.soft { background: var(--wood-soft); color: var(--wood-ink); }
.pin-lock { display: flex; gap: 12px; align-items: center; max-width: 360px; padding: 14px 16px; border-radius: 14px; text-align: left; background: var(--danger-soft); color: var(--danger); box-shadow: inset 0 0 0 1px rgba(232, 102, 79, .35); animation: stepin .3s var(--ease); }
.pin-lock strong { display: block; font-size: 15px; }
.pin-lock span { color: var(--ink-2); font-size: 13.5px; }
.pin-lock b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pinpad.locked button:not(.ghost), .pinpad button:disabled { opacity: .3; cursor: not-allowed; }
.pin-dots.busy span.on { animation: pinwait .9s ease-in-out infinite; }
.pin-dots.busy span:nth-child(2) { animation-delay: .1s; } .pin-dots.busy span:nth-child(3) { animation-delay: .2s; } .pin-dots.busy span:nth-child(4) { animation-delay: .3s; }
@keyframes pinwait { 50% { opacity: .35; transform: scale(.85); } }

/* ---------- Tables : bascule Plan · Grille · Tickets du jour ---------- */
.tv-seg { grid-auto-columns: auto; }
.tv-seg button { padding: 0 14px; gap: 7px; }
.tables-summary .sum-chip b { font-size: 16px; }
.tv-hint, .fe-banner { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 600; }
.fe-banner { padding: 0 14px; border-radius: 12px; background: var(--wood-soft); color: var(--wood-ink); box-shadow: inset 0 0 0 1px rgba(196, 141, 90, .4); animation: pillin .3s var(--ease); }
.fe-open { margin-left: auto; gap: 6px; }
.fe-def { gap: 6px; }
.fe-open + .legend { margin-left: 0; }
.tables-grid .tcard.rt-pop { animation: tcpop .6s var(--ease); }
@keyframes tcpop { 35% { transform: scale(1.05); } }

/* ---------- Plan de salle ---------- */
.floor { min-height: 0; overflow-y: auto; padding: 10px 20px 20px; display: grid; grid-auto-rows: minmax(250px, 1fr); gap: 14px; overscroll-behavior: contain; animation: fadein .3s ease; }
.fzone { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 12px 30px rgba(0, 0, 0, .3); }
.fz-wood {
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .3) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .014) 0 34px, transparent 34px 68px),
    repeating-linear-gradient(0deg, rgba(255, 230, 200, .018) 0 1px, transparent 1px 5px),
    radial-gradient(120% 90% at 30% 0%, rgba(196, 141, 90, .1), transparent 60%),
    linear-gradient(115deg, #2a2019, #221a14 50%, #281e17);
}
.fz-steel {
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 46px 46px,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 70% 0%, rgba(159, 180, 214, .07), transparent 60%),
    linear-gradient(160deg, #1f2224, #161819);
}
.fz-head { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 16px; background: rgba(10, 10, 11, .45); border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 12.5px; color: var(--muted); font-weight: 600; }
.fz-head .legend { margin-left: auto; font-size: 11.5px; }
.fz-head b { font-family: var(--font-display); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.fz-area { position: relative; min-height: 190px; transition: box-shadow .2s; }
.fz-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; pointer-events: none; }

.ft {
  --w: 66px; --h: 66px; --k: 1; --tcol: var(--line-strong);
  --tw: calc(var(--w) * var(--k)); --th: calc(var(--h) * var(--k));
  position: absolute; z-index: 1; width: var(--tw); height: var(--th);
  left: clamp(calc(var(--tw) / 2 + 14px), calc(var(--x) * 1%), calc(100% - var(--tw) / 2 - 14px));
  top: clamp(calc(var(--th) / 2 + 14px), calc(var(--y) * 1%), calc(100% - var(--th) / 2 - 14px));
  translate: -50% -50%;
  display: grid; place-items: center; text-align: center; border-radius: 14px; color: var(--ink);
  background-color: color-mix(in srgb, var(--tcol) 26%, #1e2022);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tcol) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, .07), 0 8px 18px rgba(0, 0, 0, .5);
  transition: left .3s var(--ease), top .3s var(--ease), width .25s var(--ease), height .25s var(--ease), border-radius .25s, background-color .5s ease, box-shadow .5s ease, scale .18s var(--ease);
  touch-action: manipulation; -webkit-touch-callout: none;
}
.ft:active { scale: .96; }
.ft-round { border-radius: 50%; }
.ft-round.seats-1 { --w: 56px; --h: 56px; }
.ft-round.seats-2 { --w: 66px; --h: 66px; }
.ft-round.seats-4 { --w: 80px; --h: 80px; }
.ft-round.seats-6 { --w: 92px; --h: 92px; }
.ft-round.seats-8 { --w: 104px; --h: 104px; }
.ft-rect.seats-1 { --w: 64px; --h: 56px; }
.ft-rect.seats-2 { --w: 78px; --h: 60px; }
.ft-rect.seats-4 { --w: 104px; --h: 64px; }
.ft-rect.seats-6 { --w: 132px; --h: 66px; }
.ft-rect.seats-8 { --w: 160px; --h: 68px; }
.ft.ts-free { background-color: #25272a; box-shadow: inset 0 0 0 1px var(--line-strong), inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 14px rgba(0, 0, 0, .42); }
.ft.ts-waiting { animation: ftwait 2s ease-in-out infinite; }
@keyframes ftwait { 50% { box-shadow: inset 0 0 0 2px var(--wood), 0 0 0 8px rgba(196, 141, 90, .2), 0 8px 18px rgba(0, 0, 0, .5); } }
.ft.ts-ready { animation: ftready 2.4s ease-in-out infinite; }
@keyframes ftready { 50% { box-shadow: inset 0 0 0 2px var(--ok), 0 0 0 8px rgba(86, 183, 131, .18), 0 8px 18px rgba(0, 0, 0, .5); } }
.ft.rt-pop { animation: ftpop .6s var(--ease); }
@keyframes ftpop { 35% { scale: 1.14; } }
.ft.selected::after { content: ''; position: absolute; inset: -17px; border-radius: inherit; border: 2px solid var(--wood); box-shadow: 0 0 0 4px rgba(196, 141, 90, .16); pointer-events: none; animation: pop .25s var(--ease); }
.ft-rect.selected::after { border-radius: 22px; }
.ft .ch { position: absolute; width: 18px; height: 8px; border-radius: 5px; pointer-events: none; background: color-mix(in srgb, var(--tcol) 45%, #3a3d41); box-shadow: 0 2px 4px rgba(0, 0, 0, .45); transition: background-color .5s ease; }
.ft.ts-free .ch { background: #35383c; }
.ft-round .ch { left: calc(50% - 9px); top: calc(50% - 4px); transform: rotate(var(--a)) translateY(calc(var(--tw) / -2 - 8px)); }
.ft-rect .ch { left: var(--p); margin-left: -9px; }
.ft-rect .ch-t { top: -12px; }
.ft-rect .ch-b { bottom: -12px; }
.ft-in { position: relative; display: grid; justify-items: center; gap: 1px; line-height: 1.1; pointer-events: none; max-width: calc(var(--tw) - 8px); }
.ft-n { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.ft.ts-free .ft-n { color: var(--ink-2); }
.ft-amt { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 700; white-space: nowrap; color: var(--ink); }
.ft-t { font-size: 10.5px; color: var(--ink-2); white-space: nowrap; font-weight: 600; }
.ft-s { font-size: 10.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.ft.ts-waiting .ft-amt { color: var(--wood-ink); }

/* Édition du plan (propriétaire) */
.floor.editing .fz-area::before { content: ''; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle at 0 0, rgba(255, 255, 255, .2) 1.3px, transparent 1.9px); background-size: 4% 4%; animation: fadein .3s ease; }
.floor.editing .ft { cursor: grab; touch-action: none; animation: none; }
.floor.editing .ft:not(.selected) { outline: 1px dashed rgba(255, 255, 255, .22); outline-offset: 3px; }
.ft.rt-drag { z-index: 6; cursor: grabbing; scale: 1.08; transition: left .1s linear, top .1s linear, scale .15s var(--ease), box-shadow .2s; box-shadow: inset 0 0 0 2px var(--wood), 0 22px 40px rgba(0, 0, 0, .6); }
.fz-area.rt-target { box-shadow: inset 0 0 0 2px rgba(196, 141, 90, .55); }
.fe-body { display: grid; gap: 18px; align-content: start; padding-top: 16px; padding-bottom: 16px; }
.fe-sel { display: flex; align-items: center; gap: 12px; }
.fe-sel > div { display: grid; }
.fe-badge { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--wood-grad); color: var(--on-wood); font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.fe-group { display: grid; gap: 8px; }
.fe-group > span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.fe-group .seg button { padding: 0 6px; min-width: 0; }
.shape-ico { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; flex: none; }
.shape-ico.round { border-radius: 50%; }
.shape-ico.rect { width: 20px; height: 13px; border-radius: 3px; }
.fe-hint { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--wood-soft); color: var(--wood-ink); }
.fe-hint p { color: var(--ink-2); font-size: 13.5px; }
.fe-hint p b { color: var(--ink); }

/* ---------- Tickets du jour ---------- */
.tk-view { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; min-height: 0; padding: 12px 20px 0; animation: fadein .3s ease; }
.tk-tots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tk-tot { display: grid; gap: 2px; min-width: 0; min-height: 76px; padding: 11px 14px; border-radius: 14px; text-align: left; background: var(--card-grad), var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background .18s, box-shadow .18s, transform .1s; }
.tk-tot:active { transform: scale(.98); }
.tk-tot.active { background: var(--wood-soft); box-shadow: inset 0 0 0 2px var(--wood); }
.tk-tl { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; }
.tk-tot.active .tk-tl { color: var(--wood-ink); }
.tk-tot strong { font-family: var(--font-display); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tk-tot small { color: var(--muted); font-size: 12px; }
.tk-bar { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tk-bar .search { flex: 1; min-width: 0; }
.tk-bar .search .input { padding-right: 44px; }
.tk-count { white-space: nowrap; font-size: 13px; color: var(--muted); }
.tk-count b { color: var(--ink-2); }
.tk-list { min-height: 0; overflow-y: auto; display: grid; gap: 6px; align-content: start; padding: 2px 0 20px; overscroll-behavior: contain; }
.tk-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 58px; padding: 8px 14px; border-radius: 13px; text-align: left; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, box-shadow .15s, transform .1s; animation: cardin .3s var(--ease); }
.tk-row:hover { background: var(--surface-2); }
.tk-row:active { transform: scale(.99); }
.tk-row.selected { background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--wood); }
.tk-when, .tk-where { display: grid; min-width: 0; line-height: 1.3; }
.tk-when b { font-size: 13.5px; }
.tk-when small, .tk-where small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-where b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-m { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.tk-m.m-cash { background: var(--ok-soft); color: var(--ok); }
.tk-m.m-card { background: rgba(159, 180, 214, .13); color: #b4c6e2; }
.tk-m.m-mobile { background: var(--wood-soft); color: var(--wood-ink); }
.tk-amt { min-width: 90px; text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tk-empty { display: grid; justify-items: center; gap: 10px; padding: 40px 10px; color: var(--muted); text-align: center; }
.tk-foot { font-size: 12px; text-align: center; padding: 8px 0 0; }
.tk-paper { padding-top: 16px; padding-bottom: 16px; }
.tk-paper .paper { max-height: none; overflow: visible; }

/* ---------- Clôture de caisse (rapport Z) ---------- */
.closing { display: grid; grid-template-columns: minmax(0, 1fr) 360px; height: 100%; }
.z-main { min-height: 0; overflow-y: auto; padding: 14px 18px 24px; display: grid; gap: 12px; align-content: start; overscroll-behavior: contain; }
.z-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.z-next { margin-left: auto; height: 30px; padding: 0 12px; font-size: 12.5px; font-weight: 700; }
.z-seg .z-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--surface-3); color: var(--ink-2); font-size: 11.5px; font-weight: 700; }
.z-seg button.active .z-count { background: var(--wood-soft); color: var(--wood-ink); }
.z-card { padding: 16px 18px; border-radius: 16px; background: var(--card-grad), var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.z-sum-head h2 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.z-sum-head h2 small { font-size: 14px; font-weight: 600; white-space: nowrap; }
.z-sum-head p { margin-top: 3px; }
.z-sum-body { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 12px; align-items: start; }
.z-kpis { display: grid; gap: 6px; }
.z-kpi { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-height: 36px; padding: 6px 12px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.z-kpi span { font-size: 12px; font-weight: 700; color: var(--muted); }
.z-kpi strong { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z-kpi.accent { display: grid; gap: 0; }
.z-kpi.accent strong { font-size: 22px; }
.z-kpi span { white-space: nowrap; }
.z-kpi.accent { background: linear-gradient(150deg, rgba(196, 141, 90, .2), var(--surface-2) 75%); box-shadow: inset 0 0 0 1px rgba(196, 141, 90, .4); }
.z-group { min-width: 0; }
.z-group h4 { font-family: var(--font); font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.z-li { display: grid; grid-template-columns: minmax(0, 1fr) auto 42px; gap: 10px; align-items: center; min-height: 36px; border-bottom: 1px solid var(--line); font-size: 14px; }
.z-li:last-child { border-bottom: 0; }
.z-li > span { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.z-li > span .ico { color: var(--muted); flex: none; }
.z-li b { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.z-li i { font-style: normal; color: var(--muted); font-size: 12.5px; text-align: right; }
.av.xs { width: 22px; height: 22px; font-size: 11px; box-shadow: none; }
.z-warn { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 14px; background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(226, 166, 74, .35); font-size: 13.5px; animation: fadein .3s ease; }
.z-warn > span { flex: 1; min-width: 0; color: var(--ink); }
.z-warn b { color: var(--warn); }
.z-warn > .ico { flex: none; }
.z-warn .btn { flex: none; }
.z-warn.soft { background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.z-warn.soft b { color: var(--ink); }
.z-card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.z-card-head h3 { font-family: var(--font); font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.z-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.z-eyebrow .muted { text-transform: none; letter-spacing: 0; font-weight: 600; }
.z-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); flex: none; }
.z-dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.z-sum-head h2 { margin-top: 4px; }
.z-blind { display: flex; gap: 10px; align-items: flex-start; align-self: stretch; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.z-blind .ico { flex: none; margin-top: 2px; }
.z-blind p { display: grid; gap: 3px; font-size: 13px; }
.z-blind b { color: var(--ink); font-size: 14px; }
.z-lbl { display: grid; font-weight: 650; font-size: 14px; min-width: 0; text-align: left; }
.z-lbl small, .z-line small { color: var(--muted); font-weight: 500; font-size: 12px; }
.z-count-intro { display: grid; gap: 4px; }
.z-count-intro h3 { font-family: var(--font); font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.z-dayno { font-size: 14px; color: var(--ink-2); }
.z-dayno b { color: var(--wood-ink); }
.z-owner-note { display: flex; align-items: center; gap: 6px; }
.z-closed-hero { display: flex; gap: 14px; align-items: center; background: linear-gradient(150deg, rgba(226, 166, 74, .1), var(--surface) 60%); box-shadow: inset 0 0 0 1px rgba(226, 166, 74, .3); }
.z-hero-ic { width: 56px; height: 56px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); }
.z-closed-hero h2 { font-size: 19px; margin-top: 2px; }
.z-closed-hero p { margin-top: 2px; }
.z-last { display: grid; gap: 10px; }
.z-last .z-card-head { margin-bottom: 0; }
.z-last .z-card-head .muted { margin-left: auto; }
.z-cf-grid > .z-cf-diff.zt-ok { background: var(--ok-soft); box-shadow: inset 0 0 0 1px rgba(86, 183, 131, .45); }
.z-cf-grid > .z-cf-diff.zt-warn { background: var(--warn-soft); box-shadow: inset 0 0 0 1px rgba(226, 166, 74, .45); }
.z-cf-grid > .z-cf-diff.zt-danger { background: var(--danger-soft); box-shadow: inset 0 0 0 1px rgba(232, 102, 79, .45); }
.z-cf-grid > .z-cf-diff > span { color: inherit; }
.z-cf-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shift-pill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; min-width: 44px; position: relative; transition: background .15s; }
.shift-pill i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.shift-pill em { font-style: normal; font-weight: 600; }
.shift-pill.on { background: var(--ok-soft); color: var(--ok); }
.shift-pill.on i { background: var(--ok); box-shadow: 0 0 0 3px rgba(86, 183, 131, .25); }
.shift-pill.off { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(226, 166, 74, .35); }
.shift-pill.off i { background: var(--warn); }
.shift-pill:hover { filter: brightness(1.12); }
.z-side { min-height: 0; overflow-y: auto; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -12px 0 30px rgba(0, 0, 0, .18); overscroll-behavior: contain; }
.z-tot { display: grid; gap: 11px; padding: 16px 18px 18px; }
.z-line { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; color: var(--ink-2); }
.z-line > span { display: grid; min-width: 0; }
.z-line b { white-space: nowrap; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.z-line.strong { font-weight: 650; color: var(--ink); }
.z-line.strong b { font-family: var(--font-display); font-size: 19px; }
.z-diff { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; transition: background .25s, color .25s, box-shadow .25s; }
.z-diff > span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.z-diff strong { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.z-diff small { font-size: 12.5px; opacity: .85; }
.zt-ok { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(86, 183, 131, .45); }
.zt-warn { background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(226, 166, 74, .45); }
.zt-danger { background: var(--danger-soft); color: var(--danger); box-shadow: inset 0 0 0 1px rgba(232, 102, 79, .45); }
.zt-idle { background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.z-note textarea { min-height: 62px; background: var(--surface-2); }
.z-foot { text-align: center; }
/* Confirmation, rapport, historique */
.z-confirm { display: grid; gap: 12px; }
.z-cf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.z-cf-grid > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.z-cf-grid > div > span { font-size: 12px; font-weight: 700; color: var(--muted); }
.z-cf-grid strong { font-family: var(--font-display); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z-cf-grid small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.z-confirm .z-warn { animation: none; }
.z-note-view { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: 14px; }
.z-note-view .ico { flex: none; margin-top: 2px; color: var(--muted); }
.zh { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 10px; height: 100%; min-height: 0; padding: 14px 20px 0; }
.zh .sum-chip { margin-left: auto; }
.zh-gap.zt-ok, .zh-gap.zt-warn, .zh-gap.zt-danger { background: none; box-shadow: none; }
.zh-hint { margin-top: -2px; }
.zh-list { min-height: 0; overflow-y: auto; display: grid; gap: 6px; align-content: start; padding: 2px 0 20px; overscroll-behavior: contain; }
.zh-row { display: grid; grid-template-columns: 136px minmax(0, 1fr) 84px 130px 176px 18px; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px 8px 14px; border-radius: 13px; text-align: left; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, box-shadow .15s, transform .1s; animation: cardin .3s var(--ease); }
.zh-row:hover { background: var(--surface-2); }
.zh-row:active { transform: scale(.99); }
.zh-no, .zh-per { display: grid; min-width: 0; line-height: 1.3; }
.zh-no b { font-size: 14.5px; }
.zh-no small, .zh-per small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zh-per b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zh-tk { color: var(--muted); font-size: 13px; white-space: nowrap; }
.zh-ca { text-align: right; white-space: nowrap; font-weight: 700; }
.zh-diff { justify-self: end; display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.zh-go { color: var(--muted); display: grid; }
/* Rapport Z (ticket) */
.rc-ztitle { font-weight: 800; font-size: 15px; letter-spacing: .04em; }
.rc-ztitle small { display: block; font-weight: 500; font-size: 11px; letter-spacing: .02em; }
.rc-h { font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.rc-kind { padding-left: 0; font-style: italic; }
.rc-strong { font-weight: 700; }
.rc-verdict { font-weight: 700; }
.rc-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.rc-sign { display: grid; gap: 4px; margin: 4px 0 10px; }
.rc-sign i { display: block; height: 42px; border-bottom: 1px solid #333; }
.rc-printed { font-size: 10.5px; color: #555; }

/* Lancement des assistants (écran Clôture) */
.z-steps-mini { margin: 0; padding: 0 0 0 4px; list-style: none; counter-reset: zs; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.z-steps-mini li { counter-increment: zs; display: flex; align-items: center; gap: 10px; }
.z-steps-mini li::before { content: counter(zs); width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; background: var(--surface-3); color: var(--ink-2); }
.z-carried { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.z-carried h4 { display: flex; align-items: center; gap: 6px; font-family: var(--font); font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }

/* ---------- Assistants plein écran (ouverture / clôture du service) ---------- */
.wiz { position: fixed; inset: 0; z-index: 90; background: radial-gradient(1200px 600px at 50% -20%, #262019, #0f1011 62%); color: var(--ink); animation: wizfade .22s ease; }
.wiz.leaving { animation: wizout .2s ease forwards; }
@keyframes wizfade { from { opacity: 0; } }
@keyframes wizout { to { opacity: 0; } }
.wiz-shell { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.wiz-top { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; grid-template-areas: "title count x" "bar bar bar"; align-items: center; gap: 10px 16px; padding: 14px 22px 12px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(24, 25, 27, .96), rgba(20, 21, 22, .92)); }
.wiz-title { grid-area: title; display: flex; align-items: center; gap: 12px; min-width: 0; }
.wiz-title > div { display: grid; min-width: 0; }
.wiz-title h1 { font-size: 20px; font-weight: 700; white-space: nowrap; }
.wiz-title .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wiz-ic { width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--wood-soft); color: var(--wood-ink); box-shadow: inset 0 0 0 1px rgba(196, 141, 90, .35); }
.wiz-count { grid-area: count; font-size: 13px; font-weight: 700; color: var(--wood-ink); white-space: nowrap; }
.wiz-x { grid-area: x; }
.wiz-bar { grid-area: bar; list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.wiz-bar li { display: grid; gap: 6px; min-width: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.wiz-bar i { display: block; height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; position: relative; }
.wiz-bar i::after { content: ''; position: absolute; inset: 0; background: var(--wood-grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.wiz-bar li.done i::after, .wiz-bar li.cur i::after { transform: none; }
.wiz-bar li.cur i::after { opacity: .75; }
.wiz-bar li.done { color: var(--ink-2); }
.wiz-bar li.cur { color: var(--ink); }
.wiz-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wiz-body { min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 26px 22px 28px; }
.wiz-pane { max-width: 860px; margin: 0 auto; animation: wizin .3s var(--ease); }
.wiz.back .wiz-pane { animation-name: wizinback; }
@keyframes wizin { from { opacity: 0; transform: translateX(28px); } }
@keyframes wizinback { from { opacity: 0; transform: translateX(-28px); } }
.wiz-h { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.wiz-h small { font-size: 15px; font-weight: 500; }
.wiz-center { display: grid; gap: 14px; justify-items: start; max-width: 640px; margin: 0 auto; }
.wiz-wide { display: grid; gap: 14px; }
.wiz-foot { display: flex; align-items: center; gap: 14px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(18, 19, 20, .96); }
.wiz-foot .btn-lg { min-width: 150px; }
.wiz-sp { width: 150px; flex: none; }
.wiz-why { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-align: center; }
.wiz-why.on { color: var(--warn); }
.wiz-why .ico { flex: none; }
.wiz-why.rt-nope { animation: nope .32s; }
.wiz-foot .btn-primary:disabled { opacity: .4; }
/* Qui ouvre */
.wiz-who { display: flex; align-items: center; gap: 16px; padding: 16px 22px 16px 16px; border-radius: 20px; background: var(--card-grad), var(--surface); box-shadow: inset 0 0 0 2px var(--wood); }
.wiz-who .av { width: 64px; height: 64px; font-size: 26px; }
.wiz-who > div { display: grid; }
.wiz-who strong { font-size: 22px; }
.wiz-who.no { box-shadow: inset 0 0 0 2px var(--danger); }
.wiz-err { color: var(--danger); font-weight: 600; }
.wiz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
/* Pavé de saisie */
.wiz-kp-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 28px; align-items: start; }
.wiz-kp-info { display: grid; gap: 14px; min-width: 0; }
.wiz-read { display: grid; gap: 2px; padding: 14px 18px; border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--wood); }
.wiz-read span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.wiz-read strong { font-family: var(--font-display); font-size: 40px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.wiz-read small { color: var(--muted); font-size: 12.5px; }
.wiz-read.fresh strong { color: var(--ink-2); }
.wiz-read.empty { box-shadow: inset 0 0 0 2px var(--line-strong); }
.wiz-read.empty strong { color: var(--muted); }
.wiz-read:not(.fresh) strong::after { content: ''; display: inline-block; width: 3px; height: .8em; margin-left: 4px; vertical-align: -2px; background: var(--wood); animation: caret 1s steps(1) infinite; }
.wiz-read.rt-nope { animation: nope .32s; }
.wiz-keypad { gap: 10px; }
.wiz-keypad .key { height: 64px; font-size: 26px; }
.wiz-owner { display: grid; gap: 10px; }
.wiz-blind { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 13.5px; box-shadow: inset 0 0 0 1px var(--line); }
.wiz-blind .ico { flex: none; }
/* Récapitulatifs */
.wiz-recap { margin: 0; width: 100%; display: grid; border-radius: 18px; background: var(--card-grad), var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.wiz-recap > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.wiz-recap > div:last-child { border-bottom: 0; }
.wiz-recap dt { color: var(--muted); font-size: 14px; font-weight: 600; flex: none; }
.wiz-recap dd { margin: 0; font-weight: 700; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.wiz-recap .big dd { font-family: var(--font-display); font-size: 26px; }
.wiz-recap .note dd { font-weight: 500; color: var(--ink-2); }
.wiz-recap-diff dd { font-family: var(--font-display); font-size: 20px; }
.wiz-recap-diff.zt-ok, .wiz-recap-diff.zt-warn, .wiz-recap-diff.zt-danger { box-shadow: none; }
.wiz-recap-diff dt { color: inherit; }
/* Tables ouvertes */
.wb-list { display: grid; gap: 8px; }
.wb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px 16px; padding: 12px 14px 12px 18px; border-radius: 16px; background: var(--card-grad), var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, box-shadow .2s; animation: cardin .3s var(--ease); }
.wb-row.carried { box-shadow: inset 0 0 0 2px rgba(226, 166, 74, .5); background: linear-gradient(90deg, var(--warn-soft), transparent 70%), var(--surface); }
.wb-row.paid { box-shadow: inset 0 0 0 1px rgba(86, 183, 131, .45); background: linear-gradient(90deg, var(--ok-soft), transparent 70%), var(--surface); }
.wb-main { display: grid; min-width: 0; }
.wb-main b { font-size: 16px; }
.wb-main small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-amt { font-family: var(--font-display); font-size: 18px; white-space: nowrap; }
.wb-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.wb-acts .btn { gap: 6px; }
.wb-carry.on { color: var(--warn); box-shadow: inset 0 0 0 1px rgba(226, 166, 74, .5); background: var(--warn-soft); }
.wb-ok { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 14px; white-space: nowrap; }
.wb-all { justify-self: end; }
.wb-prog { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--ink-2); font-size: 13.5px; box-shadow: inset 0 0 0 1px var(--line); }
.wb-prog .ico { flex: none; color: var(--muted); }
.wb-prog.none { color: var(--muted); }
.wiz-allset { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(86, 183, 131, .45); }
.wiz-allset > div { display: grid; }
.wiz-allset strong { font-size: 18px; }
/* Note */
.wiz-chips .chip { gap: 6px; display: inline-flex; align-items: center; }
.wiz-note { width: 100%; min-height: 120px; font-size: 16px; background: var(--surface-2); }
.wiz-left { justify-self: end; }
/* Résultat */
.wiz-result { grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.wiz-res-main { display: grid; gap: 14px; min-width: 0; }
.wiz-res-z { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--wood-ink); }
.wiz-reveal { padding: 20px 22px; animation: reveal .6s var(--ease) .1s both; }
.wiz-reveal strong { font-size: 38px; }
@keyframes reveal { from { opacity: 0; transform: scale(.94); } }
.wiz-result .paper { max-height: calc(100dvh - 260px); }
.wiz-success { justify-items: center; text-align: center; padding-top: 6vh; }
.wiz-success .paid-check, .wiz-success .paid-check .check-svg { width: 96px; height: 96px; }
/* Confirmation d'abandon */
.wiz-confirm { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 20px; background: rgba(8, 7, 6, .62); animation: wizfade .18s ease; }
.wiz-cf-box { width: min(460px, 100%); display: grid; gap: 12px; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line); }
.wiz-cf-box h2 { font-size: 20px; }
.wiz-cf-box .btn-row { justify-content: flex-end; margin-top: 4px; }
@media (max-width: 1100px) {
  .wiz-kp-step { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
  .wiz-result { grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; }
  .wiz-reveal strong { font-size: 32px; }
}
@media (max-width: 960px) {
  .wiz-top { padding: 12px 16px 10px; gap: 8px 12px; }
  .wiz-body { padding: 20px 16px 22px; }
  .wiz-foot { padding: 12px 16px; gap: 10px; }
  .wiz-foot .btn-lg { min-width: 0; padding: 0 16px; }
  .wiz-sp { width: 0; }
  .wiz-bar span { font-size: 11px; }
  .wiz-kp-step { grid-template-columns: minmax(0, 1fr) 280px; }
  .wiz-read strong { font-size: 32px; }
  .wiz-keypad .key { height: 56px; font-size: 22px; }
  .wiz-result { grid-template-columns: minmax(0, 1fr); }
  .wiz-result .paper { max-height: none; }
  .wb-row { grid-template-columns: minmax(0, 1fr) auto; }
  .wb-acts, .wb-ok { grid-column: 1 / -1; justify-content: flex-start; justify-self: start; }
  .wiz-h { font-size: 21px; }
}
@media (max-height: 760px) {
  .wiz-body { padding-top: 16px; padding-bottom: 16px; }
  .wiz-keypad .key { height: 50px; }
  .wiz-read { padding: 10px 14px; }
  .wiz-read strong { font-size: 30px; }
  .wiz-kp-info { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .wiz, .wiz-pane, .wiz-reveal, .wb-row, .wiz-confirm { animation: none !important; }
  .wiz-bar i::after { transition: none; }
}

/* ---------- Allergènes (actions rapides, options) ---------- */
.allergens { display: grid; gap: 7px; }
.al-line { display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 13.5px; line-height: 1.4; }
.al-line .ico { flex: none; margin-top: 1px; }
.al-line span { color: var(--ink); }
.al-line b { font-weight: 700; }
.al-line.none { background: var(--surface-2); color: var(--muted); }
.al-line.none span { color: var(--ink-2); }
.al-diets { display: flex; flex-wrap: wrap; gap: 6px; }
.diet { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 700; }
#ed-al { margin-top: 4px; }
.rc-copy { font-weight: 700; letter-spacing: .06em; font-size: 11px; }

/* =====================================================================
   v2 « Torréfaction » — surcouche visuelle de la caisse.
   Surfaces étagées (espresso → moka → moka-2) plutôt que des bordures, verre pour le chrome,
   pilules pour les contrôles, chiffres tabulaires. Mouvement calme : ≤ 220 ms, ease-out.
   ===================================================================== */
.pos { background: var(--espresso); }
.pos { --card-grad: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0) 55%); --rim: inset 0 0 0 1px rgba(255, 255, 255, .045), inset 0 1px 0 rgba(255, 255, 255, .05); --moka-3: #2D2825; }
.app { animation-duration: .22s; }
.screen-root, .content > * { animation-duration: .2s; }

/* Rail : colonne de verre, item actif = pastille cuivre (style iOS / Spotify) */
.rail {
  background: linear-gradient(180deg, rgba(36, 31, 28, .72), rgba(22, 19, 17, .72)); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  border-right: 0; box-shadow: inset -1px 0 0 var(--glass-line); padding: 12px 8px 10px; gap: 2px;
}
.rail-logo { padding: 4px 0 12px; }
.nav-btn { gap: 4px; padding: 4px 2px 5px; min-height: 54px; border-radius: 16px; font-size: 11px; font-weight: 600; letter-spacing: -.005em; color: var(--muted); transition: color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out); }
.nav-btn > .ico { box-sizing: content-box; padding: 4px 14px; border-radius: var(--radius-pill); transition: background-color var(--dur) var(--ease-out), color var(--dur) ease, box-shadow var(--dur) ease; }
.nav-btn:hover { background: none; color: var(--ink); }
.nav-btn:hover > .ico { background: rgba(255, 255, 255, .06); }
.nav-btn:active { transform: scale(.96); }
.nav-btn.active { background: none; color: var(--ink); box-shadow: none; }
.nav-btn.active > .ico { background: var(--accent-grad); color: var(--on-accent); box-shadow: var(--shadow-accent); }
.nav-btn.active::before { content: none; }
.nav-btn .count { top: 0; right: 9px; background: var(--danger); box-shadow: 0 0 0 2.5px #1A1715; font-weight: 750; }
.nav-btn.locked { opacity: .55; min-height: 50px; }
.nav-btn.locked > .ico { padding: 4px 12px; }
.nav-btn .lock { top: 2px; right: 12px; color: var(--accent-ink); }
.rail-sep { border-top: 0; margin: 6px 8px 0; padding-top: 8px; position: relative; font-size: 9.5px; letter-spacing: .14em; color: rgba(157, 146, 136, .7); }
.rail-sep::before { content: ''; position: absolute; top: 0; left: 10px; right: 10px; height: 1px; background: var(--glass-line); }
.me { border-radius: 18px; padding: 8px 2px 6px; }
.me:hover { background: rgba(255, 255, 255, .05); }
.av { background: var(--accent-grad); color: var(--on-accent); box-shadow: 0 0 0 2px rgba(14, 12, 11, .6), 0 0 0 3.5px rgba(200, 129, 74, .35), 0 6px 14px rgba(0, 0, 0, .4); }
.av.xs { box-shadow: none; }

/* Barre du haut : verre fin, titre affirmé */
.main { grid-template-rows: 64px minmax(0, 1fr); }
.topbar {
  gap: 10px; padding: 0 16px 0 24px; border-bottom: 0; position: relative; z-index: 2;
  background: rgba(22, 19, 17, .72); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 -1px 0 var(--glass-line);
}
.topbar h1 { font: 700 22px/1 var(--font-display); letter-spacing: -.025em; margin-right: 8px; }
.shift-pill { height: 36px; padding: 0 14px; font-size: 12.5px; font-weight: 650; }
.shift-pill.off { box-shadow: none; }
.ready-chip { height: 36px; padding: 0 14px; font-weight: 650; }
.alert-pill { height: 38px; padding: 0 16px; font-weight: 650; box-shadow: var(--shadow-accent); }
.tb-btn { width: 40px; height: 40px; }
.conn { font-size: 12px; font-weight: 600; padding: 0 10px; height: 30px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .04); }
.clock { font-size: 13px; color: var(--ink-2); }
.pos #toasts { top: 74px; }

/* Contrôles segmentés : pilules partout (Sur place / À emporter, filtres, vues) */
.seg { background: rgba(0, 0, 0, .32); border-radius: var(--radius-pill); padding: 3px; gap: 2px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.seg button { min-height: 40px; border-radius: var(--radius-pill); font-weight: 600; padding: 0 16px; transition: background-color var(--dur) var(--ease-out), color var(--dur) ease, box-shadow var(--dur) ease; }
.seg button:hover:not(.active):not(:disabled) { color: var(--ink-2); }
.seg button.active { background: #3A3430; color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 3px 10px rgba(0, 0, 0, .35); }

/* ---- Caisse ---- */
.catalog-head { gap: 14px; padding: 18px 16px 8px; }
.search .input { min-height: 46px; border-radius: var(--radius-pill); padding-left: 44px; background: var(--moka); border: 0; box-shadow: var(--rim); }
.search .input:focus { background: var(--moka-2); box-shadow: var(--focus); }
.search > .ico { left: 16px; }
.search .kbd { right: 14px; border-radius: 7px; }
.cat-tabs { gap: 8px; padding: 2px 0 4px; }
.cat-tab { height: 40px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--moka); box-shadow: var(--rim); font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background-color var(--dur) ease, color var(--dur) ease, transform var(--dur-fast) var(--ease-out); }
.cat-tab:hover { background: var(--moka-2); color: var(--ink); }
.cat-tab.active { background: var(--milk); color: var(--espresso); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.products { gap: 10px; padding: 10px 16px 28px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.prod {
  gap: 10px; padding: 12px; min-height: 146px; border-radius: 22px;
  background: var(--card-grad), var(--moka); box-shadow: var(--rim);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur) ease, box-shadow var(--dur) ease;
}
@media (hover: hover) { .prod:hover { background-color: var(--moka-2); box-shadow: var(--rim), 0 10px 26px rgba(0, 0, 0, .35); } }
.prod.rt-press { transform: scale(.965); }
.prod.in-ticket { background: linear-gradient(160deg, rgba(200, 129, 74, .14), rgba(200, 129, 74, 0) 60%), var(--moka); box-shadow: inset 0 0 0 1.5px rgba(200, 129, 74, .55), inset 0 1px 0 rgba(255, 255, 255, .05); }
@keyframes tilebump { 0% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 0 rgba(200, 129, 74, .45); } 100% { box-shadow: inset 0 0 0 1.5px rgba(200, 129, 74, .55), 0 0 0 10px rgba(200, 129, 74, 0); } }
.prod .item-icon { width: 52px; height: 52px; font-size: 28px; border-radius: 30%; }
.prod-top .ptag { position: absolute; top: 9px; right: 9px; max-width: calc(100% - 82px); height: 20px; padding: 0 8px; font-size: 10.5px; }
.prod-name { font-size: 15px; font-weight: 600; letter-spacing: -.012em; line-height: 1.22; color: var(--ink); }
.prod-price { font-size: 15px; font-weight: 750; letter-spacing: -.02em; color: var(--crema); font-variant-numeric: tabular-nums; }
.qty-badge { min-width: 30px; height: 26px; border-radius: var(--radius-pill); background: var(--accent-grad); color: var(--on-accent); box-shadow: var(--shadow-accent); font-weight: 750; animation: pop .22s var(--ease-out); }
.ptag { height: 22px; padding: 0 9px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 650; letter-spacing: 0; }
.tag-sig { background: var(--accent-grad); color: var(--on-accent); }
.tag-home { background: var(--accent-soft); color: var(--crema); box-shadow: none; }
.tag-new { background: var(--ok-soft); color: var(--ok); }
.empty-results { padding: 56px 10px; gap: 12px; font-size: 15px; }
.empty-results .ico { width: 56px; height: 56px; padding: 14px; box-sizing: border-box; border-radius: 50%; background: var(--moka); color: var(--muted); }

/* Ticket : panneau moka, total héros, pied en verre */
.ticket { background: var(--moka); border-left: 0; box-shadow: inset 1px 0 0 rgba(255, 255, 255, .045), -18px 0 40px rgba(0, 0, 0, .28); }
.ticket-head { gap: 12px; padding: 18px 18px 14px; border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); }
.table-select { height: 50px; padding: 0 18px; border-radius: var(--radius-pill); font-weight: 650; font-size: 15.5px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); color: var(--ink-2); }
.table-select:hover { background: rgba(255, 255, 255, .06); }
.table-select.set { color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px rgba(200, 129, 74, .7); }
.table-select.set > .ico:first-child { color: var(--accent); }
.takeaway-info { min-height: 50px; padding: 0 18px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .035); }
.ticket-lines { padding: 4px 18px; }
.ticket-empty { gap: 12px; font-size: 15px; color: var(--ink-2); font-weight: 600; }
.ticket-empty > .ico, .ticket-empty > svg { width: 64px; height: 64px; padding: 18px; box-sizing: border-box; border-radius: 50%; background: var(--moka-2); color: var(--muted); box-shadow: var(--rim); }
.ticket-empty small { color: var(--muted); font-weight: 500; font-size: 13px; }
.tl { gap: 12px; padding: 12px 0; border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); animation: slidein .2s var(--ease-out); }
.tl:last-child { box-shadow: none; }
.tl-name { font-weight: 650; font-size: 15px; letter-spacing: -.012em; }
.tl-opts { color: var(--crema); opacity: .85; }
.tl-price { font-weight: 750; font-size: 15.5px; letter-spacing: -.02em; }
.tl-side .stepper { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.stepper.sm button { width: 40px; height: 40px; border-radius: 50%; }
@keyframes priceflash { 0% { color: var(--crema); transform: scale(1.1); } }
.ticket-foot {
  gap: 14px; padding: 16px 18px 18px; border-top: 0;
  background: linear-gradient(180deg, rgba(38, 33, 30, .9), rgba(28, 25, 23, .96)); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 -14px 30px rgba(0, 0, 0, .22);
}
.ticket-foot .input { background: rgba(0, 0, 0, .22); border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); border-radius: var(--radius-pill); min-height: 44px; padding: 10px 18px; }
.total-row { align-items: flex-end; font-size: 12px; font-weight: 650; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); }
.total-row > span { display: block; white-space: nowrap; padding-bottom: 5px; }
.total-row em { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; }
.total-row strong { font: 750 40px/1 var(--font-display); letter-spacing: -.04em; color: var(--ink); text-transform: none; }
.foot-actions { gap: 10px; }
.foot-actions .btn-lg { min-height: 58px; font-size: 17px; }
.foot-actions .btn.sq { width: 58px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }

/* Voile d'envoi : verre et coche */
.burst { background: rgba(14, 12, 11, .72); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.burst-in strong { font-size: 26px; letter-spacing: -.025em; font-weight: 750; }

/* ---- Tableau des commandes ---- */
.board-tools { padding: 16px 20px 0; }
.board { gap: 14px; padding: 14px 20px 20px; }
.col { border-radius: 26px; background: rgba(28, 25, 23, .7); box-shadow: var(--rim); }
.col-new { background: linear-gradient(180deg, rgba(200, 129, 74, .16), rgba(28, 25, 23, .7) 180px); box-shadow: inset 0 0 0 1px rgba(200, 129, 74, .32), inset 0 1px 0 rgba(255, 255, 255, .06); }
.col-head { padding: 16px 16px 12px 18px; font-size: 15.5px; font-weight: 700; letter-spacing: -.015em; }
.col-head .n { height: 24px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .07); font-weight: 700; font-variant-numeric: tabular-nums; }
.col-body { padding: 2px 10px 12px; gap: 10px; }
.col-empty { padding: 36px 12px; font-size: 14px; display: grid; gap: 10px; justify-items: center; }
.ocard { gap: 10px; padding: 14px; border-radius: 18px; background: var(--card-grad), var(--moka-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 4px 14px rgba(0, 0, 0, .28); animation: cardin .22s var(--ease-out); }
.ocard.is-new { box-shadow: inset 0 0 0 1.5px var(--accent), 0 4px 14px rgba(0, 0, 0, .28); }
@keyframes glow { 50% { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 5px rgba(200, 129, 74, .14); } }
.ocard:has(.t-late) { box-shadow: inset 0 0 0 1.5px rgba(239, 115, 91, .55), 0 4px 14px rgba(0, 0, 0, .28); }
.oc-no { font-size: 19px; font-weight: 750; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.oc-call { border-radius: 14px; padding: 9px 12px; }
.oc-items b { color: var(--crema); font-variant-numeric: tabular-nums; }
.oc-note { border-radius: 12px; }
.ot-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .07); }
.call-no { border-radius: var(--radius-pill); color: #06180D; font-weight: 750; }
.callout { border-radius: var(--radius-pill); padding: 4px 4px 4px 16px; }

/* ---- Tables & additions ---- */
.tables-summary { padding: 18px 20px 6px; }
.sum-chip { border-radius: var(--radius-pill); padding: 8px 16px; background: var(--moka); box-shadow: var(--rim); }
.sum-chip b { font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sum-chip.wood { background: var(--accent-soft); color: var(--crema); box-shadow: inset 0 0 0 1px rgba(200, 129, 74, .35); }
.sum-chip.wood b { color: var(--crema); }
.tables-grid { gap: 14px; padding: 14px 20px 24px; }
.tcard { border-radius: 24px; padding: 16px 16px 18px; background: var(--moka); box-shadow: var(--rim); }
.tcard.ts-free { background: rgba(28, 25, 23, .45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.tcard:not(.ts-free) { background: linear-gradient(155deg, color-mix(in srgb, var(--tcol) 20%, transparent), var(--moka) 72%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tcol) 38%, transparent), inset 0 1px 0 rgba(255, 255, 255, .05); }
.tcard.selected { box-shadow: inset 0 0 0 2px var(--accent), 0 10px 26px rgba(0, 0, 0, .35); }
.tn { font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tamt { font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--crema); }
.tc-bar { left: 16px; right: 16px; bottom: 8px; height: 3px; border-radius: 3px; }
.bill-panel { background: var(--moka); border-left: 0; box-shadow: inset 1px 0 0 rgba(255, 255, 255, .045), -18px 0 40px rgba(0, 0, 0, .28); }
.bill-head { border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); padding: 18px 18px 14px; }
.bill-head h2 { font-size: 24px; letter-spacing: -.025em; }
.bill-foot { border-top: 0; background: linear-gradient(180deg, rgba(38, 33, 30, .9), rgba(28, 25, 23, .96)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 -14px 30px rgba(0, 0, 0, .22); }
.bill-pending { border-radius: 16px; color: var(--crema); }
.bill-empty > .ico, .bill-empty > svg { width: 64px; height: 64px; padding: 18px; box-sizing: border-box; border-radius: 50%; background: var(--moka-2); box-shadow: var(--rim); }

/* ---- Tableau de bord, menu, réglages : cartes moka sans bordure ---- */
.dash { padding: 22px 24px 32px; gap: 16px; }
.kpis { gap: 14px; }
.kpi { padding: 18px 20px; border-radius: 22px; background: var(--card-grad), var(--moka); box-shadow: var(--rim); gap: 6px; }
.kpi .label { font-size: 12.5px; color: var(--muted); }
.kpi .value { font-size: 30px; font-weight: 750; letter-spacing: -.035em; }
.kpi.accent { background: radial-gradient(120% 140% at 0% 0%, rgba(200, 129, 74, .32), rgba(200, 129, 74, 0) 60%), var(--moka); box-shadow: inset 0 0 0 1px rgba(200, 129, 74, .3), inset 0 1px 0 rgba(255, 255, 255, .06); }
.kpi.accent .value { color: var(--crema); }
.kpi.live { box-shadow: inset 0 0 0 1px rgba(95, 189, 136, .28), inset 0 1px 0 rgba(255, 255, 255, .05); }
.panels { gap: 14px; }
.panel { border-radius: 24px; padding: 20px 22px 22px; background: var(--moka); box-shadow: var(--rim); }
.panel h3 { font: 700 16px/1.2 var(--font-display); letter-spacing: -.015em; }
.demo-note { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }

/* ---- Clôture ---- */
.z-main { padding: 18px 22px 28px; gap: 14px; }
.z-card { border-radius: 24px; padding: 20px 22px; background: var(--card-grad), var(--moka); box-shadow: var(--rim); }
.z-sum-head h2 { font-size: 21px; letter-spacing: -.022em; }
.z-kpi { border-radius: 14px; background: rgba(255, 255, 255, .035); box-shadow: none; }
.z-kpi.accent { background: radial-gradient(120% 160% at 0% 0%, rgba(200, 129, 74, .3), rgba(200, 129, 74, .06) 70%); box-shadow: inset 0 0 0 1px rgba(200, 129, 74, .3); }
.z-kpi.accent strong { font-size: 26px; font-weight: 750; letter-spacing: -.03em; color: var(--crema); }
.z-kpi strong, .z-li b, .z-line b { font-variant-numeric: tabular-nums; }
.z-li { border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); }
.z-li:last-child { box-shadow: none; }
.z-warn { border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(231, 172, 85, .28); }
.z-warn.soft { background: var(--moka); box-shadow: var(--rim); }
.z-side { background: var(--moka); border-left: 0; box-shadow: inset 1px 0 0 rgba(255, 255, 255, .045), -18px 0 40px rgba(0, 0, 0, .28); }
.z-tot { padding: 20px 20px 22px; gap: 12px; }
.z-line.strong b { font: 750 26px/1 var(--font-display); letter-spacing: -.03em; }
.z-steps-mini li::before { background: rgba(255, 255, 255, .07); }
.z-diff { border-radius: 22px; padding: 16px 18px; }
.z-diff strong { font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.zh-row { border-radius: 18px; background: var(--moka); box-shadow: var(--rim); }
.zh-row:hover { background: var(--moka-2); }
.z-next { border-radius: var(--radius-pill); }

/* ---- Menu & stock, réglages ---- */
.stock, .settings { padding-left: 24px; padding-right: 24px; }
.stock-intro { border-radius: 24px; padding: 18px 20px; background: var(--card-grad), var(--moka); box-shadow: var(--rim); }
.stock-cat { margin: 24px 4px 10px; }
.stock-cat h2 { font: 700 17px/1.2 var(--font-display); letter-spacing: -.015em; color: var(--ink); }
.stock-cat h2 small { background: rgba(255, 255, 255, .07); }
.srow { border-radius: 20px; padding: 10px 14px; background: var(--moka); box-shadow: var(--rim); }
.srow .item-icon { border-radius: 30%; }
.price-input .input { border-radius: var(--radius-pill); background: rgba(0, 0, 0, .28); border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); font-weight: 750; font-variant-numeric: tabular-nums; color: var(--crema); padding: 8px 16px; }
.price-input .input:focus { box-shadow: var(--focus); }
.pos .card { border-radius: 26px; padding: 22px; background: var(--card-grad), var(--moka); box-shadow: var(--rim); }
.pos .card h3 { font: 700 17px/1.2 var(--font-display); letter-spacing: -.015em; }
.pos .card .input, .z-note textarea { background: rgba(0, 0, 0, .25); border: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); border-radius: 16px; }
.pos .card .input:focus { box-shadow: var(--focus); }
.pos .owner-card { background: radial-gradient(120% 120% at 0% 0%, rgba(200, 129, 74, .26), rgba(200, 129, 74, 0) 60%), var(--moka); box-shadow: inset 0 0 0 1px rgba(200, 129, 74, .3), inset 0 1px 0 rgba(255, 255, 255, .06); }
.qr-box { border-radius: 22px; }
.url { border-radius: var(--radius-pill); padding: 7px 12px; color: var(--crema); background: rgba(0, 0, 0, .3); }

/* ---- Connexion PIN : verre, halo cuivre, pavé rond ---- */
.login { background: radial-gradient(900px 520px at 50% -8%, rgba(200, 129, 74, .22), rgba(200, 129, 74, 0) 60%), radial-gradient(700px 400px at 50% 110%, rgba(200, 129, 74, .07), transparent 70%), var(--espresso); }
.login-box { gap: 22px; }
.login-body { gap: 18px; }
.login .logo { font-size: 52px; color: var(--milk); }
.login-sub { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.staff-pick { gap: 16px; }
.staff-card {
  gap: 4px; padding: 26px 16px 22px; border-radius: 28px;
  background: rgba(28, 25, 23, .62); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 0 0 1px var(--glass-line), inset 0 1px 0 rgba(255, 255, 255, .07), 0 18px 40px rgba(0, 0, 0, .35);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) ease, background-color var(--dur) ease;
}
.staff-card:hover { background: rgba(38, 33, 30, .7); box-shadow: inset 0 0 0 1px rgba(200, 129, 74, .45), inset 0 1px 0 rgba(255, 255, 255, .08), 0 22px 48px rgba(0, 0, 0, .45); }
.staff-card .av { width: 72px; height: 72px; font-size: 28px; margin-bottom: 10px; }
.staff-card strong { font-size: 18px; letter-spacing: -.015em; }
.demo-hint { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); font-size: 12.5px; }
.pin-wrap { gap: 12px; }
.pin-wrap > strong { font-size: 20px !important; letter-spacing: -.02em; }
.pin-wrap .av { width: 68px; height: 68px; font-size: 27px; }
.pin-dots { gap: 18px; margin: 8px 0 10px; }
.pin-dots span { width: 14px; height: 14px; box-shadow: inset 0 0 0 1.5px rgba(246, 241, 234, .35); }
.pin-dots span.on { background: var(--crema); transform: scale(1.08); }
.pinpad { grid-template-columns: repeat(3, 76px); gap: 14px 22px; }
.pinpad button {
  height: 76px; font: 500 30px/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, .07); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: background-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.pinpad button:hover:not(:disabled) { background: rgba(255, 255, 255, .11); }
.pinpad button:active { background: rgba(255, 255, 255, .2); transform: scale(.96); }
.pinpad .ghost { font-size: 15px; font-weight: 600; letter-spacing: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ---- Modales (encaissement, actions rapides, options) ---- */
.pay-head { padding-top: 26px; }
.pay-head h2 { font-size: 24px; letter-spacing: -.025em; }
.pay-due { font-size: 11.5px; font-weight: 650; letter-spacing: var(--track-caps); }
.pay-due strong { font: 750 44px/1.05 var(--font-display); letter-spacing: -.04em; color: var(--crema); margin-top: 2px; }
.methods { gap: 3px; padding: 4px; border-radius: 24px; background: rgba(0, 0, 0, .32); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.method { min-height: 58px; border-radius: 20px; background: none; box-shadow: none; color: var(--muted); font-weight: 650; transition: background-color var(--dur) var(--ease-out), color var(--dur) ease, box-shadow var(--dur) ease, transform var(--dur-fast) var(--ease-out); }
.method:hover:not(.active) { color: var(--ink-2); }
.method.active { background: #3A3430; color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 4px 14px rgba(0, 0, 0, .4); }
.method.active .ico { color: var(--accent); }
.cash-box { gap: 14px; margin-top: 16px; }
.recv, .change { border-radius: 20px; padding: 12px 16px; }
.recv { background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1.5px rgba(200, 129, 74, .5); }
.recv.fresh { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.recv span, .change span { font-size: 11.5px; font-weight: 650; letter-spacing: var(--track-caps); text-transform: uppercase; }
.recv strong, .change strong { font: 750 30px/1.1 var(--font-display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.change.big strong { font-size: 40px; }
.keypad { gap: 8px; }
.key {
  height: 56px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), inset 0 1px 0 rgba(255, 255, 255, .06);
  font: 550 25px/1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}
.key:hover { background: rgba(255, 255, 255, .09); }
.key:active { background: rgba(255, 255, 255, .16); transform: scale(.96); }
.key-fn { background: none; box-shadow: none; }
.quick button { border-radius: var(--radius-pill); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); font-weight: 650; }
.quick button.active { background: var(--accent-soft); color: var(--crema); box-shadow: inset 0 0 0 1.5px var(--accent); }
.method-note { border-radius: 20px; background: rgba(255, 255, 255, .04); }
.pickup { border-radius: 22px; background: radial-gradient(120% 160% at 0% 0%, rgba(200, 129, 74, .3), rgba(200, 129, 74, .08) 70%); color: var(--crema); box-shadow: inset 0 0 0 1px rgba(200, 129, 74, .35); }
.pickup strong { font-size: 52px; font-weight: 800; letter-spacing: -.045em; color: var(--milk); }
.paid-msg { font-size: 22px; font-weight: 700; letter-spacing: -.022em; }
.tp { border-radius: 20px; background: var(--moka-2); box-shadow: var(--rim); }
.tp b { font-weight: 750; letter-spacing: -.03em; }
.tp.sel { box-shadow: inset 0 0 0 2px var(--accent); }
.opt span { border-radius: var(--radius-pill); padding: 0 16px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.opt input:checked + span { background: var(--accent-soft); color: var(--crema); box-shadow: inset 0 0 0 1.5px var(--accent); }
.qa-btn { border-radius: 18px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.qa-btn:hover { background: rgba(255, 255, 255, .07); }
.mm-icon { border-radius: 30%; width: 64px; height: 64px; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .12), transparent 60%), var(--accent-soft); color: var(--crema); }
.module-modal h2 { font-size: 26px; letter-spacing: -.025em; }

/* ---- Assistants plein écran : flux de configuration façon Apple ---- */
.wiz { background: radial-gradient(1000px 560px at 50% -14%, rgba(200, 129, 74, .2), rgba(200, 129, 74, 0) 62%), var(--espresso); }
.wiz-top {
  padding: 16px 28px 14px; gap: 12px 18px; border-bottom: 0;
  background: rgba(22, 19, 17, .6); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 -1px 0 var(--glass-line);
}
.wiz-title h1 { font: 700 17px/1.2 var(--font-display); letter-spacing: -.015em; }
.wiz-ic { border-radius: 30%; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .14), transparent 60%), var(--accent-soft); color: var(--crema); box-shadow: inset 0 0 0 1px rgba(200, 129, 74, .3); }
.wiz-count { font-size: 12px; font-weight: 650; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.wiz-bar { gap: 8px; }
.wiz-bar li { font-size: 12px; font-weight: 600; }
.wiz-bar i { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.wiz-bar i::after { background: var(--accent-grad); border-radius: inherit; transition: transform var(--dur-slow) var(--ease-out); }
.wiz-bar li.cur i::after { opacity: 1; }
.wiz-bar li.cur span { color: var(--ink); }
.wiz-body { padding: 44px 28px 40px; }
.wiz-pane { max-width: 900px; animation-duration: .22s; animation-timing-function: var(--ease-out); }
@keyframes wizin { from { opacity: 0; transform: translateX(18px); } }
@keyframes wizinback { from { opacity: 0; transform: translateX(-18px); } }
.wiz-h { font: 750 38px/1.08 var(--font-display); letter-spacing: -.035em; text-wrap: balance; }
.wiz-h small { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.wiz-center { gap: 18px; }
.wiz-wide { gap: 18px; }
.wiz-foot {
  padding: 16px 28px calc(16px + env(safe-area-inset-bottom)); border-top: 0;
  background: rgba(22, 19, 17, .66); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 var(--glass-line);
}
.wiz-foot .btn-lg { min-width: 168px; min-height: 56px; }
.wiz-sp { width: 168px; }
.wiz-who { padding: 18px 26px 18px 18px; border-radius: 28px; background: var(--card-grad), var(--moka); box-shadow: inset 0 0 0 1.5px var(--accent), 0 18px 40px rgba(0, 0, 0, .35); }
.wiz-who.no { box-shadow: inset 0 0 0 1.5px var(--danger); }
.wiz-who strong { font-size: 24px; letter-spacing: -.022em; }
.wiz-kp-step { grid-template-columns: minmax(0, 1fr) minmax(300px, 372px); gap: 40px; }
.wiz-kp-info { gap: 18px; }
.wiz-read { padding: 18px 22px; border-radius: 26px; background: var(--card-grad), var(--moka); box-shadow: inset 0 0 0 1.5px rgba(200, 129, 74, .65), 0 18px 40px rgba(0, 0, 0, .3); }
.wiz-read span { font-size: 11.5px; font-weight: 650; letter-spacing: var(--track-caps); }
.wiz-read strong { font: 750 56px/1.05 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.wiz-read.fresh strong { color: var(--ink); }
.wiz-read.empty { box-shadow: var(--rim); }
.wiz-read:not(.fresh) strong::after { background: var(--accent); width: 3px; border-radius: 2px; }
.wiz-keypad { gap: 12px; }
.wiz-keypad .key { height: 72px; font-size: 30px; font-weight: 500; }
.wiz-blind, .wb-prog { border-radius: 18px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.wiz-recap { border-radius: 26px; background: var(--card-grad), var(--moka); box-shadow: var(--rim); }
.wiz-recap > div { padding: 15px 22px; border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); }
.wiz-recap > div:last-child { box-shadow: none; }
.wiz-recap dd { font-variant-numeric: tabular-nums; }
.wiz-recap .big dd { font-size: 32px; font-weight: 750; letter-spacing: -.035em; color: var(--crema); }
.wb-row { border-radius: 22px; background: var(--card-grad), var(--moka); box-shadow: var(--rim); padding: 14px 16px 14px 20px; }
.wb-row.carried { box-shadow: inset 0 0 0 1.5px rgba(231, 172, 85, .45); background: linear-gradient(90deg, var(--warn-soft), transparent 70%), var(--moka); }
.wb-row.paid { box-shadow: inset 0 0 0 1px rgba(95, 189, 136, .4); background: linear-gradient(90deg, var(--ok-soft), transparent 70%), var(--moka); }
.wb-amt { font-weight: 750; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.wb-ok { border-radius: var(--radius-pill); }
.wiz-allset { border-radius: 24px; padding: 20px 22px; }
.wiz-note { border-radius: 22px; padding: 16px 18px; }
/* Résultat : l'écart de caisse est LE moment */
.wiz-result { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
.wiz-res-main { gap: 18px; }
.wiz-res-z { font-size: 11.5px; font-weight: 650; letter-spacing: var(--track-caps); color: var(--crema); }
.wiz-reveal {
  position: relative; overflow: hidden; padding: 30px 30px 28px; border-radius: 30px; gap: 6px;
  animation: reveal .62s var(--ease-out) .1s both;
}
.wiz-reveal::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 140%; border-radius: 50%; background: radial-gradient(closest-side, currentColor, transparent); opacity: .16; pointer-events: none; }
.wiz-reveal > * { position: relative; }
.wiz-reveal > span { font-size: 12px; font-weight: 650; letter-spacing: var(--track-caps); }
.wiz-reveal strong { font: 800 76px/1 var(--font-display); letter-spacing: -.05em; margin: 6px 0 4px; }
.wiz-reveal small { font-size: 14px; font-weight: 600; opacity: .9; }
.wiz-reveal.zt-ok { background: linear-gradient(150deg, rgba(95, 189, 136, .26), rgba(95, 189, 136, .07) 70%), var(--moka); box-shadow: inset 0 0 0 1px rgba(95, 189, 136, .4), 0 24px 60px rgba(0, 0, 0, .4); }
.wiz-reveal.zt-warn { background: linear-gradient(150deg, rgba(231, 172, 85, .28), rgba(231, 172, 85, .07) 70%), var(--moka); box-shadow: inset 0 0 0 1px rgba(231, 172, 85, .42), 0 24px 60px rgba(0, 0, 0, .4); }
.wiz-reveal.zt-danger { background: linear-gradient(150deg, rgba(239, 115, 91, .3), rgba(239, 115, 91, .07) 70%), var(--moka); box-shadow: inset 0 0 0 1px rgba(239, 115, 91, .45), 0 24px 60px rgba(0, 0, 0, .4); }
@keyframes reveal { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.z-cf-grid { gap: 10px; }
.z-cf-grid > div { border-radius: 18px; padding: 12px 14px; background: var(--moka); box-shadow: var(--rim); }
.z-cf-grid strong { font-weight: 750; letter-spacing: -.025em; font-variant-numeric: tabular-nums; font-size: 19px; }
.wiz-cf-box { border-radius: var(--radius-xl); padding: 26px; }
.wiz-confirm { background: rgba(8, 7, 6, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (max-width: 1100px) {
  .wiz-kp-step { grid-template-columns: minmax(0, 1fr) 310px; gap: 26px; }
  .wiz-result { grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; }
  .wiz-reveal strong { font-size: 60px; }
  .wiz-read strong { font-size: 46px; }
  .wiz-h { font-size: 32px; }
}
@media (max-width: 960px) {
  .wiz-top { padding: 12px 16px 10px; }
  .wiz-body { padding: 26px 16px 24px; }
  .wiz-foot { padding: 12px 16px; }
  .wiz-foot .btn-lg { min-width: 0; }
  .wiz-sp { width: 0; }
  .wiz-kp-step { grid-template-columns: minmax(0, 1fr) 280px; }
  .wiz-read strong { font-size: 38px; }
  .wiz-keypad .key { height: 58px; font-size: 25px; }
  .wiz-result { grid-template-columns: minmax(0, 1fr); }
  .wiz-reveal strong { font-size: 56px; }
  .wiz-h { font-size: 28px; }
}
@media (max-height: 760px) {
  .wiz-body { padding-top: 26px; padding-bottom: 22px; }
  .wiz-keypad .key { height: 58px; }
  .wiz-read { padding: 12px 18px; }
  .wiz-read strong { font-size: 44px; }
  .wiz-h { font-size: 32px; }
}

/* ---------- Adaptation tablettes plus étroites (ou démo côte à côte) ---------- */
@media (max-width: 1180px) {
  .clock { display: none; }
  .legend { display: none; }
  .fz-head .legend { display: inline-flex; }
}
@media (max-width: 1100px) {
  .register { grid-template-columns: minmax(0, 1fr) 320px; }
  .bills { grid-template-columns: minmax(0, 1fr) 330px; }
  .panels { grid-template-columns: 1fr; }
  .srow { grid-template-columns: 46px minmax(0, 1fr) 150px; }
  .srow .avail { grid-column: 2 / -1; justify-content: flex-start; }
  .board { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 10px 12px 12px; }
  .board-tools { padding: 12px 12px 0; }
  .board-hint span { display: none; }
  .col-body { padding: 2px 8px 10px; }
  .ocard { padding: 10px; }
  .ot-eta { display: none; }
  .oc-head .badge.src-pos { display: none; }
  .bill-head, .bill-lines, .bill-foot { padding-left: 14px; padding-right: 14px; }
  .foot-actions { gap: 8px; }
  .foot-actions .btn-lg { padding: 0 12px; font-size: 15px; gap: 6px; }
  .foot-actions .btn.sq { width: 48px; padding: 0; }
  .foot-actions .btn.grow { min-width: 0; }
  .ft { --k: .86; }
  .ft-n { font-size: 17px; }
  .tk-tot { padding: 10px 12px; }
  .tk-tot strong { font-size: 15px; }
  .tv-hint { display: none; }
  .fe-def span { display: none; }
  .fe-def { width: 44px; padding: 0; justify-content: center; flex: none; }
  .srow.own { grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-areas: "ic main price" "ic avail acts"; row-gap: 4px; }
  .srow.own .avail { grid-column: auto; justify-content: flex-start; }
  .closing { grid-template-columns: minmax(0, 1fr) 320px; }
  .z-diff strong { font-size: 23px; }
  .z-tot { padding: 14px 16px 16px; }
  .zh-row { grid-template-columns: 120px minmax(0, 1fr) 76px 120px auto 18px; gap: 10px; }
  .z-sum-body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
  .z-kpis { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .z-kpi.accent strong { font-size: 18px; }
  .z-kpi { display: grid; gap: 0; }
  .pe-body { grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 76px minmax(0, 1fr); }
  .rail { padding: 10px 5px; }
  .nav-btn { font-size: 10px; }
  .nav-btn.active::before { left: -5px; }
  .rail-logo .logo { font-size: 11px; }
  .rail-sep { margin: 8px 2px 4px; letter-spacing: .08em; }
  .register { grid-template-columns: minmax(0, 1fr) 290px; }
  .products { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); padding: 8px 12px 20px; }
  .catalog-head { padding: 12px 12px 6px; }
  .prod { min-height: 128px; padding: 10px; }
  .ticket-head, .ticket-foot { padding-left: 12px; padding-right: 12px; }
  .ticket-lines { padding: 2px 12px; }
  .total-row strong { font-size: 24px; }
  .total-row > span { white-space: nowrap; font-size: 14px; }
  .bills { grid-template-columns: minmax(0, 1fr) 300px; }
  .tables-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); padding: 12px 14px 16px; }
  .tables-summary { padding: 14px 14px 4px; }
  .paid-layout { grid-template-columns: 1fr; }
  .paper { max-height: none; }
  .conn > span { display: none; }
  .topbar { padding: 0 10px 0 16px; gap: 6px; }
  .topbar h1 { font-size: 17px; }
  .col-head { padding: 12px 10px 8px; font-size: 14px; gap: 7px; }
  .oc-head .badge { display: none; }
  .ocard .oc-actions .btn { padding: 0 10px; }
  .kpi { padding: 14px; }
  .kpi .value { font-size: 23px; }
  .dash, .stock, .settings { padding: 14px 14px 24px; }
  .srow { grid-template-columns: 46px minmax(0, 1fr) 140px; gap: 10px; }
  .floor { padding: 10px 14px 16px; gap: 12px; }
  .ft { --k: .8; }
  .fz-head .legend { display: none; }
  .fe-open span { display: none; }
  .fe-open { width: 44px; padding: 0; justify-content: center; }
  .tk-view { padding: 10px 14px 0; gap: 10px; }
  .tv-seg button { padding: 0 10px; gap: 6px; }
  .tk-tots { gap: 8px; }
  .tk-tl .ico { display: none; }
  .tk-row { grid-template-columns: 68px minmax(0, 1fr) auto auto; gap: 10px; padding: 8px 12px; }
  .tk-m { padding: 0 7px; }
  .tk-m span { display: none; }
  .tk-amt { min-width: 0; }
  .tk-count { display: none; }
  .shift-pill em { display: none; }
  .closing { grid-template-columns: minmax(0, 1fr) 290px; }
  .z-main { padding: 12px 12px 20px; gap: 10px; }
  .z-next { display: none; }
  .z-sum-body { grid-template-columns: minmax(0, 1fr); }
  .z-kpi { padding: 6px 10px; }
  .z-kpi strong, .z-kpi.accent strong { font-size: 16px; }
  .z-card { padding: 14px; }
  .z-warn { flex-wrap: wrap; }
  .z-warn > span { flex: 1 1 200px; }
  .z-tot { padding: 12px 14px 14px; gap: 10px; }
  .z-diff strong { font-size: 21px; }
  .z-line.strong b { font-size: 17px; }
  .zh { padding: 12px 14px 0; }
  .zh .sum-chip { margin-left: 0; }
  .zh-row { grid-template-columns: 104px minmax(0, 1fr) 112px auto; gap: 10px; padding: 8px 12px; }
  .zh-tk, .zh-go { display: none; }
  .z-cf-grid strong { font-size: 15px; }
}
@media (max-width: 860px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alert-pill { padding: 0 12px; }
  .z-cf-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 760px) {
  .nav-btn { padding: 6px 2px; min-height: 50px; }
  .nav-btn.locked { min-height: 46px; }
  .me-role, .me-lock { display: none; }
  .rail-foot .av { width: 34px; height: 34px; font-size: 15px; }
  .rail-logo { padding-bottom: 6px; }
  .key { height: 48px; }
  .pay-layer .layer-head { padding-top: 14px; }
  .pay-layer .layer-foot { padding-top: 10px; padding-bottom: 14px; }
}
@media (hover: none) { .kbd { display: none; } }
@media (max-width: 760px) {
  .pe-body { grid-template-columns: minmax(0, 1fr); }
  .pe-side { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .ocard.is-new, .tcard.ts-waiting, .t-late .ot-bar i, .live-dot, .pulse, .boot-dot, .ft, .pin-dots.busy span { animation: none !important; }
  .ot-bar i, .bar, .htrack i, .ft { transition: none !important; }
}
