/* =========================================================
   DESIGN CREITIC POS
   Repris de D:\creitic_pos (couleurs, fonds, thèmes, textes).
   Chargé après style.css : redéfinit les jetons de couleur et
   l'habillage des composants. La page de connexion garde son
   propre design (jetons d'origine redéfinis sur .login).
   ========================================================= */

/* ---------- Jetons (thème sombre CREITIC, base de toutes les pages) ---------- */
:root {
  --font: Arial, Helvetica, sans-serif;
  --font-display: Arial, Helvetica, sans-serif;
  --mono: Arial, Helvetica, sans-serif;

  --bg: #070b12;
  --bg-soft: rgba(8, 11, 16, .55);
  --panel: #0e1219;
  --card: #141a24;
  --card-2: #1b2333;
  --hover: #232c3d;
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .07);
  --text: #f0f4f8;
  --text-2: #a8b3c1;
  --muted: #6f7d91;

  --accent: #f59e0b;
  --accent-2: #d97706;
  --accent-soft: rgba(245, 158, 11, .12);
  --accent-glow: rgba(245, 158, 11, .35);
  --accent-ink: #1a1205;
  --grad: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);

  --green: #22c55e;   --green-soft: rgba(34, 197, 94, .12);
  --red: #ef4444;     --red-soft: rgba(239, 68, 68, .12);
  --orange: #f97316;  --orange-soft: rgba(249, 115, 22, .12);
  --blue: #3b82f6;    --blue-soft: rgba(59, 130, 246, .12);
  --purple: #a855f7;  --teal: #2dd4bf; --pink: #ec4899; --gold: #f59e0b;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 50px -20px rgba(0, 0, 0, .8);
  --theme-accent: #2563eb;
  --theme-rgb: 37, 99, 235;
}

body { background: #080b10; font-size: 13px; }

/* La connexion conserve son design d'origine */
.login {
  --bg: #121110; --bg-soft: #161513; --panel: #1A1917; --card: #211F1C; --card-2: #282622; --hover: #312E29;
  --line: rgba(212, 175, 106, .24); --line-2: rgba(255, 250, 240, .075);
  --text: #F4F0E8; --text-2: #C9C2B5; --muted: #918A7D;
  --accent: #D4AF6A; --accent-soft: rgba(212, 175, 106, .14); --accent-glow: rgba(212, 175, 106, .32); --accent-ink: #1D1608;
  --grad: linear-gradient(135deg, #EDD39B 0%, #D4AF6A 50%, #B08A4A 100%);
  --green: #7CC9A0; --red: #E5826F;
  position: relative; z-index: 1; background: var(--bg); font-size: 14px;
}

/* ---------- Fond animé du thème ---------- */
#app-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#app-bg .bg-layer { position: absolute; inset: 0; overflow: hidden; }
#app, #modal-root, #toast-root { position: relative; z-index: 1; }
#modal-root { z-index: 100; }
#toast-root { z-index: 200; position: fixed; }

@keyframes blobFloat1 { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(4vw, 3vh) scale(1.08); } 66% { transform: translate(-3vw, 6vh) scale(.94); } }
@keyframes blobFloat2 { 0%, 100% { transform: translate(0, 0) scale(1); } 25% { transform: translate(-6vw, -4vh) scale(1.12); } 75% { transform: translate(5vw, 5vh) scale(.90); } }
@keyframes blobFloat3 { 0%, 100% { transform: translate(0, 0) scale(1); } 40% { transform: translate(5vw, -3vh) scale(1.06); } 80% { transform: translate(-4vw, 4vh) scale(.96); } }
@keyframes blobFloat4 { 0%, 100% { transform: translate(0, 0) scale(1) rotate(0); } 50% { transform: translate(-4vw, -5vh) scale(1.14) rotate(12deg); } }
@keyframes leafGentleSway {
  0% { transform: scale(1.05) rotate(0) translate(0, 0); } 10% { transform: scale(1.06) rotate(.8deg) translate(.4%, -.2%); }
  30% { transform: scale(1.07) rotate(2deg) translate(.8%, -.1%); } 48% { transform: scale(1.08) rotate(2.8deg) translate(1%, .1%); }
  55% { transform: scale(1.07) rotate(2.5deg) translate(.9%, .2%); } 72% { transform: scale(1.06) rotate(1.2deg) translate(.4%, .1%); }
  88% { transform: scale(1.05) rotate(-.4deg) translate(-.2%, 0); } 100% { transform: scale(1.05) rotate(0) translate(0, 0); }
}
@keyframes leafGlow { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes imgKenBurns { 0% { transform: scale(1) translate(0, 0); } 25% { transform: scale(1.04) translate(-1.2%, .6%); } 50% { transform: scale(1.07) translate(.8%, -.8%); } 75% { transform: scale(1.04) translate(1%, .5%); } 100% { transform: scale(1) translate(0, 0); } }
@keyframes sceneBreath { 0%, 100% { transform: scale(1.04) translate(0, 0); } 25% { transform: scale(1.07) translate(-.6%, .4%); } 50% { transform: scale(1.1) translate(0, -.5%); } 75% { transform: scale(1.07) translate(.6%, .3%); } }
@keyframes sceneDrift { 0%, 100% { transform: scale(1.08) translate(0, 0); } 20% { transform: scale(1.09) translate(-1.5%, .5%); } 40% { transform: scale(1.1) translate(-2%, -.5%); } 60% { transform: scale(1.09) translate(-.5%, -1.2%); } 80% { transform: scale(1.08) translate(1%, -.5%); } }
@keyframes sceneFloat { 0%, 100% { transform: scale(1.07) translateY(0); } 30% { transform: scale(1.09) translateY(-1.5%); } 60% { transform: scale(1.1) translateY(-2.5%); } 80% { transform: scale(1.08) translateY(-1%); } }
@keyframes logoFloat { 0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 6px rgba(245, 158, 11, .2)); } 50% { transform: translateY(-2px) scale(1.02); filter: drop-shadow(0 0 12px rgba(245, 158, 11, .35)); } }

/* ---------- Structure ---------- */
.crt-root { height: 100vh; display: flex; flex-direction: column; overflow: hidden; position: relative; isolation: isolate; }
.crt-root .main { flex: 1; min-height: 0; height: auto; display: flex; flex-direction: column; overflow: hidden; }
.crt-root .view { flex: 1; min-height: 0; }

/* ---------- Barre du haut ---------- */
.pos-topbar {
  height: 54px; flex-shrink: 0; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: relative; z-index: 20;
  background: rgba(14, 18, 25, .70); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 8px 32px rgba(0, 0, 0, .5);
  --tb-text-1: #f0f4f8; --tb-text-2: #a8b3c1; --tb-text-3: #6f7d91; --tb-border: rgba(255, 255, 255, .08);
}
.pos-topbar-left { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.sidebar-toggle {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); color: #8b95a3; cursor: pointer;
}
.sidebar-toggle:hover { background: rgba(255, 255, 255, .09); color: #c4cdd8; }
.sidebar-toggle svg.lucide { width: 18px; height: 18px; }
.pos-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding-right: 16px; border-right: 1px solid var(--tb-border); }
.crt-logo {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #fde68a, #f59e0b 45%, #b45309 100%);
  color: #1a1205; font-weight: 900; font-size: 15px; letter-spacing: -.02em; font-style: italic;
  box-shadow: inset 0 0 0 2px #111, 0 0 0 1.5px #f59e0b, 0 6px 14px -6px rgba(245, 158, 11, .6);
  animation: logoFloat 5s ease-in-out infinite;
}
.pos-brand-name { font-size: 13.5px; font-weight: 900; letter-spacing: .04em; color: #f59e0b; white-space: nowrap; }
.pos-brand-sub { font-size: 9px; color: var(--tb-text-3); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-top: 2px; }

.pos-nav { display: flex; gap: 4px; align-items: center; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.pos-nav::-webkit-scrollbar { display: none; }
.nav-btn {
  --c: 148, 163, 184;
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 9px; flex-shrink: 0;
  font-size: 12px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; cursor: pointer;
  border: 1.5px solid transparent; background: transparent; color: var(--tb-text-2); transition: all .15s;
}
.nav-btn svg.lucide { width: 15px; height: 15px; }
.nav-btn:hover { color: rgb(var(--c)); background: rgba(var(--c), .08); }
.nav-btn.nav-active { color: rgb(var(--c)); background: rgba(var(--c), .12); border-color: rgba(var(--c), .35); font-weight: 700; }
.nav-green  { --c: 34, 197, 94; }
.nav-blue   { --c: 59, 130, 246; }
.nav-orange { --c: 249, 115, 22; }
.nav-gold   { --c: 217, 119, 6; }
.nav-purple { --c: 168, 85, 247; }
.nav-teal   { --c: 45, 212, 191; }

/* Connexion par QR code */
.qr-modal .modal-body { padding-top: 6px; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.qr-frame { position: relative; padding: 14px; border-radius: 20px; background: #fff; line-height: 0;
  box-shadow: 0 0 0 1px var(--line), 0 24px 50px -22px rgba(0, 0, 0, .8), 0 0 40px -12px rgba(45, 212, 191, .45); }
.qr-frame svg { display: block; width: 232px; height: 232px; max-width: 62vw; max-height: 62vw; }
.qr-switch { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.qr-ip { height: 30px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.qr-ip.active { color: #0b1f1c; background: rgb(45, 212, 191); border-color: transparent; }
.qr-link { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 10px 14px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line-2); }
.qr-link svg.lucide { flex: none; width: 16px; height: 16px; color: rgb(45, 212, 191); }
.qr-link a { color: var(--text); font-weight: 700; font-size: 14px; word-break: break-all; text-decoration: none; }
.qr-link a:hover { text-decoration: underline; }
.qr-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.qr-tips li { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.qr-tips svg.lucide { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--muted); }
.qr-tips b { color: var(--text); }
.nav-dot { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--blue); color: #fff; font-size: 9.5px; font-weight: 800; }
.nav-dot.warn { background: var(--orange); }
.nav-amt { font-weight: 800; color: rgb(var(--c)); }

.pos-topbar-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.tb-icon {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid transparent; color: var(--tb-text-3); transition: all .15s;
}
.tb-icon:hover, .tb-icon.on { color: #f59e0b; background: rgba(245, 158, 11, .10); border-color: rgba(245, 158, 11, .35); }
.tb-icon svg.lucide { width: 17px; height: 17px; }
.tb-clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.tb-clock b { font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--tb-text-1); }
.tb-clock span { font-size: 9.5px; color: var(--tb-text-3); text-transform: capitalize; white-space: nowrap; }
.tb-avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(245, 158, 11, .14); border: 1.5px solid rgba(245, 158, 11, .55); color: #f59e0b; font-weight: 800; font-size: 12.5px;
}
.tb-avatar:hover { background: rgba(245, 158, 11, .22); }

/* Sélecteur de thèmes */
.theme-anchor { position: relative; }
.theme-pop {
  position: absolute; top: calc(100% + 10px); right: -60px; width: 470px; max-height: calc(100vh - 80px); overflow-y: auto; z-index: 60;
  padding: 16px 18px 14px; border-radius: 16px;
  background: rgba(18, 23, 32, .94); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, .10); box-shadow: 0 30px 70px -10px rgba(0, 0, 0, .8);
}
.theme-pop[hidden] { display: none; }
.theme-section { font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #8b95a3; text-align: right; margin: 4px 0 12px; }
.theme-section + .theme-grid + .theme-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .07); }
.theme-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px 8px; }
.theme-swatch-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.theme-swatch {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #f59e0b;
  border: 2px solid rgba(255, 255, 255, .12); box-shadow: 0 4px 12px rgba(0, 0, 0, .4); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.theme-swatch svg.lucide { width: 18px; height: 18px; stroke-width: 3; }
.theme-swatch-wrap:hover .theme-swatch { transform: scale(1.12); border-color: rgba(255, 255, 255, .3); }
.theme-swatch-wrap.selected .theme-swatch { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .3), 0 8px 20px rgba(0, 0, 0, .5); transform: scale(1.06); }
.theme-name { font-size: 9.5px; line-height: 1.2; color: #8b95a3; text-align: center; max-width: 66px; }
.theme-swatch-wrap.selected .theme-name { color: #f59e0b; font-weight: 700; }
.theme-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); font-size: 11px; color: #8b95a3; }
.theme-foot .dot { width: 8px; height: 8px; border-radius: 50%; }
.theme-panel { background: rgba(8, 11, 16, .5); border-radius: 14px; padding: 16px 18px; border: 1px solid var(--line-2); }
.theme-panel .theme-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.theme-panel .theme-section { text-align: left; }

/* ---------- Menu latéral (tiroir) ---------- */
.sidebar-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .38s cubic-bezier(.25, .46, .45, .94); }
.sidebar-overlay.open { opacity: 1; pointer-events: all; }
.crt-root .sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 100; width: 185px; padding: 0; gap: 0; align-items: stretch;
  background: linear-gradient(180deg, #050608 0%, #080a10 100%); border-right: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 4px 0 40px rgba(0, 0, 0, .75); display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .38s cubic-bezier(.25, .46, .45, .94); overflow: hidden;
  --tb-text-1: #f0f4f8; --tb-text-2: #a8b3c1; --tb-text-3: #6f7d91; --tb-border: rgba(255, 255, 255, .06);
}
.crt-root .sidebar.open { transform: translateX(0); }
.sidebar-accent-bar { height: 2px; flex-shrink: 0; background: linear-gradient(90deg, rgba(var(--theme-rgb), .8), rgba(var(--theme-rgb), .27)); }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 14px 14px; border-bottom: 1px solid var(--tb-border); }
.sidebar-brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.sidebar-brand .crt-logo { width: 34px; height: 34px; font-size: 13px; border-radius: 9px; }
.sidebar-brand .pos-brand-name { font-size: 11.5px; white-space: normal; line-height: 1.15; }
.sidebar-close { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #6b7280; cursor: pointer; flex-shrink: 0; }
.sidebar-close:hover { background: rgba(255, 255, 255, .08); color: #d1d9e0; }
.sidebar-close svg.lucide { width: 16px; height: 16px; }
.sidebar-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; scrollbar-width: none; }
.sidebar-nav::-webkit-scrollbar { display: none; }
.sidebar-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; width: 100%;
  padding: 18px 10px 15px; border-bottom: 1px solid rgba(255, 255, 255, .055); cursor: pointer; text-align: center;
  transition: background .22s cubic-bezier(.25, .46, .45, .94);
}
.sidebar-nav-item svg.lucide { width: 30px; height: 30px; stroke-width: 1.5; }
.sidebar-nav-item:hover { background: rgba(255, 255, 255, .055); }
.sidebar-nav-item.active { background: rgba(255, 255, 255, .08); }
.sidebar-item-label { font-size: 10.5px; font-weight: 500; color: #8fa3b8; line-height: 1.25; }
.sidebar-nav-item.active .sidebar-item-label { font-weight: 700; }
.sidebar-logout { border-bottom: none; margin-top: auto; }
.sidebar-footer { padding: 12px 14px; border-top: 1px solid var(--tb-border); text-align: center; }
.sf-theme { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; font-weight: 700; color: #8b95a3; }
.sf-theme svg.lucide { width: 13px; height: 13px; }
.sf-ver { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--tb-text-3); margin-top: 3px; }

/* ---------- Thème clair « Blanc Nacré » : barre, menu, ticket ---------- */
[data-light] .pos-topbar {
  background: rgba(255, 255, 255, .96); border-bottom: 1px solid rgba(0, 30, 100, .07);
  box-shadow: 0 1px 0 rgba(0, 30, 100, .05), 0 8px 32px rgba(0, 30, 100, .05);
  --tb-text-1: #0f1829; --tb-text-2: #3d4f65; --tb-text-3: #6b7e94; --tb-border: rgba(0, 30, 100, .08);
}
[data-light] .sidebar-toggle { background: rgba(0, 30, 100, .04); border-color: rgba(0, 30, 100, .08); color: #47597a; }
[data-light] .crt-root .sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%); border-right: 1px solid rgba(0, 30, 100, .06); box-shadow: 4px 0 40px rgba(0, 30, 100, .08);
  --tb-text-1: #0f1829; --tb-text-2: #3d4f65; --tb-text-3: #6b7e94; --tb-border: rgba(0, 30, 100, .06);
}
[data-light] .sidebar-nav-item { border-bottom-color: rgba(0, 30, 100, .05); }
[data-light] .sidebar-nav-item:hover { background: rgba(0, 30, 100, .04); }
[data-light] .sidebar-nav-item.active { background: rgba(0, 30, 100, .07); }
[data-light] .sidebar-item-label { color: #5a7090; }

/* ---------- Pages : fond sombre avec halo de l'accent de la page ---------- */
.page {
  padding: 26px 24px 40px;
  background: radial-gradient(ellipse 80% 55% at 50% -5%, rgba(var(--page-rgb, 245, 158, 11), .13) 0%, transparent 60%), #070b12;
}
.page-head { align-items: center; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid rgba(var(--page-rgb), .22); }
.ph-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ph-ico {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(var(--page-rgb), .12); border: 1px solid rgba(var(--page-rgb), .40); color: var(--page-accent);
  box-shadow: 0 0 22px -6px rgba(var(--page-rgb), .6);
}
.ph-ico svg.lucide { width: 20px; height: 20px; }
.page-title { font-size: 22px; font-weight: 900; letter-spacing: -.01em; margin: 0; line-height: 1.15; }
.page-sub { margin-top: 3px; font-size: 12px; color: var(--page-accent); opacity: .9; }

/* Cartes indicateurs */
.kpis { gap: 14px; }
.kpi {
  --k: 245, 158, 11;
  background: linear-gradient(180deg, rgba(20, 26, 36, .92), rgba(12, 16, 23, .92)); border: 1px solid rgba(255, 255, 255, .07);
  border-top: 2px solid rgb(var(--k)); border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9);
}
.kpi:has(.kpi-ico.green) { --k: 34, 197, 94; }
.kpi:has(.kpi-ico.blue) { --k: 59, 130, 246; }
.kpi:has(.kpi-ico.red) { --k: 239, 68, 68; }
.kpi:has(.kpi-ico.orange) { --k: 249, 115, 22; }
.kpi-label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8b95a3; }
.kpi-ico { width: 38px; height: 38px; border-radius: 11px; background: rgba(var(--k), .10); border: 1px solid rgba(var(--k), .35); color: rgb(var(--k)); }
.kpi-value { font-size: 30px; font-weight: 900; color: #f8fafc; letter-spacing: -.02em; }
.kpi-value small { color: #8b95a3; font-weight: 700; }
.kpi.featured { background: radial-gradient(260px 160px at 100% 0%, rgba(var(--k), .22), transparent 70%), linear-gradient(180deg, rgba(20, 26, 36, .95), rgba(12, 16, 23, .95)); border-color: rgba(var(--k), .3); }
.kpi.featured .kpi-value { color: rgb(var(--k)); }

.card { background: rgba(14, 18, 25, .82); border: 1px solid rgba(255, 255, 255, .07); border-radius: 16px; }
.card-title { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.card-title svg.lucide { color: var(--page-accent, var(--accent)); }
.table th { font-size: 10px; color: #8b95a3; letter-spacing: .12em; }
.table td { font-size: 13px; border-bottom-color: rgba(255, 255, 255, .055); }
.table tbody tr:hover { background: rgba(var(--page-rgb, 255, 255, 255), .04); }
.tabs { background: rgba(8, 11, 16, .6); border-color: rgba(255, 255, 255, .07); border-radius: 12px; }
.tab { height: 34px; border-radius: 9px; font-size: 12.5px; }
.tab.active { background: rgba(var(--page-rgb), .14); color: var(--page-accent); box-shadow: inset 0 0 0 1px rgba(var(--page-rgb), .45); }
.tab.active svg.lucide { color: var(--page-accent); }
.chip.active { background: rgba(var(--page-rgb, 245, 158, 11), .14); border-color: rgba(var(--page-rgb, 245, 158, 11), .5); color: var(--page-accent, var(--accent)); }
.input, .select, .textarea { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); font-size: 14px; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(245, 158, 11, .55); box-shadow: 0 0 0 3px rgba(245, 158, 11, .12); background: rgba(255, 255, 255, .09); }
.btn { border-radius: 10px; font-weight: 700; font-size: 13px; height: 42px; background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.btn:hover { background: rgba(255, 255, 255, .09); }
.btn-sm { height: 34px; font-size: 12px; }
.btn-lg { height: 54px; font-size: 14px; }
.btn-gold { background: var(--grad); color: var(--accent-ink); border-color: transparent; box-shadow: 0 8px 22px -10px rgba(245, 158, 11, .6); }
.btn-gold:hover { background: var(--grad); filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-danger { background: rgba(239, 68, 68, .10); border-color: rgba(239, 68, 68, .35); color: #f87171; }
.btn-outline { color: var(--accent); border-color: rgba(245, 158, 11, .35); background: transparent; }
.btn-icon { border-radius: 9px; background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .09); }

/* Fenêtres : carte sombre avec filet coloré en tête */
.modal-backdrop { background: rgba(3, 5, 9, .62); backdrop-filter: blur(8px); }
.modal {
  background: linear-gradient(180deg, #0f1623 0%, #0a0f19 100%); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; position: relative;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9);
}
.modal::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2; background: linear-gradient(90deg, #f59e0b, #22c55e); }
.modal-head { padding: 20px 24px 16px; border-bottom-color: rgba(255, 255, 255, .06); }
.modal-title { font-size: 19px; font-weight: 900; letter-spacing: -.01em; }
.modal-sub { font-size: 12px; color: #8b95a3; }
.modal-body { padding: 20px 24px; }
.modal-foot { background: rgba(8, 11, 16, .6); border-top-color: rgba(255, 255, 255, .06); padding: 14px 24px 18px; }
.modal.drawer { border-radius: 18px 0 0 18px; }
.toast { background: rgba(15, 22, 35, .96); border-color: rgba(255, 255, 255, .1); }

/* ---------- Vente : ticket à gauche, produits à droite ---------- */
.pos { grid-template-columns: 440px 1fr; }
.pos-left { background: radial-gradient(ellipse at top, rgba(var(--theme-rgb), .10) 0%, #070b12 58%); }
.ticket {
  order: -1; border-left: 0; border-right: 1px solid rgba(255, 255, 255, .07);
  background: rgba(14, 18, 25, .62); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
}
.ticket-head { padding: 12px 16px 12px; background: linear-gradient(180deg, rgba(20, 26, 36, .65), rgba(14, 18, 25, .45)); border-bottom: 1px solid var(--line-2); }
.ticket-head .eyebrow { color: var(--green); font-size: 10px; letter-spacing: .14em; }
.th-title { font-size: 20px; font-weight: 900; }
.th-info { gap: 8px; margin-top: 12px; }
.th-box { border-radius: 10px; border: 1.5px solid var(--line); background: transparent; padding: 7px 10px; }
.th-box svg.lucide { color: var(--text-2); }
.th-client.has-client { border-color: rgba(45, 212, 191, .45); background: rgba(45, 212, 191, .07); }
.th-client.has-client > svg.lucide { color: var(--teal); }
.ticket-lines { padding: 4px 10px; }
.t-line { padding: 10px 8px; border-radius: 0; }
.t-line + .t-line { border-top-color: var(--line-2); }
.l-name { font-size: 13px; }
.l-total { color: var(--green); font-size: 13.5px; }
.qty-ctrl { border-radius: 8px; }
.qty-ctrl button { width: 30px; height: 28px; }
.ticket-foot { background: rgba(8, 11, 16, .5); border-top: 1px solid var(--line-2); padding: 12px 16px 14px; }
.sum-row { font-size: 12px; }
.sum-total { border-top: 1px solid var(--line); }
.sum-total .lbl { color: var(--text); font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.sum-total .val { color: #f59e0b; font-size: 24px; font-weight: 900; }
.t-act { border-radius: 10px; height: 54px; background: transparent; border: 1.5px solid var(--line); }
.t-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
.t-main .btn-outline { color: var(--teal); border-color: rgba(45, 212, 191, .35); background: rgba(45, 212, 191, .06); height: 58px; }
.btn-pay {
  height: 58px !important; border-radius: 12px !important; color: #fff !important; letter-spacing: .04em;
  background: linear-gradient(135deg, #22c55e, #16a34a) !important; box-shadow: 0 4px 16px rgba(34, 197, 94, .3) !important;
}
.btn-pay:hover { filter: brightness(1.05); box-shadow: 0 8px 24px rgba(34, 197, 94, .45) !important; }
.btn-pay[disabled] { background: rgba(255, 255, 255, .06) !important; color: var(--muted) !important; box-shadow: none !important; }
.btn-pay .amt { font-size: 18px; }

/* Ticket en thème clair */
[data-light] .ticket {
  background: rgba(255, 255, 255, .96); border-right-color: rgba(0, 30, 100, .07);
  --panel: #ffffff; --card: #f4f7fc; --card-2: #eaf0f9; --hover: #e3eaf5; --bg-soft: #f7f9fd;
  --line: rgba(0, 30, 100, .14); --line-2: rgba(0, 30, 100, .07);
  --text: #0f1829; --text-2: #3d4f65; --muted: #6b7e94; color: var(--text);
}
[data-light] .ticket-head { background: linear-gradient(180deg, #fafcff, #ffffff); }
[data-light] .ticket-foot { background: #f8fafd; }
[data-light] .t-main .btn-outline { color: #0d9488; }
[data-light] .ticket .ticket-empty .ring { background: #f4f7fc; }
[data-light] .ticket .btn-icon { background: #f4f7fc; border-color: rgba(0, 30, 100, .1); color: #47597a; }

/* Plan de salle & catalogue (zone sombre) */
.tables-bar { background: rgba(8, 11, 16, .45); border-bottom: 1px solid rgba(255, 255, 255, .06); padding: 12px 18px; }
.catalog-bar { padding: 12px 18px 6px; }
.catalog-bar .input { background: rgba(255, 255, 255, .07); height: 42px; border-radius: 12px; }
.cat-pill { height: 36px; padding: 0 14px; font-size: 12px; font-weight: 600; background: transparent; border: 1.5px solid rgba(255, 255, 255, .09); color: #8b95a3; }
.cat-pill:hover { color: #c4cdd8; border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); }
.cat-pill.active { background: rgba(var(--theme-rgb), .16); border-color: rgba(var(--theme-rgb), .6); color: #fff; box-shadow: 0 0 16px -4px rgba(var(--theme-rgb), .55); }
.cat-pill.active .count { color: #fff; }
.dd-btn { height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.dd-ico { width: 30px; height: 30px; border-radius: 9px; }
.dd-menu { background: #0f1623; border-color: rgba(255, 255, 255, .1); }

/* Cartes produits CREITIC : photo, verre dépoli, liseré lumineux, prix en pastille */
.products { padding: 14px 18px 24px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.product {
  border-radius: 18px; background: rgba(18, 23, 32, .55); border: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 10px 24px rgba(0, 0, 0, .28), 0 1px 3px rgba(0, 0, 0, .3);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s, background .3s;
}
.product::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
  background: linear-gradient(150deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .02) 35%, rgba(255, 255, 255, .10) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.product:hover { transform: translateY(-4px); background: rgba(25, 32, 45, .7); box-shadow: 0 18px 36px -12px rgba(var(--theme-rgb), .45), 0 10px 24px rgba(0, 0, 0, .35); }
.p-img { aspect-ratio: 16 / 9; background: radial-gradient(circle at 50% 40%, #2a3344, #0b0f16); }
.p-img::after { background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .35)); }
.p-body { padding: 10px 12px 12px; background: linear-gradient(180deg, rgba(20, 26, 36, .55), rgba(12, 16, 23, .75)); border-top: 1px solid rgba(255, 255, 255, .06); }
.p-name { color: #e8edf3; font-size: 13px; font-weight: 700; min-height: 2.5em; }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; }
.p-price {
  position: static; display: inline-flex; padding: 4px 10px; border-radius: 99px; backdrop-filter: none;
  background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .38); color: #fbbf24; font-size: 12.5px; font-weight: 900;
}
.p-cat { margin-top: 0; font-size: 10.5px; color: #7c889a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-qty { background: var(--green); color: #fff; box-shadow: 0 4px 12px rgba(34, 197, 94, .5); }
.p-stock { bottom: 8px; right: 8px; }
.product.flash { animation: none; box-shadow: 0 0 0 2px var(--green), 0 10px 24px rgba(0, 0, 0, .3); }

/* Tables en thème clair : restent dans la zone sombre */
.table-chip { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .09); }
/* Tables plus compactes (gain de place sur l'écran de vente) */
@media (min-width: 761px) {
  .tables-row { gap: 9px; }
  .table-chip { width: 108px; height: 76px; padding: 9px 11px; border-radius: 15px; }
  .table-chip .t-num { font-size: 21px; }
  .table-chip .t-meta { font-size: 10.5px; }
  .table-chip .t-amount { font-size: 12.5px; }
  .table-chip.extra .t-num { font-size: 13px; }
  .table-chip.passage { width: 118px; }
  .table-chip.passage .t-num { font-size: 12.5px; }
  .tables-head { margin-bottom: 10px; }
}
/* Bouton « Autre » dans l'en-tête, après le filtre de zone */
.tables-head .btn-other {
  height: 40px; padding: 0 16px; gap: 8px; border-radius: 12px; font-weight: 700; font-size: 13px; white-space: nowrap;
  border: 1.5px dashed rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .06); color: #fbbf24;
}
.tables-head .btn-other:hover { background: rgba(245, 158, 11, .14); border-style: solid; }
.tables-head .btn-other svg.lucide { width: 18px; height: 18px; }
.table-chip:not(.selected):not(.busy):hover { background: rgba(255, 255, 255, .07); }   /* la table choisie et les tables en cours gardent leur fond au survol */

/* ---------- Ajustements responsive ---------- */
@media (max-width: 1500px) {
  .nav-btn { padding: 0 10px; }
  .pos-brand-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 1380px) {
  .pos { grid-template-columns: 380px 1fr; }
  .pos-brand > div:last-child { display: none; }
  .pos-brand { padding-right: 10px; }
  .tb-clock span { display: none; }
}
@media (max-width: 1180px) {
  .nav-btn > :not(svg):not(.nav-dot) { display: none; }
  .nav-btn { font-size: 0; gap: 4px; }
}

/* Boutons d'encaissement : comptant (vert) / crédit (rouge) — prioritaires sur .btn */
.btn.btn-cash { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; border-color: transparent; box-shadow: 0 6px 20px -6px rgba(34, 197, 94, .55); }
.btn.btn-cash:hover { background: linear-gradient(135deg, #22c55e, #16a34a); filter: brightness(1.07); }
.btn.btn-credit { background: linear-gradient(135deg, #f87171, #dc2626); color: #fff; border-color: transparent; box-shadow: 0 6px 20px -6px rgba(220, 38, 38, .55); }
.btn.btn-credit:hover { background: linear-gradient(135deg, #f87171, #dc2626); filter: brightness(1.07); }
.btn.btn-success { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .35); color: #4ade80; }
.btn.btn-cash[disabled], .btn.btn-credit[disabled] { opacity: .4; }
.switch { display: inline-block; vertical-align: middle; }

/* =========================================================
   Encaissement : panneau premium qui glisse depuis la droite
   ========================================================= */
.modal.drawer.pay-drawer {
  width: min(760px, 100vw);
  background:
    radial-gradient(600px 320px at 100% 0%, rgba(34, 197, 94, .10), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(245, 158, 11, .07), transparent 70%),
    linear-gradient(180deg, #0f1623 0%, #0a0f19 100%);
  border-left: 1px solid rgba(255, 255, 255, .08);
  box-shadow: -30px 0 80px -20px rgba(0, 0, 0, .9);
}
.modal.pay-drawer::before { background: linear-gradient(90deg, #22c55e, #f59e0b); height: 3px; }
.pay-drawer .modal-head { padding: 22px 26px 16px; }
.pay-drawer .modal-title { font-size: 26px; display: flex; flex-direction: column; gap: 4px; }
.pd-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: #22c55e; }
.pay-drawer .modal-body { padding: 18px 26px 22px; background: transparent; }
.pay-drawer .pay-grid { grid-template-columns: 1fr; gap: 18px; }

/* Montant à régler : carte héro */
.pay-drawer .pay-due {
  position: relative; overflow: hidden; margin-bottom: 18px; padding: 20px 22px; border-radius: 18px;
  background: radial-gradient(400px 160px at 100% 0%, rgba(245, 158, 11, .22), transparent 70%), linear-gradient(160deg, #1a2130, #121722);
  border: 1px solid rgba(245, 158, 11, .30); box-shadow: 0 18px 40px -22px rgba(245, 158, 11, .5);
}
.pay-drawer .pay-due::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .06) 45%, transparent 60%);
  transform: translateX(-100%); animation: dueShine 3.2s ease-in-out 0.4s infinite;
}
@keyframes dueShine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.pay-drawer .pay-due .lbl { color: #a8b3c1; }
.pay-drawer .pay-due .val { font-size: 44px; font-weight: 900; color: #fbbf24; letter-spacing: -.02em; margin-top: 6px; }

/* Modes de paiement */
.pay-drawer .eyebrow { font-size: 10px; letter-spacing: .2em; color: #8b95a3; }
.pay-drawer .methods { gap: 10px; }
.pay-drawer .method { height: 64px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); transition: transform .15s, border-color .2s, background .2s, box-shadow .2s; }
.pay-drawer .method:hover { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); }
.pay-drawer .method:active { transform: scale(.97); }
.pay-drawer .method.active { border-color: #22c55e; background: rgba(34, 197, 94, .10); box-shadow: 0 0 0 1px #22c55e, 0 10px 24px -14px rgba(34, 197, 94, .7); }
.pay-drawer .method.active .mi:not(.has-logo) { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
.pay-drawer .method.active .mi.has-logo { box-shadow: 0 0 0 2px #0f1623, 0 0 0 3.5px #22c55e; }
.pay-drawer .quick { grid-template-columns: repeat(3, 1fr); }
.pay-drawer .quick button { height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .08); }

/* Écran + pavé numérique côte à côte */
.pay-drawer .pay-grid > div:last-child { display: grid; grid-template-columns: 1fr 330px; gap: 16px; align-items: start; }
.pay-drawer .pay-screen { grid-column: 1; margin: 0; padding: 18px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .07); }
.pay-drawer .pay-screen .r { flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 0; }
.pay-drawer .pay-screen .r + .r { border-top: 1px dashed rgba(255, 255, 255, .08); margin-top: 6px; padding-top: 12px; }
.pay-drawer .pay-screen .r b { font-size: 28px; font-weight: 900; }
.pay-drawer .credit-box { grid-column: 1; margin: 0; }
.pay-drawer #pay-pad { grid-column: 2; grid-row: 1 / span 3; }
.pay-drawer .keypad.compact .key { height: 58px; border-radius: 14px; font-size: 22px; background: rgba(255, 255, 255, .045); border-color: rgba(255, 255, 255, .08); }
.pay-drawer .keypad.compact .key:active { background: rgba(34, 197, 94, .15); border-color: #22c55e; }

/* Étapes numérotées : 1 type de règlement, 2 mode(s), 3 montants */
.pay-drawer .pay-step { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; font-size: 10.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #8b95a3; }
.pay-drawer .pay-step::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .09), transparent); }
.pay-drawer .ps-num {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; letter-spacing: 0; font-size: 11px; color: #fbbf24;
  background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .4);
}

/* Paiement unique / multi-paiement */
.pay-drawer .pay-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 18px; border-radius: 16px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .07); }
.pay-drawer .pay-mode button {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid transparent; border-radius: 12px;
  background: transparent; color: #8b95a3; font-weight: 700; font-size: 13.5px; text-align: left; cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.pay-drawer .pay-mode button small { display: block; font-size: 11px; font-weight: 500; color: #6f7d91; margin-top: 2px; }
.pay-drawer .pay-mode button svg.lucide { width: 20px; height: 20px; flex: none; }
.pay-drawer .pay-mode button:hover { color: #c4cdd8; background: rgba(255, 255, 255, .03); }
.pay-drawer .pay-mode button.active {
  color: #fff; background: linear-gradient(160deg, rgba(245, 158, 11, .16), rgba(245, 158, 11, .05)); border-color: rgba(245, 158, 11, .45);
  box-shadow: 0 8px 22px -14px rgba(245, 158, 11, .8);
}
.pay-drawer .pay-mode button.active svg.lucide { color: #fbbf24; }
.pay-drawer .pay-mode button.active small { color: #a8b3c1; }

/* Parts du multi-paiement */
.pay-drawer .pay-parts { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 18px; }
.pay-drawer .pay-part {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s;
}
.pay-drawer .pay-part:hover { border-color: rgba(255, 255, 255, .16); }
.pay-drawer .pay-part.active { background: rgba(34, 197, 94, .08); border-color: #22c55e; box-shadow: 0 0 0 1px #22c55e, 0 10px 24px -16px rgba(34, 197, 94, .8); }
.pay-drawer .pay-part .pp-name { font-weight: 700; font-size: 14px; color: #e8edf3; }
.pay-drawer .pay-part .pp-name small { display: block; font-size: 11px; font-weight: 500; color: #6f7d91; margin-top: 2px; }
.pay-drawer .pay-part.active .pp-name small { color: #4ade80; }
.pay-drawer .pay-part .pp-ico { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #c4cdd8; }
.pay-drawer .pay-part .pp-ico svg.lucide { width: 18px; height: 18px; }
.pay-drawer .pay-part .pp-ico.has-logo { background: #fff; }
.pay-drawer .pay-part .pp-ico img { width: 100%; height: 100%; object-fit: cover; }
.pay-drawer .pay-part .pp-amt {
  display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 11px; cursor: text;
  background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .08); transition: border-color .2s, box-shadow .2s;
}
.pay-drawer .pay-part .pp-amt input {
  width: 110px; border: 0; outline: 0; background: transparent; text-align: right;
  font: inherit; font-size: 18px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums;
}
.pay-drawer .pay-part .pp-amt span { font-size: 12px; font-weight: 700; color: #8b95a3; }
.pay-drawer .pay-part.active .pp-amt { border-color: rgba(34, 197, 94, .6); }
.pay-drawer .pay-part .pp-amt:focus-within { border-color: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
.pay-drawer .pp-rm {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; cursor: pointer;
  background: transparent; border: 1px solid rgba(255, 255, 255, .08); color: #8b95a3; transition: color .2s, border-color .2s, background .2s;
}
.pay-drawer .pp-rm:hover { color: #f87171; border-color: rgba(239, 68, 68, .5); background: rgba(239, 68, 68, .1); }
.pay-drawer .pp-rm svg.lucide { width: 16px; height: 16px; }
.pay-drawer .pay-parts-empty {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; font-size: 13px; line-height: 1.45; color: #a8b3c1;
  border: 1px dashed rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .04);
}
.pay-drawer .pay-parts-empty svg.lucide { flex: none; color: #fbbf24; }
.pay-drawer .pay-parts-empty b { color: #fff; }

/* Jauge réglé / reste (multi-paiement) */
.pay-drawer .pay-progress { display: none; margin-top: 14px; position: relative; z-index: 1; }
.pay-drawer .pay-progress.on { display: block; }
.pay-drawer .pp-bar { height: 8px; border-radius: 99px; background: rgba(0, 0, 0, .35); overflow: hidden; }
.pay-drawer .pp-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #f59e0b, #fbbf24); transition: width .35s cubic-bezier(.22, 1, .36, 1); }
.pay-drawer .pp-bar i.done { background: linear-gradient(90deg, #16a34a, #22c55e); }
.pay-drawer .pp-legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: #a8b3c1; }
.pay-drawer .pp-legend b { color: #fff; font-variant-numeric: tabular-nums; }
.pay-drawer .pp-legend .pp-ok { color: #4ade80; }

/* Pied : bouton principal pleine largeur */
.pay-drawer .modal-foot { padding: 16px 26px 22px; gap: 12px; background: rgba(5, 8, 13, .7); backdrop-filter: blur(10px); }
.pay-drawer .modal-foot #p-ok { flex: 1; height: 60px; font-size: 16px; border-radius: 14px; letter-spacing: .02em; }
.pay-drawer .modal-foot .btn-ghost { height: 60px; }

@media (max-width: 760px) {
  .pay-drawer .pay-grid > div:last-child { grid-template-columns: 1fr; }
  .pay-drawer #pay-pad { grid-column: 1; grid-row: auto; }
  .pay-drawer .pay-mode button small { display: none; }
  .pay-drawer .pay-mode button { padding: 10px; gap: 8px; font-size: 13px; }
}
@media (max-height: 860px) {
  .pay-drawer .modal-head { padding: 14px 24px 10px; }
  .pay-drawer .modal-title { font-size: 21px; }
  .pay-drawer .modal-body { padding: 12px 24px 14px; }
  .pay-drawer .pay-grid { gap: 12px; }
  .pay-drawer .pay-due { padding: 12px 18px; margin-bottom: 12px; }
  .pay-drawer .pay-due .val { font-size: 32px; margin-top: 2px; }
  .pay-drawer .method { height: 50px; }
  .pay-drawer .methods { margin-bottom: 12px; }
  .pay-drawer .quick button { height: 38px; }
  .pay-drawer .keypad.compact { gap: 8px; }
  .pay-drawer .keypad.compact .key { height: 46px; font-size: 19px; }
  .pay-drawer .pay-screen { padding: 12px 16px; }
  .pay-drawer .pay-screen .r b { font-size: 22px; }
  .pay-drawer .modal-foot { padding: 12px 24px 14px; }
  .pay-drawer .modal-foot #p-ok, .pay-drawer .modal-foot .btn-ghost { height: 52px; }
}

/* =========================================================
   PERFORMANCE
   Le flou en direct (backdrop-filter) est recalculé à chaque image
   au-dessus du fond animé : on le remplace par des fonds quasi opaques
   au rendu équivalent. Seuls transform/opacity restent animés (GPU).
   ========================================================= */
*, *::before, *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

.pos-topbar { background: rgba(11, 15, 22, .94); }
.crt-root .sidebar { background: #07090d; }
.ticket { background: rgba(11, 15, 22, .93); }
.product { background: rgba(16, 21, 30, .92); }
.product:hover { background: rgba(22, 28, 40, .95); }
.tables-bar { background: rgba(8, 11, 16, .82); }
.modal-backdrop { background: rgba(3, 5, 9, .78); }
.theme-pop { background: rgba(14, 19, 28, .98); }
.p-stock, .p-price { background-color: rgba(18, 17, 16, .9); }
.p-foot .p-price { background: rgba(245, 158, 11, .12); }
.toast { background: rgba(15, 22, 35, .98); }

/* Animations limitées au transform (plus de filtre animé) */
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.crt-logo { filter: none; }
.p-img img { filter: none !important; transition: transform .5s ease; }
#app-bg .bg-layer > div { will-change: transform; }

/* Cartes, lignes et pages : rendu limité à la zone visible */
.product { content-visibility: auto; contain-intrinsic-size: auto 250px; contain: layout paint style; }
.t-line, .cr-client, .table tbody tr { contain: layout style; }
.products, .ticket-lines, .page, .tables-row { contain: layout paint; overscroll-behavior: contain; }

/* Transitions courtes et ciblées */
.product, .table-chip, .btn, .nav-btn, .cat-pill, .method { transition-property: transform, background-color, border-color, box-shadow, color; transition-duration: .15s; }
.view { animation-duration: .2s; }
.modal { animation-duration: .2s; }
.modal.drawer { animation-duration: .25s; }

/* Préférence système « réduire les animations » ou mode performance */
@media (prefers-reduced-motion: reduce) {
  #app-bg *, .crt-logo, .pay-due::after { animation: none !important; }
}
:root[data-lowfx] #app-bg *, :root[data-lowfx] .crt-logo, :root[data-lowfx] .pay-due::after { animation: none !important; }
:root[data-lowfx] .product:hover { transform: none; }

a.nav-btn, a.sidebar-nav-item { text-decoration: none; }

/* Écran d'aide : application ouverte comme fichier avec stockage cloisonné */
.iso-help { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.iso-card { max-width: 560px; background: #0f1623; border: 1px solid rgba(255,255,255,.1); border-top: 3px solid #f59e0b; border-radius: 18px; padding: 30px 32px; color: #e8edf3; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); }
.iso-ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.5); color: #f59e0b; font-weight: 900; font-size: 22px; margin-bottom: 14px; }
.iso-card h1 { font-size: 22px; font-weight: 900; margin-bottom: 10px; }
.iso-card p { color: #a8b3c1; line-height: 1.6; }
.iso-card ol { margin: 16px 0 20px 20px; line-height: 1.9; }
.iso-card .btn { text-decoration: none; }
.iso-note { font-size: 12px; margin-top: 14px; }

/* =========================================================
   Chargement AJAX premium
   ========================================================= */
#route-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 500; pointer-events: none; opacity: 0; transition: opacity .3s; }
#route-bar.on { opacity: 1; }
#route-bar i {
  display: block; height: 100%; width: 0; border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #22c55e, #fbbf24 55%, #f59e0b);
  box-shadow: 0 0 12px rgba(245, 158, 11, .8), 0 0 4px rgba(251, 191, 36, .9);
  transition: width .25s ease;
}
#route-veil {
  position: fixed; inset: 54px 0 0 0; z-index: 400; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(10, 14, 20, .55), rgba(5, 7, 11, .82));
  opacity: 0; transition: opacity .2s ease;
}
#route-veil.on { opacity: 1; pointer-events: all; }
.rv-card { display: flex; flex-direction: column; align-items: center; gap: 16px; transform: translateY(6px) scale(.97); transition: transform .3s cubic-bezier(.2, .9, .3, 1.2); }
#route-veil.on .rv-card { transform: none; }
.rv-ring {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 30% 25%, #fde68a, #f59e0b 45%, #b45309 100%);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .12), 0 12px 40px -6px rgba(245, 158, 11, .55);
}
.rv-ring span { font-weight: 900; font-style: italic; font-size: 24px; color: #1a1205; }
.rv-ring::after {
  content: ''; position: absolute; inset: -9px; border-radius: 50%;
  border: 2.5px solid transparent; border-top-color: #fbbf24; border-right-color: rgba(34, 197, 94, .8);
  animation: rvSpin .8s linear infinite;
}
@keyframes rvSpin { to { transform: rotate(360deg); } }
.rv-text { font-size: 11px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: #c9ced8; }
.rv-text b { animation: rvDot 1.2s infinite; opacity: .2; }
.rv-text b:nth-child(2) { animation-delay: .2s; }
.rv-text b:nth-child(3) { animation-delay: .4s; }
@keyframes rvDot { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }

/* Fondu du contenu entre deux pages */
.view { transition: opacity .14s ease, transform .2s cubic-bezier(.2, .8, .2, 1); }
.view.leaving { opacity: 0; transform: translateY(6px); }
.view.entering { opacity: 0; transform: translateY(-4px); }

/* =========================================================
   Inscription & abonnement — habillage repris d'Elegante Frip
   (titre serif à mot doré, étapes, champs à icône, anneau des jours, prix, liste ✓)
   Couleurs du thème : --accent, --grad, --card…
   ========================================================= */
.abo-screen { position: relative; justify-content: center; align-items: center; }
.ab-body { width: 100%; max-width: 470px; margin: auto 0; }
.ab-body.ab-in > * { animation: abUp .55s cubic-bezier(.2, .85, .25, 1) both; }
.ab-body.ab-in > *:nth-child(2) { animation-delay: .05s; } .ab-body.ab-in > *:nth-child(3) { animation-delay: .1s; }
.ab-body.ab-in > *:nth-child(4) { animation-delay: .15s; } .ab-body.ab-in > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes abUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.ab-eyebrow { font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.ab-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(38px, 3.8vw, 52px); font-weight: 600; letter-spacing: -.01em; line-height: 1.02; margin: 14px 0 12px; color: var(--text); }
.ab-title em { font-style: italic; font-weight: 500; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ab-lead { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 0 28px; }
.ab-lead b { color: var(--text-2); }

.ab-card { position: relative; padding: 30px 28px 26px; border-radius: 20px; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.ab-card::before { content: ''; position: absolute; left: 30px; right: 30px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .7; }

/* Étapes */
.ab-steps { list-style: none; display: flex; align-items: center; margin: 0 0 28px; padding: 0; }
.ab-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; flex: 1; white-space: nowrap; }
.ab-steps li:last-child { flex: 0 0 auto; }
.ab-steps li:not(:last-child)::after { content: ''; flex: 1; border-top: 1px solid var(--line-2); margin: 0 10px; min-width: 16px; }
.ab-step-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: 12.5px; border: 1px solid var(--line-2); background: var(--card); transition: .3s; }
.ab-steps li.current { color: var(--text); }
.ab-steps li.current .ab-step-dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.ab-steps li.done { color: var(--text-2); }
.ab-steps li.done .ab-step-dot { background: var(--grad); color: var(--accent-ink); border-color: transparent; }
.ab-steps li.done::after { border-color: var(--accent); opacity: .55; }

/* Formulaire */
.ab-form { display: flex; flex-direction: column; gap: 18px; }
.ab-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ab-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ab-label { font-size: 10.5px; font-weight: 700; color: var(--text-2); letter-spacing: .18em; text-transform: uppercase; }
.ab-inputwrap { position: relative; }
.ab-inputwrap input, .ab-inputwrap select {
  width: 100%; height: 52px; padding: 0 16px 0 46px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2);
  color: var(--text); font: inherit; font-size: 15px; font-weight: 500; outline: none; transition: border-color .18s, box-shadow .18s;
}
.ab-inputwrap input::placeholder { color: var(--muted); opacity: .7; font-weight: 400; }
.ab-inputwrap input:focus, .ab-inputwrap select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ab-inputwrap select {
  padding-right: 40px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: var(--bg) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%239C8E88" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>') right 14px center / 18px no-repeat;
}
.ab-inputwrap select option { background: var(--card); color: var(--text); }
.ab-inputwrap .ab-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; transition: color .18s; }
.ab-inputwrap:focus-within .ab-ico { color: var(--accent); }

/* Boutons */
.ab-submit {
  margin-top: 6px; height: 54px; width: 100%; border-radius: 12px; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: var(--accent-ink); font: inherit; font-size: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 12px 30px -14px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, .4); transition: transform .12s ease, filter .2s;
}
.ab-submit:hover { filter: brightness(1.06); }
.ab-submit:active { transform: scale(.98); }
.ab-submit[disabled] { opacity: .6; cursor: wait; }
.ab-ghost {
  height: 50px; width: 100%; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--text); text-decoration: none;
  font: inherit; font-size: 13.5px; font-weight: 600; letter-spacing: .04em; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: .2s;
}
.ab-ghost:hover { border-color: var(--line); background: var(--hover); }
.ab-ghost svg.lucide { width: 17px; height: 17px; }
.ab-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; margin: 18px 0; }
.ab-or::before, .ab-or::after { content: ''; flex: 1; border-top: 1px solid var(--line-2); }

/* Offre d'essai */
.ab-offer { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 16px; margin-bottom: 22px; background: linear-gradient(135deg, var(--accent-soft), rgba(140, 43, 64, .10)); border: 1px solid var(--line); }
.ab-offer-num { font-family: "Cormorant Garamond", Georgia, serif; font-size: 56px; font-weight: 600; line-height: .9; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ab-offer-txt b { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.ab-offer-txt span { font-size: 13px; color: var(--muted); }

/* Jours restants : anneau */
.ab-sub { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; margin-bottom: 20px; background: linear-gradient(135deg, var(--accent-soft), rgba(140, 43, 64, .10)); border: 1px solid var(--line); }
.ab-ring { --p: 50; --c: var(--accent); position: relative; width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0); }
.ab-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--card); }
.ab-ring b { position: relative; font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; font-weight: 600; line-height: 1; color: var(--text); }
.ab-sub-txt { min-width: 0; }
.ab-sub-txt strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--text); }
.ab-sub-txt span { font-size: 12.5px; color: var(--muted); }
.ab-sub.warn { background: linear-gradient(135deg, rgba(240, 185, 106, .14), rgba(140, 43, 64, .12)); border-color: rgba(240, 185, 106, .4); }
.ab-sub.warn .ab-ring { --c: #F0B96A; }
.ab-sub.over { background: rgba(229, 130, 111, .10); border-color: rgba(229, 130, 111, .4); }
.ab-sub.over .ab-ring { --c: #E5826F; }

/* Prix, notes, liste */
.ab-price { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 6px; }
.ab-price strong { font-family: "Cormorant Garamond", Georgia, serif; font-size: 52px; font-weight: 600; letter-spacing: -.01em; line-height: 1.05; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ab-price span { color: var(--muted); font-weight: 700; }
.ab-skel { animation: abPulse 1.2s ease-in-out infinite; }
@keyframes abPulse { 50% { opacity: .35; } }
.ab-note { font-size: 13.5px; line-height: 1.6; color: var(--text-2); margin: 0 0 16px; }
.ab-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.ab-list li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--text-2); }
.ab-list li::before { content: '\2713'; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: 11px; color: var(--accent); border: 1px solid var(--line); }

/* Bouton de paiement */
.ab-pay-btn {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; cursor: pointer; text-align: left;
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line-2); color: var(--text); font: inherit; transition: .2s;
}
.ab-pay-btn:hover { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); transform: translateY(-1px); }
.ab-pay-ico { width: 56px; height: 48px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--grad); color: var(--accent-ink); }
.ab-pay-btn b { display: block; font-size: 15px; font-weight: 700; }
.ab-pay-btn small { color: var(--muted); font-size: 12.5px; }
.ab-pay-btn .ab-go { margin-left: auto; color: var(--accent); font-size: 20px; }
.ab-pay-btn.loading { opacity: .7; pointer-events: none; }
.ab-pay-btn.loading .ab-go { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--accent-soft); border-top-color: var(--accent); font-size: 0; animation: abRot .8s linear infinite; }
@keyframes abRot { to { transform: rotate(360deg); } }
.ab-pending { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; margin: 16px 0 12px; font-size: 13px;
  background: var(--accent-soft); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.ab-pending svg.lucide { flex: none; color: var(--accent); width: 20px; height: 20px; }
.ab-pending b { display: block; color: var(--text); } .ab-pending span { color: var(--text-2); }
.ab-pending.err { background: rgba(229, 130, 111, .08); border-left-color: #E5826F; margin-top: 0; }
.ab-pending.err svg.lucide { color: #E5826F; }

/* Alerte « bientôt expiré » sur l'écran des profils */
.ab-alert { display: flex; align-items: center; gap: 12px; max-width: 560px; margin-bottom: 18px; }
.ab-alert .ab-sub { flex: 1; margin: 0; padding: 12px 14px; }
.ab-alert .ab-ring { width: 48px; height: 48px; }
.ab-alert .ab-ring b { font-size: 20px; }
.ab-alert-btn { flex: none; height: 46px; padding: 0 18px; border-radius: 12px; border: 0; cursor: pointer; background: var(--grad); color: var(--accent-ink); font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ab-hero-chip { margin-left: 8px; padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line); background: rgba(0, 0, 0, .45); color: var(--accent); font-weight: 700; font-size: 12px; backdrop-filter: blur(6px); }
.ab-hero-chip.warn { color: #F0B96A; border-color: rgba(240, 185, 106, .45); }

/* Chargement */
.ab-loader { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; opacity: 0; pointer-events: none; background: rgba(10, 8, 6, .74); backdrop-filter: blur(6px); transition: opacity .3s; }
.ab-loader.on { opacity: 1; pointer-events: auto; }
.ab-loader-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; transform: translateY(8px) scale(.97); transition: transform .4s cubic-bezier(.2, .85, .25, 1); }
.ab-loader.on .ab-loader-inner { transform: none; }
.ab-loader-ring { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; color: var(--accent); border: 1px solid var(--line); background: var(--card); animation: abSwing 1.8s ease-in-out infinite; box-shadow: 0 18px 30px rgba(0, 0, 0, .5); }
.ab-loader-ring svg.lucide { width: 42px; height: 42px; }
@keyframes abSwing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.ab-loader-text { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: .04em; }
.ab-loader-bar { width: 190px; height: 2px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.ab-loader-bar span { display: block; height: 100%; width: 40%; border-radius: 99px; background: var(--grad); animation: abBar 1.3s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes abBar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }

@media (max-width: 600px) {
  .ab-row { grid-template-columns: 1fr; }
  .ab-card { padding: 24px 18px 20px; }
  .ab-step-lab { display: none; }
  .ab-steps li.current .ab-step-lab { display: inline; }
  .ab-alert { flex-direction: column; align-items: stretch; }
}

/* ---------- Paiement Orange Money en temps réel (repris de crochet : vt-pay) ---------- */
.ab-pay-btn img { width: 64px; height: 48px; object-fit: cover; border-radius: 10px; flex-shrink: 0; background: #000; }
.ab-pay-btn:hover { border-color: #FF7900; box-shadow: 0 0 0 4px rgba(255, 121, 0, .14); }
.ab-pay-btn .ab-go { color: #FF9A40; }
.ab-pay-live { --st: #FF7900; text-align: center; animation: abUp .5s cubic-bezier(.2, .85, .25, 1) both; }
.ab-pay-live[data-state="success"] { --st: #9CCBAA; }
.ab-pay-live[data-state="failed"] { --st: #E5826F; }
.ab-pay-orb { position: relative; width: 150px; height: 150px; margin: 4px auto 22px; display: grid; place-items: center; }
.ab-pay-ring { position: absolute; inset: 18px; border-radius: 50%; border: 2px solid var(--st); opacity: 0; animation: abRing 2.4s cubic-bezier(.2, .6, .3, 1) infinite; }
.ab-pay-ring.r2 { animation-delay: 1.2s; }
@keyframes abRing { 0% { transform: scale(.85); opacity: .6; } 100% { transform: scale(1.35); opacity: 0; } }
.ab-pay-arc { position: absolute; inset: 14px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, var(--st) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: abRot 1.15s linear infinite; }
.ab-pay-core { position: relative; width: 92px; height: 92px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--card-2); box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -14px rgba(0, 0, 0, .7); }
.ab-pay-logo { width: 100%; height: 100%; object-fit: contain; padding: 10px; background: #000; transition: opacity .35s, transform .35s; }
.ab-pay-check, .ab-pay-cross { position: absolute; width: 52px; height: 52px; fill: none; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.ab-pay-check { stroke: #9CCBAA; } .ab-pay-cross { stroke: #E5826F; }
.ab-pay-check path, .ab-pay-cross path { stroke-dasharray: 60; stroke-dashoffset: 60; }
.ab-pay-live[data-state="success"] .ab-pay-arc, .ab-pay-live[data-state="failed"] .ab-pay-arc { animation: none; background: var(--st); }
.ab-pay-live[data-state="success"] .ab-pay-ring, .ab-pay-live[data-state="failed"] .ab-pay-ring { animation-iteration-count: 1; }
.ab-pay-live[data-state="success"] .ab-pay-logo, .ab-pay-live[data-state="failed"] .ab-pay-logo { opacity: 0; transform: scale(.6); }
.ab-pay-live[data-state="success"] .ab-pay-check { opacity: 1; }
.ab-pay-live[data-state="success"] .ab-pay-check path { animation: abDraw .6s .15s cubic-bezier(.65, 0, .35, 1) forwards; }
.ab-pay-live[data-state="failed"] .ab-pay-cross { opacity: 1; }
.ab-pay-live[data-state="failed"] .ab-pay-cross path { animation: abDraw .5s .1s ease forwards; }
@keyframes abDraw { to { stroke-dashoffset: 0; } }
.ab-pay-live[data-state="success"] .ab-pay-orb { animation: abPop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes abPop { 0% { transform: scale(.9); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.ab-pay-live.paused .ab-pay-arc, .ab-pay-live.paused .ab-pay-ring { animation-play-state: paused; opacity: .3; }
.ab-pay-title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 26px; font-weight: 600; color: var(--text); margin: 0 0 8px; }
.ab-pay-live[data-state="success"] .ab-pay-title { color: #9CCBAA; }
.ab-pay-live[data-state="failed"] .ab-pay-title { color: #E5826F; }
.ab-pay-sub { font-size: 13.5px; line-height: 1.6; color: var(--text-2); margin: 0 auto 20px; max-width: 340px; }
.ab-pay-sub b { color: #FF9A40; }
.ab-pay-steps { list-style: none; margin: 0 0 18px; padding: 14px 16px; display: grid; gap: 12px; text-align: left; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); }
.ab-pay-steps li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.ab-pay-steps li span { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 11px; }
.ab-pay-steps li.done { color: var(--text-2); }
.ab-pay-steps li.done span { background: #9CCBAA; border-color: transparent; }
.ab-pay-steps li.done span::after { content: '\2713'; color: #10261A; font-weight: 800; }
.ab-pay-steps li.current { color: var(--text); }
.ab-pay-steps li.current span { border-color: rgba(255, 121, 0, .3); border-top-color: #FF7900; animation: abRot .8s linear infinite; }
.ab-pay-steps li.error { color: #E5826F; }
.ab-pay-steps li.error span { background: #E5826F; border-color: transparent; }
.ab-pay-steps li.error span::after { content: '\2715'; color: #2A0E0A; font-weight: 800; }
.ab-pay-status { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: 12.5px; color: var(--muted); margin-bottom: 20px; }
.ab-pay-dot { width: 8px; height: 8px; border-radius: 50%; background: #9CCBAA; animation: abLive 2s ease-in-out infinite; }
@keyframes abLive { 0% { box-shadow: 0 0 0 0 rgba(156, 203, 170, .55); } 70% { box-shadow: 0 0 0 10px rgba(156, 203, 170, 0); } 100% { box-shadow: 0 0 0 0 rgba(156, 203, 170, 0); } }
.ab-pay-live.offline .ab-pay-dot { background: #F0B96A; }
.ab-pay-live.paused .ab-pay-dot { animation: none; background: var(--muted); }
.ab-pay-live[data-state="success"] .ab-pay-status, .ab-pay-live[data-state="failed"] .ab-pay-status { display: none; }
.ab-pay-time { font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 99px; background: var(--card-2); color: var(--text-2); font-weight: 600; }
.ab-pay-actions { display: grid; gap: 10px; }
.ab-pay-actions .ab-submit { margin-top: 0; }
.ab-pay-live[data-state="success"] .ab-pay-actions { display: none; }

/* =========================================================
   Page Caisse — habillage premium (bandeau de session, onglets à compteur,
   flux des espèces, recette par mode, produits vendus par famille)
   ========================================================= */
.cx-page .page-head { margin-bottom: 20px; }

/* Bandeau de session */
.cx-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap;
  padding: 18px 22px; margin-bottom: 20px; border-radius: 18px; position: relative; overflow: hidden;
  background: radial-gradient(520px 200px at 100% 0%, var(--accent-soft), transparent 70%), linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .8);
}
.cx-hero::before { content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .7; }
.cx-session { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cx-live { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--green); animation: cxLive 2.6s ease-in-out infinite; }
@keyframes cxLive { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.cx-session-title { font-weight: 800; font-size: 15px; color: var(--text); }
.cx-session-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cx-hero-stats { display: flex; gap: 6px; flex-wrap: wrap; }
.cx-hero-stats > div { display: flex; flex-direction: column; gap: 3px; padding: 8px 16px; border-left: 1px solid var(--line-2); }
.cx-hero-stats > div:first-child { border-left: 0; }
.cx-hero-stats span { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cx-hero-stats b { font-size: 19px; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-hero-stats b.orange { color: var(--orange, #f59e0b); }
.cx-hero-stats .cx-hero-main { padding: 8px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--accent-soft); }
.cx-hero-stats .cx-hero-main span { color: var(--accent); }
.cx-hero-stats .cx-hero-main b { font-size: 22px; color: var(--accent); }

/* Onglets avec compteur */
.cx-tabs { display: flex; gap: 6px; padding: 5px; margin-bottom: 18px; border-radius: 14px; width: fit-content; max-width: 100%; overflow-x: auto;
  background: rgba(0, 0, 0, .22); border: 1px solid var(--line-2); }
.cx-tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.cx-tab svg.lucide { width: 17px; height: 17px; }
.cx-tab:hover { color: var(--text-2); background: rgba(255, 255, 255, .03); }
.cx-tab.active { color: var(--text); background: linear-gradient(160deg, var(--accent-soft), transparent); border-color: var(--line); box-shadow: 0 8px 20px -14px var(--accent-glow); }
.cx-tab.active svg.lucide { color: var(--accent); }
.cx-count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800;
  background: rgba(255, 255, 255, .07); color: var(--text-2); }
.cx-tab.active .cx-count { background: var(--accent); color: var(--accent-ink); }

/* Cartes */
.cx-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.cx-card { padding: 20px 22px; }
.cx-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.cx-card-head .card-title { display: flex; align-items: center; gap: 8px; }
.cx-card-sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* Flux des espèces */
.cx-flow-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); }
.cx-flow-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.cx-flow-ico svg.lucide { width: 18px; height: 18px; }
.cx-flow-row.out .cx-flow-ico { background: var(--red-soft); color: var(--red); }
.cx-flow-txt b { display: block; font-size: 14px; color: var(--text); }
.cx-flow-txt small { font-size: 12px; color: var(--muted); }
.cx-flow-amt { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--text); }
.cx-flow-row.out .cx-flow-amt { color: var(--red); }
.cx-flow-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 14px;
  background: radial-gradient(260px 120px at 100% 0%, var(--accent-soft), transparent 70%), rgba(0, 0, 0, .2); border: 1px solid var(--line); }
.cx-flow-total span { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.cx-flow-total b { font-size: 26px; font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; }

/* Recette par mode */
.cx-method { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 10px 0; }
.cx-method + .cx-method { border-top: 1px solid var(--line-2); }
.cx-method-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; overflow: hidden; background: rgba(255, 255, 255, .06); color: var(--text-2); }
.cx-method-ico.has-logo { background: #fff; }
.cx-method-ico img { width: 100%; height: 100%; object-fit: cover; }
.cx-method-ico svg.lucide { width: 18px; height: 18px; }
.cx-method-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.cx-method-top b { color: var(--text); }
.cx-method-top span { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.cx-method-pct { width: 42px; text-align: right; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.cx-bar { height: 6px; margin-top: 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.cx-bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }

/* Petites cartes chiffrées */
.cx-minis, .cx-sold-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.cx-mini { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; min-width: 0;
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line-2); transition: border-color .2s, transform .2s; }
.cx-mini:hover { border-color: var(--line); transform: translateY(-1px); }
.cx-mini > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cx-mini span:not(.cx-mini-ico) { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cx-mini b { font-size: 19px; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; }
.cx-mini small { font-size: 12px; color: var(--muted); }
.cx-mini-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.cx-mini-ico svg.lucide { width: 19px; height: 19px; }
.cx-mini-ico.red { background: var(--red-soft); color: var(--red); }
.cx-mini-ico.green { background: var(--green-soft); color: var(--green); }
.cx-mini-ico.orange { background: rgba(245, 158, 11, .14); color: #f59e0b; }
.cx-mini-ico.blue { background: rgba(96, 165, 250, .14); color: #60a5fa; }
.cx-ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Produits vendus */
.cx-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cx-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700;
  background: transparent; border: 1px solid var(--line-2); color: var(--muted); transition: .2s; }
.cx-chip svg.lucide { width: 15px; height: 15px; }
.cx-chip:hover { color: var(--text-2); border-color: var(--line); }
.cx-chip.active { color: var(--accent-ink); background: var(--grad); border-color: transparent; }
.cx-fam + .cx-fam { margin-top: 18px; }
.cx-fam-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 4px; border-radius: 10px; background: rgba(0, 0, 0, .2); }
.cx-fam-head svg.lucide { width: 17px; height: 17px; color: var(--accent); }
.cx-fam-head b { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.cx-fam-head span { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cx-prod { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 10px 12px; border-bottom: 1px solid var(--line-2); transition: background .15s; }
.cx-prod:last-child { border-bottom: 0; }
.cx-prod:hover { background: rgba(255, 255, 255, .025); }
.cx-thumb { width: 46px; height: 46px; flex: none; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font-size: 22px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); color: var(--muted); }
.cx-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cx-thumb svg.lucide { width: 20px; height: 20px; }
.cx-prod-name b { display: block; font-size: 14.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-prod-name small { font-size: 12px; color: var(--muted); }
.cx-prod-name .cx-bar { max-width: 320px; height: 4px; margin-top: 6px; }
.cx-prod-qty { min-width: 74px; text-align: center; padding: 6px 10px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--line); }
.cx-prod-qty b { display: block; font-size: 22px; font-weight: 900; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.cx-prod-qty small { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cx-prod-amt { min-width: 110px; text-align: right; font-size: 15px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.cx-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 12px; color: var(--muted); font-size: 13.5px; text-align: center; }
.cx-empty svg.lucide { width: 30px; height: 30px; opacity: .6; }

@media (max-width: 1100px) {
  .cx-minis, .cx-sold-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cx-grid { grid-template-columns: 1fr; }
  .cx-hero-stats > div { border-left: 0; padding: 6px 10px; }
}
@media (max-width: 600px) {
  .cx-minis, .cx-sold-stats { grid-template-columns: 1fr; }
  .cx-card { padding: 16px; }
  .cx-prod { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
  .cx-prod-amt { grid-column: 2 / -1; text-align: left; min-width: 0; font-size: 13.5px; color: var(--text-2); }
  .cx-tabs { width: 100%; }
}

/* =========================================================
   Entrée en stock (bon de réception) — tiroir premium
   ========================================================= */
.modal.drawer.se-drawer { width: min(1080px, 100%); }
.se-drawer .modal-head { padding: 22px 28px 16px; }
.se-drawer .modal-title { display: flex; flex-direction: column; gap: 4px; font-size: 24px; }
.se-ref { color: var(--accent); font-variant-numeric: tabular-nums; }
.se-drawer .modal-body { padding: 18px 28px 24px; }
.se { display: flex; flex-direction: column; gap: 18px; }
.se-sec { padding: 18px 20px; border-radius: 18px; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line-2); }
.se-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.se-sec-head b { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.se-sec-head small { color: var(--muted); font-size: 12.5px; }
.se-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800;
  color: var(--accent); background: var(--accent-soft); border: 1px solid var(--line); }

/* Recherche (articles et fournisseurs) */
.se-search { position: relative; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-radius: 14px;
  background: var(--bg); border: 1px solid var(--line-2); transition: border-color .18s, box-shadow .18s; }
.se-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.se-search > svg.lucide { width: 19px; height: 19px; color: var(--muted); flex: none; }
.se-search:focus-within > svg.lucide { color: var(--accent); }
.se-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; }
.se-search kbd, .se-empty kbd { padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--card-2); color: var(--muted); font: inherit; font-size: 11px; font-weight: 700; }
.se-search.small { height: 46px; }
.se-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; max-height: 360px; overflow-y: auto; padding: 6px;
  border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85); }
.se-res { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.se-res:hover, .se-res.first { background: var(--accent-soft); }
.se-res .thumb { width: 40px; height: 40px; border-radius: 10px; }
.se-res-name b { display: block; font-size: 14px; }
.se-res-name small { font-size: 12px; color: var(--muted); }
.se-res-add { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.se-res-add svg.lucide { width: 14px; height: 14px; }
.se-res-none { padding: 16px; text-align: center; color: var(--muted); font-size: 13px; }

/* Fournisseur */
.se-sup-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 10px; }
.se-sup-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .15);
  color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: border-color .2s, background .2s; min-width: 0; }
.se-sup-opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.se-sup-opt > span:last-child { min-width: 0; }
.se-sup-opt b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.se-sup-opt small { font-size: 11.5px; color: var(--muted); }
.se-sup-new { border-style: dashed; border-color: var(--line); }
.se-sup-new b { color: var(--accent); }
.se-sup-av { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: var(--grad); color: var(--accent-ink); }
.se-sup-new .se-sup-av { background: var(--accent-soft); color: var(--accent); }
.se-sup-av svg.lucide { width: 18px; height: 18px; }
.se-sup-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: radial-gradient(300px 120px at 0% 0%, var(--accent-soft), transparent 70%), rgba(0, 0, 0, .15); flex-wrap: wrap; }
.se-sup-card .se-sup-av { width: 46px; height: 46px; font-size: 15px; }
.se-sup-info { flex: 1; min-width: 160px; }
.se-sup-info b { display: block; font-size: 16px; color: var(--text); }
.se-sup-info small { font-size: 12.5px; color: var(--muted); }
.se-sup-vol { font-size: 12px; font-weight: 700; color: var(--text-2); padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .05); }
.se-newsup { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.se-field { display: flex; flex-direction: column; gap: 6px; }
.se-field label { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.se-field input { height: 44px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-size: 14px; outline: 0; }
.se-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.se-newsup-acts { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.se-hint { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.se-hint svg.lucide { width: 15px; height: 15px; }

/* Lignes d'articles */
.se-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 12px; margin-top: 14px; text-align: center;
  border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); }
.se-empty > span { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.se-empty b { color: var(--text); font-size: 14.5px; }
.se-empty small { font-size: 12.5px; }
.se-table { margin-top: 14px; }
.se-tr { display: grid; grid-template-columns: minmax(200px, 1.6fr) 132px 130px 130px 70px 120px 40px; align-items: center; gap: 10px; padding: 10px 8px; border-bottom: 1px solid var(--line-2); }
.se-tr:last-child { border-bottom: 0; }
.se-th { padding: 0 8px 8px; border-bottom: 1px solid var(--line); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.se-th span:nth-child(n+5) { text-align: right; }
.se-art { display: flex; align-items: center; gap: 10px; min-width: 0; }
.se-art .thumb { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.se-art > div { min-width: 0; }
.se-art b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.se-art small { font-size: 11.5px; color: var(--muted); }
.se-art small b { display: inline; color: var(--green); }
.se-qty { display: flex; align-items: center; height: 40px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--bg); overflow: hidden; }
.se-qty button { width: 34px; height: 100%; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.se-qty button:hover { color: var(--accent); background: var(--accent-soft); }
.se-qty button svg.lucide { width: 15px; height: 15px; }
.se-qty input { flex: 1; min-width: 0; height: 100%; border: 0; border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); background: transparent;
  text-align: center; color: var(--text); font: inherit; font-size: 15px; font-weight: 800; outline: 0; }
.se-money { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--bg); cursor: text; }
.se-money:focus-within, .se-qty:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.se-money input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; text-align: right; color: var(--text); font: inherit; font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.se-money span { font-size: 11px; font-weight: 700; color: var(--muted); }
.se-margin { text-align: right; font-size: 13px; font-weight: 800; color: var(--muted); }
.se-margin.ok { color: var(--green); } .se-margin.low { color: #f59e0b; } .se-margin.neg { color: var(--red); }
.se-total { text-align: right; font-size: 15px; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.se-rm { width: 34px; height: 34px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.se-rm:hover { color: var(--red); border-color: rgba(239, 68, 68, .4); background: var(--red-soft); }
.se-rm svg.lucide { width: 16px; height: 16px; }

/* Pied : récapitulatif + actions */
.se-drawer .modal-foot { padding: 14px 28px 20px; }
.se-foot { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; }
.se-sum { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }
.se-sum > div { display: flex; flex-direction: column; gap: 2px; padding: 6px 14px; border-left: 1px solid var(--line-2); }
.se-sum > div:first-child { border-left: 0; padding-left: 0; }
.se-sum span { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.se-sum b { font-size: 18px; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; }
.se-sum .se-sum-main { padding: 6px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--accent-soft); }
.se-sum .se-sum-main span { color: var(--accent); }
.se-sum .se-sum-main b { font-size: 22px; color: var(--accent); }
.se-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.se-acts .btn { height: 48px; }
.se-btn-wait { border: 1px solid rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .08); color: #f59e0b; }
.se-btn-wait:hover { background: rgba(245, 158, 11, .16); }
.se-acts .btn[disabled] { opacity: .45; pointer-events: none; }

/* Récapitulatif dans la confirmation */
.se-confirm { display: block; margin: 0 auto 14px; max-width: 320px; padding: 10px 14px; border-radius: 12px; text-align: left; background: rgba(0, 0, 0, .2); border: 1px solid var(--line-2); }
.se-confirm > span { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.se-confirm > span + span { border-top: 1px dashed var(--line-2); }
.se-confirm > span > span { color: var(--muted); }
.se-confirm b { color: var(--text); }

/* Entrées en attente (page Stock) */
.se-pending { margin-bottom: 18px; border-color: rgba(245, 158, 11, .35); }
.se-pending .card-title svg.lucide { color: #f59e0b; }
.se-pending-sub { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.se-pend { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 4px; border-top: 1px solid var(--line-2); }
.se-pend-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(245, 158, 11, .12); color: #f59e0b; }
.se-pend-ico svg.lucide { width: 18px; height: 18px; }
.se-pend-info b { display: block; font-size: 14px; color: var(--text); }
.se-pend-info small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.se-pend-amt { font-weight: 900; font-size: 15px; color: var(--text); white-space: nowrap; }
.se-pend-acts { display: flex; gap: 6px; }

@media (max-width: 980px) {
  .se-th { display: none; }
  .se-tr { grid-template-columns: 1fr 1fr; gap: 8px 10px; padding: 12px 4px; }
  .se-art { grid-column: 1 / -1; }
  .se-margin, .se-total { text-align: left; }
  .se-rm { justify-self: end; }
}
@media (max-width: 600px) {
  .se-drawer .modal-body, .se-drawer .modal-head, .se-drawer .modal-foot { padding-left: 16px; padding-right: 16px; }
  .se-newsup { grid-template-columns: 1fr; }
  .se-pend { grid-template-columns: auto minmax(0, 1fr); }
  .se-pend-amt, .se-pend-acts { grid-column: 2; }
  .se-acts { width: 100%; } .se-acts .btn { flex: 1; }
}

/* Bon en attente repris dans l'écran d'entrée */
.se-badge-wait { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 4px; padding: 3px 10px; border-radius: 99px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #f59e0b; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .4); }
.se-badge-wait svg.lucide { width: 13px; height: 13px; }
.se-pend { cursor: pointer; border-radius: 12px; transition: background .15s; }
.se-pend:hover { background: rgba(245, 158, 11, .05); }
/* Page Stock : bouton Redresser + tiroir de redressement */
.st-adjust-btn { height: 32px; padding: 0 12px; gap: 6px; font-size: 12.5px; font-weight: 700; border-radius: 9px;
  border: 1px solid var(--line); background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.st-adjust-btn:hover { background: var(--accent); color: var(--accent-ink); }
.st-adjust-btn svg.lucide { width: 15px; height: 15px; }
.modal.drawer.st-adj-drawer { width: min(540px, 100vw); height: 100dvh; max-height: 100dvh; }
/* Le corps défile au lieu d'être coupé quand l'écran est peu haut ; l'en-tête et le pied restent visibles */
.st-adj-drawer .modal-body { min-height: 0; overflow-y: auto; padding: 18px 24px 22px; }
.st-adj-drawer .modal-head, .st-adj-drawer .modal-foot { flex: none; }
.st-adj-drawer .modal-foot .btn { height: 46px; }
.st-adj-drawer .modal-title { display: flex; flex-direction: column; gap: 4px; }
.st-adj { display: flex; flex-direction: column; gap: 16px; }
.st-adj-art { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line-2); }
.st-adj-art .thumb { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.st-adj-art b { display: block; font-size: 17px; color: var(--text); }
.st-adj-art small { font-size: 12.5px; color: var(--muted); }
.st-adj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st-adj-box { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .2); }
.st-adj-box > span { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.st-adj-box > span svg.lucide { width: 13px; height: 13px; }
.st-adj-box > b { font-size: 36px; font-weight: 900; line-height: 1.1; color: var(--text-2); font-variant-numeric: tabular-nums; }
.st-adj-box small { font-size: 11.5px; color: var(--muted); }
.st-adj-box.locked { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .015) 0 8px, transparent 8px 16px), rgba(0, 0, 0, .2); }
.st-adj-box.edit { border-color: var(--line); background: radial-gradient(200px 100px at 100% 0%, var(--accent-soft), transparent 70%), rgba(0, 0, 0, .2); }
.st-adj-box.edit > span { color: var(--accent); }
.st-adj-input { display: flex; align-items: center; height: 52px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.st-adj-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.st-adj-input button { width: 40px; height: 100%; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.st-adj-input button:hover { color: var(--accent); background: var(--accent-soft); }
.st-adj-input button svg.lucide { width: 16px; height: 16px; }
.st-adj-input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; text-align: center; color: var(--text);
  font: inherit; font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.st-adj-input input::placeholder { color: var(--muted); opacity: .45; }
.st-adj-diff { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .2); }
.st-adj-diff span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.st-adj-diff small { font-size: 12.5px; color: var(--text-2); }
.st-adj-diff b { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--muted); }
.st-adj-diff em { grid-column: 1 / -1; font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.st-adj-diff.plus { border-color: rgba(34, 197, 94, .45); background: var(--green-soft); }
.st-adj-diff.plus b, .st-adj-diff.plus em { color: var(--green); }
.st-adj-diff.minus { border-color: rgba(239, 68, 68, .45); background: var(--red-soft); }
.st-adj-diff.minus b, .st-adj-diff.minus em { color: var(--red); }
.st-adj-diff.zero b { color: var(--text); }
.st-adj-sec { display: flex; flex-direction: column; gap: 10px; }
.st-adj-sec > label { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.st-adj-reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-adj-reason { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 6px 8px; line-height: 1.2; text-align: center; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 700; transition: .15s; }
.st-adj-reason svg.lucide { width: 15px; height: 15px; flex: none; }
.st-adj-reason:hover { border-color: var(--line); color: var(--text); }
.st-adj-reason.active { background: var(--grad); color: var(--accent-ink); border-color: transparent; }
.st-adj-box { min-width: 0; }
@media (max-width: 480px) { .st-adj-grid, .st-adj-reasons { grid-template-columns: 1fr 1fr; } .st-adj-box > b { font-size: 30px; }
  .st-adj-drawer .modal-body { padding: 14px 16px 18px; } }
/* Paramètres : notifications WhatsApp */
.wa-card .card-head { align-items: flex-start; }
.wa-card .card-title svg.lucide { color: #25D366; }
.wa-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin-top: 4px; }
.wa-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wa-to { height: auto; min-height: 92px; padding: 10px 14px; resize: vertical; line-height: 1.5; font-family: inherit; }
.wa-adv summary { cursor: pointer; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.wa-events-head { display: flex; align-items: center; justify-content: space-between; }
.wa-events-head label { font-size: 12px; font-weight: 700; color: var(--text-2); }
.wa-all { border: 0; background: none; color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.wa-events { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wa-ev { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, .15); color: var(--text-2); transition: border-color .15s, background .15s; }
.wa-ev input { position: absolute; opacity: 0; pointer-events: none; }
.wa-ev-ico { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--muted); }
.wa-ev-ico svg.lucide { width: 15px; height: 15px; }
.wa-ev .wa-tick { margin-left: auto; width: 16px; height: 16px; color: #25D366; opacity: 0; }
.wa-ev:has(input:checked) { border-color: rgba(37, 211, 102, .5); background: rgba(37, 211, 102, .08); color: var(--text); }
.wa-ev:has(input:checked) .wa-ev-ico { background: rgba(37, 211, 102, .16); color: #25D366; }
.wa-ev:has(input:checked) .wa-tick { opacity: 1; }
.wa-foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.wa-status { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.wa-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.wa-status.on { color: #25D366; }
.wa-status.on i { background: #25D366; box-shadow: 0 0 0 4px rgba(37, 211, 102, .18); }
@media (max-width: 900px) { .wa-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .wa-events { grid-template-columns: 1fr; } }
/* Interrupteur principal des notifications WhatsApp */
.wa-master { display: flex; align-items: center; gap: 14px; margin: 2px 0 18px; padding: 14px 16px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(239, 68, 68, .4); background: var(--red-soft); transition: background .2s, border-color .2s; }
.wa-master.on { border-color: rgba(37, 211, 102, .5); background: rgba(37, 211, 102, .1); }
.wa-master-ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(239, 68, 68, .16); color: var(--red); }
.wa-master.on .wa-master-ico { background: rgba(37, 211, 102, .18); color: #25D366; }
.wa-master-ico svg.lucide { width: 20px; height: 20px; }
.wa-master-txt { flex: 1; min-width: 0; }
.wa-master-txt b { display: block; font-size: 14.5px; color: var(--red); }
.wa-master.on .wa-master-txt b { color: #25D366; }
.wa-master-txt small { font-size: 12.5px; color: var(--text-2); }
/* Remise : rappel des touches du clavier */
.dc-kbd { display: inline-block; margin-top: 4px; font-size: 11.5px; color: var(--muted); }

/* Sauces & accompagnements : choix à la vente, lignes du ticket, bons, familles réservées */
.extras-modal { width: min(640px, 100%); }
.extras-sec + .extras-sec { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.extras-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.extras-head svg.lucide { width: 18px; height: 18px; color: var(--accent); }
.extras-head b { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.extras-head small { margin-left: auto; font-size: 12px; color: var(--muted); }
.extras-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.extras-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 10px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--line-2); background: rgba(0, 0, 0, .15); color: var(--text); font: inherit; font-size: 13px; text-align: center; transition: .15s; }
.extras-opt .thumb { width: 56px; height: 56px; border-radius: 14px; }
.extras-opt:hover { border-color: var(--line); background: var(--accent-soft); }
.extras-opt.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.extras-tick { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); opacity: 0; transition: .15s; }
.extras-opt.on .extras-tick { opacity: 1; }
.l-sauce { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 12px; font-weight: 700; color: var(--accent); }
.l-sauce svg.lucide { width: 13px; height: 13px; }
.opt-ico { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; color: var(--accent); }
.cat-reserved { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: 10.5px; vertical-align: 2px; }
.cat-reserved svg.lucide { width: 11px; height: 11px; }
.cat-lock { opacity: .5; cursor: not-allowed; }
/* Page Bilan : contenu (3/4) + produits vendus avec marge (1/4) */
.bl-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
.bl-main { min-width: 0; }
.bl-main .kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.bl-sold { position: sticky; top: 12px; padding: 16px; display: flex; flex-direction: column; max-height: calc(100vh - 110px); }
.as-head { display: flex; align-items: center; gap: 8px; }
.as-head svg.lucide { width: 18px; height: 18px; color: var(--green); }
.as-head b { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.as-head span { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.as-sub { margin: 4px 0 12px; font-size: 12px; color: var(--muted); }
.as-list { flex: 1; min-height: 60px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.as-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.as-row:last-child { border-bottom: 0; }
.as-qty { min-width: 34px; height: 34px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: 14px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--line); }
.as-info { min-width: 0; }
.as-info b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-info small { font-size: 11.5px; color: var(--muted); }
.as-margin { text-align: right; }
.as-margin b { display: block; font-size: 13px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; white-space: nowrap; }
.as-margin small { font-size: 11px; color: var(--muted); }
.as-margin.neg b, .as-total b.neg { color: var(--red); }
.as-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 6px; text-align: center; font-size: 12.5px; color: var(--muted); }
.as-empty svg.lucide { width: 26px; height: 26px; opacity: .6; }
.as-total { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.as-total > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.as-total > div b { font-variant-numeric: tabular-nums; }
.as-total .as-total-main { display: grid; grid-template-columns: 1fr auto; padding: 12px; border-radius: 12px; background: var(--green-soft); border: 1px solid rgba(34, 197, 94, .35); }
.as-total-main span { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.as-total-main b { font-size: 20px; font-weight: 900; color: var(--green); }
.as-total-main small { grid-column: 1 / -1; font-size: 11px; color: var(--muted); }
@media (max-width: 1100px) { .bl-split { grid-template-columns: 1fr; } .bl-sold { position: static; max-height: none; } }
/* Bilan : recherche dans les produits vendus */
.bl-sold .as-search { margin: 10px 0 4px; }
.bl-sold .as-search .input { height: 40px; font-size: 13px; padding-right: 36px; }
.bl-sold .as-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; border-radius: 8px; display: grid; place-items: center;
  background: transparent; color: var(--muted); cursor: pointer; }
.bl-sold .as-clear:hover { color: var(--text); background: var(--hover); }
.bl-sold .as-clear svg.lucide { position: static; transform: none; width: 15px; height: 15px; }
.bl-sold .as-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.bl-sold mark { background: var(--accent-soft); color: var(--accent); border-radius: 3px; padding: 0 1px; }
/* Suppléments : bouton sur la ligne, lignes en retrait, grand tiroir de choix */
.sup-btn { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; height: 26px; padding: 0 10px; border-radius: 99px; cursor: pointer;
  border: 1px dashed var(--line); background: var(--accent-soft); color: var(--accent); font: inherit; font-size: 11.5px; font-weight: 800; }
.sup-btn svg.lucide { width: 13px; height: 13px; }
.sup-btn b { min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 10.5px; }
.sup-btn:hover, .sup-btn.has { border-style: solid; }
.t-line.is-sup { margin-left: 22px; padding-left: 12px; border-left: 2px solid var(--accent); background: rgba(var(--theme-rgb, 212,175,106), .04); }
.t-line.is-sup .l-name { font-size: 13px; }
.sup-plus { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: 13px; }
.modal.drawer.sup-drawer { width: min(980px, 100vw); height: 100dvh; max-height: 100dvh; }
.sup-drawer .modal-title { display: flex; flex-direction: column; gap: 4px; }
.sup-drawer .modal-body { min-height: 0; overflow-y: auto; }
.sup-drawer .modal-head, .sup-drawer .modal-foot { flex: none; }
.sup { display: flex; flex-direction: column; gap: 16px; }
.sup-current { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: radial-gradient(300px 120px at 0% 0%, var(--accent-soft), transparent 70%), var(--card); }
.sup-cur-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.sup-cur-head svg.lucide { width: 16px; height: 16px; color: var(--accent); }
.sup-cur-empty { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.sup-cur-empty svg.lucide { width: 18px; height: 18px; color: var(--accent); }
.sup-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sup-chip { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; }
.sup-chip em { font-style: normal; font-size: 12px; color: var(--accent); }
.sup-chip-qty { display: flex; align-items: center; border-radius: 9px; background: var(--bg); border: 1px solid var(--line-2); }
.sup-chip-qty button { width: 28px; height: 28px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.sup-chip-qty button:hover { color: var(--accent); }
.sup-chip-qty button svg.lucide { width: 14px; height: 14px; }
.sup-chip-qty b { min-width: 20px; text-align: center; }
.sup-tools { display: flex; flex-direction: column; gap: 10px; }
.sup-search .input { height: 48px; font-size: 15px; }
.sup-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.sup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sup-art { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px; border-radius: 16px; cursor: pointer; text-align: left;
  border: 1.5px solid var(--line-2); background: var(--card); color: var(--text); font: inherit; transition: transform .15s, border-color .15s, box-shadow .15s; }
.sup-art:hover { transform: translateY(-2px); border-color: var(--line); }
.sup-art:active { transform: scale(.97); }
.sup-art.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sup-art-img { position: relative; display: block; }
.sup-art-img .thumb { width: 100%; height: 96px; border-radius: 11px; }
.sup-art-img b { position: absolute; top: 6px; right: 6px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 13px; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); }
.sup-art-name { font-size: 13px; font-weight: 800; line-height: 1.25; }
.sup-art-price { font-size: 12.5px; font-weight: 800; color: var(--accent); }
.sup-none { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px; color: var(--muted); }
.sup-foot { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sup-total { display: flex; flex-direction: column; }
.sup-total span { font-size: 11.5px; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sup-total b { font-size: 22px; font-weight: 900; color: var(--accent); }