/* ORDUP — back-office */
:root {
  --bg: #f6f8fd; --panel: #ffffff; --ink: #101b34; --muted: #5b6479; --line: #e3e8f2; --soft: #f9fafe;
  --brand: #2643e9; --brand-2: #4f66f0; --accent: #d92d45; --ok: #3f8f4f; --warn: #b8642b; --danger: #b23b3b;
  --r: 14px; --f-display: 'DM Sans', system-ui, sans-serif; --f-body: 'DM Sans', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14.5px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.boot { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; margin: 0; line-height: 1.15; }
h1 { font-size: 30px; }
h2 { font-size: 21px; }
h3 { font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* --- structure --- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 22px 14px; background: var(--brand); color: #e3e8f2; display: flex; flex-direction: column; gap: 4px; }
.side-brand { padding: 4px 10px 22px; }
.side-brand b { display: block; font: 700 18px/1 var(--f-display); letter-spacing: .28em; text-transform: uppercase; }
.side-brand span { display: block; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; opacity: .7; margin-top: 7px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; border: 0; background: none; text-align: left; font-weight: 500; color: inherit; opacity: .82; }
.nav-item:hover { background: rgba(255, 255, 255, .08); opacity: 1; }
.nav-item.on { background: rgba(255, 255, 255, .16); opacity: 1; font-weight: 600; }
.nav-item svg { width: 18px; height: 18px; flex: none; }
.side-foot { margin-top: auto; padding: 10px; font-size: 12px; opacity: .75; }
.side-foot a { white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .12); opacity: 1; font-weight: 600; font-size: 13px; }
.main { padding: 28px clamp(16px, 3vw, 40px) 110px; min-width: 0; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.head p { margin: 6px 0 0; color: var(--muted); max-width: 70ch; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; z-index: 40; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 8px; gap: 2px; }
  .side-brand, .side-foot { display: none; }
  .nav-item { flex: none; padding: 9px 11px; font-size: 13px; }
  .nav-item svg { display: none; }
  .main { padding-top: 20px; }
}

/* --- composants --- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.grid { display: grid; gap: 14px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpi b { display: block; font: 600 32px/1 var(--f-display); margin-top: 8px; }
.kpi span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.kpi em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 1000px) { .two { grid-template-columns: 1fr; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: .15s; text-decoration: none; }
.btn:hover { border-color: #c9c5b8; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); }
.btn.danger { color: var(--danger); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 16px; height: 16px; }
.icon { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); }
.icon:hover { background: var(--soft); }
.icon svg { width: 15px; height: 15px; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
input[type=text], input[type=number], input[type=url], input[type=tel], input[type=email], input[type=password], input[type=date], input[type=time], input[type=search], select, textarea { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 400; }
textarea { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 500; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* interrupteur */
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { width: 38px; height: 22px; border-radius: 999px; background: #d6d2c6; position: relative; transition: .2s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }

/* --- carte --- */
.cat { margin-bottom: 26px; }
.cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cat-head .price-in { width: 110px; }
.rows { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.row { display: grid; grid-template-columns: auto 58px minmax(0, 1fr) 120px 150px 130px auto; gap: 14px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row.off { background: #faf9f6; }
.row.off .row-name { opacity: .55; }
.thumb { width: 58px; height: 58px; border-radius: 10px; background: #14160d; display: block; }
.row-name b { display: block; font: 600 16px/1.2 var(--f-display); }
.row-name span { font-size: 12.5px; color: var(--muted); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.price-in { position: relative; }
.price-in input { padding-right: 26px; }
.price-in::after { content: '€'; position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tag.out { background: #f1e2d4; color: var(--warn); }
.tag.hid { background: #e3e8f2; color: var(--muted); }
@media (max-width: 1100px) {
  .row { grid-template-columns: auto 50px minmax(0, 1fr) auto; grid-template-areas: 'ord th name act' 'ord th price price' 'ord th sw sw'; row-gap: 8px; }
  .row .row-order { grid-area: ord; flex-direction: column; align-self: start; }
  .row .thumb { grid-area: th; width: 50px; height: 50px; align-self: start; }
  .row .row-name { grid-area: name; }
  .row .row-actions { grid-area: act; }
  .row .price-in { grid-area: price; max-width: 140px; }
  .row .sw-a, .row .sw-b { grid-area: sw; }
  .row .sw-b { justify-self: start; margin-left: 150px; }
}

/* --- barre de publication --- */
.publish { position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translate(-50%, 140%); display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 20px; border-radius: 999px; background: #101b34; color: #fff; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); transition: transform .35s cubic-bezier(.2, .8, .2, 1); max-width: calc(100% - 24px); }
.publish.show { transform: translate(-50%, 0); }
.publish .btn { border-color: transparent; }
.publish .btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.toast { position: fixed; z-index: 70; top: 18px; right: 18px; padding: 12px 18px; border-radius: 12px; background: #101b34; color: #fff; font-weight: 500; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); transform: translateY(-140%); transition: transform .3s; max-width: min(420px, calc(100% - 36px)); }
.toast.show { transform: none; }
.toast.err { background: var(--danger); }
.errors { margin: 0 0 16px; padding: 12px 16px 12px 34px; border-radius: 12px; background: #fbeaea; color: var(--danger); }

/* --- éditeur --- */
.editor { position: fixed; z-index: 50; inset: 0; background: rgba(20, 22, 13, .45); display: flex; justify-content: flex-end; }
.ed-panel { width: min(1180px, 100%); height: 100%; background: var(--bg); display: grid; grid-template-columns: 1fr 420px; overflow: hidden; box-shadow: -20px 0 60px rgba(0, 0, 0, .25); }
.ed-form { overflow: auto; padding: 22px 26px 120px; }
.ed-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.ed-section { margin-top: 22px; }
.ed-section > h3 { margin-bottom: 10px; }
.steps { display: flex; flex-direction: column; gap: 8px; }
.st { display: grid; grid-template-columns: 26px 170px 1fr 110px auto; gap: 8px; align-items: center; padding: 8px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.st.on { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 20%, transparent); }
.st-n { font: 700 12px/1 var(--f-body); color: var(--muted); text-align: center; }
.st-ctrl { display: flex; gap: 4px; }
.st select, .st input { height: 36px; }
.st .unit { font-size: 12px; color: var(--muted); }
.st .amount { display: flex; align-items: center; gap: 6px; }
.add-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ed-preview { background: #11130c; color: #eef2fa; display: flex; flex-direction: column; padding: 18px; gap: 12px; --ink: #eef2fa; --accent: #e2b260; --f-display: 'Zilla Slab', Georgia, serif; }
.ed-preview svg { width: 100%; flex: 1; min-height: 0; }
.ed-preview .lbl-name { font-size: 21px; font-weight: 600; fill: #eef2fa; font-family: var(--f-display); }
.ed-preview .lbl-dose { font-size: 16px; font-weight: 600; fill: #e2b260; font-family: var(--f-body); }
.scrub { display: flex; align-items: center; gap: 10px; }
.scrub input { flex: 1; accent-color: #e2b260; }
.scrub .btn { background: #e2b260; border-color: #e2b260; color: #101b34; }
.pv-step { font-size: 13px; color: rgba(241, 239, 232, .75); min-height: 20px; }
@media (max-width: 1000px) {
  .ed-panel { grid-template-columns: 1fr; grid-template-rows: 300px 1fr; }
  .ed-preview { order: -1; }
  .st { grid-template-columns: 22px 1fr auto; }
  .st > :nth-child(3), .st > :nth-child(4) { grid-column: 2 / 4; }
}

/* --- photos --- */
.slots { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.slot { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.slot-img { aspect-ratio: 16 / 9; background: #e9e6dc center/cover no-repeat; position: relative; }
.slot-img .tag { position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, .92); color: var(--ink); }
.slot-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.slot-body p { margin: 0; font-size: 13px; color: var(--muted); }
.slot-act { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.mini-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.mini { padding: 0; overflow: hidden; }
.mini .slot-img { aspect-ratio: 1; }
.mini .slot-body { padding: 10px 12px 12px; gap: 6px; }
.mini b { font: 600 14px/1.2 var(--f-display); }

/* --- bar --- */
.bottle-row { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start; }
.bottle-img { width: 76px; height: 120px; border-radius: 12px; background: #f1eee6 center/contain no-repeat; border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; color: var(--muted); text-align: center; padding: 6px; }

/* --- stats --- */
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar { display: grid; grid-template-columns: 150px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.bar i { display: block; height: 10px; border-radius: 6px; background: var(--brand-2); min-width: 2px; }
.bar b { text-align: right; font-weight: 600; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 90px; margin-top: 12px; }
.spark span { flex: 1; background: var(--brand-2); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.spark span:hover::after { content: attr(data-t); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: #fff; font-size: 11px; padding: 3px 7px; border-radius: 6px; margin-bottom: 4px; }
.empty { padding: 26px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }
.quick { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; }
.quick label { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.login { max-width: 420px; margin: 14vh auto; }
.login p { color: var(--muted); }

.hrow { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); }
.hrow:first-child { border-top: 0; }

.side-venue { width: 100%; margin-bottom: 10px; height: 38px; border-radius: 10px; border: 0; padding: 0 10px; background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }
.side-venue option { color: #101b34; }
.side-out { display: block; margin-top: 10px; background: none; border: 0; color: inherit; opacity: .75; font-size: 12.5px; padding: 4px 0; text-decoration: underline; }
@media (max-width: 860px) { .side-foot { display: flex !important; align-items: center; gap: 8px; margin: 0; padding: 0 0 0 8px; } .side-venue { width: auto; margin: 0; } }

/* --- inventaire --- */
.ing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.ing-tile { display: grid; grid-template-columns: 34px minmax(0, 1fr) 100px 46px 36px; gap: 10px; align-items: center; min-height: 66px; padding: 10px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.ing-tile.off { opacity: .55; }
.ing-tile .drop { width: 30px; height: 30px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), inset 4px 4px 6px rgba(255, 255, 255, .35); }
.ing-main b { display: block; font: 600 15px/1.2 var(--f-display); }
.ing-main span { font-size: 12px; color: var(--muted); }
.ing-tile .switch span { font-size: 10.5px; color: var(--muted); }

/* --- apparence --- */
.look-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 18px; }
.look-side { position: sticky; top: 20px; }
@media (max-width: 1100px) { .look-grid { grid-template-columns: 1fr; } .look-side { position: static; } }
.pal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.pal { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); text-align: left; font-size: 13px; }
.pal:hover { border-color: var(--brand); }
.pal-sw { display: flex; gap: 5px; align-items: flex-end; height: 46px; padding: 8px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.pal-sw i { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.font-sample { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--soft); color: var(--ink); font-size: 19px; font-weight: 600; line-height: 1.2; }
.style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.style-card { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 14px; border: 2px solid var(--line); background: var(--panel); text-align: left; }
.style-card.on, .glass-card.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.style-card svg { width: 100%; aspect-ratio: 1; border-radius: 10px; }
.style-card span { font-size: 12.5px; color: var(--muted); }
.logo-prev { width: 220px; height: 80px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; padding: 10px; }
.logo-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.look-preview { border-radius: 22px; padding: 16px; min-height: 520px; box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .5); overflow: hidden; }
.lp-nav { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 999px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.lp-nav img { height: 22px; }
.lp-nav span { width: 22px; height: 22px; border-radius: 50%; }
.lp-glass { display: block; width: 70%; margin: 10px auto 0; aspect-ratio: 1; border-radius: 12px; }
.lp-kicker { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin: 8px 0 4px; font-weight: 600; }
.lp-title { font-size: 26px; font-weight: 600; line-height: 1.05; margin: 0; }
.lp-text { font-size: 13px; opacity: .75; margin: 6px 0 12px; }
.lp-btn { display: inline-block; padding: 9px 14px; border-radius: 999px; color: #101b34; font-size: 12.5px; font-weight: 600; }
.lp-card { display: flex; justify-content: space-between; margin-top: 14px; padding: 12px 14px; border-radius: 14px; }
.lp-script { font-size: 26px; margin: 14px 0 0; text-align: center; }

/* --- vaisselle --- */
.glass-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.glass-card { position: relative; display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 10px 10px 12px; border-radius: 16px; border: 2px solid var(--line); background: var(--panel); }
.glass-card svg { width: 100%; aspect-ratio: 500 / 620; border-radius: 10px; }
.glass-card b { font: 600 14px/1.2 var(--f-display); text-align: center; }
.glass-card .tag { position: absolute; top: 16px; left: 16px; }

/* --- équipe, plateforme, compte --- */
.inv-form { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.inv-form input { flex: 1 1 220px; }
.inv-form select { width: auto; }
.hrow select { width: auto; height: 34px; }
.hrow.plat { flex-wrap: wrap; }
.editor.center { justify-content: center; align-items: center; }
.side-out svg { width: 14px; height: 14px; vertical-align: -2px; }
.login input[type=password], .login input[type=email] { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 2px; color: var(--muted); font-size: 13.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.link-btn[disabled] { visibility: hidden; }

/* --- invitations --- */
.share-card { width: min(520px, 94vw); margin: auto; }
.kicker-a { font: 700 11px/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.share-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 16px 0 12px; }
.btn.share { width: 100%; }
.btn.share.wa { background: #25d366; border-color: #25d366; color: #fff; }
.share-link { display: flex; gap: 8px; }
.share-link input { flex: 1; font-size: 12.5px; }
.share-qr { display: grid; place-items: center; margin-top: 14px; min-height: 120px; }
.share-qr svg { width: 180px; height: 180px; }
.join h1 { font-size: 34px; margin: 2px 0 8px; }

/* --- promotions --- */
.promo-row .row-name b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pstat { font: 700 10.5px/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; }
.pstat.on { background: #dff0de; color: #2f7a3a; }
.pstat.next { background: #f3ead6; color: #9a6a1c; }
.pstat.off { background: #e3e8f2; color: var(--muted); }
.promo-ed { width: min(860px, 96vw); max-height: 92vh; overflow: auto; margin: auto; }
.promo-prev { background: var(--soft); border-radius: 12px; padding: 12px 14px; }
.pp-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.pp-row s { color: var(--muted); }

/* import CSV */
.imp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.imp-table th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #5b6479); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.imp-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.imp-table tr.off td { opacity: .5; }
.imp-table select { height: 32px; font-size: 13px; }
.imp-table .drop { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; border: 1px solid var(--line); }

/* coûts, stock, vente au verre, analyses */
.cost { display: inline-block; margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--muted, #5b6479); }
.cost.good { color: #2f7a3a; } .cost.mid { color: #b0700f; } .cost.bad { color: #b3261e; } .cost.none { font-weight: 500; font-style: italic; }
b.good { color: #2f7a3a; } b.mid { color: #b0700f; } b.bad { color: #b3261e; }
.row-name .cost { display: block; }
.stk { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; flex: none; }
.stk button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; font-size: 16px; line-height: 1; }
.stk button:hover { background: rgba(0, 0, 0, .06); }
.stk b { min-width: 26px; text-align: center; font-size: 13px; }
.stk.low { border-color: #e4a39d; background: #fdf0ee; }
.stk.low b { color: #b3261e; }
.glass-prices { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.glass-prices .gp { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.glass-prices .gp .price-in input { width: 74px; }
.glass-prices .gp em { font-style: normal; margin: 0; }
details summary { cursor: pointer; color: var(--brand, #2643e9); font-weight: 600; }
.dtabs { gap: 8px; }
.dtabs .chip { height: 38px; padding: 0 18px; font-size: 14px; }

/* commandes */
.order-switch .switch { align-items: flex-start; }
.oboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.oboard.done { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 12px; }
@media (max-width: 1000px) { .oboard { grid-template-columns: 1fr; } }
.ocol h2 { margin: 0 0 10px; }
.ocol .empty { padding: 18px; }
.ocard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 10px 30px -22px rgba(0, 0, 0, .4); }
.ocard.o-new { border: 2px solid var(--brand, #2643e9); animation: onew 1.2s ease-out 1; }
@keyframes onew { from { transform: scale(.97); box-shadow: 0 0 0 8px rgba(107, 122, 58, .25); } }
.ocard header { display: flex; align-items: baseline; gap: 10px; }
.o-num { font: 700 26px/1 var(--f-display); }
.o-table { font-weight: 700; font-size: 18px; }
.ocard time { margin-left: auto; font-size: 12px; color: var(--muted, #5b6479); }
.ocard ul { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; font-size: 16px; }
.o-serve { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; background: #101b34; color: #fff; padding: 3px 6px; border-radius: 5px; }
.ocard ul em { font-size: 12px; color: #a8711f; font-style: normal; }
.o-note { margin: 0 0 10px; padding: 8px 10px; background: #fff6dc; border-radius: 10px; font-weight: 600; }
.ocard footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ocard footer > span { font-weight: 700; }
.o-btns { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.o-big { height: 48px; padding: 0 22px; font-size: 16px; }
.o-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.ocard.o-refused, .ocard.o-served { opacity: .65; }

/* rôles, recherche, outils de carte, traductions, inscription, paiements */
.inv-search, .menu-search, .quick-search { height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; min-width: 200px; }
.inv-search { width: 100%; margin-bottom: 14px; }
.quick-search { width: 100%; margin: 8px 0 10px; }
.row-order { display: flex; align-items: center; gap: 2px; }
.row-order .icon.sm { width: 26px; height: 26px; }
.row-order .icon.sm svg { width: 14px; height: 14px; }
.qr-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.tr-table td { vertical-align: top; }
.tr-table input, .tr-table textarea { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 13.5px; background: #fff; }
.tr-table textarea { min-height: 62px; resize: vertical; }
.tr-missing td:last-child textarea, .tr-missing td:last-child input { background: #fff6dc; border-color: #e7c66e; }
.signup-cta { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.signup-cta p { margin: 0 0 10px; font-size: 14px; }
.signup-cta .btn { width: 100%; }
.tpl { border: 1px solid var(--line); border-radius: 14px; margin: 14px 0 0; padding: 10px 14px; display: grid; gap: 8px; }
.tpl legend { font-size: 13px; font-weight: 600; padding: 0 6px; }
.tpl label { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; font-size: 14px; cursor: pointer; }
.tpl label span { grid-column: 2; font-size: 12.5px; color: var(--muted, #5b6479); }
.o-pay { margin: 0 0 10px; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px; background: #eef5ea; color: #2f6a2f; }
.o-pay.p-authorized { background: #fff6dc; color: #8a5a00; }
.o-pay.p-canceled, .o-pay.p-refunded, .o-pay.p-partially_refunded { background: #f3f1ec; color: #5b6479; }
.role-staff .ing-tile .icon { display: none; }
.chip input[hidden] + * { pointer-events: none; }
label.chip { cursor: pointer; display: inline-flex; align-items: center; }
/* catalogue */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.cat-item { display: grid; grid-template-columns: 70px 1fr; grid-template-rows: 1fr auto; gap: 6px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.cat-item.on { border-color: var(--brand, #2643e9); background: #e9edfd; }
.ci-vis { grid-row: 1 / 3; display: grid; place-items: center; border-radius: 12px; background: radial-gradient(circle at 50% 65%, color-mix(in srgb, var(--c) 35%, transparent), transparent 70%); }
.ci-vis .bottle { height: 118px; width: auto; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .25)); }
.ci-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ci-body b { font: 600 15px/1.2 var(--f-display); }
.ci-body p { margin: 4px 0 0; color: var(--muted, #5b6479); line-height: 1.35; }
.tier { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a5a00; }
.tier.t-prestige { color: #6b2fa0; }
.cat-item .btn { justify-self: start; }
.bottle-img .bottle { height: 92%; width: auto; }
.role-staff [data-ing-new], .role-staff [data-act="imp-open"], .role-staff [data-act="cat-open"], .role-staff .dtabs { display: none; }
body:has(.editor) .publish { display: none !important; }
.oboard.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .oboard.two { grid-template-columns: 1fr; } }
.flow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .flow-grid { grid-template-columns: 1fr; } }
.flow-opt { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; }
.flow-opt.on { border: 2px solid var(--brand, #2643e9); background: #e9edfd; }
.flow-opt input { position: absolute; opacity: 0; pointer-events: none; }
.flow-opt span { font-size: 13px; color: var(--muted, #5b6479); }
.perm-table td:not(:first-child), .perm-table th:not(:first-child) { text-align: center; width: 110px; }
.perm-table input { width: 20px; height: 20px; accent-color: var(--brand, #2643e9); }

.ing-main { min-width: 0; }
.ing-main b, .ing-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stk { justify-self: center; }
.stk.none b { color: var(--muted, #5b6479); font-weight: 500; }
.stk button:disabled { opacity: .3; }
.ing-tile .switch { justify-self: center; }
.ing-tile .icon { justify-self: end; }
#ieBottle { flex: 1; display: grid; place-items: center; min-height: 0; }
#ieBottle .bottle { height: min(420px, 90%); width: auto; filter: drop-shadow(0 24px 24px rgba(0, 0, 0, .35)); }
.add-chip { border-style: dashed; }

/* ---------- service : commandes, alertes, comptage ---------- */
.nav-item { position: relative; }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #d64527; color: #fff; font: 700 12px/22px var(--f-body, system-ui); text-align: center; animation: onew 1.2s ease-out infinite alternate; }
.o-offline { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #fdecea; color: #8a1c13; font-weight: 600; font-size: 14px; }
.ocard.wait { border-color: #e2a33a; }
.ocard.late { border-color: #d64527; box-shadow: 0 0 0 3px rgba(214, 69, 39, .18); }
.ocard.late time { color: #d64527; font-weight: 700; font-size: 14px; }
.ocard time { font-size: 13px; font-weight: 600; }
.o-cash { margin: 8px 0 0; display: inline-block; padding: 4px 10px; border-radius: 6px; background: #101b34; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.ocard ul li { display: flex; align-items: flex-start; gap: 8px; }
.ocard ul li span { flex: 1; }
.o-x { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; line-height: 1; color: #b3261e; }
.o-mid { height: 48px; padding: 0 18px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.chk input { width: 18px; height: 18px; accent-color: var(--brand, #2643e9); }
.period { display: inline-flex; gap: 6px; align-items: center; margin-left: auto; font-size: 13px; color: var(--muted, #5b6479); }
.dtabs { display: flex; flex-wrap: wrap; align-items: center; }
.quick label.q-blocked { opacity: .9; }
.quick label em { display: block; font-style: normal; font-size: 12px; color: #b3261e; }
.stk button { width: 40px; height: 40px; font-size: 20px; }
.stk b { cursor: pointer; min-width: 32px; }
.ing-tile { min-height: 72px; }
.ing-tile .switch { display: grid; justify-items: center; gap: 2px; }
.cost-live { margin: -6px 0 14px; }
.tag.ok { background: #e3f1df; color: #2f6a2f; }
.pay-check { display: grid; gap: 8px; }
.pc { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: #f6f4ee; }
.pc span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; background: #e3e8f2; }
.pc.ok span { background: #2f7a3a; color: #fff; }
.pc b { display: block; font-size: 14px; }
.pc small { color: var(--muted, #5b6479); font-size: 12.5px; }
.editor.center { display: flex; align-items: center; justify-content: center; }
.oboard.one { grid-template-columns: minmax(0, 720px); }
.slug-in { display: flex; align-items: center; gap: 4px; } .slug-in input { flex: 1; } .slug-in b { font-weight: 600; color: var(--muted, #5b6479); }
/* encaissement : payé en ligne / à encaisser / encaissé au bar */
.o-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.o-summary > div { padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; }
.o-summary span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #5b6479); }
.o-summary b { font: 700 24px/1.2 var(--f-display); }
.o-summary em { font-style: normal; font-size: 12.5px; color: var(--muted, #5b6479); }
.os-due { border-color: #e3a23b !important; background: #fff8ea !important; }
.os-due b { color: #a35a00; }
.os-online b { color: #2f7a3a; }
@media (max-width: 700px) { .o-summary { grid-template-columns: 1fr; } }
.o-paybadge { margin: 10px 0 0; padding: 7px 12px; border-radius: 8px; font-size: 13px; font-weight: 800; letter-spacing: .05em; }
.pb-online { background: #2f7a3a; color: #fff; }
.pb-bar { background: #e3f1df; color: #2f6a2f; }
.pb-due { background: #fff1d6; color: #8a4b00; border: 2px dashed #e3a23b; }
.pb-none { display: none; }
.o-cashbtn { background: #e3a23b; color: #2b1a00; border: 0; }
.ocol.due h2 { color: #a35a00; }
.oboard.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1200px) { .oboard.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .oboard.four, .oboard.two { grid-template-columns: 1fr; } }

/* ---------- rubriques à onglets ---------- */
.vtabs { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.vt-title { font: 600 12px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 10px; }
.vtab { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.vtab.on { background: var(--brand); color: #fff; }
.tabbed > .head h1 { font-size: 24px; }
@media (max-width: 760px) { .vtabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; } .vt-title { display: none; } .vtab { white-space: nowrap; } }
/* réglages commandes & paiement */
.pm-opt.dis { opacity: .55; }
.flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
/* commandes : comptoir + caisse */
.o-scanbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 12px; }
.ocol.counter h2 { color: var(--warn); }
.ocard.o-unpaid { border-color: var(--warn); border-style: dashed; }
.oboard.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1200px) { .oboard.five, .oboard.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .oboard.five, .oboard.four { grid-template-columns: 1fr; } }
.cashier { width: min(560px, 94vw); margin: auto; max-height: 92vh; overflow: auto; }
.cash-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.cash-in { display: flex; gap: 8px; flex-wrap: wrap; }
.cash-in input { flex: 1; min-width: 180px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 16px; }
#trayCam { width: 100%; border-radius: 14px; margin-top: 10px; background: #000; max-height: 300px; object-fit: cover; }
.cash-list { display: grid; gap: 8px; margin: 14px 0; }
.cash-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
/* assistant IA */
.ai-btn { background: linear-gradient(135deg, #2b2f1a, #2643e9); color: #fff; border-color: transparent; }
.ai-card { width: min(760px, 95vw); margin: auto; max-height: 92vh; overflow: auto; }
.ai-drop { border: 2px dashed var(--line); border-radius: 16px; padding: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.ai-drop p { flex-basis: 100%; }
.ai-files { display: grid; gap: 8px; margin-top: 12px; }
.ai-file { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: 12px; }
.ai-file img, .ai-ico { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--soft); display: grid; place-items: center; font: 700 11px var(--f-body); color: var(--muted); }
.ai-progress { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 22px 0; }
.ai-progress i { grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: ai-spin 1s linear infinite; }
.ai-progress p { margin: 0; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
.ai-preview { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; }
.ai-preview h3 { margin: 12px 0 4px; font-size: 16px; }
.ai-preview p { margin: 0 0 6px; line-height: 1.6; }
/* référencement */
.seo-score { font: 700 15px var(--f-body); padding: 3px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle; background: #f3e1d6; color: var(--warn); }
.seo-score.s3, .seo-score.s4 { background: #dcefe0; color: var(--ok); }
.hours-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; }
.hours-row input[type=time] { height: 36px; border-radius: 10px; border: 1px solid var(--line); padding: 0 8px; }
.faq-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.faq-row input, .faq-row textarea { width: 100%; }
.gbp-link { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.gbp-link code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; background: var(--soft); padding: 6px 8px; border-radius: 8px; }
@media (max-width: 640px) { .gbp-link { grid-template-columns: 1fr auto; } .gbp-link span { grid-column: 1 / -1; } }
/* vaisselle des plats */
.dish-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.dish-card { cursor: default; display: grid; gap: 6px; justify-items: center; }
.dish-card svg { width: 100%; height: 150px; border-radius: 12px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.sw-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); padding: 0; }
.sw-dot.on { border-color: var(--brand); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand); }
/* éditeur de plat (simple) */
.dish-ed { grid-template-columns: 1fr !important; grid-template-rows: minmax(0, 1fr) !important; max-width: 980px; margin: 0 auto; }
.dish-ed .ed-form { max-height: none; }
.de-top { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 10px; }
.de-photo { display: grid; gap: 8px; }
.de-photo > img, .de-photo > span { width: 240px; height: 240px; border-radius: 16px; object-fit: cover; background: var(--soft); display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; }
.de-photo-act { display: flex; gap: 6px; flex-wrap: wrap; }
.de-ings .de-ing { height: auto; padding: 6px 6px 6px 12px; display: inline-flex; align-items: center; gap: 6px; }
.de-ing small { opacity: .75; font-weight: 400; }
.de-ing button { border: 0; background: rgba(255,255,255,.25); width: 22px; height: 22px; border-radius: 50%; padding: 0; cursor: pointer; color: inherit; }
.de-add { display: flex; gap: 8px; margin-top: 10px; }
.de-add input { flex: 1; height: 40px; border-radius: 10px; border: 1px solid var(--line); padding: 0 12px; }
.warn { color: var(--warn); } .ok-txt { color: var(--ok); }
.dthumb { object-fit: cover; border-radius: 10px; }
label.dthumb.none { display: grid; place-items: center; background: var(--soft); cursor: pointer; font-size: 20px; }
@media (max-width: 700px) { .de-top { grid-template-columns: 1fr; } .de-photo > img, .de-photo > span { width: 100%; height: 200px; } }
/* prise de commande (serveur) */
.tk-start { display: grid; gap: 16px; max-width: 640px; }
.tk-new { font-size: 20px; padding: 26px 20px; width: 100%; }
.tk-setup { display: grid; gap: 16px; max-width: 520px; }
.tk-setup input { font-size: 28px; padding: 14px 16px; text-align: center; letter-spacing: .05em; }
.tk-stepper { display: flex; align-items: center; gap: 18px; }
.tk-stepper .btn { width: 56px; height: 56px; font-size: 24px; padding: 0; justify-content: center; }
.tk-stepper b { font-size: 32px; min-width: 2ch; text-align: center; }
.tk-scan { display: grid; gap: 12px; max-width: 640px; }
.tk-bar { display: flex; align-items: center; gap: 10px; }
.tk-bar b { font-size: 20px; }
.tk-bar .btn { margin-left: auto; }
.tk-cam { position: relative; border-radius: 16px; overflow: hidden; background: #111; aspect-ratio: 4 / 3; max-height: 42vh; }
.tk-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-aim { position: absolute; inset: 18% 24%; border: 3px solid rgba(255,255,255,.85); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.25); pointer-events: none; }
.tk-baskets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tk-baskets .tag { display: inline-flex; align-items: center; gap: 4px; }
.tk-baskets .icon { width: 22px; height: 22px; }
.tk-lines { display: grid; gap: 2px; }
.tk-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line, #e5e5e5); }
.tk-line > div { display: grid; }
.tk-qty { display: inline-flex; align-items: center; gap: 8px; }
.tk-qty .icon { width: 36px; height: 36px; font-size: 20px; border: 1px solid var(--line, #ddd); border-radius: 50%; }
.tk-qty b { min-width: 2ch; text-align: center; font-size: 17px; }
#tkFoot { position: sticky; bottom: 8px; z-index: 5; }
.tk-done { max-width: 640px; }
.tk-recap { list-style: none; margin: 0 0 10px; padding: 0; }
.tk-recap li { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line, #ddd); font-size: 17px; }
.tk-recap li span { margin-left: auto; white-space: nowrap; }
.tk-total { display: flex; justify-content: space-between; font-size: 20px; margin: 12px 0 18px; }
.tk-setup, .tk-scan, .tk-done, .tk-start { box-sizing: border-box; width: 100%; }
.tk-setup *, .tk-scan *, .tk-done * { box-sizing: border-box; }
.tk-setup input, .tk-setup .btn.block, .tk-scan .btn.block, .tk-done .btn.block { width: 100%; max-width: 100%; }
.tk-scan .cash-in { display: flex; gap: 8px; }
.tk-scan .cash-in input { flex: 1; min-width: 0; }
.tk-setup, .tk-scan { grid-template-columns: minmax(0, 1fr); }
.tk-cam video { max-width: 100%; }
#tkFoot { background: var(--card, #fff); padding: 8px 0 4px; }
.tk-hint { margin: 0 0 6px; text-align: center; }
.de-anim { position: relative; background: radial-gradient(circle at 50% 62%, #f3ead8, #e9e2d3 70%); border-radius: 14px; aspect-ratio: 560 / 360; max-width: 520px; margin-bottom: 10px; overflow: hidden; }
.de-anim svg { width: 100%; height: 100%; display: block; }
.de-anim .btn { position: absolute; right: 10px; bottom: 10px; }
.thumb-wrap { position: relative; display: inline-block; }
.thumb-wrap .ph-add { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); display: grid; place-items: center; font-size: 12px; cursor: pointer; }
.de-qty { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; background: rgba(255,255,255,.18); border-radius: 999px; padding: 1px 3px; }
.de-qty button { width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(255,255,255,.28); color: inherit; font-weight: 700; cursor: pointer; line-height: 1; padding: 0; }
.de-qty b { min-width: 16px; text-align: center; font-size: 12.5px; }
/* étapes du dressage (éditeur de plat) : glisser-déposer */
.de-st { grid-template-columns: 44px 150px minmax(0, 1fr) 150px auto; cursor: grab; }
.de-st .st-n { display: flex; align-items: center; gap: 4px; justify-content: center; }
.de-st .grip { font-style: normal; font-size: 15px; color: var(--muted); }
.de-st.dragging { opacity: .45; }
.de-st.drop-before { box-shadow: 0 -3px 0 var(--brand); }
.de-st.drop-after { box-shadow: 0 3px 0 var(--brand); }
.de-st .amount input { width: 64px; }
@media (max-width: 1000px) { .de-st { grid-template-columns: 44px minmax(0, 1fr) auto; } .de-st > :nth-child(3), .de-st > :nth-child(4) { grid-column: 2 / 4; } .de-st > :nth-child(5) { grid-column: 3; grid-row: 1; } .de-st > :nth-child(4):empty { display: none; } }
.de-st.zoned { grid-template-columns: 44px 140px minmax(0, 1fr) 130px 140px auto; }
.de-zone.z-g1, .de-zone.z-g2, .de-zone.z-g3 { border-color: var(--brand); }
@media (max-width: 1000px) { .de-st.zoned { grid-template-columns: 44px minmax(0, 1fr) auto; } .de-st.zoned > :nth-child(5) { grid-column: 2 / 4; } .de-st.zoned > :nth-child(6) { grid-column: 3; grid-row: 1; } .de-st.zoned > :nth-child(4):empty { display: none; } }
/* vaisselle de la cuisine */
.dw-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.dw-card svg { aspect-ratio: 1.25; }
.dw-opts { display: grid; gap: 6px; margin-top: 12px; }
.dw-opts .small { margin: 6px 0 0; }
.sw-dot { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); padding: 0; cursor: pointer; position: relative; }
.sw-dot.on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--brand); }
.sw-custom { display: inline-flex; align-items: center; justify-content: center; font-size: 15px; color: var(--muted); background: var(--panel); overflow: hidden; }
.sw-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
/* produits & stock : moins de colonnes, le nom en entier (2 lignes au plus) */
.ing-grid { grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr)); }
.ing-main b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ing-main span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* prise de commande : le serveur ajoute des articles lui-même */
.tk-find { margin: 12px 0; }
.tk-find input { width: 100%; }
.tk-picks { display: grid; gap: 4px; margin-top: 6px; max-height: 320px; overflow: auto; }
.tk-pick { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border: 1px solid var(--line, #e5e5e5); border-radius: 10px; background: var(--card, #fff); color: inherit; font: inherit; cursor: pointer; }
.tk-pick > span:first-child { display: grid; }
.tk-pick > span:last-child { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 600; }
.tk-pick svg { width: 18px; height: 18px; }
.tk-pick:hover { border-color: var(--accent, #c9a34a); }
/* formes dessinées */
.shp-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.shp-card svg { width: 100%; aspect-ratio: 200 / 120; border-radius: 10px; display: block; }
.shp-card .small { display: block; }
.shp-code { width: 100%; min-height: 360px; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 12px; border-radius: 10px; border: 1px solid var(--line, #ddd); tab-size: 2; white-space: pre; }
.shp-pv { width: 100%; aspect-ratio: 200 / 120; display: block; border-radius: 14px; }
/* plats-types */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tpl-card { display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 10px; border: 1px solid var(--line, #e5e5e5); border-radius: 14px; background: var(--card, #fff); }
.tpl-card svg { width: 100%; aspect-ratio: 1.4; border-radius: 10px; display: block; }
.tpl-card b { display: block; }
.tpl-card .small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#tplEditor { z-index: 60; }
/* tailles dans l'assiette */
.de-size { margin: 12px 0; display: grid; gap: 4px; }
.de-sz { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(120px, 2fr) 54px; align-items: center; gap: 10px; font-size: 13px; }
.de-sz input[type=range] { width: 100%; }
.de-sz em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted, #777); }
.de-sz.main b { font-weight: 600; }
/* catalogue cuisine */
.kc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.kc-item { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line, #e5e5e5); border-radius: 12px; background: var(--card, #fff); }
.kc-item .drop { width: 18px; height: 18px; border-radius: 50%; margin-top: 2px; }
.kc-item b { display: block; }
.kc-item p { margin: 4px 0 0; }
.kc-item.on { opacity: .7; }
/* import de carte PDF */
.pdf-rep h3 { margin: 16px 0 6px; }
.pdf-row { display: grid; grid-template-columns: 22px minmax(160px, 2fr) 70px minmax(140px, 2fr) minmax(120px, 2fr); gap: 10px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--line, #eee); font-size: 13px; }
.pdf-row .pr { text-align: right; font-variant-numeric: tabular-nums; }
.pdf-row .mt { color: var(--ok, #2e7d32); }
.pdf-row .ck { color: var(--muted, #888); font-size: 12px; }
.pdf-row.miss .mt { color: var(--muted, #888); }
@media (max-width: 760px) { .pdf-row { grid-template-columns: 22px 1fr 60px; } .pdf-row .mt, .pdf-row .ck { grid-column: 2 / -1; } }
/* vins : familles et case « au verre » */
.wine-sub { margin: 14px 0 8px; font-size: 15px; }
.ing-tile .glass-q { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted, #777); cursor: pointer; }
.ing-tile .glass-q input { width: 16px; height: 16px; accent-color: var(--accent, #2643e9); }
/* création & import, vérifications */
.imp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 14px; }
.imp-card { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.imp-card h2 { margin: 2px 0 6px; }
.imp-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--faint, rgba(0,0,0,.05)); }
.imp-act { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.vk-bar { height: 8px; border-radius: 99px; background: var(--faint, rgba(0,0,0,.06)); overflow: hidden; margin: 4px 0 6px; }
.vk-bar i { display: block; height: 100%; background: var(--accent, #2643e9); }
.vk-list { display: grid; gap: 6px; }
.vk-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line, #e5e5e5); border-radius: 12px; background: var(--panel, #fff); cursor: pointer; }
.vk-row > span { display: grid; gap: 2px; }
.vk-row.done { opacity: .55; }
.vk-row.done b { text-decoration: line-through; }
.de-avail input[type=time] { padding: 4px 6px; border-radius: 8px; border: 1px solid var(--line, #ddd); font: inherit; font-size: 13px; }
/* catégories : nom FR lisible (la ligne réutilisait la grille des étapes de recette) */
.st.cat-row { grid-template-columns: minmax(160px, 2fr) minmax(120px, 1.4fr) minmax(130px, 1.3fr) 120px 110px auto; }
.st.cat-row .cat-n { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin-top: -2px; }
@media (max-width: 900px) { .st.cat-row { grid-template-columns: 1fr 1fr; } }

/* ---------- réservations ---------- */
.bk-date { height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--panel); }
.bk-sv { margin: 18px 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bk-row { display: grid; grid-template-columns: 64px 1fr auto; }
.bk-row .bk-time { display: grid; line-height: 1.15; }
.bk-row .bk-time b { font: 600 19px/1 var(--f-display); }
.bk-row .bk-time small { color: var(--muted); font-size: 12px; margin-top: 4px; }
.bk-row .row-name b { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bk-row.st-cancelled, .bk-row.st-noshow, .bk-row.st-done { opacity: .55; }
.bk-row.st-pending { box-shadow: inset 4px 0 0 var(--accent); }
.bk-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.tag.vip { background: #f6e7c5; color: #7a5a12; }
.tag.next { background: #e6ecf6; color: #2f4f7a; }
.bk-plan { overflow-x: auto; }
.bkp-axis, .bkp-row { display: grid; grid-template-columns: 110px minmax(560px, 1fr); align-items: center; }
.bkp-axis > div, .bkp-row > div { position: relative; height: 30px; }
.bkp-axis i { position: absolute; top: 6px; transform: translateX(-50%); font-style: normal; font-size: 11px; color: var(--muted); }
.bkp-row { border-top: 1px solid var(--line); }
.bkp-row > span { font-size: 13px; padding: 6px 0; }
.bkp-row > span small { color: var(--muted); }
.bkp-row em { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--line); }
.bkp-bar { position: absolute; top: 4px; height: 22px; padding: 0 6px; border: 0; border-radius: 6px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.bkp-bar.st-pending { background: var(--accent); }
.bkp-bar.st-seated { background: var(--ok); }
.bkp-bar.st-done { background: #9a9c8c; }
.bkp-zone { margin: 12px 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bk-tables { display: grid; gap: 6px; }
.bk-trow { display: grid; grid-template-columns: 1fr 90px 1.2fr 90px 40px; gap: 8px; align-items: center; }
.bk-trow input:not([type="checkbox"]) { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; min-width: 0; }
.bk-thead span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bk-tchip { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.bk-tchip input { margin: 0; }
.bk-tchip small { color: var(--muted); }
.bk-tchip.busy { text-decoration: line-through; opacity: .5; }
.guest-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: start; margin-top: 12px; }
.guest-row { width: 100%; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; }
.guest-row.on { background: var(--soft); }
.guest-row .row-name b { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.guest-card { position: sticky; top: 16px; }
@media (max-width: 900px) { .guest-grid { grid-template-columns: 1fr; } .guest-card { position: static; } .bk-row { grid-template-columns: 56px 1fr; } .bk-acts { grid-column: 1 / -1; justify-content: flex-start; } .bk-trow { grid-template-columns: 1fr 70px 1fr 60px 36px; } }
.pstat.ok { background: #e3f1df; color: #2f6a2f; }
.pstat.off { background: #e3e8f2; color: #5b6479; }
.pstat.out { background: #f6e1dc; color: #a2402b; }

/* ---------- plan de salle (éditeur et salle en direct) ---------- */
.fp-rooms { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fp-rooms .chip svg { width: 14px; height: 14px; vertical-align: -2px; }
.fp-editor { display: grid; grid-template-columns: 150px minmax(0, 1fr) 280px; gap: 12px; align-items: start; }
.fp-palette { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; position: sticky; top: 12px; }
.fp-palette .h-small { grid-column: 1 / -1; margin: 8px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fp-palette > .btn { grid-column: 1 / -1; }
.fp-pal { display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font: 600 11px/1.2 var(--f-body); color: var(--ink); cursor: pointer; }
.fp-pal:hover { border-color: var(--brand); }
.fp-pal svg { width: 48px; height: 48px; }
.fp-pal svg .fp-top { fill: #2d3446; stroke: #4c5670; stroke-width: 3; }
.fp-pal svg .fp-chair { fill: #8b93a8; }
.fp-pal svg .fp-back { fill: none; stroke: #6b5440; stroke-width: 10; }
.fp-pal.sm { padding: 8px 4px; }
.fp-canvas { background: #151a24; border-radius: 18px; padding: 10px; min-width: 0; }
.fp-svg { display: block; width: 100%; height: auto; max-height: 72vh; user-select: none; touch-action: none; }
.fp-floor { fill: #1d2330; stroke: #2c3446; stroke-width: 2; }
.fp-gridline { stroke: #262d3c; stroke-width: 1; }
.fp-empty { fill: #8b93a8; font: 500 18px var(--f-body); }
.fp-table { cursor: pointer; }
.fp-svg.edit .fp-table, .fp-svg.edit .fp-decor { cursor: grab; }
.fp-top { fill: #343c52; stroke: #56607c; stroke-width: 2; transition: fill .2s, stroke .2s; }
.fp-ring { fill: none; stroke: #56607c; stroke-width: 1.5; stroke-dasharray: 4 4; }
.fp-back { fill: none; stroke: #7a5f45; stroke-width: 12; stroke-linejoin: round; }
.fp-chair { fill: #5b6480; }
.fp-name { fill: #fff; font: 700 17px var(--f-body); pointer-events: none; }
.fp-sub { fill: #c9cfdd; font: 600 11.5px var(--f-body); pointer-events: none; }
.fp-sub2 { fill: #c9cfdd; font: 600 11px var(--f-body); pointer-events: none; }
.fp-table.offline .fp-top { stroke-dasharray: 6 5; }
.fp-table.sel .fp-top, .fp-decor.sel > * { stroke: #f2b84b; stroke-width: 4; }
.fp-table.hi .fp-top { stroke: #f2b84b; stroke-width: 4; }
.fp-table.drop .fp-top { stroke: #fff; stroke-width: 5; }
.fp-wall { fill: #8b93a8; }
.fp-bar { fill: #6b4e33; stroke: #8b6a4a; stroke-width: 2; }
.fp-window { fill: #7fc3e6; }
.fp-pillar { fill: #4a5168; }
.fp-plant { fill: #2f6b3f; } .fp-plant2 { fill: #3f8a52; }
.fp-door { fill: none; stroke: #8b93a8; stroke-width: 3; stroke-dasharray: 5 4; }
.fp-label, .fp-dtext { fill: #c9cfdd; font: 700 15px var(--f-body); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.fp-hit { fill: transparent; }
/* états en service */
.fp-table.s-free .fp-top { fill: #2e4a3a; stroke: #4f9a6b; }
.fp-table.s-soon .fp-top { fill: #2c3f63; stroke: #5b86d6; }
.fp-table.s-due .fp-top { fill: #5a4a1e; stroke: #e0b341; }
.fp-table.s-late .fp-top { fill: #5c2a2a; stroke: #e0645a; }
.fp-table.s-seated .fp-top { fill: #6b3b8c; stroke: #b07ad6; }
.fp-table.s-order .fp-top { fill: #1f6a73; stroke: #4cc3cf; }
.fp-props { position: sticky; top: 12px; }
.fp-props h3 { margin: 0 0 10px; font: 600 17px var(--f-display); }
.fp-props .f { margin-top: 8px; }
.fp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fp-rot { display: flex; gap: 6px; align-items: center; }
.fp-rot input { width: 70px; }
.fp-combo { gap: 8px; height: auto; padding: 6px 10px; cursor: pointer; }
.fp-combo label { font-size: 11px; color: var(--muted); display: inline-flex; gap: 3px; align-items: center; }
.danger-ghost { color: var(--danger); }
.bk-days-grid { display: grid; grid-template-columns: 80px repeat(7, auto); gap: 6px; align-items: center; justify-content: start; }
.bk-days-grid > span { font-size: 13px; color: var(--muted); }
.bk-note { width: 100%; min-height: 40px; margin: 0 0 14px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 12px; background: #fffdf5; font: 14px/1.4 var(--f-body); resize: vertical; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { height: 32px; padding: 0 14px; border: 0; background: var(--panel); font: 600 12.5px var(--f-body); color: var(--ink); cursor: pointer; }
.seg button.on { background: var(--brand); color: #fff; }
.lf { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.lf-side { display: grid; gap: 6px; max-height: 80vh; overflow: auto; padding-right: 4px; }
.lf-side .h-small { margin: 10px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lf-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.lf-bk { display: grid; grid-template-columns: 44px 1fr; gap: 2px 8px; padding: 8px 10px; border: 1px solid var(--line); border-left: 4px solid #5b86d6; border-radius: 10px; background: var(--panel); cursor: grab; font-size: 13px; }
.lf-bk b { font: 700 15px var(--f-display); }
.lf-bk .tag { grid-column: 2; justify-self: start; }
.lf-bk.unassigned { border-left-color: #e0b341; }
.lf-bk.st-seated { border-left-color: #b07ad6; opacity: .8; }
.lf-bk.st-pending { border-left-color: #e0b341; }
.lf-bk.on { outline: 2px solid #f2b84b; }
.lf-bk.wait { border-left-color: #4cc3cf; }
.lf-bk.wait.over { border-left-color: #e0645a; }
.lf-bk.wait.over b { color: #c0392b; }
.lf-acts { grid-column: 1 / -1; display: flex; gap: 6px; justify-content: flex-end; }
.lf-main { background: #151a24; border-radius: 18px; padding: 12px; min-width: 0; position: relative; }
.lf-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.lf-bar .chip { background: #262d3c; border-color: #343c52; color: #dfe3ec; }
.lf-bar .chip.on { background: #f2b84b; border-color: #f2b84b; color: #1d2330; }
.lf-time { display: flex; align-items: center; gap: 10px; color: #dfe3ec; font-size: 13px; }
.lf-time input { width: 220px; accent-color: #f2b84b; }
.lf-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 6px; font-size: 11.5px; color: #c9cfdd; }
.lf-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; background: var(--c); }
.lf-legend .s-free { --c: #4f9a6b; } .lf-legend .s-soon { --c: #5b86d6; } .lf-legend .s-due { --c: #e0b341; } .lf-legend .s-late { --c: #e0645a; } .lf-legend .s-seated { --c: #b07ad6; } .lf-legend .s-order { --c: #4cc3cf; }
.lf-panel:empty { display: none; }
.lf-panel { position: absolute; right: 16px; bottom: 16px; width: min(360px, calc(100% - 32px)); }
.lf-panel .card { box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.lf-opts { display: grid; gap: 8px; }
.lf-opt { display: grid; text-align: left; gap: 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font: inherit; cursor: pointer; }
.lf-opt:hover { border-color: var(--brand); }
.lf-opt small { color: var(--muted); }
@media (max-width: 1100px) { .fp-editor { grid-template-columns: 1fr; } .fp-palette { position: static; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); } .fp-props { position: static; } .lf { grid-template-columns: 1fr; } .lf-side { max-height: none; } }

/* ---------- softs & boissons chaudes ---------- */
.sd-sub { margin: 18px 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px; }
.sd-item { display: grid; grid-template-columns: auto 14px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; }
.sd-item:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.sd-item.has { opacity: .55; cursor: default; }
.sd-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); }
.sd-name { display: grid; min-width: 0; } .sd-name b { font-size: 14px; } .sd-name small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-price { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; } .sd-price input { width: 56px; height: 30px; padding: 0 6px; text-align: right; border: 1px solid var(--line); border-radius: 8px; font: inherit; }

/* ---------- équipe : serveur de la commande, étape « tapé en caisse », préparation bar / cuisine ---------- */
.oboard.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1400px) { .oboard.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .oboard.six { grid-template-columns: 1fr; } }
.o-summary { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.os-key { border-color: #6a7fd6 !important; background: #f1f3ff !important; }
.os-key b { color: #3446a3; }
.pb-key { background: #eef0ff; color: #2f3f97; border: 2px dashed #8291e0; }
.o-keybtn { background: #3446a3; color: #fff; border: 0; }
.ocol.tokey h2 { color: #3446a3; }
.o-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.o-meta:empty { display: none; }
.o-who, .o-keyed { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef2fa; color: #4c4b40; }
.o-who.me { background: #e7efd8; color: #3d5419; }
.o-who.free { background: #fff1d6; color: #8a4b00; }
.o-keyed { background: #eef0ff; color: #2f3f97; }
.o-assign { font-size: 12.5px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.o-delta { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: #fff7e0; color: #6b4300; font-size: 13.5px; line-height: 1.5; }
.o-delta b { white-space: nowrap; }
.o-delta b.minus { color: #a3271a; }
.o-preps { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.o-prep { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef2fa; color: #5b6479; }
.o-prep.ok { background: #e3f1df; color: #2f6a2f; }
.pboard { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pcard ul { font-size: 18px; }
.tk-line.changed { background: #fffaf0; border-radius: 10px; }
.tk-line.gone b { text-decoration: line-through; opacity: .7; }
.tk-plus { color: #2f6a2f; }
.tk-minus { color: #a3271a; }
/* appareil photo du scan : on reste à la verticale (le verrouillage n'existe pas partout : sinon on demande de tourner le téléphone) */
.cam-turn { display: none; }
@media (orientation: landscape) and (max-height: 540px) {
  body.cam-on .cam-turn { display: grid; position: fixed; inset: 0; z-index: 9999; place-items: center; background: #1d1c17; color: #fff; text-align: center; padding: 24px; font: 600 18px/1.4 var(--f-body, system-ui); }
  body.cam-on .cam-turn span { display: block; font-size: 48px; margin-bottom: 8px; }
}
/* mentions légales : champs obligatoires */
.need { color: #b3261e; }
.f-need input { border-color: #e3a23b; background: #fffaf0; }
.f small.warn { color: #b3261e; }
.tag.warn { background: #fff1d6; color: #8a4b00; }
/* mettre à la carte un produit du stock */
#sellBox { z-index: 120; }
.sell-card { width: min(640px, 100%); max-height: 92vh; overflow: auto; }
.sell-fmts { display: grid; gap: 8px; }
.sell-fmt { display: grid; grid-template-columns: 22px 1fr 96px 110px; gap: 8px; align-items: center; }
.sell-fmt input[type="checkbox"] { width: 18px; height: 18px; }
.sell-fmt > input:not([type]) { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.unit-in { position: relative; }
.unit-in input, .sell-fmt .price-in input { width: 100%; }
.unit-in input { padding-right: 26px; }
.unit-in i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted, #5b6479); font-size: 13px; }
.tile-acts { display: flex; gap: 6px; align-items: center; }
.ing-tile b small { font-weight: 500; }
@media (max-width: 560px) { .sell-fmt { grid-template-columns: 22px 1fr 80px; } .sell-fmt .price-in:last-child { grid-column: 2 / -1; } }
/* prise de commande : liste de la carte, note et cuisson par ligne */
.tk-select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: 600 16px/1.2 var(--f-body, system-ui); margin-bottom: 8px; }
.tk-lnote { display: inline-block; margin: 2px 0; padding: 2px 8px; border-radius: 6px; background: #fff1d6; color: #6b4300; font-size: 13px; font-weight: 700; font-style: normal; }
.tk-cook { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tk-cook .chip { padding: 6px 10px; font-size: 13px; border: 1px dashed #c98a2c; background: #fffaf0; }
.tk-line > div:first-child { display: grid; gap: 2px; }
.o-lnote { background: #fff1d6; color: #6b4300; padding: 1px 6px; border-radius: 6px; font-size: 13px; }
/* soirée par serveur */
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.tm-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tm-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; margin-top: 12px; }
.tm-kpis span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted, #5b6479); }
.tm-kpis b { font: 700 19px/1.3 var(--f-display, inherit); }
.tm-due b { color: #a35a00; }
/* catalogue de polices */
.font-cat { width: min(760px, 100%); max-height: 92vh; overflow: auto; }
.fc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.fc-item { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.fc-item:hover { border-color: var(--brand, #2643e9); }
.fc-sample { font-size: 20px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- tuiles du stock : produit et actions en haut, stock / au verre / au bar en bas (plus rien ne déborde) --- */
.ing-tile { grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-rows: auto auto; row-gap: 8px; }
.ing-tile .tile-acts { flex-wrap: wrap; justify-content: flex-end; max-width: 100%; }
.ing-tile .tile-ctl { grid-column: 2 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ing-tile .tile-ctl .switch { display: inline-flex; align-items: center; gap: 6px; }
.ing-tile .tile-ctl .switch span { font-size: 12px; }
.ing-tile > span:empty:not(.drop) { display: none; }
.ing-tile .btn.ghost { border-color: transparent; color: var(--brand); padding: 0 8px; }

/* --- sélecteur de produits unique et « Ajouter à la carte » --- */
.pk-wrap { z-index: 90; }
.pk-card { width: min(1040px, 96vw); max-height: 92vh; display: flex; flex-direction: column; }
.pk-list { overflow: auto; min-height: 200px; padding-right: 4px; }
.pk-tabs { margin: 0 0 12px; flex-wrap: wrap; }
.pk-h { margin: 14px 0 8px; font-size: 14px; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.pk-item { display: grid; grid-template-columns: 26px minmax(0, 1fr) 28px; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); transition: .12s; }
.pk-item:hover { border-color: var(--brand); background: var(--soft); }
.pk-item .drop { width: 22px; height: 22px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.pk-item b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-item small { display: block; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-item .pk-act { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--brand); }
.pk-item .pk-act svg { width: 15px; height: 15px; }
.pk-item.done { border-color: var(--ok); background: #f1f7ef; }
.pk-item.done .pk-act { background: var(--ok); color: #fff; font-weight: 700; }
.pk-card .tpl-grid { overflow: auto; }
.hub-free { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.hub-big { text-align: left; padding: 22px; border-radius: 16px; border: 1px dashed var(--line); background: var(--soft); }
.hub-big:hover { border-color: var(--brand); }
.hub-big b { display: block; font: 600 17px var(--f-display); margin-bottom: 6px; }
.hub-big span { color: var(--muted); font-size: 13px; }
.menu-jump { margin: -8px 0 14px; }
.menu-jump .chip { text-decoration: none; }
.more-menu { position: relative; }
.more-menu summary { list-style: none; }
.more-menu summary::-webkit-details-marker { display: none; }
.more-menu > div { position: absolute; right: 0; top: 46px; z-index: 30; display: grid; gap: 6px; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .1); }
.sell-glass { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.sell-glass .glass-card { padding: 6px; }
.sell-glass .glass-card svg { height: 92px; }
.sell-glass .glass-card b { font-size: 11.5px; }
.sell-card { max-height: 92vh; overflow: auto; }
.st .ing-btn { justify-content: space-between; min-width: 0; text-align: left; font-weight: 500; }
.st .ing-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st .ing-btn.empty { color: var(--danger); border-style: dashed; }
.pk-card > .inv-search, .pk-card > .cash-head, .pk-card > p, .pk-card > .chips { flex: none; }

/* produit brut : la bouteille, pas d'animation */
.thumb.bthumb { display: grid; place-items: center; background: var(--soft); border-radius: 12px; overflow: hidden; }
.thumb.bthumb svg { width: 70%; height: 92%; }
.bt-none { font-size: 22px; opacity: .6; }
.sell-top { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center; margin: 0 0 14px; }
.sell-bottle { display: grid; place-items: center; height: 120px; background: var(--soft); border-radius: 14px; }
.sell-bottle svg { height: 108px; width: auto; }
.tr-auto { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

/* =====================================================================
   ORDUP — habillage du back-office : clair, épuré, le bleu Majorelle comme repère.
   Les écrans gardent leur structure ; seuls les jetons et les composants de base changent.
   ===================================================================== */
:root {
  --bg: #f6f8fd; --panel: #ffffff; --ink: #101b34; --muted: #5b6479; --line: #e3e8f2; --soft: #eef2fa;
  --brand: #2643e9; --brand-2: #1d36c4; --brand-soft: #e9edfd; --accent: #d92d45;
  --r: 16px; --shadow: 0 1px 2px rgba(16, 27, 52, .04), 0 4px 16px rgba(16, 27, 52, .04);
}
body { font-size: 14px; letter-spacing: -.003em; }
h1, h2, h3 { font-family: var(--f-body); letter-spacing: -.02em; }
h1 { font: 650 26px/1.15 var(--f-body); letter-spacing: -.025em; }
h2 { font-weight: 620; font-size: 17px; }
h3 { font-weight: 600; font-size: 14.5px; }
.head { margin-bottom: 20px; }
.head p { font-size: 14px; line-height: 1.55; }

/* barre latérale blanche */
.shell { grid-template-columns: 248px 1fr; }
.side { background: #fff; color: var(--ink); border-right: 1px solid var(--line); padding: 18px 12px; gap: 2px; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; }
.ob-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: #fff; font: 700 18px var(--f-display); flex: none; }
.ob-txt { display: grid; min-width: 0; }
.side-brand .ob-txt b { font: 650 16px/1.1 var(--f-body); letter-spacing: -.01em; text-transform: none; }
.side-brand .ob-txt span { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--muted); opacity: 1; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item { color: var(--muted); opacity: 1; font-weight: 550; padding: 9px 12px; border-radius: 10px; }
.nav-item:hover { background: var(--soft); color: var(--ink); }
.nav-item.on { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.side-foot { opacity: 1; color: var(--muted); }
.side-foot a { background: var(--soft); color: var(--ink); }
.side-foot select, .side-foot .venue-switch { color: var(--ink); }

/* contenu */
.main { padding: 28px clamp(16px, 3.4vw, 48px) 110px; max-width: 1480px; }
.card { border-color: var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.kpi span { letter-spacing: .04em; font-size: 11.5px; }
.kpi b { font: 650 28px/1 var(--f-body); letter-spacing: -.03em; }

/* onglets de rubrique : contrôle segmenté */
.vtabs { gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: inline-flex; margin-bottom: 22px; box-shadow: var(--shadow); }
.vt-title { display: none; }
.vtab { padding: 7px 14px; border-radius: 9px; font-weight: 550; font-size: 13.5px; }
.vtab:hover { color: var(--ink); background: var(--soft); }
.vtab.on { background: var(--brand-soft); color: var(--brand); }

/* boutons, pastilles, champs */
.btn { height: 38px; border-radius: 10px; font-weight: 600; font-size: 13.5px; box-shadow: 0 1px 1px rgba(16, 27, 52, .04); }
.btn.sm { height: 32px; border-radius: 9px; }
.btn.primary { background: var(--brand); border-color: var(--brand); }
.btn.ghost { background: transparent; box-shadow: none; }
.chip { height: 30px; border-color: var(--line); font-weight: 550; }
.chip:hover { border-color: #c9d2e3; }
.chip.on { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 35%, transparent); color: var(--brand); }
.icon { border-radius: 9px; border-color: var(--line); }
input[type=text], input[type=number], input[type=url], input[type=tel], input[type=email], input[type=search], select, textarea { border-radius: 10px; border-color: var(--line); }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--brand) 18%, transparent); outline-offset: 0; border-color: var(--brand); }
.switch input:checked + i { background: var(--brand); }

/* fenêtres : fond flouté, panneaux arrondis */
.editor { background: rgba(16, 27, 52, .32); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.pk-card, .sell-card { border-radius: 20px; box-shadow: 0 24px 60px rgba(16, 27, 52, .18); }
.publish { background: #101b34; box-shadow: 0 12px 34px rgba(16, 27, 52, .25); }

/* téléphone : barre de navigation horizontale claire */
@media (max-width: 860px) {
  .side { border-right: 0; border-bottom: 1px solid var(--line); }
  .nav-item.on { background: var(--brand-soft); }
  .vtabs { display: flex; overflow-x: auto; flex-wrap: nowrap; max-width: 100%; }
}
.side-brand .ob-mark { display: grid; font-size: 18px; margin: 0; letter-spacing: 0; opacity: 1; text-transform: none; color: #fff; }
/* lignes de la carte : plus de place pour le nom ; le coût inconnu se règle dans la fiche, pas dans la liste */
@media (min-width: 861px) { .row { grid-template-columns: auto 52px minmax(180px, 1fr) 104px auto auto auto; gap: 16px; padding: 12px 16px; } }
.row .cost.none { display: none; }
.row-name span { display: block; margin-top: 2px; }
.row .switch span { font-size: 12.5px; color: var(--muted); }
.cat-head h2 { font-size: 18px; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { padding: 8px; gap: 2px; }
  .side-brand { display: none; }
  .vtabs { margin-bottom: 16px; }
}
@media (max-width: 860px) { .row { grid-template-areas: 'ord th name name' 'ord th price price' 'ord th sw sw' 'ord th act act'; } .row-actions { justify-content: flex-start; } }

/* formulaires : libellé (et astérisque) sur une même ligne ; dans les mentions légales, champs alignés malgré les libellés longs */
.f .f-l { display: block; }
.f .f-l .need { color: var(--danger); }
.legal-fields { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: start; }

/* plateforme : usages */
.pu-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pu-g span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.pu-g b { display: block; font: 650 24px/1.2 var(--f-body); margin: 6px 0; letter-spacing: -.02em; }
.pu-g b small { font-size: 13px; color: var(--muted); font-weight: 500; }
.pu-g i { display: block; height: 6px; border-radius: 99px; background: var(--soft); position: relative; overflow: hidden; margin: 4px 0 8px; }
.pu-g i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--ok); border-radius: 99px; }
.pu-g.warn i::after { background: var(--warn); } .pu-g.bad i::after { background: var(--danger); }
.pu-g em { font-style: normal; font-size: 12px; color: var(--muted); }
.pu-alert { background: #fff6e8; border-color: #f0d3a3; } .pu-alert p { margin: 2px 0; color: #8a4b00; font-weight: 550; }
.pu-table td, .pu-table th { white-space: nowrap; }

/* prise de commande : table et couverts dans la barre, dernière commande à rouvrir */
.tk-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tk-tb { display: flex; align-items: center; gap: 8px; flex: 1 1 160px; min-width: 0; }
.tk-tb select, .tk-tb input { height: 40px; min-width: 0; flex: 1; font-weight: 600; }
.tk-stepper.sm { display: inline-flex; align-items: center; gap: 6px; }
.tk-stepper.sm b { min-width: 22px; text-align: center; font-size: 16px; }
.tk-last { display: grid; gap: 4px; text-align: left; width: 100%; cursor: pointer; border: 1.5px solid var(--brand); background: var(--brand-soft); }
.tk-last b { font-size: 16px; } .tk-last:hover { background: #e6e9d4; }
.tk-start { display: grid; gap: 14px; }

/* ===== corrections de l'audit responsive (04/11) ===== */
/* champs sans type, grilles qui ne débordent plus */
input:not([type]) { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; }
:where(.grid) { grid-template-columns: minmax(0, 1fr); }
.grid.kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.tbl-scroll { overflow-x: auto; }
/* grilles de champs alignées : libellé / champ / aide sur les mêmes lignes, quelle que soit la longueur du libellé */
.fields.aligned > label.f { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 6px; align-content: start; }
.fields.aligned > label.f > .f-l, .legal-fields .f-l { display: block; align-self: end; }
/* fenêtres d'édition */
.ed-top { flex-wrap: wrap; gap: 8px; }
.ed-top > span, .ed-top > div { flex-wrap: wrap; }
.o-scanbar .btn { white-space: normal; height: auto; min-height: 40px; text-align: center; }
@media (max-width: 1000px) {
  .ed-panel:not(:has(.ed-preview)) { grid-template-rows: 1fr; }
  .ed-panel { grid-template-rows: 170px 1fr; }
  .ed-top { position: sticky; top: 0; z-index: 3; background: var(--panel); padding: 10px 0; margin-top: -10px; }
}
@media (max-width: 860px) {
  .shell { grid-template-rows: auto 1fr; align-content: start; }
  .side, .vtabs { scrollbar-width: none; }
  .side::-webkit-scrollbar, .vtabs::-webkit-scrollbar { display: none; }
  /* ligne de la carte : les deux interrupteurs côte à côte, sans chevauchement */
  .row { grid-template-areas: 'ord th name name' 'ord th price price' 'ord th sw sw2' 'ord th act act'; }
  .row .sw-b { grid-area: sw2; margin-left: 0; justify-self: start; }
  .row .sw-a { justify-self: start; }
  .pk-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pk-card .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-days-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .bk-days-grid > span { grid-column: 1 / -1; }
  .bk-days-grid .chip { min-width: 0; padding: 0 4px; }
  .perm-table td:not(:first-child), .perm-table th:not(:first-child) { width: auto; }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr !important; }
  .fields.aligned > label.f { grid-row: auto; grid-template-rows: none; }
}
/* doigts : cibles d'au moins 40 px sur écran tactile */
@media (pointer: coarse) {
  .icon, .btn.sm, .vtab { min-height: 40px; min-width: 40px; }
  .chip { min-height: 36px; }
  input[type=checkbox] { width: 20px; height: 20px; }
  .row .row-actions { gap: 8px; }
}

/* ===== téléphone et petit écran : barre du haut + menu plein écran (☰) ===== */
.mbar, .mnav, .mnav-x { display: none; }
@media (max-width: 860px) {
  .shell { display: block; }
  .mbar { position: sticky; top: 0; z-index: 45; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 14px calc(0px) 10px; padding-top: env(safe-area-inset-top); background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .mbar-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--ink); }
  .mbar-btn:active { background: var(--soft); }
  .mbar-btn svg { width: 24px; height: 24px; }
  .mbar-t { flex: 1; min-width: 0; display: grid; line-height: 1.15; }
  .mbar-t small { font-size: 11.5px; color: var(--muted); font-weight: 600; }
  .mbar-t b { font-size: 16px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ob-mark.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 16px; display: grid; place-items: center; background: var(--brand); color: #fff; font-family: var(--f-display); font-weight: 700; }
  /* le menu : caché, puis plein écran */
  .side { position: fixed; inset: 0; z-index: 90; height: 100dvh; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; padding: calc(14px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; overflow-x: hidden; background: #fff; border: 0; transform: translateX(-100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
  body.mnav-open { overflow: hidden; }
  body.mnav-open .side { transform: none; visibility: visible; transition: transform .25s ease; }
  .side .nav-item { display: none; }
  .side-brand { display: flex !important; padding: 4px 0 14px; }
  .mnav-x { display: grid; place-items: center; position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--soft); color: var(--ink); }
  .mnav-x svg { width: 22px; height: 22px; }
  .mnav { display: grid; gap: 6px; }
  .mnav-g { padding: 10px 0 8px; border-top: 1px solid var(--line); }
  .mnav-g p { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .mnav-g p svg { width: 16px; height: 16px; }
  .mnav-i { display: block; width: 100%; text-align: left; min-height: 46px; padding: 0 14px; border: 0; border-radius: 12px; background: transparent; font: 600 16px var(--f-body); color: var(--ink); }
  .mnav-i:active { background: var(--soft); }
  .mnav-i.on { background: var(--brand-soft); color: var(--brand); }
  .side .side-foot { display: grid !important; gap: 8px; margin-top: 18px; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 14px; }
  .side .side-foot a, .side .side-foot .side-out { min-height: 44px; display: flex; align-items: center; gap: 8px; }
  /* les sous-onglets restent en haut de page, sur une ligne défilante */
  .vtabs { display: flex; width: 100%; overflow-x: auto; flex-wrap: nowrap; margin: 0 0 14px; }
  .vtab { flex: none; }
  .main { padding-top: 16px; }
}
@media (max-width: 860px) {
  .side { align-items: stretch; }
  .side > * { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }
  .side > .mnav-x { width: 44px; margin: 0; }
  .row { grid-template-areas: 'ord th name name' 'ord th price price' 'ord th sw sw' 'ord th sw2 sw2' 'ord th act act'; }
}
@media (max-width: 860px) {
  .side .side-foot svg { width: 16px; height: 16px; flex: none; }
  .side .side-foot a { justify-content: flex-start; padding: 0 14px; border-radius: 12px; }
}

.warn-card { background: #fff6e8; border-color: #f0d3a3; color: #6b3d00; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }

.svc-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }

/* ===== Analyses : le Z du jour ===== */
.z-card { background: linear-gradient(180deg, var(--brand-soft), #fff 60%); }
.z-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.z-k { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.z-card > .z-head h2::first-letter { text-transform: uppercase; }
.z-big { margin: 14px 0 10px; }
.z-big > span { font-size: 13px; color: var(--muted); font-weight: 600; }
.z-big > b { display: block; font: 700 44px/1.05 var(--f-body); letter-spacing: -.03em; margin: 4px 0 10px; }
.z-cmp, .z-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.z-cmp > span, .z-c { display: grid; gap: 2px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 140px; }
.z-cmp small, .z-c small { font-size: 11.5px; color: var(--muted); }
.z-cmp em, .z-c em { font-style: normal; font-size: 12px; color: var(--muted); }
.z-row { padding: 10px 0; border-top: 1px solid var(--line); }
.z-row .z-l { min-width: 140px; font-weight: 600; } .z-row > b { min-width: 110px; font-size: 20px; }
.zd { font-weight: 700; font-size: 14px; } .zd.up { color: var(--ok); } .zd.down { color: var(--danger); } .zd.flat, .zd.none { color: var(--muted); }
.z-hours { display: flex; align-items: flex-end; gap: 6px; height: 170px; margin-top: 12px; overflow-x: auto; }
.z-h { flex: 1 0 38px; height: 100%; display: grid; grid-template-rows: 1fr auto auto; align-items: end; text-align: center; }
.z-h i { display: block; background: var(--brand); border-radius: 6px 6px 2px 2px; min-height: 4px; }
.z-h b { font-size: 10.5px; font-weight: 600; } .z-h span { font-size: 11px; color: var(--muted); }
.z-part { width: 100%; display: grid; grid-template-columns: minmax(80px, 1.2fr) 2fr 44px auto; gap: 10px; align-items: center; padding: 9px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.z-part[data-z-into] { cursor: pointer; } .z-part[data-z-into]:hover { background: var(--soft); }
.z-part i { height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; } .z-part u { display: block; height: 100%; background: var(--brand); }
.z-part em { font-style: normal; color: var(--muted); font-size: 12.5px; }
.period-from { display: inline-flex; align-items: center; gap: 6px; } .period-from input { height: 26px; border: 0; background: transparent; padding: 0; width: auto; }

.mq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.mq { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.mq ul { margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; } .mq li { margin: 2px 0; }
.mq-star { background: #eef6ea; } .mq-push { background: #e9edfd; } .mq-fix { background: #fff6e8; } .mq-ask { background: #f6f3ef; }

/* ===== éditeur visuel des formes ===== */
.sp-global, .sp-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 16px; align-items: end; }
.sp-sl { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.sp-sl span { grid-column: 1 / -1; font-weight: 600; }
.sp-sl input[type=range] { width: 100%; accent-color: var(--brand); height: 24px; }
.sp-sl output { min-width: 38px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.sp-fill, .sp-txt { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sp-fill { grid-template-columns: 1fr auto; } .sp-fill span { grid-column: 1 / -1; }
.sp-fill input[type=color] { width: 42px; height: 40px; padding: 2px; border-radius: 10px; border: 1px solid var(--line); }
.sp-txt { grid-column: 1 / -1; } .sp-txt textarea { font: 12.5px/1.4 ui-monospace, Menlo, monospace; min-height: 54px; }
.sp-chk { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; grid-column: 1 / -1; }
.sp-parts { display: grid; gap: 10px; }
.sp-part { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px 12px; background: var(--panel); }
.sp-ph { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.sp-ph span { display: flex; gap: 4px; }
.sp-sub { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; padding: 10px; border-radius: 12px; background: var(--soft); }
.sp-sub > b { grid-column: 1 / -1; font-size: 13px; }
.sp-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.sp-expert summary { cursor: pointer; }
.sp-expert .shp-code { margin-top: 10px; }
@media (max-width: 1000px) {
  #shpEditor .ed-panel { grid-template-rows: 230px 1fr; }
  #shpEditor .ed-preview { padding: 8px; }
  #shpEditor .ed-preview p, #shpEditor [data-shp-play] { display: none; }
  #shpEditor .shp-pv { width: 100%; height: 100%; }
}
.tk-select { height: 52px; padding: 0 14px; line-height: 1.2; }

.fp-combo-name { width: 130px; height: 28px; padding: 0 8px; border: 1px dashed var(--line); border-radius: 8px; background: transparent; font-weight: 600; font-size: 13px; }

.cc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.cc-row .row-name span { display: block; }
.cc-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .cc-row { grid-template-columns: 1fr; } .cc-acts { justify-content: flex-start; } }

.sp-ai { background: var(--brand-soft); border-radius: 14px; padding: 12px 14px; }
.sp-ai-row { display: flex; gap: 8px; } .sp-ai-row input { flex: 1; }
.sell-anim { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: start; }
.sell-prev { width: 150px; height: 150px; border-radius: 14px; border: 1px solid var(--line, #e5e5e5); }
@media (max-width: 520px) { .sell-anim { grid-template-columns: 1fr; } .sell-prev { width: 100%; height: 200px; } }

/* Analyses : barre de période (aujourd'hui, hier, semaine, mois, année, dates) et comparaison */
.period-bar { margin-top: 12px; padding: 12px 14px; }
.period-bar .chips { gap: 6px; }
.per-cmp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.per-dates { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; }
.per-dates input[type=date] { padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; font: inherit; max-width: 160px; }
/* stock par plat */
.ds-card summary { cursor: pointer; }
.ds-list { display: grid; gap: 6px; }
.ds-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; }
.ds-row > b { flex: 1 1 160px; min-width: 0; }
.ds-row.low { border-color: #f0b46a; background: #fff8ee; }
.ds-row.out { border-color: #e58b8b; background: #fff1f1; }
.o-cancel { color: #a33; }
/* catalogue commun : vignettes du moteur */
.cc-row { display: flex; align-items: center; gap: 12px; }
.cc-row .thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; }
.cc-drop { display: grid; place-items: center; background: #f6f8fd; }
.cc-drop i { width: 26px; height: 34px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; display: block; }
.cc-none { display: grid; place-items: center; background: #f6f8fd; color: #999; font-weight: 700; }
/* catalogue commun : colonnes fixes — vignette 64 px, titre qui prend la place restante, boutons à droite (le titre ne glisse plus selon sa longueur) */
.cc-row { justify-content: flex-start; }
.cc-row > .thumb { flex: 0 0 64px; min-width: 64px; max-width: 64px; overflow: hidden; }
.cc-row > .row-name { flex: 1 1 auto; min-width: 0; text-align: left; }
.cc-row > .cc-acts { flex: 0 0 auto; margin-left: auto; }
@media (max-width: 760px) { .cc-row { flex-wrap: wrap; } .cc-row > .row-name { flex-basis: calc(100% - 76px); } .cc-row > .cc-acts { margin-left: 76px; } }

/* ingrédient d'une étape : sélecteur + crayon pour renommer partout */
.st .ing-cell { display: flex; gap: 6px; align-items: center; min-width: 0; }
.st .ing-cell .ing-btn { flex: 1 1 auto; }
.st .ing-ren { flex: 0 0 auto; width: 32px; height: 32px; opacity: .6; }
.st .ing-ren:hover { opacity: 1; }
/* réservations : le sélecteur de date garde sa largeur (les flèches ne font plus sauter la barre d'outils) */
.head input.bk-date[type=date] { width: 150px; flex: 0 0 150px; height: 32px; padding: 0 10px; }
.head .bk-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
/* combinaisons de tables : une pastille par combinaison, à sa hauteur (nom, couverts, en ligne, supprimer sur une ligne) */
.chip.fp-combo { height: auto; min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 10px; border-radius: 12px; }
.chip.fp-combo input.fp-combo-name { flex: 0 0 150px; width: 150px; height: 30px; margin: 0; }
.chip.fp-combo small { white-space: nowrap; color: var(--muted); }
.chip.fp-combo label { white-space: nowrap; }
.chip.fp-combo label input { width: 16px; height: 16px; margin: 0; }
.chip.fp-combo .icon { width: 28px; height: 28px; }

/* =====================================================================
   CHARTE ORDUP — Bleu Majorelle #2643E9 · Encre de seiche #101B34 · Blanc brise marine #F6F8FD · Corail #D92D45 · DM Sans
   Barre latérale à l'encre, bleu pour les actions et l'élément actif, corail réservé à l'attention et à « Publier ».
   ===================================================================== */
:root {
  --bg: #f6f8fd; --panel: #ffffff; --ink: #101b34; --muted: #5b6479; --line: #e3e8f2; --soft: #f9fafe;
  --brand: #2643e9; --brand-2: #1d36c4; --brand-soft: #e9edfd; --accent: #d92d45; --ok: #16a34a; --warn: #d97706; --danger: #d92d45;
  --f-display: 'DM Sans', system-ui, sans-serif; --f-body: 'DM Sans', system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(16, 27, 52, .04), 0 4px 16px rgba(16, 27, 52, .05);
}
body { font-family: var(--f-body); }
h1 { font: 700 28px/1.15 var(--f-display); letter-spacing: -.03em; }
h2, h3 { font-family: var(--f-display); font-weight: 700; }
/* barre latérale : encre de seiche, logo blanc et bleu, élément actif en bleu */
.side { background: #101b34; color: #e2e8f4; border-right: 0; }
.side-brand { padding: 6px 8px 22px; display: grid; gap: 6px; }
.side-brand .ob-logo { display: block; width: 132px; height: auto; }
.side-brand .ob-logo.dark { display: none; }
.side-brand .ob-venue { font-size: 12.5px; color: #97a3bd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 2px; }
.side .nav-item { color: #c3cbdc; opacity: 1; }
.side .nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side .nav-item.on { background: #2643e9; color: #fff; }
.side-foot, .side-foot a { color: #e2e8f4; }
.side-foot a { background: rgba(255, 255, 255, .08); }
.side select, .side .btn, .side-foot select, .side-foot .venue-switch { background: rgba(255, 255, 255, .06); color: #e2e8f4; border-color: rgba(255, 255, 255, .16); }
.side select option { color: #101b34; }
.ob-mark, .ob-mark.sm, .mbar .ob-mark { background: url(brand/ordup-icone-64.png) center / cover no-repeat !important; color: transparent !important; font-size: 0 !important; border-radius: 9px; }
/* boutons : bleu plein ; « Publier » en corail sur la barre d'encre */
.btn { border-radius: 10px; font-weight: 600; }
.btn.primary { background: #2643e9; border-color: #2643e9; color: #fff; }
.btn.primary:hover { background: #1d36c4; border-color: #1d36c4; }
.publish { background: #101b34; box-shadow: 0 12px 34px rgba(16, 27, 52, .28); }
.publish .btn.primary { background: #d92d45; border-color: #d92d45; }
.publish .btn.primary:hover { background: #c0243b; border-color: #c0243b; }
.editor { background: rgba(16, 27, 52, .4); }
.chip.on { background: var(--brand-soft); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
@media (max-width: 860px) {
  .side { background: #101b34; border-bottom: 0; }
  .nav-item.on { background: #2643e9; color: #fff; }
}
/* téléphone : barre du haut à l'encre, tiroir de menu blanc avec le logo foncé */
@media (max-width: 760px) {
  .side { background: #fff; color: #101b34; }
  .side .nav-item { color: #101b34; }
  .side .nav-item.on { background: #e9edfd; color: #2643e9; }
  .side-brand .ob-logo { display: none; }
  .side-brand .ob-logo.dark { display: block; }
  .side-brand .ob-venue { color: #5b6479; }
  .side-foot, .side-foot a { color: #101b34; }
  .side-foot a { background: #f6f8fd; }
  .side select, .side .btn, .side-foot select, .side-foot .venue-switch { background: #fff; color: #101b34; border-color: #e3e8f2; }
  .mtop, .mbar { background: #101b34; color: #fff; }
  .mbar-btn, .mbar-btn svg { color: #fff; }
  .mbar small, .mbar .muted { color: #97a3bd; }
}
