/* =========================================================================
   SaborControl — identidade visual
   Verde-manjericão (fresco, calmo, longe do laranja/vermelho/azul do setor)
   + neutros quentes. Cor só onde ajuda a decidir; o resto é respiro.
   ========================================================================= */
:root {
  --sc: #1e6b50;            /* verde-manjericão: marca SaborControl */
  --sc-strong: #154f3b;
  --sc-soft: #e4efe9;
  --brand: var(--sc);       /* no cardápio público é trocada pela cor do restaurante */
  --on-brand: #fff;
  --bg: #f6f5f1; --card: #fff; --text: #1b201d; --muted: #646d67; --line: #e3e4de; --soft: #efeee9;
  --ok: #2b8a3e; --warn: #b86e00; --danger: #c92a2a; --info: #3657c9; --new: #c2255c;
  /* etapas do pedido: chegou (vermelho) → na cozinha (amarelo) → pronto/saindo (verde) */
  --k-novo: #e03131; --k-preparo: #e8890c; --k-saiu: #2f9e44;
  --radius: 14px; --shadow: 0 1px 2px #1b201d0d, 0 6px 18px #1b201d0a;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sc: #4fb58a; --sc-strong: #6fcaa2; --sc-soft: #1c2d26;
    --bg: #121614; --card: #1a1f1c; --text: #eef1ee; --muted: #9ba59f; --line: #2b322e; --soft: #222825;
    --ok: #51cf66; --warn: #f0a33a; --danger: #ff6b6b; --info: #7c9cff; --new: #f06595; --on-brand: #0c1f16;
    --k-novo: #ff6b6b; --k-preparo: #fcc419; --k-saiu: #51cf66;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --sc: #4fb58a; --sc-strong: #6fcaa2; --sc-soft: #1c2d26;
  --bg: #121614; --card: #1a1f1c; --text: #eef1ee; --muted: #9ba59f; --line: #2b322e; --soft: #222825;
  --ok: #51cf66; --warn: #f0a33a; --danger: #ff6b6b; --info: #7c9cff; --new: #f06595;
  --k-novo: #ff6b6b; --k-preparo: #fcc419; --k-saiu: #51cf66;
  --shadow: none; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 16px/1.5 var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hidden { display: none !important; }
.price { font-weight: 700; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px;
  padding: 12px 18px; background: var(--brand); color: var(--on-brand); font-weight: 650; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .05s; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--soft); filter: none; }
.btn.soft { background: var(--sc-soft); color: var(--sc-strong); }
.btn.sm { padding: 7px 12px; font-size: 14px; border-radius: 8px; }
.btn.green { background: #25d366; color: #fff; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.text-danger { background: transparent; color: var(--danger); border: 1px solid var(--line); }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 4px; }
input, select, textarea { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
textarea { resize: vertical; min-height: 64px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; margin: 0; padding: 10px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.err { color: var(--danger); font-size: 14px; margin-top: 8px; min-height: 1em; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- marca ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-size: 18px; letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: #1e6b50; color: #fff; display: grid; place-items: center; flex: none; }
.logo-mark svg { width: 18px; height: 18px; }
.logo .wm1 { font-weight: 800; }
.logo .wm2 { font-weight: 500; color: var(--muted); }

/* ---------- cardápio ---------- */
.hero { background: var(--brand); color: #fff; padding: 28px 0 22px; }
.hero h1 { font-size: 26px; }
.hero .meta { opacity: .92; font-size: 14px; margin-top: 6px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; background: #fff3; }
.badge.closed { background: #000a; }
.catnav { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.catnav .wrap { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; }
.catnav a { flex: none; padding: 6px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.cat h2 { font-size: 20px; margin: 24px 0 10px; scroll-margin-top: 64px; }
.prod { display: flex; gap: 12px; padding: 14px; margin-bottom: 10px; cursor: pointer; text-align: left; width: 100%; }
.prod .info { flex: 1; min-width: 0; }
.prod h3 { font-size: 16px; }
.prod p { margin: 4px 0 8px; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; flex: none; }
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); z-index: 10; }
.cartbar .btn { max-width: 688px; margin: 0 auto; display: flex; justify-content: space-between; width: 100%; padding: 15px 18px; box-shadow: 0 6px 20px #0003; }
.spacer { height: 100px; }
.madeby { text-align: center; font-size: 12px; color: var(--muted); padding: 8px 0 120px; }
.madeby a { color: inherit; font-weight: 700; text-decoration: none; }

/* sheet (modal de baixo pra cima) */
.sheet-bg { position: fixed; inset: 0; background: #0b100d99; z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--card); width: 100%; max-width: 720px; max-height: 92vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) { .sheet-bg { align-items: center; } .sheet { border-radius: 18px; max-height: 88vh; padding: 24px; } }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.x { border: 0; background: var(--soft); border-radius: 99px; width: 36px; height: 36px; font-size: 20px; cursor: pointer; flex: none; }
.group { margin-top: 18px; }
.group-head { display: flex; justify-content: space-between; align-items: center; background: var(--bg); padding: 8px 12px; border-radius: 8px; font-weight: 700; font-size: 15px; }
.req { font-size: 12px; background: var(--text); color: var(--bg); padding: 2px 8px; border-radius: 99px; }
.opt { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); gap: 10px; cursor: pointer; font-weight: 500; margin: 0; }
.opt input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; }
.qty button { border: 0; background: none; width: 40px; height: 44px; font-size: 20px; cursor: pointer; color: var(--brand); }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }
.sheet-foot { display: flex; gap: 10px; margin-top: 18px; align-items: center; }
.sheet-foot .btn { flex: 1; }
.line { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line .ops { font-size: 13px; color: var(--muted); }
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; margin: 0; }
.seg input { display: none; }
.seg span { display: block; text-align: center; padding: 11px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; }
.seg input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.totals .row { display: flex; justify-content: space-between; padding: 3px 0; }
.totals .row.big { font-size: 18px; font-weight: 800; }

/* pedido */
.status { text-align: center; padding: 22px 16px; }
.status .num { font-size: 15px; color: var(--muted); }
.status h1 { font-size: 24px; margin-top: 4px; }
.steps { display: flex; gap: 6px; margin: 16px 0 4px; }
.steps i { flex: 1; height: 6px; border-radius: 9px; background: var(--line); }
.steps i.on { background: var(--brand); }
.pix img { width: 240px; height: 240px; display: block; margin: 8px auto; background: #fff; border-radius: 10px; padding: 6px; }
.copybox { font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; background: var(--bg); padding: 10px; border-radius: 8px; max-height: 80px; overflow: auto; }

/* =========================================================================
   Painel
   ========================================================================= */
.wrap.wide { max-width: 1180px; }
.atop { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.atop-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0 8px; }
.atop-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.atop-id .divider { width: 1px; height: 28px; background: var(--line); flex: none; }
.atop-rest { min-width: 0; }
.atop-rest h1 { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atop-rest a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; text-decoration: none; }
.atop-acts { display: flex; gap: 8px; align-items: center; flex: none; }
.iconbtn { border: 1px solid var(--line); background: var(--card); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.iconbtn:hover { color: var(--text); background: var(--soft); }
.iconbtn svg, .tabs svg { width: 18px; height: 18px; }

.tabs { display: flex; gap: 2px; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 650; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent;
  display: inline-flex; align-items: center; gap: 7px; position: relative; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--sc-strong); border-bottom-color: var(--sc); }
.tabs .tab-ico { display: none; }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--new); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }

/* Celular: abas viram barra inferior (dedão alcança, como nos apps de banco) */
@media (max-width: 700px) {
  body.admin { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .atop .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--card); border-top: 1px solid var(--line);
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .tabs button { flex: 1; flex-direction: column; gap: 2px; padding: 6px 2px; font-size: 11px; border-bottom: 0; border-radius: 10px; }
  .tabs button.on { background: var(--sc-soft); }
  .tabs .tab-ico { display: block; }
  .tabs .count { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 18px; line-height: 18px; font-size: 11px; }
  .atop-id .divider, .atop .logo .wm2 { display: none; }
  .atop .switch b { display: none; }
}
@media (max-width: 420px) { .atop .logo .wm1 { display: none; } }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0; }
.small-seg span { padding: 7px 12px; font-size: 14px; white-space: nowrap; }
.toolbar .seg label { flex: none; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; font-size: 14px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 42px; height: 24px; border-radius: 99px; background: var(--line); position: relative; transition: .15s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 2px #0003; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { left: 21px; }
.switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
/* ---------- pedidos ---------- */
body.admin { background: radial-gradient(1100px 340px at 50% -140px, color-mix(in srgb, var(--sc) 11%, transparent), transparent 70%) no-repeat, var(--bg); }

/* etiqueta de canal: a cor ajuda a reconhecer a origem de longe */
.ch-ifood { --ch: #ea1d2c; } .ch-99 { --ch: #e0a400; } .ch-keeta { --ch: #e6b800; } .ch-wa { --ch: #1fae54; }
.ch-site { --ch: var(--sc); } .ch-balcao { --ch: #8a7a68; } .ch-tel { --ch: #5b6f86; } .ch-other { --ch: #7d5fd0; }
.chip-ch { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .02em; padding: 3px 10px 3px 8px; border-radius: 99px;
  background: color-mix(in srgb, var(--ch) 13%, var(--card)); color: color-mix(in srgb, var(--ch) 60%, var(--text)); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.chip-ch i { width: 8px; height: 8px; border-radius: 50%; background: var(--ch); flex: none; }
.ch-aiq { --ch: #7b1fa2; }
/* logos das marcas parceiras */
.ch-logo { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; flex: none; }
.ch-word { height: 14px; width: auto; display: block; flex: none; }
.chip-ch:has(.ch-word) { padding-left: 10px; }
.mk-mono.logo { background: #fff; padding: 0; overflow: hidden; border-color: var(--line); }
.mk-mono.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mk-mono.logo.word img { object-fit: contain; padding: 12%; }

/* contadores por status (também filtram) */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 0; }
.tile { --tc: var(--muted); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  cursor: pointer; text-align: left; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s, transform .1s; }
.tile:hover { border-color: color-mix(in srgb, var(--tc) 45%, var(--line)); }
.tile:active { transform: translateY(1px); }
.tile .ti { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--tc) 14%, transparent); color: var(--tc); }
.tile .ti svg { width: 20px; height: 20px; }
.tile b { font-size: 26px; line-height: 1; display: block; letter-spacing: -.02em; }
.tile span { font-size: 13px; color: var(--muted); font-weight: 600; }
.tile.on { border-color: var(--tc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc) 18%, transparent); background: color-mix(in srgb, var(--tc) 9%, var(--card)); }
.tile.zero b { color: var(--muted); }
.t-novo { --tc: var(--k-novo); } .t-preparo { --tc: var(--k-preparo); } .t-saiu { --tc: var(--k-saiu); }
@media (max-width: 560px) {
  .tile { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 12px; }
  .tile .ti { width: 30px; height: 30px; border-radius: 9px; } .tile .ti svg { width: 16px; height: 16px; }
  .tile b { font-size: 22px; } .tile span { font-size: 12px; }
}

.ogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; align-items: start; }
.order { position: relative; display: flex; flex-direction: column; overflow: hidden; padding-bottom: 14px; transition: box-shadow .2s; }
.order::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line); }
.order.st-novo::before { background: var(--k-novo); } .order.st-preparo::before { background: var(--k-preparo); } .order.st-saiu::before { background: var(--k-saiu); }
.order.st-novo { border-color: color-mix(in srgb, var(--k-novo) 35%, var(--line)); box-shadow: 0 10px 28px color-mix(in srgb, var(--k-novo) 13%, transparent); }
.order.st-concluido, .order.st-cancelado { opacity: .62; }
.order > * { margin-left: 18px; margin-right: 14px; }
.o-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; min-width: 0; }
.o-ago { font-size: 13px; color: var(--muted); font-weight: 600; display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; flex: none; }
.o-ago svg { width: 14px; height: 14px; }
.o-ago.late { color: var(--new); }
.o-head { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.onum { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.o-progress { display: flex; gap: 4px; margin-top: 10px; }
.o-progress i { flex: 1; height: 4px; border-radius: 9px; background: var(--soft); }
.o-progress.st-novo i.on { background: var(--k-novo); } .o-progress.st-preparo i.on { background: var(--k-preparo); }
.o-progress.st-saiu i.on { background: var(--k-saiu); } .o-progress.st-concluido i.on { background: var(--ok); }
.o-who { display: flex; gap: 10px; align-items: center; margin-top: 12px; min-width: 0; }
.o-who > div { min-width: 0; }
.o-who b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-who a { font-size: 13px; text-decoration: none; font-weight: 600; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none;
  background: color-mix(in srgb, var(--ch, var(--sc)) 14%, var(--card)); color: color-mix(in srgb, var(--ch, var(--sc)) 65%, var(--text)); }
.o-where { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; font-size: 14px; color: var(--muted); }
.o-where svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.oitems { margin-top: 12px; padding: 10px 12px; background: var(--bg); border-radius: 10px; font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.oitems .q { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--card);
  border: 1px solid var(--line); font-weight: 800; font-size: 13px; margin-right: 7px; vertical-align: 1px; }
.o-notes { margin-top: 8px; }
.obs { color: var(--warn); font-weight: 600; font-size: 14px; }
.o-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.o-total { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.paychip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--soft); color: var(--muted); }
.paychip.ok { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.paychip.due { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.o-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.o-acts .btn.main { flex: 1 1 auto; }
.oacts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--soft); }
.pill.st-novo { background: var(--k-novo); color: #fff; }
.pill.st-preparo { background: var(--k-preparo); color: #1b201d; }
.pill.st-saiu { background: var(--k-saiu); color: #fff; }

/* ---------- pedidos em colunas por etapa ---------- */
.kb-wrap { display: block; }
.kb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.kb-col { --kc: var(--muted); border-radius: 18px; padding: 10px; min-height: 180px;
  background: color-mix(in srgb, var(--kc) 9%, var(--bg)); border: 1px solid color-mix(in srgb, var(--kc) 26%, var(--line)); }
.kb-col.k-novo { --kc: var(--k-novo); } .kb-col.k-preparo { --kc: var(--k-preparo); } .kb-col.k-saiu { --kc: var(--k-saiu); }
.kb-head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 10px; }
.kb-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--kc); color: #fff; flex: none; }
.kb-col.k-preparo .kb-ic { color: #1b201d; }
.kb-ic svg { width: 18px; height: 18px; }
.kb-head b { display: block; font-size: 15.5px; letter-spacing: -.01em; }
.kb-head small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.kb-n { margin-left: auto; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 99px; display: grid; place-items: center; font-weight: 800; font-size: 15px;
  background: var(--card); color: color-mix(in srgb, var(--kc) 70%, var(--text)); border: 1px solid color-mix(in srgb, var(--kc) 30%, var(--line)); }
.kb-list { display: flex; flex-direction: column; gap: 10px; }
.kb-list .order { box-shadow: 0 1px 2px #1b201d12; }
.kb-list .order.st-novo { box-shadow: 0 6px 18px color-mix(in srgb, var(--k-novo) 16%, transparent); }
.kb-list .o-acts { flex-wrap: wrap; }
.kb-list .o-acts .btn.main { flex: 1 1 100%; order: -1; padding-top: 10px; padding-bottom: 10px; }
.kb-list .o-acts .pay-btn { flex: 1 1 auto; }
.kb-col.k-novo .o-acts .btn.main { background: var(--k-novo); }
.kb-col.k-preparo .o-acts .btn.main { background: var(--k-preparo); color: #1b201d; }
.kb-col.k-saiu .o-acts .btn.main { background: var(--k-saiu); }
.kb-empty { margin: 0; padding: 22px 10px; text-align: center; color: var(--muted); font-size: 13.5px; border: 1.5px dashed color-mix(in srgb, var(--kc) 30%, var(--line)); border-radius: 14px; }
.kb-done { margin-top: 18px; }
.kb-done > summary { cursor: pointer; font-weight: 700; color: var(--muted); padding: 8px 2px; list-style: none; display: flex; align-items: center; gap: 8px; }
.kb-done > summary::before { content: "▸"; transition: transform .15s; }
.kb-done[open] > summary::before { transform: rotate(90deg); }
.kb-done .ogrid { margin-top: 8px; }
@media (min-width: 900px) { #board:has(+ .toolbar + .kb-wrap) { display: none; } }
@media (max-width: 899px) {
  .kb { grid-template-columns: 1fr; }
  .kb[data-show="novo"] .kb-col:not(.k-novo), .kb[data-show="preparo"] .kb-col:not(.k-preparo), .kb[data-show="saiu"] .kb-col:not(.k-saiu) { display: none; }
}
.pill.st-concluido { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }

.empty { text-align: center; padding: 36px 16px 44px; color: var(--muted); grid-column: 1 / -1; }
.empty svg { width: 132px; height: auto; margin: 0 auto 14px; display: block; }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
.empty p { margin: 0 auto; max-width: 380px; }
.mcat { padding: 14px; margin-bottom: 12px; }
.mcat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.mcat-head h2 { font-size: 18px; }
.mprod { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mprod:last-child { border-bottom: 0; }
.mprod.off { opacity: .5; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two3 { display: grid; grid-template-columns: 1fr 70px 70px; gap: 8px; }
.gedit { padding: 10px 12px; margin-top: 10px; }
code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.src { align-self: flex-start; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 6px; background: var(--sc-soft); color: var(--sc-strong); }
.wide-sheet { max-width: 920px; }
.ocols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .ocols { grid-template-columns: 1fr; } }
.plist { max-height: 300px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; margin-top: 6px; }
.plist .pcat { font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--muted); padding: 8px 10px 4px; background: var(--bg); }
.plist button { display: flex; justify-content: space-between; gap: 8px; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 9px 10px; cursor: pointer; text-align: left; }
.plist button:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.plist button.off { opacity: .55; }
.oline { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.oline.warn { background: color-mix(in srgb, var(--warn) 12%, transparent); border-radius: 8px; padding: 8px; }
.oline .ops { font-size: 13px; color: var(--muted); }
.optpanel { padding: 12px; margin-top: 10px; }
.draft-info { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 14%, transparent); font-size: 14px; }
.draft-info ul { margin: 4px 0 0; padding-left: 18px; }
.draft-info button { margin-top: 6px; }

/* ---------- primeiros passos ---------- */
.setup { padding: 16px 18px; margin: 16px 0 4px; }
.setup-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.setup-head h2 { font-size: 16px; }
.setup-bar { height: 6px; border-radius: 9px; background: var(--soft); margin: 10px 0 6px; overflow: hidden; }
.setup-bar i { display: block; height: 100%; background: var(--sc); border-radius: 9px; transition: width .3s; }
.setup-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-top: 10px; }
.setup-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  cursor: pointer; text-align: left; font-size: 14px; font-weight: 600; }
.setup-item:hover { border-color: var(--sc); }
.setup-item .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; font-size: 12px; color: #fff; }
.setup-item.done { color: var(--muted); font-weight: 500; cursor: default; }
.setup-item.done .tick { background: var(--sc); border-color: var(--sc); }

/* ---------- integrações ---------- */
.page-head { margin: 22px 0 6px; }
.page-head h2 { font-size: 22px; }
.page-head p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }
.sec-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 26px 0 10px; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.mk { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mk-top { display: flex; gap: 12px; align-items: center; }
.mk-mono { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none;
  background: var(--soft); color: var(--text); border: 1px solid var(--line); letter-spacing: -.02em; }
.mk h3 { font-size: 16px; }
.mk p { margin: 0; font-size: 14px; color: var(--muted); flex: 1; }
.mk .btn { align-self: flex-start; }
.mk-mono[class*="ch-"] { background: color-mix(in srgb, var(--ch) 13%, var(--card)); color: color-mix(in srgb, var(--ch) 65%, var(--text));
  border-color: color-mix(in srgb, var(--ch) 22%, transparent); }
.mk.soon { background: transparent; box-shadow: none; border-style: dashed; }
.mk.soon .mk-mono { opacity: .7; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--muted); }
.tag.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }

.conn { padding: 16px 18px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-bottom: 10px; }
.conn-main { min-width: 0; }
.conn-main h3 { font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.conn-state { font-size: 14px; margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.dot.err { background: var(--danger); }
.dot.wait { background: var(--warn); }
.conn-stats { font-size: 13px; color: var(--muted); margin-top: 2px; }
.conn-acts { display: flex; gap: 8px; align-items: center; }
.conn-err { grid-column: 1 / -1; font-size: 14px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--danger) 9%, transparent); color: var(--text); }
.conn-err b { color: var(--danger); }
@media (max-width: 600px) {
  .conn { grid-template-columns: auto 1fr; }
  .conn-acts { grid-column: 1 / -1; justify-content: space-between; }
}
.menu-pop { position: relative; }
.menu-pop > div { position: absolute; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 30px #0002; padding: 6px; min-width: 200px; z-index: 8; }
.menu-pop > div button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.menu-pop > div button:hover { background: var(--soft); }
.menu-pop > div button.danger { color: var(--danger); }

.native { padding: 14px 18px; display: flex; gap: 14px; align-items: center; background: var(--sc-soft); border-color: transparent; box-shadow: none; }
.native p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

/* assistente de conexão */
.wiz { max-width: 560px; }
.wiz-steps { display: flex; gap: 6px; margin: 14px 0 4px; }
.wiz-steps i { flex: 1; height: 4px; border-radius: 9px; background: var(--line); }
.wiz-steps i.on { background: var(--sc); }
.wiz-kicker { font-size: 13px; color: var(--muted); font-weight: 600; }
.howto { counter-reset: s; list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.howto li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.howto li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; background: var(--sc-soft); color: var(--sc-strong); font-weight: 800; font-size: 13px;
  display: grid; place-items: center; flex: none; margin-top: -1px; }
.askbox { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.askbox pre { margin: 0; padding: 12px 14px; white-space: pre-wrap; font: 14px/1.5 var(--font); background: var(--bg); max-height: 180px; overflow: auto; }
.askbox div .btn { white-space: nowrap; }
.askbox div { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 8px 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.field-paste { position: relative; }
.field-paste input { padding-right: 84px; }
.field-paste button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--soft); border-radius: 7px; padding: 5px 10px; font-size: 13px; font-weight: 650; cursor: pointer; }
details.adv { margin-top: 14px; }
details.adv summary { cursor: pointer; font-size: 14px; color: var(--muted); font-weight: 600; }
.wiz-done { text-align: center; padding: 10px 0 4px; }
.wiz-done .big-ok { width: 64px; height: 64px; border-radius: 50%; background: var(--sc-soft); color: var(--sc); display: grid; place-items: center; margin: 6px auto 12px; }
.wiz-done .big-ok svg { width: 32px; height: 32px; }
.wiz-done h2 { font-size: 21px; }
.wiz-done p { color: var(--muted); margin: 8px auto 0; max-width: 400px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--on-brand) 35%, transparent); border-top-color: var(--on-brand); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- caixa ---------- */
.cash-chip { border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 650; cursor: pointer; color: var(--muted); white-space: nowrap; }
.cash-chip.on { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
@media (max-width: 520px) { .cash-chip { display: none; } }
.cash-open { padding: 18px; max-width: 460px; }
.cash-head { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cash-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.kpi { padding: 12px 14px; display: flex; flex-direction: column; min-width: 0; }
.kpi span { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi b { font-size: 22px; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi small { font-size: 12px; }
@media (max-width: 700px) { .kpis { grid-template-columns: 1fr 1fr; } }
.cash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
@media (max-width: 700px) { .cash-cols { grid-template-columns: 1fr; } }
.ctable { padding: 12px 16px; }
.ctable h3 { font-size: 15px; margin: 2px 0 6px; }
.crow { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.crow.total { border-bottom: 0; border-top: 2px solid var(--text); margin-top: 2px; }
.cash-warn { padding: 12px 16px; margin-top: 12px; border-color: var(--warn); }
.unpaid { margin-top: 8px; }
.urow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.mrow { display: grid; grid-template-columns: 46px 92px 1fr auto 70px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mrow.void .mval, .mrow.void .mdesc { text-decoration: line-through; opacity: .6; }
@media (max-width: 600px) { .mrow { grid-template-columns: 40px 1fr auto; } .mrow .kind { display: none; } .mrow > span:last-child { grid-column: 2 / 4; text-align: right; } }
.kind { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--bg); text-align: center; }
.k-venda { color: var(--ok); } .k-estorno, .k-sangria { color: var(--danger); } .k-suprimento { color: var(--sc); }
.mval { text-align: right; white-space: nowrap; }
.neg { color: var(--danger); } .ok { color: var(--ok); } .warn { color: var(--warn); }
.linkbtn { border: 0; background: none; color: var(--brand); cursor: pointer; padding: 0; font-size: 13px; text-decoration: underline; }
.hrow { display: grid; grid-template-columns: 60px 1.6fr 1fr 1fr 110px; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); align-items: center; }
.hrow:last-child { border-bottom: 0; }
@media (max-width: 600px) { .hrow { grid-template-columns: 1fr 1fr; } .hrow.head { display: none; } }
/* receber */
.pay-total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 4px; font-size: 18px; }
.pay-total b { font-size: 28px; }
.paymeth { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.paymeth button, .quick button { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 12px 6px; font-weight: 650; cursor: pointer; }
.paymeth button.on { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.quick button { padding: 8px 12px; font-size: 14px; }
.troco { font-size: 20px; margin-top: 10px; min-height: 1em; }
.prow { display: grid; grid-template-columns: 1fr 120px 36px; gap: 8px; align-items: center; margin-top: 8px; }
.pay-left { margin-top: 8px; font-size: 15px; min-height: 1em; }
.pay-btn { background: var(--ok); color: var(--on-brand); }
/* fechamento */
.denoms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
@media (max-width: 500px) { .denoms { grid-template-columns: repeat(3, 1fr); } }
.den { margin: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.den input { padding: 8px; margin-top: 2px; }
.conf { margin-top: 14px; } .conf summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.cres { font-size: 20px; font-weight: 750; padding: 14px; border-radius: 12px; background: var(--bg); text-align: center; margin: 10px 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; z-index: 50; transition: .2s; pointer-events: none; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 700px) { body.admin .toast { bottom: calc(80px + env(safe-area-inset-bottom)); } }

/* ajustes */
.set-card { padding: 18px; max-width: 640px; margin-top: 14px; }
.set-card h2 { font-size: 18px; }

/* ---------- site / login ---------- */
.site-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.site-hero { padding: 48px 0 36px; }
.site-hero h1 { font-size: clamp(30px, 5.4vw, 48px); letter-spacing: -.03em; line-height: 1.08; max-width: 760px; }
.site-hero h1 em { font-style: normal; color: var(--sc); }
.site-hero p { font-size: 18px; color: var(--muted); max-width: 600px; margin: 16px 0 0; }
.site-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.site-ctas .btn { padding: 14px 22px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 8px; }
.feat { padding: 20px; }
.feat .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--sc-soft); color: var(--sc-strong); display: grid; place-items: center; margin-bottom: 12px; }
.feat .ico svg { width: 20px; height: 20px; }
.feat h3 { font-size: 17px; }
.feat p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.chan { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.chan span { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600; }
.site-foot { padding: 32px 0 40px; color: var(--muted); font-size: 14px; }
.auth { max-width: 400px; padding-top: 10vh; }
.auth .card { padding: 26px; }

/* ---------- conversas (WhatsApp) ---------- */
.wa-connect { max-width: 760px; margin: 22px auto 0; padding: 26px; display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: center; }
@media (max-width: 760px) { .wa-connect { grid-template-columns: 1fr; padding: 20px 16px; gap: 18px; } }
.wa-connect h2 { font-size: 22px; letter-spacing: -.02em; }
.wa-connect > div > p { color: var(--muted); margin: 8px 0 0; }
.wa-perks { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.wa-perks li { display: flex; gap: 10px; align-items: flex-start; }
.wa-perks li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; background: var(--sc-soft); color: var(--sc-strong); font-size: 12px; font-weight: 800; display: grid; place-items: center; flex: none; margin-top: 1px; }
.wa-note { margin-top: 18px; font-size: 13px; color: var(--muted); padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.wa-note b { color: var(--text); }
.wa-cta { display: flex; flex-direction: column; gap: 10px; }
.wa-cta .linkbtn { font-size: 14px; align-self: center; }
.wa-qr { background: #fff; border-radius: 14px; padding: 10px; border: 1px solid var(--line); width: 100%; max-width: 280px; aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto; }
.wa-qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.wa-qr .spin { border-color: #1e6b5033; border-top-color: #1e6b50; width: 28px; height: 28px; }
.wa-code { font: 800 34px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-align: center; padding: 22px 10px; border-radius: 14px; background: var(--sc-soft); color: var(--sc-strong); }
.wa-steps { counter-reset: s; list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.wa-steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.wa-steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: var(--sc); color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; flex: none; margin-top: 1px; }

.wa-app { margin-top: 16px; display: grid; grid-template-columns: 340px 1fr; overflow: hidden; height: max(440px, calc(100dvh - var(--atop-h, 112px) - 36px)); }
.wa-side { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.wa-side-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 12px 10px 16px; }
.wa-me { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wa-me > div { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.wa-me b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-me span { font-size: 13px; }
.wa-search { padding: 0 12px 10px; }
.wa-search input { padding: 9px 12px; background: var(--bg); border-color: transparent; }
.wa-chats { overflow-y: auto; flex: 1; min-height: 0; }
.wa-chat { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; width: 100%; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: none; cursor: pointer; text-align: left; }
.wa-chat:hover { background: var(--soft); }
.wa-chat.on { background: var(--sc-soft); }
.wa-chat .who { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.wa-chat .last { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.wa-chat.unread .last { color: var(--text); font-weight: 600; }
.wa-chat .meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; color: var(--muted); }
.wa-chat.unread .meta time { color: var(--sc); font-weight: 700; }
.wa-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--sc); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.wa-av { width: 44px; height: 44px; border-radius: 50%; background: var(--sc-soft); color: var(--sc-strong); display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; }
.wa-av svg { width: 22px; height: 22px; }
.wa-list-empty { padding: 30px 20px; text-align: center; color: var(--muted); font-size: 14px; }

.wa-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.wa-pane-empty { margin: auto; text-align: center; color: var(--muted); max-width: 300px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; }
.wa-pane-empty b { color: var(--text); font-size: 17px; }
.wa-empty-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--sc-soft); color: var(--sc); display: grid; place-items: center; margin-bottom: 6px; }
.wa-empty-ico svg { width: 28px; height: 28px; }
.wa-pane-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--card); border-bottom: 1px solid var(--line); }
.wa-pane-head .wa-av { width: 40px; height: 40px; }
.wa-head-id { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.wa-head-id b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-head-id span { font-size: 13px; }
.wa-back { display: none; }
.wa-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 6% 8px; display: flex; flex-direction: column; gap: 3px; }
.wa-day { align-self: center; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--card); border: 1px solid var(--line); padding: 3px 10px; border-radius: 99px; margin: 10px 0 6px; }
.wa-more { align-self: center; margin-bottom: 6px; }
.bub { max-width: min(78%, 520px); padding: 7px 10px 5px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); align-self: flex-start; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.bub.me { align-self: flex-end; background: var(--sc-soft); border-color: transparent; }
.bub + .bub.me, .bub.me + .bub:not(.me) { margin-top: 6px; }
.bub .txt { white-space: pre-wrap; }
.bub .foot { display: flex; justify-content: flex-end; gap: 4px; align-items: center; font-size: 11px; color: var(--muted); margin-top: 2px; }
.bub .tick { font-size: 12px; letter-spacing: -3px; padding-right: 3px; }
.bub .tick.read { color: #2f8fd8; }
.bub.del .txt { font-style: italic; color: var(--muted); }
.bub img { display: block; max-width: 100%; max-height: 320px; border-radius: 8px; margin-bottom: 4px; cursor: zoom-in; }
.bub.sticker { background: none; border: 0; padding: 0; }
.bub.sticker img { width: 140px; height: 140px; object-fit: contain; cursor: default; }
.bub audio, .bub video { display: block; width: 260px; max-width: 100%; margin: 2px 0 4px; }
.bub video { border-radius: 8px; }
.media-btn { display: flex; align-items: center; gap: 8px; border: 1px dashed var(--line); background: var(--bg); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.bub.me .media-btn { background: var(--card); }
.media-err { font-size: 13px; color: var(--muted); }
.wa-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); }
.wa-compose textarea { min-height: 44px; max-height: 160px; resize: none; padding: 11px 14px; border-radius: 22px; background: var(--bg); }
.wa-compose .btn { width: 44px; height: 44px; padding: 0; border-radius: 50%; flex: none; }
@media (max-width: 760px) {
  .wa-app { grid-template-columns: 1fr; margin: 10px -16px 0; border-radius: 0; border-left: 0; border-right: 0; height: calc(100dvh - var(--atop-h, 60px) - 64px - 10px - env(safe-area-inset-bottom)); }
  .wa-pane { display: none; }
  .wa-app.show-pane .wa-side { display: none; }
  .wa-app.show-pane .wa-pane { display: flex; }
  .wa-back { display: grid; }
  .wa-msgs { padding: 12px 10px 8px; }
  .bub { max-width: 86%; }
  .wa-pane-head { padding: 8px 10px; gap: 8px; }
}
body.chat-open main { padding-bottom: 0 !important; }
.img-view { position: fixed; inset: 0; background: #000d; z-index: 40; display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.img-view img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* ---------- diálogos (confirmar / avisar / perguntar) ---------- */
.dlg-bg { z-index: 45; align-items: center; padding: 16px; }
.dlg { max-width: 440px; border-radius: 18px; padding: 22px 22px 18px; box-shadow: 0 20px 50px #0b100d40; }
.dlg h2 { font-size: 18px; letter-spacing: -.01em; }
.dlg p { margin: 8px 0 0; color: var(--muted); font-size: 15px; white-space: pre-line; }
.dlg input { margin-top: 14px; }
.dlg .err { min-height: 0; }
.dlg .err:empty { margin: 0; }
.dlg .sheet-foot { margin-top: 18px; justify-content: flex-end; }
.dlg .sheet-foot .btn { flex: none; min-width: 112px; }
@media (max-width: 480px) { .dlg .sheet-foot .btn { flex: 1; min-width: 0; } }

/* menu da conversa (botão direito / toque longo) */
.wa-chat { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.wa-chat.ctx-on { background: var(--soft); box-shadow: inset 3px 0 0 var(--sc); }
.ctx-menu { position: fixed; z-index: 30; min-width: 210px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px #0b100d33; padding: 6px; }
.ctx-menu .ctx-title { font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 10px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.ctx-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text); }
.ctx-menu button:hover, .ctx-menu button:focus-visible { background: var(--soft); outline: none; }
.ctx-menu button.danger { color: var(--danger); }
@media (hover: none) { .ctx-menu button { padding: 13px 12px; font-size: 15px; } }

/* ---------- painel de demonstração ---------- */
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 8px 16px; font-size: 14px;
  background: linear-gradient(90deg, #154f3b, #1e6b50); color: #fff; text-align: center; }
.demo-bar .btn { background: #fff; color: #154f3b; padding: 6px 12px; }
@media (max-width: 700px) { .demo-bar { font-size: 12px; gap: 6px; padding: 6px 10px; } .demo-bar .btn { padding: 4px 10px; font-size: 12px; } }

/* marcador "pedido lançado" dentro da conversa */
.wa-mark { align-self: stretch; display: flex; align-items: center; gap: 10px; margin: 14px 4px; color: var(--sc-strong); font-size: 12px; font-weight: 700; text-align: center; }
.wa-mark::before, .wa-mark::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--sc) 40%, transparent); }
.wa-mark span { background: var(--sc-soft); padding: 4px 10px; border-radius: 99px; max-width: 80%; }

/* boas-vindas automática */
.wa-bot-chip { display: block; margin: 0 12px 8px 16px; padding: 4px 10px; border: 1px dashed var(--line); border-radius: 99px; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; text-align: left; }
.wa-bot-chip.on { border-style: solid; border-color: transparent; background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.wa-bot-chip:hover { border-color: var(--sc); }
.bot-vars { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 2px; }
.bot-vars button { font: inherit; font-size: 12px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.bot-vars button:hover { border-color: var(--sc); }
.bot-preview { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.bot-preview .bub { max-width: 92%; }
.bub .bot-tag { margin-right: auto; }

/* =========================================================================
   Painel — acabamento (cabeçalhos de aba, cardápio, ajustes, pedidos)
   ========================================================================= */
.card { box-shadow: 0 1px 2px #1b201d0f, 0 8px 24px -12px #1b201d1f; }
.iconbtn:disabled { opacity: .35; cursor: default; background: var(--card); color: var(--muted); }
.iconbtn.danger-h:hover:not(:disabled) { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); background: color-mix(in srgb, var(--danger) 7%, var(--card)); }
.btn svg { flex: none; }

/* cabeçalho padrão das abas */
.page-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head.row > div:first-child { min-width: 0; flex: 1 1 320px; }
.tb-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: auto; }

/* barra dos pedidos */
.o-toolbar { gap: 10px 14px; }
.seg.pills { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.seg.pills label { flex: none; }
.seg.pills span { padding: 6px 14px; border: 0; border-radius: 9px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.seg.pills input:checked + span { background: var(--card); color: var(--text); box-shadow: 0 1px 3px #1b201d22; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--muted); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.live.ok { color: var(--ok); } .live.ok::before { animation: pulse 2s ease-out infinite; }
.live.wait { color: var(--warn); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent); } 80%, 100% { box-shadow: 0 0 0 7px transparent; } }
@media (prefers-reduced-motion: reduce) { .live.ok::before { animation: none; } }
.o-autoprint { padding: 0; color: var(--muted); }
.o-autoprint input { width: 18px; height: 18px; }
@media (max-width: 700px) {
  .o-toolbar .tb-acts { order: -1; width: 100%; margin: 0; }
  .o-toolbar .tb-acts .btn { flex: 1; }
}

/* cards de pedido: ação principal larga + ícones */
.o-acts { flex-wrap: nowrap; }
.o-acts .btn { white-space: nowrap; }
.o-acts .iconbtn { width: 36px; height: 36px; flex: none; }
.o-acts .iconbtn svg { width: 17px; height: 17px; }

/* ---------- cardápio ---------- */
.mcat { padding: 0; margin-bottom: 14px; overflow: hidden; }
.mcat-head { padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--soft) 55%, var(--card)); flex-wrap: nowrap; }
.mcat-t { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mcat-t h3 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcat-acts { display: flex; gap: 6px; flex: none; }
.mcat-acts .iconbtn { width: 32px; height: 32px; }
.mcat-acts .iconbtn svg { width: 16px; height: 16px; }
.mprod { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.mprod:hover { background: color-mix(in srgb, var(--sc) 4%, var(--card)); }
.mprod.off { opacity: 1; }
.mprod.off .pthumb, .mprod.off .mp-info b, .mprod.off .mp-price { opacity: .5; }
.pthumb { --pt: var(--sc); width: 52px; height: 52px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--pt) 15%, var(--card)); color: color-mix(in srgb, var(--pt) 75%, var(--text)); font-weight: 800; font-size: 20px; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* foto do produto no editor */
.photo-pick { display: flex; gap: 14px; align-items: flex-start; margin-top: 4px; }
.pp-prev { width: 96px; height: 96px; flex: none; border-radius: 14px; overflow: hidden; padding: 0; cursor: pointer; display: grid; place-items: center;
  border: 1.5px dashed color-mix(in srgb, var(--sc) 45%, transparent); background: var(--sc-soft); color: var(--sc); font-size: 30px; font-weight: 300; }
.pp-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-prev:has(img) { border-style: solid; border-color: transparent; }
.pp-act { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.pp-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pp-link summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.pp-link input { margin-top: 6px; }
/* logo da loja: fundo branco e imagem inteira (logo com fundo transparente ou que não é quadrado) */
.logo-prev { border-radius: 22px; }
.logo-prev img { object-fit: contain; background: #fff; }
.mp-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mp-info b { font-size: 15px; }
.mp-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mp-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-name .tag { flex: none; }
.mp-desc { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-opts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.mp-opts i { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--soft); color: var(--muted); }
.mp-price { font-weight: 800; font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mp-acts { display: flex; gap: 6px; align-items: center; }
.mp-acts .switch { margin-right: 6px; }
.mp-acts .iconbtn { width: 34px; height: 34px; }
.mp-acts .iconbtn svg { width: 16px; height: 16px; }
.mcat-empty { display: block; width: calc(100% - 24px); margin: 12px; padding: 14px; border: 1.5px dashed var(--line); border-radius: 12px; background: none; color: var(--muted); font-weight: 650; cursor: pointer; }
.mcat-empty:hover { border-color: var(--sc); color: var(--sc-strong); }
.card.empty { padding: 36px 20px 40px; }
@media (max-width: 600px) {
  .mprod { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px; }
  .pthumb { width: 46px; height: 46px; border-radius: 12px; font-size: 18px; grid-row: span 2; align-self: start; }
  .mp-price { align-self: start; font-size: 15px; }
  .mp-acts { grid-column: 2 / -1; justify-content: flex-end; }
  .mcat-head { padding: 10px 10px 10px 14px; }
}

/* ---------- ajustes ---------- */
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.set-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.set-card { padding: 20px; max-width: none; margin-top: 0; min-width: 0; }
.set-h { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 6px; }
.set-h h3 { font-size: 16px; }
.set-h p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.set-ico { width: 36px; height: 36px; border-radius: 11px; background: var(--sc-soft); color: var(--sc-strong); display: grid; place-items: center; flex: none; }
.set-ico svg { width: 18px; height: 18px; }
.set-card > .btn { margin-top: 6px; }
@media (max-width: 860px) { .set-grid { grid-template-columns: 1fr; } }
.opt-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 400; }
.opt-row b { display: block; font-size: 15px; }
.opt-row small { display: block; font-size: 13px; color: var(--muted); }
.money-in { position: relative; }
.money-in span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; font-weight: 600; pointer-events: none; }
.money-in input { padding-left: 38px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.sw { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--sw); cursor: pointer; box-shadow: inset 0 0 0 1px #0002; transition: transform .1s; }
.sw:hover { transform: scale(1.08); }
.sw.on, .sw-custom.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--text); }
.sw-custom { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); }
.sw-custom::before { content: ""; width: 32px; height: 32px; border-radius: 50%; background: conic-gradient(#e03131, #f08c00, #fab005, #37b24d, #1c7ed6, #7048e8, #e03131); flex: none; }
.sw-custom input { position: absolute; left: 0; top: 0; width: 32px; height: 32px; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.sw-custom span:empty { display: none; }
.sw-custom.on { padding-right: 10px; }
.savebar { grid-column: 1 / -1; position: sticky; bottom: 12px; z-index: 4; display: flex; justify-content: flex-end; align-items: center; gap: 14px;
  padding: 10px 10px 10px 18px; border-radius: 14px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--line); box-shadow: 0 10px 30px -10px #1b201d40; }
.savebar .err { margin: 0; flex: 1; min-height: 0; }
@media (max-width: 700px) { .savebar { bottom: calc(72px + env(safe-area-inset-bottom)); } .savebar .btn { flex: none; } }
.savebar .err:empty::before { content: "Alterou algo? Salve para valer no cardápio online."; color: var(--muted); }
@media (max-width: 480px) { .savebar .err:empty::before { content: "Salve para valer no cardápio."; } }
@media (max-width: 600px) {
  .page-head.row .tb-acts { width: 100%; margin: 0; flex-wrap: nowrap; }
  .page-head.row .tb-acts .btn { flex: 1; }
  #menuView { display: none; }          /* o link do cardápio já está no topo do painel */
  .o-toolbar .tb-acts .btn { white-space: nowrap; padding-left: 10px; padding-right: 10px; }
  .savebar { background: var(--card); backdrop-filter: none; padding-left: 14px; }
  .savebar .err { font-size: 13px; }
}

/* ---------- Cardápio: Produtos | Estoque ---------- */
.sub-tabs { margin: 18px 0 2px; }
.sub-tabs .count { margin-left: 4px; background: var(--k-novo); }
.mp-stock { flex: none; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); white-space: nowrap; }
.mp-stock.low { background: color-mix(in srgb, var(--k-preparo) 18%, transparent); color: var(--warn); }
.mp-stock.out { background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); }
.stock-box { margin-top: 6px; padding: 2px 12px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.stock-box .check { padding-bottom: 6px; }
.stk-alert { margin: 12px 0; padding: 12px 14px; border-radius: 12px; font-size: 14px;
  background: color-mix(in srgb, var(--k-preparo) 13%, var(--card)); border: 1px solid color-mix(in srgb, var(--k-preparo) 35%, var(--line)); }
.stk-add { padding: 14px; margin: 12px 0; }
.stk-table { overflow: hidden; margin-top: 12px; }
.stk-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 110px 150px 112px; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.stk-row:last-child { border-bottom: 0; }
.stk-row:not(.stk-th):hover { background: color-mix(in srgb, var(--sc) 4%, var(--card)); }
.stk-th { white-space: nowrap; cursor: default; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: var(--bg); padding-top: 8px; padding-bottom: 8px; }
.stk-row .pthumb { width: 44px; height: 44px; }
.stk-name { min-width: 0; }
.stk-name b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stk-name small { display: block; font-size: 12.5px; color: var(--muted); }
.stk-qty { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.stk-qty small { font-size: 12px; font-weight: 600; color: var(--muted); }
.stk-row.low .stk-qty, .stk-row.low .stk-name small { color: var(--warn); }
.stk-row.out .stk-qty, .stk-row.out .stk-name small { color: var(--danger); }
@media (max-width: 640px) {
  .stk-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .stk-acts { justify-self: stretch; }
  .stk-hide-m, .stk-th { display: none; }
  .stk-acts { grid-column: 2 / -1; }
  .stk-acts .btn { width: 100%; }
}
.st-now { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0; padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.st-now b { font-size: 28px; letter-spacing: -.02em; }
.st-now b small { font-size: 14px; color: var(--muted); }
.st-now b.low { color: var(--warn); } .st-now b.out { color: var(--danger); }
.st-h { font-size: 15px; margin: 18px 0 6px; }
.st-hist { max-height: 280px; overflow-y: auto; border-top: 1px solid var(--line); }
.st-mv { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.st-mv small { display: block; color: var(--muted); font-size: 12.5px; }
.st-q { font-weight: 800; text-align: center; padding: 3px 0; border-radius: 8px; }
.st-q.in { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.st-q.out { background: color-mix(in srgb, var(--danger) 11%, transparent); color: var(--danger); }

/* ---------- banco de imagens / cadastro rápido ---------- */
.bank .sheet-head p { max-width: 520px; }
.bank-cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: 10px; padding-bottom: 2px; }
.bank-cats button { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 99px; cursor: pointer; }
.bank-cats button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 12px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.bank-it { position: relative; border: 1.5px solid var(--line); background: var(--card); border-radius: 14px; padding: 0 0 8px; cursor: pointer; overflow: hidden; text-align: center; transition: border-color .12s, transform .1s; }
.bank-it:hover { border-color: color-mix(in srgb, var(--sc) 45%, var(--line)); }
.bank-it:active { transform: scale(.97); }
.bank-it img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #fff; }
.bank-it span { display: block; font-size: 12.5px; font-weight: 650; line-height: 1.25; padding: 6px 6px 0; }
.bank-tick { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px;
  background: #ffffffd9; color: transparent; border: 2px solid var(--line); }
.bank-it.on { border-color: var(--sc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc) 20%, transparent); }
.bank-it.on .bank-tick { background: var(--sc); color: #fff; border-color: var(--sc); }
.bank-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bank-row img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; background: #fff; border: 1px solid var(--line); }
.bank-row-f { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bank-row-2 { display: grid; grid-template-columns: minmax(0, 1fr) auto 84px; gap: 8px; align-items: center; }
.bank-row-2 .check { padding: 0; }
.bank-row.done { opacity: .5; }
@media (max-width: 520px) { .bank-row-2 { grid-template-columns: minmax(0, 1fr) 76px; } .bank-row-2 .check { grid-row: 2; } }

/* ---------- capa do cardápio (Ajustes) ---------- */
.cover-pick { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.cover-prev { width: 100%; aspect-ratio: 3 / 1; border-radius: 14px; overflow: hidden; padding: 0; cursor: pointer; display: grid; place-items: center;
  border: 1.5px dashed var(--line); background: var(--bg); color: var(--muted); font-weight: 700; }
.cover-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-prev:has(img) { border-style: solid; border-color: transparent; }
.cover-pick .pp-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- equipe e perfis ---------- */
.whoami { font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 5px 10px; border-radius: 99px; background: var(--soft); white-space: nowrap; }
@media (max-width: 640px) { .whoami { display: none; } }
.team-card .set-h { align-items: flex-start; }
.team-add { margin-left: auto; flex: none; }
.team-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 6px; }
.team-roles div { padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 13px; }
.team-roles b { display: block; font-size: 13.5px; }
.team-roles span { color: var(--muted); }
@media (max-width: 720px) { .team-roles { grid-template-columns: 1fr; } .team-card .set-h { flex-wrap: wrap; } }
.team-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.team-row:last-child { border-bottom: 0; }
.team-row.off { opacity: .6; }
.team-id { flex: 1; min-width: 0; }
.team-id b { display: block; }
.team-id small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-tag { flex: none; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: var(--soft); color: var(--muted); }
.role-tag.r-admin { background: var(--sc-soft); color: var(--sc-strong); }
.role-tag.r-caixa { background: color-mix(in srgb, var(--k-preparo) 16%, transparent); color: var(--warn); }
.role-tag.r-venda { background: color-mix(in srgb, var(--info) 13%, transparent); color: var(--info); }
.role-pick { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.role-pick label { margin: 0; cursor: pointer; }
.role-pick input { display: none; }
.role-pick span { display: block; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; }
.role-pick small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.role-pick input:checked + span { border-color: var(--sc); background: color-mix(in srgb, var(--sc) 8%, var(--card)); }
.team-link { margin-top: 10px; font-family: ui-monospace, monospace; font-size: 12.5px; word-break: break-all; background: var(--bg); padding: 10px 12px; border-radius: 10px; }
.mcat.ro .mprod { cursor: default; }
.pay-switch { margin-top: 14px; }
.pay-switch > summary { cursor: pointer; font-weight: 700; color: var(--muted); padding: 6px 2px; }
.pay-switch .mk-grid { margin-top: 8px; }
.mk-mono.logo.word.wide img { padding: 3px; }

/* =========================================================================
   Pedidos — visual 2 (faixa de operação, cartão "oc", colunas com rolagem própria)
   ========================================================================= */
.ops { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; margin-top: 18px; }
.ops-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.ops-kpi { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); min-width: 0; }
.ops-kpi span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ops-kpi b { display: block; font-size: 22px; letter-spacing: -.02em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ops-kpi small { display: block; font-size: 12px; color: var(--muted); }
.ops-ctl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.ops-eta { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); cursor: pointer; color: var(--text); font: inherit; min-width: 0; }
.ops-eta:disabled { cursor: default; }
.ops-eta:not(:disabled):hover { border-color: color-mix(in srgb, var(--sc) 40%, var(--line)); }
.ops-eta-l { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ops-eta-l svg { width: 14px; height: 14px; }
.ops-eta-l u { margin-left: auto; text-transform: none; letter-spacing: 0; color: var(--sc); text-decoration: none; font-weight: 700; }
.ops-eta-v { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; font-size: 14px; color: var(--muted); }
.ops-eta-v > span { display: inline-flex; align-items: center; gap: 6px; }
.ops-eta-v svg { width: 16px; height: 16px; }
.ops-eta-v b { color: var(--text); }
.ops-auto { display: flex; align-items: center; gap: 10px; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); cursor: pointer; }
.ops-auto.on { border-color: color-mix(in srgb, var(--sc) 45%, var(--line)); background: color-mix(in srgb, var(--sc) 7%, var(--card)); }
.ops-auto b { display: block; font-size: 14px; }
.ops-auto small { display: block; font-size: 12px; color: var(--muted); }
@media (max-width: 1100px) { .ops { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .ops-kpis { grid-template-columns: repeat(2, 1fr); }
  .ops-ctl { grid-template-columns: 1fr; }
  .ops-kpi b { font-size: 19px; }
}

/* colunas: no computador ocupam a altura da tela e cada uma rola sozinha */
.kb-col { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.kb-head { padding: 12px 14px; margin: 0; background: color-mix(in srgb, var(--kc) 14%, var(--card)); border-bottom: 1px solid color-mix(in srgb, var(--kc) 22%, var(--line)); }
.kb-sum { margin-left: auto; font-weight: 800; font-size: 13px; color: color-mix(in srgb, var(--kc) 60%, var(--text)); white-space: nowrap; }
.kb-sum + .kb-n { margin-left: 8px; }
.kb-list { padding: 10px; gap: 12px; }
.kb-empty { margin: 4px 0; }
@media (min-width: 900px) {
  .kb-col { max-height: calc(100dvh - 190px); min-height: 360px; }
  .kb-list { overflow-y: auto; flex: 1; scrollbar-width: thin; }
}

/* cartão do pedido */
.order.oc { padding: 14px 14px 12px 18px; gap: 0; }
.order.oc > * { margin-left: 0; margin-right: 0; }
.order.oc::before { width: 5px; }
.oc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.oc-id { display: flex; align-items: center; gap: 8px; min-width: 0; }
.oc-id .onum { font-size: 22px; line-height: 1; }
.oc-id .chip-ch { font-size: 11px; padding: 2px 9px 2px 7px; min-width: 0; }
.oc-timer { display: inline-flex; align-items: center; gap: 5px; flex: none; font-size: 12.5px; font-weight: 800; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.oc-timer svg { width: 14px; height: 14px; }
.oc-timer.t-ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.oc-timer.t-warn { background: color-mix(in srgb, var(--k-preparo) 20%, transparent); color: var(--warn); }
.oc-timer.t-late { background: var(--k-novo); color: #fff; animation: ocLate 1.6s ease-in-out infinite; }
@keyframes ocLate { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--k-novo) 22%, transparent); } }
.oc-when { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.oc-st { align-self: flex-start; margin-top: 8px; }
.oc-who { display: flex; align-items: center; gap: 10px; margin-top: 12px; min-width: 0; }
.oc-who .avatar { width: 34px; height: 34px; font-size: 12px; }
.oc-who > div { min-width: 0; flex: 1; }
.oc-who b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-who span:not(.avatar) { display: block; font-size: 12.5px; color: var(--muted); }
.oc-wa { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--card); }
.oc-wa:hover { border-color: #25d366; background: color-mix(in srgb, #25d366 10%, var(--card)); }
.oc-wa img { width: 17px; height: 17px; }
.oc-where { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; line-height: 1.35;
  background: color-mix(in srgb, var(--info) 7%, var(--bg)); color: var(--text); }
.oc-where.pickup { background: color-mix(in srgb, var(--sc) 7%, var(--bg)); }
.oc-where svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--muted); }
.oc-items { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.oc-items li { display: flex; gap: 8px; font-size: 14.5px; line-height: 1.3; }
.oc-items .q { flex: none; min-width: 26px; font-weight: 800; color: var(--sc-strong); }
.oc-items .n { min-width: 0; }
.oc-items small { display: block; font-size: 12.5px; color: var(--muted); }
.oc-items em { display: block; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--warn); }
.oc-items .oc-more { font-size: 12.5px; color: var(--muted); font-weight: 700; padding-left: 34px; }
.oc-notes { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--warn); background: color-mix(in srgb, var(--k-preparo) 10%, transparent); padding: 7px 10px; border-radius: 9px; }
.oc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.oc-sum { display: flex; align-items: baseline; gap: 6px; }
.oc-total { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.oc-sum small { font-size: 12px; color: var(--muted); }
.oc-pay { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.oc-payico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--soft); flex: none; color: var(--muted); overflow: hidden; }
.oc-payico svg { width: 15px; height: 15px; }
.oc-payico img { width: 18px; height: 18px; object-fit: contain; }
.oc-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.oc-acts .btn.main { width: 100%; justify-content: space-between; padding: 11px 16px; font-size: 15px; border-radius: 12px; }
.oc-tools { display: flex; gap: 6px; align-items: center; }
.oc-tools .pay-btn { flex: 1; }
.oc-tools .iconbtn { margin-left: auto; }
.oc-tools .iconbtn + .iconbtn { margin-left: 0; }
.ogrid .oc .oc-acts .btn.main { background: var(--sc); }
.kb-col.k-novo .oc-acts .btn.main { background: var(--k-novo); }
.kb-col.k-preparo .oc-acts .btn.main { background: var(--k-preparo); color: #1b201d; }
.kb-col.k-saiu .oc-acts .btn.main { background: var(--k-saiu); }
.order.oc.st-novo { animation: ocNew 2.4s ease-in-out infinite; }
@keyframes ocNew { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--k-novo) 16%, transparent), 0 10px 26px color-mix(in srgb, var(--k-novo) 18%, transparent); } }
.order.oc.fresh { animation: ocIn .55s cubic-bezier(.2, .8, .3, 1.15) both, ocNew 2.4s ease-in-out .6s infinite; }
@keyframes ocIn { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .order.oc, .order.oc.fresh, .oc-timer.t-late { animation: none; } }
.kb-list > .order { flex: none; }
.kb-list { min-height: 0; }
@media (max-width: 560px) {
  .ops { gap: 8px; margin-top: 12px; }
  .ops-kpis { display: flex; overflow-x: auto; scrollbar-width: none; gap: 8px; margin: 0 -16px; padding: 0 16px 2px; scroll-snap-type: x mandatory; }
  .ops-kpis::-webkit-scrollbar { display: none; }
  .ops-kpi { flex: none; min-width: 128px; padding: 9px 12px; border-radius: 13px; scroll-snap-align: start; }
  .ops-kpi span { font-size: 10.5px; } .ops-kpi b { font-size: 18px; }
  .ops-ctl { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 8px; }
  .ops-eta, .ops-auto { padding: 9px 11px; border-radius: 13px; }
  .ops-eta-l b { display: none; }
  .ops-eta-v { flex-direction: column; gap: 2px; margin-top: 2px; font-size: 13px; }
  .ops-auto { gap: 8px; } .ops-auto b { font-size: 13px; } .ops-auto small { display: none; }
}
@media (max-width: 560px) {
  .ops-kpis { scroll-padding-inline: 16px; }
  .board { margin-top: 10px; gap: 8px; }
  .tile { flex-direction: row; align-items: center; padding: 8px 10px; gap: 8px; }
  .tile .ti { width: 28px; height: 28px; }
  .tile b { font-size: 19px; } .tile span { font-size: 11px; line-height: 1.15; }
}
/* canal numa linha própria: número e cronômetro nunca disputam espaço com ele */
.oc-top .onum { font-size: 22px; line-height: 1; }
.oc-src { display: flex; margin-top: 8px; min-width: 0; }
.oc-src .chip-ch { font-size: 11.5px; padding: 3px 10px 3px 8px; max-width: 100%; }
.oc-src { gap: 6px; flex-wrap: wrap; align-items: center; }
.oc-code { font-size: 11.5px; padding: 2px 8px; border: 1.5px dashed currentColor; border-radius: 6px; color: var(--muted, inherit); white-space: nowrap; }
.oc-code b { color: var(--text, inherit); letter-spacing: 1px; margin-left: 2px; }
/* faixa de operação recolhida: uma linha só */
.ops-mini { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; width: 100%; margin-top: 16px; padding: 9px 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); color: var(--muted); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.ops-mini:hover { border-color: color-mix(in srgb, var(--sc) 40%, var(--line)); }
.ops-bit { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ops-bit b { color: var(--text); font-size: 14.5px; }
.ops-bit svg { width: 14px; height: 14px; }
.ops-bit + .ops-bit::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line); margin-right: 11px; }
.ops-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); opacity: .5; }
.ops-dot.on { background: var(--ok); opacity: 1; }
.ops-more, .ops-hide { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--sc); font-weight: 700; white-space: nowrap; }
.ops-more svg, .ops-hide svg { width: 15px; height: 15px; }
.ops-wrap { position: relative; }
.ops-hide { position: absolute; right: 0; top: -2px; border: 0; background: none; font: inherit; font-size: 13px; cursor: pointer; padding: 2px 4px; z-index: 1; }
.ops-wrap .ops { padding-top: 18px; }
@media (max-width: 560px) {
  .ops-mini { gap: 4px 10px; padding: 8px 12px; font-size: 12.5px; margin-top: 12px; }
  .ops-bit + .ops-bit::before { display: none; }
  .ops-more { width: 100%; justify-content: flex-end; margin-top: -2px; }
}
@media (max-width: 560px) {
  .ops-mini { flex-wrap: nowrap; overflow: hidden; }
  .ops-mini .ops-x { display: none; }
  .ops-bit { font-size: 12px; } .ops-bit b { font-size: 13.5px; }
  .ops-more { width: auto; margin-top: 0; font-size: 12.5px; }
}
@media (max-width: 560px) {
  .ops-more { flex: none; }
  .ops-mini .ops-bit { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* sons de alerta (Ajustes) */
.snd { display: grid; gap: 16px; margin-top: 12px; }
.snd-row { display: grid; gap: 8px; }
.snd-row > label:first-child { font-weight: 600; margin: 0; }
.snd-line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.snd-line select { flex: 1; min-width: 140px; }
.snd-line input[type=range] { flex: 1; accent-color: var(--brand); }
.snd-val { min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; }

/* impressoras e comandas (impressao.js) */
.prt-card .set-h #prtOpen { margin-left: auto; flex: none; }
.prt-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #b5b9b6; margin-right: 6px; vertical-align: middle; flex: none; }
.prt-dot.on { background: var(--ok, #2e9d4a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok, #2e9d4a) 20%, transparent); }
.prt-sheet { max-width: 1000px; }
.prt-tabs { margin: 14px 0 16px; }
.prt-tabs span { padding: 9px 6px; font-size: 14px; }
.prt-sec { margin-bottom: 22px; }
.prt-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prt-sec-h h3 { font-size: 16px; margin: 0; }
.prt-sec > p { margin: 4px 0 10px; }
.prt-empty { padding: 14px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 14px; margin: 0; }
.prt-pair { border: 1.5px solid var(--brand); background: color-mix(in srgb, var(--brand) 7%, transparent); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; font-size: 14px; }
.prt-pair ol { margin: 8px 0; padding-left: 20px; display: grid; gap: 8px; }
.prt-pair code { font-size: 12.5px; word-break: break-all; }
.prt-agents { display: grid; gap: 8px; }
.prt-agent { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.prt-agent > div { flex: 1; min-width: 0; display: grid; }
.prt-agent small { color: var(--muted); }
.prt-stations { display: grid; gap: 10px; }
.prt-st { padding: 14px; }
.prt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 4px 12px; }
.prt-grid label { margin-top: 6px; }
.prt-grid .wide { grid-column: span 2; }
@media (max-width: 520px) { .prt-grid .wide { grid-column: auto; } }
.prt-st-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.prt-st-acts small { flex: 1 1 200px; }
.prt-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.prt-jobs li { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 6px 10px; border-radius: 8px; background: var(--soft); }
.prt-jobs li span { flex: 1; }
.prt-jobs li small { flex-basis: 100%; color: var(--muted); }
.prt-jobs .st-impresso b { color: var(--ok, #2e9d4a); }
.prt-jobs .st-erro b, .prt-jobs .st-expirado b { color: var(--danger); }
.prt-editor { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; }
@media (max-width: 860px) { .prt-editor { grid-template-columns: 1fr; } }
.prt-ctrls > p { margin-top: 0; }
.prt-ctrls textarea { min-height: 0; }
.prt-blocks-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 16px 0 6px; }
.prt-blocks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.prt-blocks li { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.prt-blocks li.off { background: var(--soft); }
.prt-blocks li.off .prt-bk-on span { color: var(--muted); }
.prt-bk-on { flex: 1; display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; font-size: 14px; cursor: pointer; min-width: 0; }
.prt-bk-on input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.prt-blocks select { width: auto; padding: 5px 8px; font-size: 13px; }
.prt-blocks .iconbtn { width: 30px; height: 30px; font-size: 15px; }
.prt-blocks .iconbtn:disabled { opacity: .35; cursor: default; }
.prt-prev { position: sticky; top: 0; }
.prt-prev-h { font-weight: 700; margin-bottom: 8px; font-size: 14px; }
.prt-prev-h small { font-weight: 400; color: var(--muted); }
.prt-paper { background: #fff; padding: 5mm 3mm; border-radius: 4px; box-shadow: 0 2px 10px #0002; zoom: 1.25; max-height: 75vh; overflow-y: auto; overflow-x: hidden; }
.prt-menu { position: fixed; z-index: 60; min-width: 250px; max-width: 320px; padding: 6px; display: grid; gap: 2px; box-shadow: 0 10px 30px #0003; }
.prt-menu button { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 0; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: var(--text); font: inherit; font-size: 14px; }
.prt-menu button > b { grid-column: 2; }
.prt-menu button > .prt-dot { grid-row: 1; }
.prt-menu button small { grid-column: 2; color: var(--muted); font-size: 12px; }
.prt-menu button:hover { background: var(--soft); }
.prt-m-sep { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 8px 10px 2px; border-top: 1px solid var(--line); margin-top: 4px; }

/* ---------- assinatura (public/admin/assinatura.js) ---------- */
.bl-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin: 14px 0 0; padding: 10px 14px;
  border-radius: 12px; background: var(--sc-soft); color: var(--text); font-size: 14px; border: 1px solid color-mix(in srgb, var(--sc) 25%, transparent); }
.bl-bar > span { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bl-bar svg { width: 18px; height: 18px; color: var(--sc); flex: none; }
.bl-bar.warn { background: color-mix(in srgb, var(--warn) 14%, var(--card)); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.bl-bar.warn svg { color: var(--warn); }
.bl-bar.bad { background: color-mix(in srgb, var(--danger) 10%, var(--card)); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.bl-bar.bad svg { color: var(--danger); }
body.bill-blocked main > section { display: none !important; }
body.bill-blocked .tabs { visibility: hidden; }
#billBlock { padding: 24px 0; }
.bl-block { max-width: 620px; margin: 0 auto; padding: 26px; text-align: left; }
.bl-block h2 { font-size: 22px; letter-spacing: -.02em; margin-top: 10px; }
.bl-block > p { color: var(--muted); margin: 8px 0 16px; line-height: 1.5; }
.bl-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sc-soft); color: var(--sc); display: grid; place-items: center; }
.bl-ico svg { width: 22px; height: 22px; }
.bl-status { line-height: 1.5; margin: 6px 0 14px; }
.bl-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .bl-plans { grid-template-columns: 1fr; } }
.bl-plan { position: relative; display: grid; gap: 4px; padding: 14px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--card); }
.bl-plan input { position: absolute; opacity: 0; pointer-events: none; }
.bl-plan.on { border-color: var(--sc); background: color-mix(in srgb, var(--sc-soft) 60%, var(--card)); }
.bl-plan:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc) 25%, transparent); }
.bl-pn { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bl-pn em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--sc-strong); background: var(--sc-soft); padding: 2px 8px; border-radius: 99px; }
.bl-plan b { font-size: 24px; letter-spacing: -.02em; }
.bl-plan b small { font-size: 14px; font-weight: 600; color: var(--muted); }
.bl-pay { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.bl-pay .btn { flex: 1 1 180px; }
.bl-pend { display: grid; gap: 10px; justify-items: start; margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--soft); }
.bl-pend img { background: #fff; border-radius: 10px; padding: 6px; }
.bl-pend .btn.block, .bl-pend .bl-pay, .bl-pend .bl-ref-link { width: 100%; }
.bl-ref { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.bl-ref-h { display: flex; gap: 12px; align-items: flex-start; }
.bl-ref-h > svg { width: 22px; height: 22px; color: var(--sc); flex: none; margin-top: 2px; }
.bl-ref-h p { margin: 4px 0 0; line-height: 1.45; }
.bl-ref-link { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.bl-ref-link input { flex: 1 1 200px; min-width: 0; font-size: 13px; }
.bl-hist { margin-top: 16px; }
.bl-hist summary { cursor: pointer; font-weight: 700; }
.bl-hrow { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.setup-hi { margin: 0 0 12px; line-height: 1.5; font-size: 14px; }
/* Rodapé "Feito com SaborControl" no cardápio e no acompanhamento do pedido */
.sc-made { display: block; text-align: center; font-size: 12px; color: var(--muted); padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); text-decoration: none; }
.sc-made b { color: var(--text); font-weight: 700; }
.sc-made:hover b { text-decoration: underline; }
