/* COCKTAIL STORY — back-office */
:root {
  --bg: #f4f2ec; --panel: #ffffff; --ink: #1f2214; --muted: #6c6f5c; --line: #e3e0d6; --soft: #f7f5f0;
  --brand: #4b5320; --brand-2: #6f7a3a; --accent: #c9952f; --ok: #3f8f4f; --warn: #b8642b; --danger: #b23b3b;
  --r: 14px; --f-display: 'Zilla Slab', Georgia, serif; --f-body: 'Inter', 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: #efede6; 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], 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: #e9e7e0; 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: #1f2214; 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: #1f2214; 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: #f1efe8; display: flex; flex-direction: column; padding: 18px; gap: 12px; --ink: #f1efe8; --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: #f1efe8; 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: #17140b; }
.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: #1f2214; }
.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: #17140b; 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: #ecebe6; 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, #6b6b5e); 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, #6b6b5e); }
.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, #6b7a3a); 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, #6b7a3a); 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, #6b6b5e); }
.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: #17140b; 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, #6b6b5e); }
.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: #6b6b5e; }
.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, #6b7a3a); background: #f6f8ef; }
.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, #6b6b5e); 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, #6b7a3a); background: #f6f8ef; }
.flow-opt input { position: absolute; opacity: 0; pointer-events: none; }
.flow-opt span { font-size: 13px; color: var(--muted, #6b6b5e); }
.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, #6b7a3a); }

.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, #6b6b5e); 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: #17140b; 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, #6b7a3a); }
.period { display: inline-flex; gap: 6px; align-items: center; margin-left: auto; font-size: 13px; color: var(--muted, #6b6b5e); }
.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 { grid-template-columns: 34px minmax(0, 1fr) 124px 52px 40px; 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: #e9e7e0; }
.pc.ok span { background: #2f7a3a; color: #fff; }
.pc b { display: block; font-size: 14px; }
.pc small { color: var(--muted, #6b6b5e); font-size: 12.5px; }
.editor.center { display: flex; align-items: center; justify-content: center; }
