/* ORYKA — design system (§19 et planche graphique) : Inter, bleu nuit / vert pétrole / bleu ciel. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format("woff2"); }

:root {
  /* Couleurs principales */
  --navy: #0F2D5B; --teal: #00B89B; --sky: #3B82F6;
  /* Couleurs secondaires */
  --gold: #F4B400; --coral: #FF6B6B; --violet: #7C3AED; --slate: #6B7280;
  /* Thème clair (par défaut) */
  --bg: #F5F7FA; --surface: #FFFFFF; --surface-2: #F5F7FA; --text: #101827; --muted: #6B7280; --line: #E5E7EB;
  --side: #0F2D5B; --side-text: #C9D3E6; --side-active: #3B82F6;
  --teal-soft: rgba(0,184,155,.12); --sky-soft: rgba(59,130,246,.12); --gold-soft: rgba(244,180,0,.16);
  --coral-soft: rgba(255,107,107,.14); --violet-soft: rgba(124,58,237,.12); --slate-soft: rgba(107,114,128,.14);
  --shadow: 0 1px 2px rgba(16,24,39,.06), 0 1px 3px rgba(16,24,39,.08);
  --radius: 12px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #101827; --surface: #172238; --surface-2: #1D2A44; --text: #F2F4F7; --muted: #9AA4B5; --line: #26334D;
  --side: #0B1730; --side-text: #AEB9CF; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 14px/1.4 Inter, system-ui, sans-serif; background: var(--bg); color: var(--text); }
button { font: inherit; cursor: pointer; border: 0; border-radius: 10px; color: inherit; background: none; }
button:disabled { opacity: .5; cursor: not-allowed; }
input, select, textarea { font: inherit; color: var(--text); }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

/* ---------- Mise en page : barre latérale + contenu ---------- */
.app { display: grid; grid-template-columns: 228px 1fr; height: 100vh; }
.side { background: var(--side); color: var(--side-text); display: flex; flex-direction: column; padding: 18px 12px; gap: 4px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; font-weight: 700; font-size: 20px; letter-spacing: .5px; }
.brand img { height: 30px; }
.nav { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px; color: var(--side-text); text-align: left; font-weight: 500; }
.nav:hover:not(:disabled) { background: rgba(255,255,255,.06); color: #fff; }
.side .nav.on, .side .nav.on:hover { background: var(--side-active); color: #fff; }
.nav .soon { margin-left: auto; font-size: 10px; font-weight: 600; opacity: .7; border: 1px solid currentColor; border-radius: 999px; padding: 1px 6px; }
.nav .count { margin-left: auto; background: var(--coral); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 6px; }
.conn { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 6px 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.dot.ok { background: var(--teal); } .dot.ko { background: var(--coral); }

.main { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.top { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; color: var(--muted); }
.search input { border: 0; outline: 0; background: transparent; width: 100%; padding: 10px 0; }
.spacer { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 500; white-space: nowrap; }
.chip:hover { border-color: var(--sky); }
.chip.warn { background: var(--gold); border-color: var(--gold); color: #101827; font-weight: 600; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.menu { position: absolute; top: 58px; right: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,39,.16); padding: 6px; z-index: 20; min-width: 220px; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; text-align: left; }
.menu button:hover { background: var(--surface-2); }
.view { flex: 1; min-height: 0; display: flex; }

/* ---------- Caisse ---------- */
.catalog { flex: 1; min-width: 0; padding: 16px 20px; overflow-y: auto; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { padding: 7px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; }
.tab.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-align: left; display: flex; flex-direction: column; }
.card:hover { border-color: var(--teal); }
.thumb { aspect-ratio: 4/3; display: grid; place-items: center; font-size: 30px; font-weight: 700; color: var(--navy); background: var(--sky-soft); }
.thumb.kitchen { background: var(--gold-soft); } .thumb.bar { background: var(--teal-soft); }
:root[data-theme="dark"] .thumb { color: #fff; }
.card .body { padding: 10px 12px 12px; }
.card .name { font-weight: 600; }
.card .price { color: var(--teal); font-weight: 700; margin-top: 2px; }
.empty { color: var(--muted); text-align: center; padding: 30px 10px; }

.cart { width: 360px; flex: none; background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; }
.cart-head h2 { margin: 0; font-size: 16px; }
.cart-sub { padding: 0 18px; color: var(--muted); font-size: 13px; }
.lines { flex: 1; overflow-y: auto; padding: 4px 18px; }
.line { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line .mini-thumb { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; background: var(--sky-soft); color: var(--navy); flex: none; }
:root[data-theme="dark"] .line .mini-thumb { color: #fff; }
.line .n { flex: 1; min-width: 0; }
.line .n b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line .n small { color: var(--muted); }
.line .amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; }
.cart-foot { padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.total .v { font-size: 24px; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.method { padding: 10px 6px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 13px; }
.method.on[data-m="cash"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.method.on[data-m="mobile_money"] { background: var(--sky-soft); border-color: var(--sky); color: var(--sky); }
.method.on[data-m="card"] { background: var(--teal-soft); border-color: var(--teal); color: var(--teal); }
.btn { padding: 12px 16px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover:not(:disabled) { filter: brightness(.95); }
.btn-secondary { background: var(--surface); color: var(--sky); border: 1px solid var(--sky); }
.btn-tertiary { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-danger { background: var(--coral); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px; font-size: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.inline-msg { margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13px; }
.inline-msg.ok { background: var(--teal-soft); color: var(--teal); }
.inline-msg.err { background: var(--coral-soft); color: var(--coral); }

/* ---------- Badges et statuts ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.b-teal { background: var(--teal-soft); color: var(--teal); } .b-sky { background: var(--sky-soft); color: var(--sky); }
.b-gold { background: var(--gold-soft); color: #A77A00; } .b-coral { background: var(--coral-soft); color: #E04848; }
.b-violet { background: var(--violet-soft); color: var(--violet); } .b-slate { background: var(--slate-soft); color: var(--slate); }
:root[data-theme="dark"] .b-gold { color: var(--gold); } :root[data-theme="dark"] .b-coral { color: var(--coral); }

/* ---------- Tables ---------- */
.floor { flex: 1; min-width: 0; padding: 16px 20px; overflow-y: auto; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tbl { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: left; min-height: 110px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.tbl .tn { font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.tbl .meta { color: var(--muted); font-size: 12px; }
.tbl .amt { margin-top: auto; font-weight: 700; }
.tbl.free { border-color: var(--line); }
.tbl.occupied { border-color: var(--sky); background: linear-gradient(0deg, var(--sky-soft), var(--sky-soft)), var(--surface); }
.tbl.bill_requested { border-color: var(--gold); background: linear-gradient(0deg, var(--gold-soft), var(--gold-soft)), var(--surface); }
.tbl.to_clean { border-color: var(--slate); background: linear-gradient(0deg, var(--slate-soft), var(--slate-soft)), var(--surface); }
.tbl.reserved { border-color: var(--violet); background: linear-gradient(0deg, var(--violet-soft), var(--violet-soft)), var(--surface); }
.tbl.sel { outline: 3px solid var(--teal); outline-offset: 2px; }
.order-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.item-actions { display: flex; gap: 6px; margin-top: 4px; }
.mini { padding: 3px 9px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.mini.ok { border-color: var(--teal); color: var(--teal); } .mini.no { border-color: var(--coral); color: var(--coral); }
.strike { text-decoration: line-through; opacity: .6; }

/* ---------- Cuisine / bar ---------- */
.kds { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 16px 20px; min-height: 0; }
.col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 0; }
.col h3 { margin: 0; padding: 12px 14px; font-size: 14px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.col .stack { overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.ticket header { display: flex; justify-content: space-between; padding: 10px 12px; border-bottom: 1px dashed var(--line); font-weight: 700; }
.ticket header small { color: var(--muted); font-weight: 500; }
.ticket header .late { color: var(--coral); }
.ticket .it { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.ticket .it b { font-size: 15px; }
.ticket .it .note { color: var(--coral); font-size: 12px; display: block; }
.ticket .it .go { margin-left: auto; }

/* ---------- Fenêtres, connexion, notifications ---------- */
.overlay { position: fixed; inset: 0; background: rgba(16,24,39,.55); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 30; }
.modal { background: var(--surface); color: var(--text); border-radius: 16px; padding: 22px; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.modal.wide { max-width: 860px; }
.modal h3 { margin: 0 0 4px; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.modal .muted, .muted { color: var(--muted); font-size: 13px; }
.modal label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; font-weight: 500; }
.field { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.field:focus, .search:focus-within { outline: 2px solid var(--sky); outline-offset: -1px; }
.big { font-size: 28px; font-weight: 700; margin: 6px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips button { padding: 6px 10px; font-size: 13px; border: 1px solid var(--line); background: var(--surface-2); }
.change { display: flex; justify-content: space-between; font-weight: 600; margin-top: 12px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; }
.report { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.report td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.report td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.report tr.sum td { font-weight: 700; }
.neg { color: var(--coral); } .pos { color: var(--teal); }
.list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.list > button { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-align: left; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); }
.list > button:hover { border-color: var(--teal); }
.list small { color: var(--muted); }
.qtyin { width: 64px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); text-align: right; }

.login { position: fixed; inset: 0; background: var(--navy); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 40; }
.login-card { background: var(--surface); border-radius: 18px; padding: 30px; width: 100%; max-width: 390px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login-brand { text-align: center; margin-bottom: 18px; }
.login-brand img { height: 64px; }
.login-brand .w { font-size: 30px; font-weight: 700; color: var(--navy); letter-spacing: 1px; }
:root[data-theme="dark"] .login-brand .w { color: #fff; }
.login-brand .s { font-size: 11px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 10px; margin-bottom: 6px; }
.seg button { padding: 8px; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }
.hint { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; }

.toasts { position: fixed; top: 16px; right: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 50; width: 340px; max-width: calc(100vw - 32px); }
.toast { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: 0 10px 30px rgba(16,24,39,.15); }
.toast .ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.toast .ic svg.i { width: 16px; height: 16px; stroke-width: 2.4; }
.toast.success .ic { background: var(--teal); } .toast.info .ic { background: var(--sky); }
.toast.warning .ic { background: var(--gold); } .toast.error .ic { background: var(--coral); }
.toast b { display: block; } .toast small { color: var(--muted); }
.toast .x { margin-left: auto; color: var(--muted); padding: 2px; }

@media (max-width: 1100px) { .app { grid-template-columns: 72px 1fr; } .side .lbl, .side .soon, .brand span, .conn span:not(.dot) { display: none; } .nav { justify-content: center; } .cart { width: 320px; } }
@media (max-width: 760px) { .app { grid-template-columns: 1fr; } .side { display: none; } .view { flex-direction: column; overflow-y: auto; } .cart { width: auto; border-left: 0; } .kds { grid-template-columns: 1fr; } }

/* =====================================================================
   Dynamisme : survols, transitions et micro-interactions
   ===================================================================== */
:root { --ease: cubic-bezier(.2, .8, .2, 1); --shadow-lg: 0 14px 30px rgba(15,45,91,.14), 0 4px 10px rgba(15,45,91,.08); }
.flabel { display: block; margin: 12px 0 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
kbd { font: 600 11px Inter, sans-serif; padding: 2px 6px; border-radius: 6px; border: 1px solid currentColor; opacity: .6; margin-left: 6px; }
.search kbd { color: var(--muted); }
.b-dark { background: var(--slate); color: #fff; }

/* Boutons : survol, appui, onde */
.btn, .method, .tab, .chip, .mini, .nav, .card, .tbl, .qty button, .chips button, .list > button, .seg button, .menu button {
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), background-color .2s, border-color .2s, color .2s, filter .2s;
  position: relative;
}
/* L'onde reste dans le bouton ; les éléments à info-bulle ne coupent pas leur bulle. */
.btn, .method, .tab, .mini, .card, .tbl, .list > button, .qty button { overflow: hidden; }
.btn:hover:not(:disabled), .chip:hover, .tab:hover:not(.on) { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn:active:not(:disabled), .method:active, .tab:active, .mini:active, .qty button:active, .card:active { transform: scale(.97); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 24px rgba(0,184,155,.35); }
.btn-danger:hover:not(:disabled) { box-shadow: 0 10px 24px rgba(255,107,107,.35); }
.method:hover:not(.on) { border-color: var(--teal); color: var(--teal); }
.mini:hover { border-color: var(--sky); color: var(--sky); }
.mini.ok:hover { background: var(--teal); color: #fff; } .mini.no:hover { background: var(--coral); color: #fff; }
.qty button:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .25; pointer-events: none; animation: ripple .55s var(--ease); }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* Barre latérale : indicateur glissant et icône animée */
.side .nav::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px; background: var(--teal); transform: scaleY(0); transition: transform .25s var(--ease); }
.side .nav:hover:not(:disabled)::before { transform: scaleY(1); }
.side .nav.on::before { transform: scaleY(0); }
.side .nav:hover:not(:disabled) svg.i { transform: translateX(3px); }
.side .nav svg.i { transition: transform .25s var(--ease); }
.brand img { transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }

/* Cartes produit : soulèvement, zoom, bouton « Ajouter » qui apparaît */
.card { animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.card .thumb { transition: transform .35s var(--ease), filter .35s; }
.card:hover .thumb { transform: scale(1.06); filter: saturate(1.2); }
.card .add { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; transform: scale(0) rotate(-90deg); transition: transform .25s var(--ease); box-shadow: 0 6px 16px rgba(0,184,155,.4); }
.card .add svg.i { width: 18px; height: 18px; stroke-width: 2.4; }
.card:hover .add { transform: scale(1) rotate(0); }
.card .tag { position: absolute; left: 10px; top: 10px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.85); color: var(--navy); }
:root[data-theme="dark"] .card .tag { background: rgba(16,24,39,.7); color: #fff; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Produit qui « vole » vers le panier */
.fly { position: fixed; z-index: 60; border-radius: 12px; pointer-events: none; display: grid; place-items: center; font-weight: 700; color: var(--navy);
  background: var(--teal-soft); box-shadow: var(--shadow-lg); }

/* Panier : lignes qui glissent, compteur qui rebondit, total animé */
.line { animation: slideIn .3s var(--ease) both; }
.line.flash { animation: slideIn .3s var(--ease) both, flash 1s ease .1s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { background: var(--teal-soft); } 100% { background: transparent; } }
.bump { animation: bump .4s var(--ease); }
@keyframes bump { 30% { transform: scale(1.18); } 60% { transform: scale(.96); } }
.total .v { transition: color .3s; font-variant-numeric: tabular-nums; }
.total .v.up { color: var(--teal); }
.cart-head h2 { display: flex; align-items: center; gap: 8px; }
.cart-head h2 svg.i { color: var(--teal); }
#payBtn:not(:disabled) { animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px rgba(0,184,155,.15); } }

/* Vues et fenêtres : apparition douce */
.view.enter > * { animation: fadeUp .35s var(--ease) both; }
.view.enter > *:nth-child(2) { animation-delay: .06s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.overlay:not([hidden]) { animation: fade .2s ease both; backdrop-filter: blur(3px); }
.overlay:not([hidden]) .modal { animation: pop .28s var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.menu:not([hidden]) { animation: pop .18s var(--ease) both; transform-origin: top right; }

/* Tables : soulèvement, pulsation « addition demandée » et « plat prêt » */
.tbl { animation: rise .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
.tbl:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tbl.bill_requested { animation: rise .4s var(--ease) both, ring 1.8s ease-in-out infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 6px var(--gold-soft); } }
.tbl .badge.b-teal { animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .55; } }

/* Cuisine : arrivée des tickets, alerte de retard */
.ticket { animation: rise .35s var(--ease) both; transition: transform .2s var(--ease), box-shadow .2s; }
.ticket:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ticket.late { border-color: var(--coral); animation: rise .35s var(--ease) both, alarm 2s ease-in-out infinite; }
@keyframes alarm { 50% { box-shadow: 0 0 0 4px var(--coral-soft); } }
.nav .count:not([hidden]) { animation: bump .5s var(--ease); }

/* Notifications : glissement + barre de temps */
.toast { animation: toastIn .35s var(--ease) both; position: relative; overflow: hidden; }
.toast.out { animation: toastOut .3s ease both; }
.toast .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: currentColor; opacity: .35; animation: shrink linear both; }
.toast.success .bar { color: var(--teal); } .toast.info .bar { color: var(--sky); } .toast.warning .bar { color: var(--gold); } .toast.error .bar { color: var(--coral); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
@keyframes shrink { from { width: 100%; } to { width: 0; } }

/* Info-bulles au survol */
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap;
  background: #101827; color: #fff; font-size: 12px; font-weight: 500; padding: 5px 9px; border-radius: 7px; z-index: 70; pointer-events: none; animation: fade .15s ease; }
.side [data-tip]:hover::after { left: calc(100% + 8px); top: 50%; transform: translateY(-50%); }

/* Horloge, état temps réel, chargement */
.clock { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; padding: 0 6px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Connexion : halo animé et logo flottant */
.login { overflow: hidden; }
.login-glow { position: absolute; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, rgba(0,184,155,.35), rgba(59,130,246,.15) 45%, transparent 70%);
  animation: drift 12s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(-30%, -20%); } to { transform: translate(30%, 20%); } }
.login-card { position: relative; animation: pop .45s var(--ease) both; }
.float { animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* Respect du réglage système « réduire les animations » */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Produits et Stocks (WIN-STOCK-001), photos et badges de stock
   ===================================================================== */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 18px 20px 12px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 22px; }
.page-head p { margin: 4px 0 0; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.table-wrap { flex: 1; overflow: auto; margin: 0 20px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { position: sticky; top: 0; background: var(--surface-2); text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); z-index: 1; }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr { transition: background-color .15s; animation: fadeUp .3s var(--ease) both; animation-delay: calc(var(--i, 0) * 18ms); }
table.data tbody tr:hover { background: var(--teal-soft); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .row-actions { display: flex; gap: 6px; justify-content: flex-end; opacity: .55; transition: opacity .2s; }
table.data tr:hover .row-actions { opacity: 1; }
.pthumb { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; background: var(--sky-soft); color: var(--navy); font-weight: 700; font-size: 13px; overflow: hidden; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; }
.policy { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: var(--muted); }
.policy .field { width: auto; padding: 8px 10px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 12px; padding: 0 20px 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s; animation: rise .4s var(--ease) both; }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.kpi b { display: block; font-size: 26px; margin-top: 2px; }
.kpi.warn b { color: #A77A00; } .kpi.bad b { color: var(--coral); } .kpi.good b { color: var(--teal); }
:root[data-theme="dark"] .kpi.warn b { color: var(--gold); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-grid .full { grid-column: 1 / -1; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin-top: 14px; font-weight: 500; }
.switch input { appearance: none; width: 40px; height: 22px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; cursor: pointer; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked { background: var(--teal); }
.switch input:checked::after { transform: translateX(18px); }
.dropzone { margin-top: 6px; border: 2px dashed var(--line); border-radius: 12px; padding: 14px; display: flex; gap: 14px; align-items: center; cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.over { border-color: var(--teal); background: var(--teal-soft); }
.dropzone .pthumb { width: 64px; height: 64px; }

/* Photos et badges sur les cartes de la caisse */
.thumb.has-img { background: var(--surface-2); padding: 0; }
.thumb.has-img img { width: 100%; height: 100%; object-fit: cover; }
.card .stock { position: absolute; left: 10px; top: 36px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.card .stock.low { background: var(--gold); color: #101827; }
.card .stock.out { background: var(--coral); color: #fff; animation: blink 1.6s ease-in-out infinite; }
.card.out .thumb { filter: grayscale(.7); opacity: .75; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.scan-flash { animation: flash .8s ease; }
@media (max-width: 760px) { .kpis { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } }
table.data tr.is-out td:first-child { box-shadow: inset 3px 0 0 var(--coral); }
table.data tr.is-low td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.dropzone.busy { opacity: .6; pointer-events: none; }
label.switch, .modal label.switch { display: inline-flex; width: auto; }
.switch input { margin: 0; flex: none; }
.switches { display: flex; gap: 28px; flex-wrap: wrap; }

/* ---------- Clients et crédit client ---------- */
.cust-bar { padding: 0 16px 6px; }
.cust-pick { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1.5px dashed var(--line); border-radius: 10px; color: var(--muted); font-weight: 500; transition: border-color .2s, color .2s, background .2s; }
.cust-pick:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-soft); }
.cust-pick kbd { margin-left: auto; }
.cust-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--teal-soft); border: 1px solid transparent; animation: rise .3s var(--ease) both; }
.cust-chip .who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.cust-chip .who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cust-chip .who small { color: var(--muted); }
.icon-btn { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--surface); color: var(--coral); }
.icon-btn svg.i { width: 16px; height: 16px; }
.cav { width: 34px; height: 34px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--sky-soft); color: var(--navy); transition: transform .2s var(--ease); }
.cav.warn { background: var(--gold-soft); color: #7A5900; }
.cav.lg { width: 52px; height: 52px; font-size: 18px; }
tr:hover .cav { transform: scale(1.08); }
:root[data-theme="dark"] .cav { color: #fff; }
.cust-note { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 4px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.cust-note svg.i { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 2px; }
.cust-head { display: flex; gap: 14px; align-items: center; }
.searchbox { position: relative; margin-top: 12px; }
.searchbox svg.i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.searchbox .field { padding-left: 40px; }
.cust-list { max-height: 340px; overflow: auto; margin-top: 10px; }
.cust-list button { animation: rise .3s var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms); }
.cust-line { display: flex; gap: 10px; align-items: center; text-align: left; }
.cust-list .right { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
b.link { cursor: pointer; transition: color .15s; }
b.link:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.kpis.mini { padding: 12px 0 4px; }
.kpis.mini .kpi b { font-size: 20px; }
.kpi small { display: block; margin-top: 2px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.modal h4 { margin: 16px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* ---------- Rapports ---------- */
.period { display: inline-flex; gap: 2px; background: var(--surface-2); padding: 4px; border-radius: 10px; border: 1px solid var(--line); }
.period button { padding: 7px 12px; border-radius: 7px; color: var(--muted); font-weight: 500; transition: background .2s, color .2s; }
.period button:hover { color: var(--text); }
.period button.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }
.field.date { width: auto; padding: 8px 10px; }
.kpis.kpis-4 { grid-template-columns: repeat(4, minmax(170px, 1fr)); }
.kpis-4 .kpi b { font-size: 22px; }
.kpi-note { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); padding: 2px 4px; }
.kpi-note svg.i { width: 16px; height: 16px; color: var(--gold); }
.rep-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; padding: 0 20px 20px; overflow: auto; }
.rep-grid .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; min-width: 0; animation: rise .45s var(--ease) both; }
.rep-grid .panel h3 { margin: 0 0 10px; font-size: 14px; }
.rep-grid .panel .report { margin-top: 0; }
.chart { height: 210px; }
.bars { display: flex; align-items: stretch; gap: 2px; height: 100%; padding-top: 18px; border-bottom: 1px solid var(--line); }
.bar-col { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; cursor: default; border-radius: 6px; transition: background .15s; }
.bar-col:hover { background: var(--surface-2); }
.rbar { width: min(70%, 34px); height: var(--h); min-height: 2px; background: var(--teal); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: grow .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 18ms); transition: filter .15s; }
.bar-col:hover .rbar { filter: brightness(1.12); }
.bar-lbl { position: absolute; bottom: -20px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.bar-peak { position: absolute; top: -18px; font-size: 11px; font-weight: 600; color: var(--text); white-space: nowrap; }
.chart { margin-bottom: 20px; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.rank { padding: 7px 0; animation: rise .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
.rank + .rank { border-top: 1px solid var(--line); }
.rank-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.rank-top span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-bar { height: 4px; border-radius: 4px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.rank-bar span { display: block; height: 100%; width: var(--w); background: var(--teal); border-radius: 4px; animation: widen .7s var(--ease) both; transform-origin: left; }
@keyframes widen { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 1100px) { .rep-grid { grid-template-columns: 1fr; } .kpis.kpis-4 { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { .rbar, .rank-bar span, .rank, .cust-list button { animation: none; } }
.rep-grid { flex: 1; min-height: 0; align-content: start; }
.cust-list button { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cust-list .cust-line { flex: 1; min-width: 0; }
.cust-list .right { flex: none; flex-direction: column; align-items: flex-end; }
.cust-list .badge { white-space: nowrap; }

/* ---------- Paramètres ---------- */
#setTabs .tab { display: inline-flex; align-items: center; gap: 7px; }
#setTabs .tab svg.i { width: 16px; height: 16px; }
.set-body { flex: 1; min-height: 0; overflow: auto; padding: 4px 20px 20px; }
.set-body.enter { animation: rise .35s var(--ease) both; }
.set-body .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 12px; animation: rise .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.set-body .panel h3 { margin: 0 0 10px; font-size: 15px; }
.set-body .panel h3 small { font-weight: 400; }
.set-body table.data { margin: 0 -18px -16px; width: calc(100% + 36px); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.panel-head h3 { margin: 0 !important; }
.set-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 12px; align-items: start; }
.ticket-preview { margin: 0; padding: 16px; background: #FFFDF7; color: #1d2433; border-radius: 6px; font: 12px/1.45 ui-monospace, Consolas, monospace; overflow: auto;
  box-shadow: 0 1px 0 #e9e4d6, 0 8px 24px rgba(15,45,91,.12); border-top: 3px dashed #e3dccb; border-bottom: 3px dashed #e3dccb; transition: transform .25s var(--ease); }
.ticket-preview:hover { transform: rotate(-.6deg) scale(1.01); }
.role-sum { display: block; margin-top: 6px; line-height: 1.4; }
tr.dim td, .tile.dim, .panel.dim { opacity: .55; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; animation: rise .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--teal); }
.tile-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); flex: none; }
.tile-ico svg.i { width: 20px; height: 20px; }
.tile-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tile-main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tchip { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 78px; height: 64px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface-2); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.tchip:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: var(--shadow); }
.tchip small { color: var(--muted); font-size: 11px; }
.tchip.st-occupied, .tchip.st-bill_requested { border-color: var(--sky); }
.tchip.off { border-style: dashed; opacity: .5; }
@media (max-width: 1100px) { .set-grid { grid-template-columns: 1fr; } }
.ticket-preview pre { margin: 0; font: inherit; white-space: pre; }
.ticket-preview img { display: block; margin: 0 auto 10px; max-width: 60%; max-height: 110px; filter: grayscale(1) contrast(1.15); }
.set-side { display: flex; flex-direction: column; gap: 0; }
.logo-box { width: 72px; height: 72px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--muted); }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-box svg.i { width: 28px; height: 28px; }
.btn-danger-soft { background: rgba(255,107,107,.12); color: var(--coral); display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn-danger-soft:hover { background: var(--coral); color: #fff; }
.btn-danger-soft svg.i { width: 16px; height: 16px; }
.tchip-wrap { position: relative; }
.tchip-del { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center;
  opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s var(--ease); box-shadow: var(--shadow); }
.tchip-del svg.i { width: 12px; height: 12px; stroke-width: 3; }
.tchip-wrap:hover .tchip-del, .tchip-del:focus-visible { opacity: 1; transform: scale(1); }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tpl { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2); text-align: left;
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.tpl:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tpl.on { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.tpl small { font-size: 11px; line-height: 1.3; }
.tpl-mini { margin: 0 0 6px; height: 150px; overflow: hidden; background: #FFFDF7; color: #1d2433; border-radius: 6px; padding: 8px 6px; font: 5.6px/1.35 ui-monospace, Consolas, monospace;
  white-space: pre; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
@media (max-width: 1300px) { .tpl-mini { font-size: 4.6px; } }

.card .thumb { position: relative; }
.card .thumb .stock { top: auto; bottom: 8px; left: 8px; font-size: 11px; line-height: 1.4; }

/* ---------- Remises et promotions ---------- */
.head-actions { display: flex; gap: 6px; }
.head-actions .mini { display: inline-flex; align-items: center; gap: 4px; }
.head-actions svg.i { width: 13px; height: 13px; }
.cart-disc { font-size: 13px; margin-bottom: 6px; animation: rise .3s var(--ease) both; }
.cart-disc > div { display: flex; justify-content: space-between; padding: 2px 0; }
.card .promo-tag { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; background: var(--coral); color: #fff; box-shadow: 0 4px 10px rgba(255,107,107,.35); max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .promo-tag svg.i { width: 11px; height: 11px; flex: none; }
.card .price s, .line s { color: var(--muted); font-weight: 400; font-size: .85em; margin-right: 2px; }
.promo-txt { color: var(--coral); font-weight: 600; }
.seg.disc-kind, .seg.pm-scope { display: inline-grid; grid-auto-flow: column; grid-template-columns: none; margin: 0 0 8px; }
.seg.pm-scope { display: grid; grid-auto-columns: 1fr; }
.disc-lines { display: flex; flex-direction: column; gap: 6px; max-height: 180px; overflow: auto; }
.disc-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 10px; background: var(--surface-2); border-radius: 10px; }
.approval { margin-top: 12px; padding: 12px; border-radius: 12px; background: rgba(244,180,0,.12); }
.approval-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.approval-head svg.i { width: 16px; height: 16px; color: #A77A00; }
.approval .row2 { margin-top: 6px; }
.promo-list button { animation: rise .3s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
.promo-list button.dim { opacity: .55; }
.pm-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px; max-height: 160px; overflow: auto; padding: 8px; background: var(--surface-2); border-radius: 10px; }
.pm-prod { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; font-size: 13px; color: var(--text) !important; cursor: pointer; }
.day-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.day-chips button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 500; transition: background .15s, color .15s; }
.day-chips button.on { background: var(--teal); border-color: var(--teal); color: #fff; }

.card .price s { display: block; line-height: 1.1; }
.card .promo-line { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--coral); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .promo-line svg.i { width: 12px; height: 12px; flex: none; }
.card .price s { display: inline; }
.disc-block { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.disc-title { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; }
.disc-title svg.i { width: 16px; height: 16px; color: var(--teal); }
.disc-title small { font-weight: 400; }
.coupon-msg { margin-top: 6px; font-size: 13px; display: flex; align-items: center; gap: 6px; min-height: 18px; }
.coupon-msg.ok { color: var(--teal); } .coupon-msg.err { color: var(--coral); }
.coupon-msg svg.i { width: 14px; height: 14px; }
.pts-info { font-size: 13px; line-height: 1.3; align-self: center; }
.pts { color: var(--teal); }
b.code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }

/* ---------- Stocks avancés : onglets, bons de commande, recettes (DEV-014) ---------- */
.tabs .tab .count { margin-left: 6px; background: var(--gold); color: #101827; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; margin: 0 20px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; align-self: flex-start; flex-wrap: wrap; }
.seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background .2s var(--ease), color .2s, transform .15s; }
.seg button svg.i { width: 15px; height: 15px; }
.seg button:hover { color: var(--text); transform: translateY(-1px); }
.seg button.on { background: var(--surface); color: var(--navy, #0F2D5B); box-shadow: var(--shadow); font-weight: 600; }
:root[data-theme="dark"] .seg button.on { color: var(--text); }
table.lines { width: 100%; border-collapse: collapse; margin: 6px 0 10px; }
table.lines th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 6px; border-bottom: 1px solid var(--line); }
table.lines td { padding: 6px; border-bottom: 1px dashed var(--line); vertical-align: middle; }
table.lines th.num, table.lines td.num { text-align: right; white-space: nowrap; }
table.lines td.num .field { width: 110px; text-align: right; display: inline-block; }
table.lines td .field { padding: 7px 10px; }
table.lines tbody tr { animation: rise .3s var(--ease) both; }
table.lines tr.muted td { opacity: .55; }
.po-total { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, var(--teal-soft), var(--surface-2)); }
.po-total b { font-size: 20px; color: var(--teal); }
.row2.wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.btn.danger { color: var(--coral); }
.recipe-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.recipe-sum > div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; transition: transform .2s var(--ease); }
.recipe-sum > div:hover { transform: translateY(-2px); }
.recipe-sum b { display: block; font-size: 18px; margin-top: 2px; }
.recipe-sum small { display: block; }
.recipe-sum .pos b { color: var(--teal); } .recipe-sum .neg b { color: var(--coral); }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--surface-2); }
.stk-pane { animation: rise .35s var(--ease) both; }
@media (max-width: 760px) { .recipe-sum { grid-template-columns: 1fr; } table.lines td.num .field { width: 80px; } }

/* ---------- Sécurité : appareils, double authentification, sauvegardes (§20) ---------- */
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 0; }
.sec-status { display: flex !important; align-items: center; gap: 14px; border-left: 4px solid var(--line) !important; transition: transform .2s var(--ease), box-shadow .2s; }
.sec-status:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.sec-status > div { flex: 1; min-width: 0; } .sec-status b { display: block; } .sec-status small { display: block; margin-top: 2px; }
.sec-status.good { border-left-color: var(--teal) !important; } .sec-status.warn { border-left-color: var(--gold) !important; } .sec-status.bad { border-left-color: var(--coral) !important; }
.sec-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.sec-ico svg.i { width: 22px; height: 22px; }
.good .sec-ico { background: var(--teal-soft); color: var(--teal); } .warn .sec-ico { background: var(--gold-soft); color: #A77A00; } .bad .sec-ico { background: var(--coral-soft); color: var(--coral); }
.bad .sec-ico svg { animation: blink 1.4s ease-in-out infinite; }
.dev-ico { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--sky-soft); color: var(--sky); vertical-align: middle; }
.dev-ico svg.i { width: 16px; height: 16px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.kv span { color: var(--muted); font-size: 13px; }
code.fp { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; word-break: break-all; background: var(--surface-2); padding: 6px 8px; border-radius: 8px; display: block; margin-top: 4px; }
.kv code.fp { margin: 0; max-width: 62%; text-align: right; }
.row-inline { display: flex; gap: 8px; align-items: center; } .row-inline .field { flex: 1; }
.mfa-cta { display: flex !important; align-items: center; gap: 14px; background: linear-gradient(135deg, var(--teal-soft), var(--surface)) !important; }
.mfa-cta > div { flex: 1; } .mfa-cta b, .mfa-cta small { display: block; }
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.type-opt { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; cursor: pointer; transition: border-color .2s, transform .15s, background .2s; font-weight: 500; }
.type-opt:hover { transform: translateY(-2px); border-color: var(--sky); }
.type-opt.on { border-color: var(--teal); background: var(--teal-soft); }
.type-opt svg.i { width: 20px; height: 20px; flex: none; }
.enroll-show { display: flex; gap: 20px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.enroll-show .qr { width: 200px; height: 200px; padding: 8px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); animation: pop .35s var(--ease) both; flex: none; }
.enroll-show .qr svg { width: 100%; height: 100%; display: block; }
.enroll-show > div:last-child { flex: 1; min-width: 200px; }
.enroll-code { font: 700 34px/1.1 ui-monospace, Consolas, monospace; letter-spacing: 4px; color: var(--navy); background: var(--surface-2); border-radius: 12px; padding: 14px 16px; text-align: center; margin-bottom: 8px; }
:root[data-theme="dark"] .enroll-code { color: var(--text); }
ol.steps { margin: 12px 0 0; padding-left: 20px; } ol.steps li { margin: 6px 0; }
.field.otp { font: 600 24px ui-monospace, Consolas, monospace; letter-spacing: 6px; text-align: center; }
.mfa-step { text-align: center; animation: rise .3s var(--ease) both; }
.mfa-step .mfa-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--teal-soft); color: var(--teal); margin-bottom: 8px; }
.mfa-step .mfa-ico svg.i { width: 26px; height: 26px; }
.mfa-step p { margin: 6px 0 12px; }
.linkbtn { background: none; border: 0; color: var(--sky); cursor: pointer; padding: 6px 0; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.linkbtn:hover { text-decoration: underline; }
.login-device { margin-top: 12px; font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; justify-content: center; }
.login-device svg.i { color: var(--teal); }
.enroll-box { margin-top: 6px; animation: rise .3s var(--ease) both; }
@media (max-width: 900px) { .sec-grid, .type-grid { grid-template-columns: 1fr; } }
.mfa-step b { display: block; font-size: 16px; }
.set-body .panel > label { display: block; margin: 14px 0 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.set-body .form-grid label { display: block; margin: 12px 0 6px; font-size: 13px; color: var(--muted); font-weight: 500; }

/* Qui a pris la commande (caisse, cuisine, tables) : pastille colorée par personne. */
.who { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: hsl(var(--h) 70% 94%); color: hsl(var(--h) 55% 28%); border: 1px solid hsl(var(--h) 60% 82%); max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform .2s var(--ease), box-shadow .2s; }
.who i { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: hsl(var(--h) 60% 45%); color: #fff; font-size: 10px; letter-spacing: .3px; }
.who small { font-weight: 500; opacity: .75; }
.who:hover { transform: translateY(-1px); box-shadow: 0 3px 10px hsl(var(--h) 50% 40% / .18); }
.who-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 2px; }
.cart-head + .cart-sub + .who-bar { padding: 8px 18px 0; }
.ticket .who-bar { padding: 8px 12px 4px; border-bottom: 1px dashed var(--line); }
.ticket .it .by { display: block; font-size: 11px; color: var(--muted); }
.tbl .who { margin-top: 4px; font-size: 12px; padding: 2px 8px 2px 2px; }
.tbl .who i { width: 18px; height: 18px; font-size: 9px; }
:root[data-theme="dark"] .who { background: hsl(var(--h) 35% 20%); color: hsl(var(--h) 70% 85%); border-color: hsl(var(--h) 35% 32%); }

/* Licence (§15) */
.lic-banner { display: flex; align-items: center; gap: 12px; margin: 0 18px 10px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); animation: rise .35s var(--ease) both; }
.lic-banner > div { flex: 1; min-width: 0; } .lic-banner small { display: block; color: var(--muted); margin-top: 2px; }
.lic-banner.warn { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, var(--surface)); }
.lic-banner.bad { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 12%, var(--surface)); }
.lic-banner .i { width: 20px; height: 20px; flex: none; }
.lic-days { text-align: center; min-width: 64px; } .lic-days b { font-size: 26px; line-height: 1; } .lic-days small { display: block; }
.lic-meter { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 4px 0 12px; }
.lic-meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: 99px;
  animation: grow .8s var(--ease) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.lic-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.lic-features span { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--muted);
  border: 1px dashed var(--line); font-size: 13px; transition: transform .2s var(--ease); }
.lic-features span.on { color: inherit; border-style: solid; background: color-mix(in srgb, var(--teal) 8%, transparent); }
.lic-features span:hover { transform: translateX(3px); }
.lic-features .i { width: 15px; height: 15px; }

/* Marque blanche : aperçu */
.color-field { padding: 4px; height: 44px; cursor: pointer; }
.brand-prev { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px; border-radius: 12px; border: 1px dashed var(--line); }
.brand-prev .bp-side { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--bp); color: #fff; flex: 1; transition: background .25s; }
.brand-prev .bp-side i { width: 18px; height: 18px; border-radius: 6px; background: var(--ba); }
.brand-prev .bp-btn { padding: 10px 16px; border-radius: 10px; background: var(--ba); color: #fff; font-weight: 600; transition: background .25s; }

/* ---------- Addition séparée ---------- */
.paid-row { display: flex; justify-content: space-between; color: var(--teal); font-weight: 600; font-size: 13px; padding: 0 2px 4px; }
.pay-split { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 8px; }
.split-list { display: grid; gap: 6px; margin: 14px 0; max-height: 46vh; overflow: auto; }
.modal .split-line, .split-line { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; transition: background .15s, border-color .15s, transform .15s var(--ease); }
.split-line:hover { transform: translateX(3px); border-color: var(--sky); }
.split-line.on { background: var(--teal-soft); border-color: var(--teal); }
.split-line input { width: 18px; height: 18px; accent-color: var(--teal); }
.split-line .n small { display: block; }
.split-line .amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.split-even { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.split-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0 6px; font-size: 15px; }
.split-total b { font-size: 26px; color: var(--teal); }

/* ---------- Réservations ---------- */
.resa-tag { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11.5px; font-weight: 600; color: var(--violet);
  background: var(--violet-soft); padding: 2px 8px; border-radius: 999px; }
.resa-tag .i { width: 12px; height: 12px; }
.resa-list { display: grid; gap: 10px; padding: 0 20px 24px; }
.resa-card { display: grid; grid-template-columns: 84px 1.6fr 1fr auto auto; gap: 16px; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--sky); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow);
  animation: rise .35s var(--ease) both; animation-delay: calc(var(--i) * 35ms); transition: transform .2s var(--ease), box-shadow .2s; }
.resa-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.resa-card.arrived { border-left-color: var(--teal); opacity: .85; }
.resa-card.cancelled, .resa-card.no_show { border-left-color: var(--slate); opacity: .6; }
.resa-card.late { border-left-color: var(--coral); }
.resa-time b { font-size: 22px; display: block; } .resa-time small { color: var(--muted); }
.resa-who b { display: block; font-size: 15px; } .resa-who .muted { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.resa-who a { color: inherit; display: inline-flex; gap: 4px; align-items: center; } .resa-who .i { width: 14px; height: 14px; }
.resa-who .note, .deliv-card .note { display: block; color: var(--coral); font-size: 12px; margin-top: 2px; }
.resa-state { display: flex; gap: 6px; flex-wrap: wrap; }
.resa-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 14px; }
@media (max-width: 900px) { .resa-card { grid-template-columns: 70px 1fr; } .resa-table, .resa-state { grid-column: 2; } .resa-actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* ---------- Livraisons ---------- */
.deliv-board { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 14px; padding: 0 20px 24px; align-items: start; }
.deliv-col { background: var(--surface-2); border-radius: var(--radius); padding: 12px; min-height: 200px; }
.deliv-col h3 { margin: 2px 4px 10px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.deliv-card { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 12px; padding: 12px; margin-bottom: 10px;
  box-shadow: var(--shadow); animation: rise .35s var(--ease) both; animation-delay: calc(var(--i) * 40ms); transition: transform .2s var(--ease), box-shadow .2s; }
.deliv-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.deliv-card.out { border-top-color: var(--sky); } .deliv-card.delivered { border-top-color: var(--teal); }
.deliv-card.failed { border-top-color: var(--coral); } .deliv-card.cancelled { border-top-color: var(--slate); opacity: .7; }
.deliv-card header { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 6px; }
.deliv-addr { display: flex; gap: 6px; font-size: 13.5px; align-items: flex-start; }
.deliv-addr .i { width: 15px; height: 15px; color: var(--coral); flex: none; margin-top: 2px; }
.deliv-addr small { display: block; color: var(--muted); }
.deliv-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.deliv-meta a { color: var(--sky); display: inline-flex; gap: 4px; align-items: center; } .deliv-meta .i { width: 13px; height: 13px; }
.deliv-meta b { color: var(--text); } .deliv-meta .ok { color: var(--teal); }
.deliv-driver { margin-top: 8px; }
.deliv-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.driver-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 14px; }
.driver { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); text-align: left; transition: transform .15s var(--ease), border-color .15s; }
.driver:hover { transform: translateY(-2px); border-color: var(--sky); }
.driver small { color: var(--muted); font-size: 11px; } .driver.present small { color: var(--teal); font-weight: 600; }
@media (max-width: 1000px) { .deliv-board { grid-template-columns: 1fr; } }

/* ---------- Présence ---------- */
.att-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 14px; padding: 0 20px 14px; align-items: start; }
.att-clock h3, .att-grid .panel h3 { display: flex; gap: 8px; align-items: center; }
.att-time { font-size: 44px; font-weight: 700; letter-spacing: -1px; text-align: center; margin: 6px 0 4px; font-variant-numeric: tabular-nums; color: var(--navy); }
:root[data-theme="dark"] .att-time { color: var(--text); }
.att-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.att-row:last-child { border-bottom: 0; }
.att-report { margin: 0 20px 24px; }
.att-sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.att-sum .kpi b { font-size: 22px; } .att-sum .ok { color: var(--teal); }
@media (max-width: 900px) { .att-grid { grid-template-columns: 1fr; } }
.att-row .who { justify-self: start; max-width: 100%; }

/* Première configuration d'un serveur neuf */
.setup-box { animation: rise .35s ease both; }
.setup-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; text-align: center; }
.setup-head b { font-size: 18px; }
.setup-sep { margin: 18px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--teal); }
.login-card:has(#setupBox) { max-width: 520px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; }

/* Clôture journalière (Z) */
.z-sum { display: grid; gap: 12px; margin-top: 8px; }
.z-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.z-kpis > div { background: var(--surface-2, rgba(127,127,127,.08)); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.z-kpis > div span { font-size: 12px; }
.z-kpis > div b { font-size: 18px; }
.z-kpis .z-net { background: var(--navy); color: #fff; }
.z-kpis .z-net span { color: rgba(255,255,255,.85); }
.z-period { font-size: 12.5px; }
.z-done { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(16,163,127,.12); }
.z-done > svg.i { width: 28px; height: 28px; color: var(--teal, #10a37f); }
.z-done small { display: block; }
.z-list td:last-child { width: 1%; white-space: nowrap; }
.inline-msg.warn { background: rgba(232,170,40,.14); color: inherit; display: flex; gap: 8px; align-items: center; margin-top: 12px; }
@media (max-width: 640px) { .z-kpis { grid-template-columns: repeat(2, 1fr); } }

/* Paiement de la licence par Wave */
.pay-panel { margin-top: 12px; }
.pay-panel h3 { display: flex; align-items: center; gap: 8px; }
.pay-steps { display: grid; gap: 14px; margin-top: 8px; }
.pay-step { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pay-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; }
.pay-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.pay-plan { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .2s, box-shadow .2s, transform .15s; }
.pay-plan span { font-size: 18px; font-weight: 700; }
.pay-plan:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--shadow); }
.pay-plan.on { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.pay-plan:disabled { opacity: .45; cursor: not-allowed; }
.btn-wave { display: inline-flex; align-items: center; gap: 8px; background: #1dc3f2; color: #06263a; font-weight: 700; text-decoration: none; }
.btn-wave:hover { background: #12b2e0; }
.pay-qr { margin-top: 10px; width: 112px; }
.pay-qr:empty { display: none; }
.pay-qr svg { display: block; width: 112px; height: 112px; background: #fff; border-radius: 8px; }
.pay-hist-title { margin: 18px 0 6px; font-size: 14px; }
.period button:disabled { opacity: .4; cursor: not-allowed; }
