/* Owada Soul Food — charte : jaune soleil, bleu outremer, terracotta */
:root {
  --bleu: #1B3A9A;
  --bleu-fonce: #122A73;
  --bleu-clair: #E8EDFB;
  --jaune: #F7C51E;
  --jaune-clair: #FFF4CC;
  --terra: #B8542F;
  --terra-clair: #F8E6DE;
  --vert: #2F6B3A;
  --vert-clair: #E3F0E4;
  --creme: #FFFAF0;
  --encre: #1E2230;
  --gris: #6B7080;
  --ligne: #E1E4EC;
  --fond: #F4F5F9;
  --ombre: 0 1px 2px rgba(20, 30, 60, .06), 0 2px 8px rgba(20, 30, 60, .06);
  --titre: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --texte: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--texte); color: var(--encre); background: var(--fond); font-size: 15px; line-height: 1.45; }
h1, h2, h3, h4 { font-family: var(--titre); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; font-weight: 700; }
h2 { font-size: 1.25rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
a { color: var(--bleu); }
img { max-width: 100%; }
.muted { color: var(--gris); }
.small { font-size: .85rem; }
.hidden { display: none !important; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- boutons : angles droits, typographie sobre ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  padding: .62em 1.1em; min-height: 40px; border: 1px solid var(--bleu); border-radius: 0;
  background: var(--bleu); color: #fff; font: 500 .95rem var(--texte); letter-spacing: .01em;
  cursor: pointer; text-decoration: none; transition: background .12s, border-color .12s, color .12s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn:hover { background: var(--bleu-fonce); border-color: var(--bleu-fonce); }
.btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; }
.btn-sec { background: #fff; color: var(--encre); border-color: #C5CAD6; }
.btn-sec:hover { background: var(--fond); border-color: #9AA1B2; }
.btn-jaune { background: var(--jaune); color: var(--encre); border-color: #E0B100; }
.btn-jaune:hover { background: #EBB800; border-color: #CFA300; }
.btn-danger { background: #fff; color: var(--terra); border-color: var(--terra); }
.btn-danger:hover { background: var(--terra-clair); }
.btn-ghost { background: transparent; color: var(--bleu); border-color: transparent; }
.btn-ghost:hover { background: var(--bleu-clair); border-color: transparent; }
.btn-lg { min-height: 52px; font-size: 1.05rem; padding: .8em 1.4em; }
.btn-xl { min-height: 64px; font-size: 1.2rem; padding: .9em 1.6em; width: 100%; }
.btn-block { width: 100%; }
.btn-sm { min-height: 32px; padding: .35em .75em; font-size: .85rem; }

/* ---------- formulaires ---------- */
label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: .3em; }
input[type=text], input[type=tel], input[type=password], input[type=number], input[type=date],
input[type=time], input[type=email], input[type=search], select, textarea {
  width: 100%; padding: .6em .7em; border: 1px solid #C5CAD6; border-radius: 0; background: #fff;
  font: inherit; color: inherit; min-height: 42px;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--jaune); outline-offset: 1px; border-color: var(--bleu); }
textarea { min-height: 70px; resize: vertical; }
.field { margin-bottom: 1em; }
.field .hint { font-size: .8rem; color: var(--gris); margin-top: .25em; }
.check { display: flex; align-items: center; gap: .5em; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--bleu); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1em; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1em; }
.segmented { display: flex; border: 1px solid #C5CAD6; }
.segmented label { flex: 1; margin: 0; text-align: center; padding: .7em .8em; white-space: nowrap; cursor: pointer; font-weight: 500; background: #fff; border-right: 1px solid #C5CAD6; }
.segmented label:last-child { border-right: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--bleu); color: #fff; }

/* ---------- messages ---------- */
.flash { padding: .75em 1em; margin-bottom: 1em; border-left: 4px solid var(--bleu); background: var(--bleu-clair); }
.flash.ok { border-color: var(--vert); background: var(--vert-clair); }
.flash.warn { border-color: var(--terra); background: var(--terra-clair); }
.badge { display: inline-block; padding: .15em .55em; font-size: .75rem; font-weight: 600; letter-spacing: .02em; background: var(--fond); color: var(--encre); border: 1px solid var(--ligne); white-space: nowrap; }
.badge.bleu { background: var(--bleu-clair); color: var(--bleu); border-color: #C9D3F2; }
.badge.jaune { background: var(--jaune-clair); color: #6B5200; border-color: #F0DC8C; }
.badge.terra { background: var(--terra-clair); color: var(--terra); border-color: #EBC5B5; }
.badge.vert { background: var(--vert-clair); color: var(--vert); border-color: #BFDCC2; }
.badge.gris { color: var(--gris); }

/* ======================================================= CLIENT */
.c-body { background: var(--creme); padding-bottom: 96px; }
.c-header { position: sticky; top: 0; z-index: 30; background: var(--bleu); color: #fff; border-bottom: 4px solid var(--jaune); }
.c-header .in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: .7em; padding: .55em 1em; }
.c-header img { height: 42px; width: 42px; object-fit: contain; }
.c-header .name { font-family: var(--titre); font-weight: 700; font-size: 1.15rem; line-height: 1; }
.c-header .name small { display: block; font-weight: 400; font-size: .75rem; color: var(--jaune); letter-spacing: .08em; text-transform: uppercase; margin-top: .2em; }
.c-header .spacer { flex: 1; }
.c-header a.link { color: #fff; text-decoration: none; font-size: .85rem; border: 1px solid rgba(255,255,255,.4); padding: .4em .7em; }
.c-main { max-width: 760px; margin: 0 auto; padding: 0 1em; }
.hero { position: relative; margin: 0 -1em; height: 190px; background: var(--bleu) center/cover no-repeat; display: flex; align-items: flex-end; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,42,115,.1) 0%, rgba(18,42,115,.85) 100%); }
.hero .txt { position: relative; z-index: 1; color: #fff; padding: 1em; }
.hero h1 { color: #fff; margin-bottom: .2em; font-size: 1.55rem; }
.hero p { margin: 0; font-size: .92rem; opacity: .95; max-width: 34em; }
.mode-tag { display: inline-block; background: var(--jaune); color: var(--encre); font-weight: 600; font-size: .75rem; padding: .25em .6em; margin-bottom: .6em; text-transform: uppercase; letter-spacing: .05em; }
.notice { margin: 1em 0; padding: .9em 1em; background: #fff; border-left: 4px solid var(--terra); box-shadow: var(--ombre); }
.notice.info { border-color: var(--bleu); }
.cat-tabs { position: sticky; top: 62px; z-index: 20; background: var(--creme); display: flex; gap: .4em; overflow-x: auto; padding: .7em 0; margin: 0 -1em; padding-left: 1em; padding-right: 1em; scrollbar-width: none; border-bottom: 1px solid #EFE6CF; }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs a { flex: none; text-decoration: none; color: var(--encre); background: #fff; border: 1px solid #E6DCC2; padding: .45em .9em; font-weight: 500; font-size: .9rem; }
.cat-tabs a.on { background: var(--bleu); color: #fff; border-color: var(--bleu); }
.cat-title { font-family: var(--titre); font-size: 1.15rem; margin: 1.3em 0 .6em; padding-bottom: .3em; border-bottom: 2px solid var(--jaune); display: inline-block; scroll-margin-top: 120px; }
.dish { display: flex; gap: .8em; background: #fff; padding: .7em; margin-bottom: .6em; box-shadow: var(--ombre); align-items: stretch; }
.dish .ph { flex: none; width: 92px; height: 92px; background: var(--jaune-clair) center/cover no-repeat; display: flex; align-items: center; justify-content: center; font-family: var(--titre); font-weight: 700; color: var(--terra); font-size: 1.6rem; }
.dish .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dish .nm { font-weight: 600; font-size: 1rem; }
.dish .ds { font-size: .85rem; color: var(--gris); margin: .15em 0 .3em; }
.dish .al { font-size: .72rem; color: var(--gris); }
.dish .bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5em; padding-top: .3em; }
.dish .pr { font-weight: 700; font-family: var(--titre); font-size: 1.05rem; }
.dish.out { opacity: .55; }
.dish.out .ph { filter: grayscale(1); }
.qty { display: flex; align-items: center; border: 1px solid #C5CAD6; background: #fff; }
.qty button { width: 38px; height: 36px; border: 0; background: #fff; font-size: 1.25rem; color: var(--bleu); cursor: pointer; }
.qty button:active { background: var(--bleu-clair); }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }
.add-btn { min-height: 36px; padding: .3em .9em; }
.left-tag { font-size: .72rem; font-weight: 600; color: var(--terra); }
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--bleu); color: #fff; border-top: 4px solid var(--jaune); padding: .65em 1em calc(.65em + env(safe-area-inset-bottom)); }
.cartbar .in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 1em; }
.cartbar .sum { flex: 1; }
.cartbar .sum b { font-family: var(--titre); font-size: 1.2rem; }
.sheet-bg { position: fixed; inset: 0; background: rgba(15,20,40,.55); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: #fff; width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto; padding: 1.2em 1.2em calc(1.2em + env(safe-area-inset-bottom)); border-top: 5px solid var(--jaune); }
.sheet .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8em; }
.sheet .close { border: 0; background: none; font-size: 1.6rem; color: var(--gris); cursor: pointer; line-height: 1; }
.cart-line { display: flex; gap: .6em; align-items: center; padding: .55em 0; border-bottom: 1px solid var(--ligne); }
.cart-line .nm { flex: 1; font-weight: 500; }
.cart-line .note-in { margin-top: .3em; font-size: .85rem; min-height: 34px; padding: .35em .5em; }
.total-line { display: flex; justify-content: space-between; font-family: var(--titre); font-weight: 700; font-size: 1.2rem; padding: .8em 0; }
.pay-info { background: var(--jaune-clair); border-left: 4px solid var(--jaune); padding: .7em .9em; font-size: .9rem; margin: .8em 0; }
.c-footer { text-align: center; padding: 2em 1em 1em; color: var(--gris); font-size: .78rem; }
.c-footer a { display: inline-flex; align-items: center; gap: .4em; color: var(--gris); text-decoration: none; }
.c-footer img { height: 30px; }
/* suivi */
.track { background: #fff; box-shadow: var(--ombre); margin-top: 1.2em; padding: 1.3em; text-align: center; }
.track .no { font-family: var(--titre); font-size: 4.2rem; font-weight: 800; color: var(--bleu); line-height: 1; }
.track .who { font-size: 1.05rem; margin: .3em 0 1em; }
.steps { display: flex; margin: 1.2em 0; }
.steps div { flex: 1; padding-top: .7em; border-top: 5px solid var(--ligne); font-size: .78rem; color: var(--gris); }
.steps div.done { border-color: var(--bleu); color: var(--encre); font-weight: 600; }
.steps div.now { border-color: var(--jaune); color: var(--encre); font-weight: 700; }
.big-state { font-family: var(--titre); font-size: 1.45rem; font-weight: 700; margin: .4em 0; }
.ready-flash { background: var(--jaune); margin: -1.3em -1.3em 1em; padding: 1.1em; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { background: #FFE27A; } }
.lines-list { text-align: left; margin-top: 1em; border-top: 1px solid var(--ligne); }
.lines-list div { display: flex; justify-content: space-between; padding: .45em 0; border-bottom: 1px solid var(--ligne); font-size: .92rem; }
.install { margin-top: 1em; background: #fff; padding: .9em 1em; border: 1px dashed #D9CBA4; font-size: .88rem; }
.order-card { display: block; background: #fff; box-shadow: var(--ombre); padding: .9em 1em; margin-bottom: .6em; text-decoration: none; color: inherit; }
.order-card .row { display: flex; justify-content: space-between; align-items: center; gap: .5em; }

/* ======================================================= ÉQUIPE */
.s-layout { display: flex; min-height: 100vh; }
.s-side { width: 230px; flex: none; background: var(--bleu-fonce); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.s-side .brand { display: flex; align-items: center; gap: .6em; padding: 1em; border-bottom: 3px solid var(--jaune); background: var(--bleu); }
.s-side .brand img { width: 40px; height: 40px; object-fit: contain; }
.s-side .brand b { font-family: var(--titre); font-size: 1.05rem; line-height: 1.1; }
.s-side .brand small { display: block; font-weight: 400; color: var(--jaune); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.s-side nav { flex: 1; padding: .5em 0; }
.s-side .grp { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #93A3D6; padding: 1.1em 1.1em .4em; }
.s-side nav a { display: flex; align-items: center; gap: .7em; color: #DDE3F7; text-decoration: none; padding: .58em 1.1em; font-size: .92rem; border-left: 3px solid transparent; }
.s-side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.s-side nav a.on { background: rgba(255,255,255,.1); border-left-color: var(--jaune); color: #fff; font-weight: 500; }
.s-side nav svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.s-side .me { padding: .9em 1.1em; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.s-side .me a { color: #B9C4EA; font-size: .8rem; }
.s-side .colombo { padding: .6em 1.1em 1em; }
.s-side .colombo a { display: inline-flex; align-items: center; gap: .4em; color: #93A3D6; font-size: .7rem; text-decoration: none; }
.s-side .colombo img { height: 22px; opacity: .9; }
.s-main { flex: 1; min-width: 0; padding: 1.4em 1.8em 2em; }
.s-main.full { padding: 0; }
.s-top { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-bottom: 1.2em; flex-wrap: wrap; }
.s-top h1 { margin: 0; }
.s-top .actions { display: flex; gap: .5em; flex-wrap: wrap; align-items: center; }
.card { background: #fff; border: 1px solid var(--ligne); padding: 1.1em 1.2em; margin-bottom: 1.1em; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1em; margin-bottom: 1.1em; }
.kpi { background: #fff; border: 1px solid var(--ligne); border-top: 4px solid var(--bleu); padding: .9em 1.1em; }
.kpi:nth-child(2) { border-top-color: var(--jaune); }
.kpi:nth-child(3) { border-top-color: var(--terra); }
.kpi:nth-child(4) { border-top-color: var(--vert); }
.kpi .v { font-family: var(--titre); font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.kpi .l { font-size: .8rem; color: var(--gris); }
table.tbl { width: 100%; border-collapse: collapse; background: #fff; }
.tbl th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gris); font-weight: 600; padding: .6em .7em; border-bottom: 2px solid var(--ligne); background: #FAFBFD; }
.tbl td { padding: .6em .7em; border-bottom: 1px solid var(--ligne); vertical-align: middle; }
.tbl tr:hover td { background: #FAFBFD; }
.tbl .thumb { width: 44px; height: 44px; object-fit: cover; display: block; background: var(--jaune-clair); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--ligne); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; height: 100%; }
.bars .b span { width: 100%; background: var(--bleu); min-height: 2px; }
.bars .b:hover span { background: var(--jaune); }
.bars .b em { font-style: normal; font-size: .65rem; color: var(--gris); margin-top: .35em; white-space: nowrap; overflow: hidden; max-width: 100%; }
.hbar { display: flex; align-items: center; gap: .7em; margin: .35em 0; font-size: .9rem; }
.hbar .lab { width: 42%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .track2 { flex: 1; background: var(--fond); height: 14px; }
.hbar .track2 span { display: block; height: 100%; background: var(--terra); }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1em; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bleu) url("../img/salle.jpg") center/cover; position: relative; }
.login-wrap::before { content: ""; position: absolute; inset: 0; background: rgba(18,42,115,.82); }
.login-box { position: relative; background: #fff; width: 100%; max-width: 380px; padding: 2em; border-top: 6px solid var(--jaune); }
.login-box .logo { text-align: center; margin-bottom: 1em; }
.login-box .logo img { width: 90px; height: 90px; }
.period { display: flex; border: 1px solid #C5CAD6; background: #fff; }
.period a { padding: .5em .9em; text-decoration: none; color: var(--encre); font-size: .88rem; border-right: 1px solid #C5CAD6; }
.period a:last-child { border-right: 0; }
.period a.on { background: var(--bleu); color: #fff; }
.menu-day-item { display: grid; grid-template-columns: 28px 48px 1fr 110px 120px; gap: .8em; align-items: center; padding: .55em .8em; border-bottom: 1px solid var(--ligne); background: #fff; }
.menu-day-item.on { background: #F7F9FF; }
.menu-day-item img, .menu-day-item .noph { width: 48px; height: 48px; object-fit: cover; background: var(--jaune-clair); display: flex; align-items: center; justify-content: center; color: var(--terra); font-weight: 700; }
.menu-day-item input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--bleu); }
.menu-day-item input[type=number] { min-height: 36px; padding: .3em .5em; }
.sticky-save { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--ligne); padding: .8em 1em; display: flex; gap: .8em; align-items: center; justify-content: space-between; margin-top: 1em; box-shadow: 0 -4px 12px rgba(0,0,0,.05); }
.allergen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .3em 1em; }

/* --- cuisine --- */
.k-bar { display: flex; align-items: center; gap: .8em; padding: .7em 1em; background: #fff; border-bottom: 1px solid var(--ligne); position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.k-bar .clock { font-family: var(--titre); font-weight: 700; font-size: 1.5rem; }
.k-bar .count { color: var(--gris); }
.k-bar .sp { flex: 1; }
.k-cols { display: grid; grid-template-columns: 0.75fr 1fr 1fr 0.8fr; gap: 0; min-height: calc(100vh - 64px); }
.k-col { border-right: 1px solid var(--ligne); padding: .8em; background: var(--fond); }
.k-col:last-child { border-right: 0; }
.k-col > h3 { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); margin: .2em 0 .8em; }
.k-col > h3 b { background: var(--encre); color: #fff; padding: .1em .55em; font-size: .85rem; }
.k-card { background: #fff; border: 1px solid var(--ligne); border-left: 6px solid var(--bleu); margin-bottom: .7em; }
.k-card.attente { border-left-color: #B9BFCC; opacity: .92; }
.k-card.en_preparation { border-left-color: var(--jaune); }
.k-card.prete { border-left-color: var(--vert); }
.k-card.late { border-left-color: var(--terra); }
.k-card.new { animation: flashnew 1.2s ease 3; }
@keyframes flashnew { 50% { background: var(--jaune-clair); } }
.k-card .hd { display: flex; align-items: baseline; gap: .6em; padding: .6em .8em .3em; }
.k-card .hd .no { font-family: var(--titre); font-weight: 800; font-size: 1.7rem; line-height: 1; }
.k-card .hd .nm { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-card .hd .t { font-family: var(--titre); font-weight: 700; font-size: 1.05rem; }
.k-card .hd .t.late { color: var(--terra); }
.k-card .meta { padding: 0 .8em .4em; display: flex; gap: .35em; flex-wrap: wrap; }
.k-card ul { list-style: none; margin: 0; padding: .3em .8em .5em; border-top: 1px dashed var(--ligne); }
.k-card li { padding: .22em 0; font-size: 1.05rem; }
.k-card li b { display: inline-block; min-width: 2em; font-family: var(--titre); }
.k-card li .n { display: block; margin-left: 2em; font-size: .88rem; color: var(--terra); font-weight: 600; }
.k-card .onote { margin: 0 .8em .5em; padding: .4em .6em; background: var(--terra-clair); color: var(--terra); font-weight: 600; font-size: .9rem; }
.k-card .ac { display: flex; gap: 0; border-top: 1px solid var(--ligne); }
.k-card .ac .btn { flex: 1; min-height: 50px; border-width: 0; font-size: 1rem; }
.k-card .ac .btn + .btn { border-left: 1px solid var(--ligne); }
.k-empty { color: var(--gris); text-align: center; padding: 2em 0; font-size: .9rem; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%; background: #fff; z-index: 70; box-shadow: -8px 0 30px rgba(0,0,0,.15); display: flex; flex-direction: column; }
.drawer .dh { display: flex; justify-content: space-between; align-items: center; padding: 1em 1.2em; border-bottom: 3px solid var(--jaune); }
.drawer .db { overflow-y: auto; padding: .5em 1.2em 1.2em; flex: 1; }
.rupt { display: flex; align-items: center; gap: .8em; padding: .65em 0; border-bottom: 1px solid var(--ligne); }
.rupt .nm { flex: 1; }
.rupt .nm small { display: block; color: var(--gris); }
.switch { position: relative; width: 52px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--vert); cursor: pointer; transition: .15s; }
.switch span::before { content: ""; position: absolute; width: 22px; height: 22px; left: 27px; top: 3px; background: #fff; transition: .15s; }
.switch input:not(:checked) + span { background: var(--terra); }
.switch input:not(:checked) + span::before { left: 3px; }

/* --- caisse --- */
.p-wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, 1fr); height: 100vh; }
.p-left { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--ligne); }
.p-cats { display: flex; gap: 0; background: #fff; border-bottom: 1px solid var(--ligne); overflow-x: auto; flex: none; }
.p-cats button { border: 0; background: #fff; padding: .9em 1.1em; font: 500 .92rem var(--texte); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; color: var(--encre); }
.p-cats button.on { border-bottom-color: var(--jaune); color: var(--bleu); font-weight: 600; }
.p-keys { flex: 1; overflow-y: auto; padding: .8em; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: .6em; align-content: start; background: var(--fond); }
.key { background: #fff; border: 1px solid var(--ligne); cursor: pointer; display: flex; flex-direction: column; text-align: left; padding: 0; font: inherit; color: inherit; position: relative; }
.key:active { transform: scale(.98); }
.key .kp { height: 84px; background: var(--jaune-clair) center/cover no-repeat; display: flex; align-items: center; justify-content: center; font-family: var(--titre); font-size: 1.6rem; font-weight: 700; color: var(--terra); }
.key .kn { padding: .4em .55em 0; font-weight: 600; font-size: .86rem; line-height: 1.2; min-height: 2.4em; }
.key .kpr { padding: .15em .55em .5em; font-size: .88rem; color: var(--bleu); font-weight: 600; }
.key.out { opacity: .45; cursor: not-allowed; }
.key .kl { position: absolute; top: 4px; right: 4px; background: var(--terra); color: #fff; font-size: .7rem; font-weight: 700; padding: .1em .4em; }
.p-ticket { flex: none; background: #fff; border-top: 3px solid var(--bleu); padding: .8em 1em; max-height: 44vh; display: flex; flex-direction: column; }
.p-ticket .tl { overflow-y: auto; flex: 1; min-height: 40px; }
.p-ticket .row { display: flex; align-items: center; gap: .5em; padding: .3em 0; border-bottom: 1px solid var(--ligne); font-size: .92rem; }
.p-ticket .row .nm { flex: 1; }
.p-ticket .row button { border: 1px solid #C5CAD6; background: #fff; width: 30px; height: 30px; cursor: pointer; font-size: 1.05rem; }
.p-ticket .foot { display: flex; gap: .6em; align-items: center; margin-top: .6em; flex-wrap: wrap; }
.p-ticket .foot input { flex: 1; min-width: 120px; }
.p-right { display: flex; flex-direction: column; min-height: 0; background: #fff; }
.p-head { padding: .8em 1em; border-bottom: 1px solid var(--ligne); display: flex; align-items: center; gap: .6em; flex-wrap: wrap; }
.p-head .tot { margin-left: auto; text-align: right; font-size: .8rem; color: var(--gris); }
.p-head .tot b { display: block; font-family: var(--titre); font-size: 1.15rem; color: var(--encre); }
.p-filter { display: flex; border-bottom: 1px solid var(--ligne); }
.p-filter button { flex: 1; border: 0; background: #fff; padding: .7em .3em; font: 500 .85rem var(--texte); cursor: pointer; border-bottom: 3px solid transparent; color: var(--gris); }
.p-filter button.on { color: var(--encre); border-bottom-color: var(--bleu); font-weight: 600; }
.p-filter button b { display: inline-block; min-width: 1.5em; background: var(--fond); color: var(--encre); padding: 0 .3em; margin-left: .2em; }
.p-filter button.ready b { background: var(--vert); color: #fff; }
.p-orders { flex: 1; overflow-y: auto; }
.po { display: flex; gap: .8em; align-items: center; padding: .7em 1em; border-bottom: 1px solid var(--ligne); cursor: pointer; border-left: 5px solid transparent; }
.po:hover { background: #FAFBFD; }
.po.sel { background: var(--bleu-clair); }
.po.prete { border-left-color: var(--vert); }
.po.en_preparation, .po.a_preparer { border-left-color: var(--jaune); }
.po.attente { border-left-color: #B9BFCC; }
.po .no { font-family: var(--titre); font-weight: 800; font-size: 1.5rem; width: 2.2em; text-align: center; }
.po .mid { flex: 1; min-width: 0; }
.po .mid b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po .amt { text-align: right; font-weight: 600; white-space: nowrap; }
.p-detail { border-top: 3px solid var(--jaune); padding: .9em 1em; max-height: 52vh; overflow-y: auto; flex: none; background: #FFFDF7; }
.p-detail .acts { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; margin-top: .8em; }
.p-detail .acts .wide { grid-column: 1 / -1; }
.modal-bg { position: fixed; inset: 0; background: rgba(15,20,40,.55); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 1em; }
.modal { background: #fff; width: 100%; max-width: 520px; max-height: 94vh; overflow-y: auto; border-top: 6px solid var(--jaune); padding: 1.3em; }
.modal .due { font-family: var(--titre); font-size: 2.3rem; font-weight: 800; text-align: center; margin: .2em 0 .6em; }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.methods .btn { min-height: 58px; }
.cash-quick { display: flex; gap: .4em; flex-wrap: wrap; margin: .6em 0; }
.cash-quick .btn { flex: 1; min-width: 70px; }
.parts { margin: .7em 0; }
.parts div { display: flex; justify-content: space-between; padding: .35em 0; border-bottom: 1px solid var(--ligne); }
.change { background: var(--vert-clair); color: var(--vert); font-family: var(--titre); font-weight: 700; font-size: 1.3rem; text-align: center; padding: .6em; margin: .6em 0; }

/* --- écran de salle --- */
.e-body { background: var(--bleu-fonce); color: #fff; margin: 0; min-height: 100vh; overflow: hidden; }
.e-head { display: flex; align-items: center; gap: 1em; padding: 1.2vh 2vw; background: var(--bleu); border-bottom: 6px solid var(--jaune); }
.e-head img { height: 8vh; }
.e-head h1 { color: #fff; font-size: 4vh; margin: 0; flex: 1; }
.e-head .clock { font-family: var(--titre); font-size: 4.5vh; font-weight: 700; }
.e-cols { display: grid; grid-template-columns: 1fr 1.3fr; height: calc(100vh - 11vh); }
.e-col { padding: 2vh 2vw; overflow: hidden; }
.e-col h2 { color: #B9C4EA; font-size: 3.2vh; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 2vh; }
.e-col.ready { background: var(--jaune); color: var(--encre); }
.e-col.ready h2 { color: var(--bleu-fonce); }
.e-list { display: flex; flex-wrap: wrap; gap: 1.5vh 1.5vw; align-content: flex-start; }
.e-item { font-family: var(--titre); text-align: center; min-width: 14vw; padding: 1.2vh 1vw; background: rgba(255,255,255,.08); }
.e-item .n { font-size: 9vh; font-weight: 800; line-height: 1; }
.e-item .p { font-size: 2.8vh; margin-top: .5vh; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22vw; }
.e-col.ready .e-item { background: #fff; color: var(--bleu-fonce); box-shadow: 0 6px 0 rgba(0,0,0,.12); }
.e-col.ready .e-item.new { animation: bounce .8s ease 4; }
@keyframes bounce { 50% { transform: scale(1.07); } }

/* --- impression --- */
@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
}

/* --- responsive --- */
@media (max-width: 980px) {
  .s-layout { flex-direction: column; }
  .s-side { width: 100%; height: auto; position: static; }
  .s-side nav { display: flex; flex-wrap: wrap; padding: .3em; }
  .s-side .grp { display: none; }
  .s-side nav a { border-left: 0; border-bottom: 3px solid transparent; padding: .5em .8em; }
  .s-side nav a.on { border-bottom-color: var(--jaune); }
  .s-main { padding: 1em; }
  .k-cols { grid-template-columns: 1fr 1fr; }
  .p-wrap { grid-template-columns: 1fr; height: auto; }
  .cols2 { grid-template-columns: 1fr; }
  .menu-day-item { grid-template-columns: 24px 44px 1fr 90px; }
  .menu-day-item .sold { display: none; }
}
@media (max-width: 560px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .k-cols { grid-template-columns: 1fr; }
  .dish .ph { width: 78px; height: 78px; }
}
.s-collapsed .s-side { width: 64px; }
.s-collapsed .s-side .brand b, .s-collapsed .s-side .grp, .s-collapsed .s-side nav a span,
.s-collapsed .s-side .me, .s-collapsed .s-side .colombo { display: none; }
.s-collapsed .s-side nav a { justify-content: center; padding: .8em 0; }
.s-collapsed .s-side .brand { justify-content: center; padding: .8em 0; }
