/* Coruja — painel do caixa.
   Tema escuro de propósito: a casa funciona das 17h às 05h e a tela fica ligada a noite toda. */
:root {
  --bg: #0f0e0d;
  --panel: #171513;
  --card: #201d1a;
  --card-2: #29251f;
  --line: #312c26;
  --text: #f4efe8;
  --muted: #9d948a;
  --dim: #8d847b; /* texto terciário: 4,5:1 sobre os cartões (era #6d655c, 3,2:1) */
  --orange: #ff8a00;
  --orange-2: #ffa13a;
  --red: #f0484c;
  --green: #34c27a;
  --blue: #4aa3ff;
  --yellow: #ffc53d;
  --violet: #a78bfa;
  --f: 'Inter', system-ui, sans-serif;
  --f-display: 'Alfa Slab One', serif;
  --top-h: 64px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--f); background: var(--bg); color: var(--text); font-size: 14px; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.ic { width: 18px; height: 18px; flex: none; }
[data-ic] { display: inline-flex; }
.muted { color: var(--muted); }

/* ---------- Topo ---------- */
.top { position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 20px; padding: 0 18px; background: rgba(15, 14, 13, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.brand img { width: 42px; height: 42px; }
.brand b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 18px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.brand small { color: var(--muted); font-size: 12px; }
.tabs { display: flex; gap: 4px; margin: 0 auto; min-width: 0; background: var(--panel); border: 1px solid var(--line); padding: 4px; border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 9px; font-weight: 600; white-space: nowrap; }
.tabs button:hover { color: var(--text); background: var(--card); }
.tabs button.on { background: var(--orange); color: #1a1000; }
.tabs button em { font-style: normal; }
/* Muitas seções: abaixo de 1600px as abas não selecionadas mostram só o ícone (nome no title) */
@media (max-width: 1599px) {
  .tabs button:not(.on) em { display: none; }
  .tabs button:not(.on) { padding: 8px 11px; }
}
.tb { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.tb:empty { display: none; }
.tabs button.on .tb { background: #1a1000; color: var(--orange); }
.top-right { display: flex; align-items: center; gap: 14px; }
@media (min-width: 981px) and (max-width: 1599px) {
  .top { gap: 12px; }
  .top-right { gap: 8px; flex: none; }
  .brand { min-width: 0; flex: none; }
  .brand small { display: none; }
}
.top-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 8px; border: 0; border-radius: 9px; background: none; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13px; }
.top-link:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.clock { font-weight: 700; font-size: 18px; min-width: 56px; text-align: right; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .06); color: var(--muted, #aaa); white-space: nowrap; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.live.ao-vivo { color: var(--green); background: rgba(52, 194, 122, .12); }
.live.ao-vivo i { animation: livePulse 2s ease-in-out infinite; }
.live.erro { color: #f0a04b; background: rgba(240, 160, 75, .12); }
@keyframes livePulse { 50% { opacity: .35; } }

/* Interruptor */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.sw { width: 40px; height: 24px; border-radius: 12px; background: #3a342d; position: relative; transition: background-color .2s; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .sw { background: var(--green); }
.switch input:checked + .sw::after { transform: translateX(16px); }
.switch input:focus-visible + .sw { outline: 2px solid var(--orange); outline-offset: 2px; }
#storeOpenLabel.off { color: var(--red); }

/* ---------- Botões ---------- */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 10px; padding: 9px 14px; font-weight: 600; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .1s; text-decoration: none; }
.b:hover { background: var(--card-2); border-color: #463f37; }
.b:active { transform: scale(.97); }
.b-orange { background: var(--orange); border-color: var(--orange); color: #1a1000; }
.b-orange:hover { background: var(--orange-2); border-color: var(--orange-2); }
.b-green { background: var(--green); border-color: var(--green); color: #04210f; }
.b-green:hover { background: #45d38a; border-color: #45d38a; }
.b-blue { background: var(--blue); border-color: var(--blue); color: #021427; }
.b-blue:hover { background: #6bb5ff; border-color: #6bb5ff; }
.b-red { background: transparent; border-color: #5a2a2b; color: #ff8b8e; }
.b-red:hover { background: #2a1415; border-color: var(--red); }
.b-ghost { background: transparent; }
.b-sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.b-lg { padding: 12px 18px; font-size: 15px; }
.b-block { width: 100%; }
.b[disabled] { opacity: .4; pointer-events: none; }
.icon-b { width: 36px; height: 36px; padding: 0; border-radius: 10px; }

.view { padding: 16px 18px 24px; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.kpi small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.kpi b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.kpi .sub { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.hl { border-color: color-mix(in srgb, var(--orange) 45%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--orange) 14%, transparent), var(--panel) 60%); }
.kpi.hl b { color: var(--orange); }
.mix { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin: 8px 0 4px; background: var(--card-2); }
.mix i { display: block; height: 100%; }

/* ---------- Barra de ferramentas ---------- */
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 7px 12px; font-weight: 600; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip em { font-style: normal; opacity: .85; }
.searchbox { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; color: var(--muted); }
.searchbox input { background: transparent; border: 0; outline: 0; padding: 8px 0; width: 210px; color: var(--text); }
.searchbox:focus-within { border-color: var(--orange); }
.spacer { flex: 1; }

/* ---------- Quadro de pedidos ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1.2fr)) minmax(0, .95fr); gap: 12px; height: calc(100vh - var(--top-h) - 196px); min-height: 460px; }
.col { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; min-height: 0; }
.col-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.col-h b { font-size: 14px; }
.col-h .cnt { margin-left: auto; background: var(--card-2); border-radius: 8px; padding: 2px 8px; font-weight: 700; font-size: 12px; color: var(--muted); }
.col-h .bul { width: 10px; height: 10px; border-radius: 50%; }
.col-b { flex: 1; overflow-y: auto; padding: 10px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; scrollbar-width: thin; scrollbar-color: #3a342d transparent; }
.col-empty { color: var(--dim); text-align: center; padding: 28px 10px; font-size: 13px; }
.col.novo .bul { background: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 20%, transparent); }
.col.preparo .bul { background: var(--yellow); }
.col.pronto .bul { background: var(--green); }
.col.rota .bul { background: var(--blue); }
.col.fim .bul { background: var(--dim); }
.col.novo.has { border-color: color-mix(in srgb, var(--orange) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--orange) 25%, transparent), 0 0 40px -16px color-mix(in srgb, var(--orange) 70%, transparent); }

/* Cartão do pedido */
.oc { position: relative; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--dim); border-radius: 12px; padding: 11px 12px 12px; cursor: pointer; transition: border-color .15s, transform .15s, background-color .15s; }
.oc:hover { background: var(--card-2); }
.oc.novo { border-left-color: var(--orange); animation: glow 1.8s ease-in-out infinite; }
.oc.preparo { border-left-color: var(--yellow); }
.oc.pronto { border-left-color: var(--green); }
.oc.rota { border-left-color: var(--blue); }
.oc.fresh { animation: enter .5s ease, glow 1.8s ease-in-out .5s infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 18%, transparent); } }
@keyframes enter { from { transform: translateY(-8px); opacity: 0; } }
/* número · etiquetas · tempo: as etiquetas quebram dentro do meio e o tempo fica sempre na primeira linha */
.oc-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 8px; }
.oc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.oc-num { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.oc-time { margin-left: auto; white-space: nowrap; font-weight: 700; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.oc-time.warn { color: var(--yellow); }
.oc-time.late { color: var(--red); }
.oc-time .ic { width: 14px; height: 14px; }
.oc-name { margin-top: 6px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-name small { color: var(--muted); font-weight: 500; }
.oc-items { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.oc-items b { color: var(--text); font-weight: 600; }
.oc-obs { margin-top: 6px; font-size: 12px; color: var(--yellow); display: flex; gap: 6px; align-items: flex-start; }
.oc-obs .ic { width: 14px; height: 14px; margin-top: 1px; }
.oc-addr { margin-top: 6px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.oc-addr .ic { width: 14px; height: 14px; color: var(--blue); }
.oc-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; }
.oc-foot > b { font-size: 15px; }
.oc-actions { display: flex; gap: 6px; margin-top: 10px; }
.oc-actions .b { flex: 1; }
.oc-wait { flex: 1; min-height: 32px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-align: center; }
.oc-wait .ic { width: 14px; height: 14px; flex: none; }
.oc-wait > span { line-height: 1.15; }
.oc-wait small { display: block; font-size: 11px; color: var(--orange); }
.oc.mini { padding: 8px 10px; border-left-width: 3px; cursor: pointer; }
.oc.mini .oc-num { font-size: 14px; }
.oc.mini.cancelado { background: transparent; border-style: dashed; border-left-style: solid; border-left-color: color-mix(in srgb, var(--red) 55%, transparent); }
.oc.mini.cancelado .oc-num { text-decoration: line-through; color: var(--muted); }

/* Etiquetas */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: 6px; padding: 3px 7px; white-space: nowrap; }
.tag-mesa { background: rgba(167, 139, 250, .16); color: #c4b5fd; }
.tag-retirada { background: rgba(52, 194, 122, .14); color: #6ee7a8; }
.tag-delivery { background: rgba(74, 163, 255, .15); color: #8cc6ff; }
.tag-src { background: var(--card-2); color: var(--muted); }
.tag-ifood { background: rgba(240, 72, 76, .16); color: #ff9a9d; }
.tag-unit { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }
/* Unidade deste caixa (só aparece quando o cliente tem mais de uma loja) */
.unit-sel { height: 34px; max-width: 160px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--card); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; }
.unit-sel:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.pay { font-size: 11px; font-weight: 800; letter-spacing: .03em; border-radius: 6px; padding: 3px 7px; margin-left: auto; white-space: nowrap; }
.pay.paid { background: rgba(52, 194, 122, .14); color: #6ee7a8; }
.pay.due { background: rgba(255, 197, 61, .14); color: var(--yellow); }
.st { display: inline-flex; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; background: var(--card-2); color: var(--muted); }
.st.novo { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }
.st.preparo { background: rgba(255, 197, 61, .15); color: var(--yellow); }
.st.pronto { background: rgba(52, 194, 122, .15); color: var(--green); }
.st.rota { background: rgba(74, 163, 255, .15); color: var(--blue); }
.st.cancelado { background: rgba(240, 72, 76, .15); color: var(--red); }
.st.pendente { background: rgba(255, 197, 61, .15); color: var(--yellow); }
.st.confirmada { background: rgba(52, 194, 122, .15); color: var(--green); }
.st.chegou { background: rgba(74, 163, 255, .15); color: var(--blue); }
.st.recusada, .st.faltou { background: rgba(240, 72, 76, .15); color: var(--red); }

/* ---------- Ficha do pedido (gaveta) ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.ficha { position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: min(500px, 100%); background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(105%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s; }
.ficha.on { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .2, 1); } /* fechada: fora da tela e fora do Tab */
.fi-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 12px; }
.fi-head .num { font-family: var(--f-display); font-size: 34px; line-height: 1; color: var(--orange); }
.fi-head .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.fi-head .close { margin-left: auto; }
.fi-body { flex: 1; overflow-y: auto; padding: 4px 18px 18px; }
.fi-sec { padding: 14px 0; border-bottom: 1px solid var(--line); }
.fi-sec:last-child { border-bottom: 0; }
.fi-sec h4 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fi-big { font-size: 16px; font-weight: 700; }
.fi-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.fi-row span { color: var(--muted); }
.fi-row.total { font-size: 18px; font-weight: 800; padding-top: 8px; }
.fi-row.total span { color: var(--text); }
.fi-items { display: grid; gap: 10px; }
.fi-item { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: start; }
.fi-item .q { background: var(--card-2); border-radius: 8px; text-align: center; font-weight: 800; padding: 4px 0; }
.fi-item small { display: block; color: var(--muted); }
.fi-item .obs { color: #1a1000; background: var(--yellow); border-radius: 6px; padding: 2px 8px; font-weight: 700; font-size: 12px; display: inline-block; margin-top: 4px; }
.fi-actions { padding: 14px 18px 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.fi-actions .row { display: flex; gap: 8px; }
.fi-actions .row .b { flex: 1; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; position: relative; padding: 5px 0; }
.tl li::before { content: ""; position: absolute; left: 6px; top: 20px; bottom: -6px; width: 2px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl i { width: 14px; height: 14px; border-radius: 50%; background: var(--green); border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--green); z-index: 1; }
.tl li.cancelado i { background: var(--red); box-shadow: 0 0 0 1px var(--red); }
.tl time { color: var(--muted); font-size: 13px; }
.tl small { color: var(--dim); margin-left: 6px; }
.addr-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.addr-box p { margin: 0 0 4px; }
.links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- Modal ---------- */
.cmodal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0); pointer-events: none; transition: background-color .2s; }
.cmodal.on { background: rgba(0, 0, 0, .6); pointer-events: auto; }
.cm-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; }
.cmodal.on .cm-card { opacity: 1; transform: none; }
.cm-card.wide { width: min(980px, 100%); }
.cm-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cm-head h3 { margin: 0; font-size: 17px; }
.cm-head .icon-b { margin-left: auto; }
.cm-body { padding: 16px 18px; overflow-y: auto; display: grid; gap: 14px; }
.cm-foot { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; align-items: center; }

/* Campos */
.fld { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.fld input, .fld select, .fld textarea { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; color: var(--text); outline: 0; font-size: 14px; font-weight: 500; width: 100%; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--orange); }
.fld .req { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--yellow); margin-left: 6px; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.seg { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { flex: 1; border: 0; background: transparent; color: var(--muted); padding: 7px 10px; border-radius: 8px; font-weight: 600; }
.seg button.on { background: var(--text); color: var(--bg); }

/* Pedido manual */
.pm { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; min-height: 0; }
.pm-menu { display: grid; gap: 8px; align-content: start; }
.pm-list { max-height: 360px; overflow-y: auto; display: grid; gap: 6px; padding-right: 4px; }
.pm-it { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; text-align: left; }
.pm-it:hover { border-color: var(--orange); }
.pm-it small { color: var(--muted); }
.pm-cart { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 8px; align-content: start; }
.pm-line { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; font-size: 13px; }
.qty { display: inline-flex; align-items: center; gap: 2px; background: var(--card-2); border-radius: 8px; }
.qty button { width: 26px; height: 26px; border: 0; background: transparent; font-weight: 800; }
.qty span { min-width: 18px; text-align: center; font-weight: 700; }

/* ---------- Seções genéricas ---------- */
.page-h { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; flex-wrap: wrap; }
.page-h h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.page-h p { margin: 0; color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.panel h3 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.panel h3 small { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-2.grid-2-l { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }

/* Reservas */
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; }
.day { flex: none; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 8px 14px; text-align: left; min-width: 104px; }
.day small { display: block; color: var(--muted); font-size: 12px; text-transform: capitalize; }
.day b { font-size: 15px; }
.day em { font-style: normal; display: block; color: var(--orange); font-size: 12px; font-weight: 700; margin-top: 2px; }
.day.on { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 10%, transparent); }
.rs-list { display: grid; gap: 10px; }
.rs { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.rs-time { font-size: 22px; font-weight: 800; text-align: center; }
.rs-time small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.rs-who b { font-size: 15px; }
.rs-who p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.rs-who .note { color: var(--yellow); }
.rs-act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.rs-act select { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.rs-list.scroll { max-height: calc(100vh - var(--top-h) - 120px); overflow-y: auto; padding-right: 4px; }
.rs.recusada, .rs.faltou { opacity: .72; }
.rs-code { font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; background: var(--card-2); color: var(--orange); }
.rs-mesa { color: var(--text); font-size: 13px; }
.rs-who .dep { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.rs-who .dep .ic { width: 14px; height: 14px; }
.rs-who .rs-lem { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--green); }
.rs-who .rs-lem .ic { width: 14px; height: 14px; }
.dep.pago, .dep.abatida { color: var(--green); }
.dep.retida { color: var(--yellow); }
.dep.devolvida { color: var(--dim); }
.tpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.tp { display: grid; gap: 2px; justify-items: center; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); }
.tp b { font-family: var(--f-display); font-size: 20px; font-weight: 400; }
.tp small { font-size: 11px; color: var(--muted); }
.tp:hover:not(:disabled) { border-color: var(--orange); }
.tp.on { border-color: var(--green); background: rgba(52, 194, 122, .14); box-shadow: 0 0 0 1px var(--green); }
.tp:disabled { opacity: .4; cursor: not-allowed; }
.empty { color: var(--dim); text-align: center; padding: 40px 10px; border: 1px dashed var(--line); border-radius: 14px; }

/* Mesas */
.tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tbl { position: relative; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 112px; display: flex; flex-direction: column; gap: 4px; }
.tbl:hover { border-color: #4a423a; }
.tbl.on { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.tbl .n { font-family: var(--f-display); font-size: 26px; line-height: 1; }
.tbl .s { font-size: 12px; font-weight: 700; color: var(--muted); }
.tbl .v { margin-top: auto; font-weight: 800; }
.tbl.busy { background: linear-gradient(160deg, color-mix(in srgb, var(--orange) 16%, transparent), var(--panel) 70%); border-color: color-mix(in srgb, var(--orange) 40%, transparent); }
.tbl.busy .s { color: var(--orange); }
.tbl.res .s { color: var(--blue); }
.tbl.calling { border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow); animation: ring 1.6s ease-in-out infinite; }
.tbl.calling .s { color: var(--yellow); display: inline-flex; align-items: center; gap: 5px; }
.tbl.calling .s .ic { width: 14px; height: 14px; }
@keyframes ring { 50% { box-shadow: 0 0 0 5px rgba(255, 197, 61, .25); } }

/* Chamados das mesas: faixa fixa logo abaixo do topo, em qualquer aba */
.calls { position: sticky; top: var(--top-h); z-index: 25; display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 18px; background: rgba(255, 197, 61, .1); border-bottom: 1px solid rgba(255, 197, 61, .35); backdrop-filter: blur(10px); }
.call { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border-radius: 12px; background: var(--card); border: 1px solid rgba(255, 197, 61, .5); animation: ring 1.6s ease-in-out infinite; }
.call > .ic { color: var(--yellow); width: 18px; height: 18px; }
.call.conta > .ic { color: var(--green); }
.call b { font-size: 14px; }
.call span { color: var(--muted); font-size: 13px; margin-right: 4px; }
.b-sm.icon-b { width: 32px; height: 32px; }
.qr-card { background: #fff; color: #111; border-radius: 18px; padding: 22px; text-align: center; }
.qr-card .logo { height: 64px; width: auto; margin: 0 auto 8px; }
.qr-card .mesa { font-family: var(--f-display); font-size: 44px; line-height: 1; }
.qr-card .qr { width: 210px; height: 210px; margin: 14px auto; }
.qr-card .qr svg { width: 100%; height: 100%; }
.qr-card p { margin: 0; font-weight: 700; }
.qr-card small { display: block; color: #666; margin-top: 4px; }
/* Central de links (Mesas & QR → Links e QR) */
.lk-hint { flex-basis: 100%; margin: 0; }
.lk-list { display: grid; gap: 8px; }
.lk-list h3 { display: flex; align-items: center; gap: 8px; margin: 8px 0 2px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.lk-list h3:first-child { margin-top: 0; }
.lk-list h3 .ic { width: 16px; height: 16px; }
.lk { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s; }
.lk:hover { border-color: #4a423a; }
.lk.on { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.lk-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--card-2); color: var(--orange); }
.lk-ic .ic { width: 20px; height: 20px; }
.lk-tx { display: grid; gap: 2px; min-width: 0; }
.lk-tx b { font-size: 15px; }
.lk-tx small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.qr-card .lk-t { font-size: 30px; }
.lk-inline { display: none; }
@media (max-width: 980px) {
  .lk-side { display: none; }
  .lk-inline { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; animation: viewIn .22s cubic-bezier(.2, .8, .2, 1) both; }
  .lk-inline .qr-card .qr { width: 180px; height: 180px; }
}
.qr-url { font-size: 12px; color: var(--muted); word-break: break-all; margin: 10px 0; }

/* Avaliações */
.rv-chips { margin-bottom: 10px; }
.chip b { color: var(--text); }
.chip.on b { color: var(--bg); }
.rv-list { display: grid; gap: 8px; max-height: calc(100vh - var(--top-h) - 170px); overflow-y: auto; padding-right: 4px; }
.rv { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.rv.open { border-color: rgba(240, 72, 76, .55); background: rgba(240, 72, 76, .06); }
.rv-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-top .muted { font-size: 12.5px; }
.rv p { margin: 0; line-height: 1.45; }
.rv-tag { margin-left: auto; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--card-2); color: var(--muted); }
.rv-tag.open { background: rgba(240, 72, 76, .15); color: var(--red); }
.rv-act { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rv-st { display: inline-flex; gap: 1px; color: var(--dim); }
.rv-st i { display: grid; }
.rv-st .ic { width: 15px; height: 15px; }
.rv-st i.on { color: var(--yellow); }
.rv-st i.on svg { fill: currentColor; }
.rv-avg { display: flex; align-items: center; gap: 14px; }
.rv-avg > b { font-family: var(--f-display); font-size: 44px; line-height: 1; }
.rv-avg .rv-st .ic { width: 20px; height: 20px; }
.rv-avg small { display: block; color: var(--muted); margin-top: 4px; }
.rv-dist { display: grid; gap: 5px; margin-top: 14px; }
.rv-dist div { display: grid; grid-template-columns: 34px 1fr 28px; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.rv-dist span { display: flex; align-items: center; gap: 3px; }
.rv-dist span .ic { width: 12px; height: 12px; }
.rv-dist i { height: 8px; border-radius: 99px; background: var(--card-2); overflow: hidden; display: block; }
.rv-dist i b { display: block; height: 100%; background: var(--yellow); border-radius: 99px; }
.rv-dist small { text-align: right; }
.rv-gqr { display: flex; gap: 12px; align-items: center; margin: 10px 0; }
.rv-gqr svg { width: 96px; height: 96px; flex: none; background: #fff; border-radius: 8px; }

/* Equipe */
.eq-list { display: grid; gap: 8px; margin: 12px 0 16px; }
.eq-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 76px 96px; gap: 8px 12px; align-items: center; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.eq-av { position: relative; }
.eq-av::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--card); background: var(--dim); }
.eq-av.on::after { background: var(--green); }
.eq-av.ph { padding: 0; overflow: visible; }
.eq-av.ph img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.eq-av.away::after { background: var(--yellow); }
.eq-av.out::after, .eq-av.none::after { background: #5a524a; }
.eq-av.off::after { display: none; }
.eq-login { color: var(--muted); font-weight: 500; font-size: 12px; }
.eq-st i { width: 7px; height: 7px; border-radius: 50%; background: #5a524a; flex: none; }
.eq-st.on { color: var(--green); font-weight: 700; }
.eq-st.on i { background: var(--green); animation: livePulse 2s ease-in-out infinite; }
.eq-st.away { color: var(--yellow); }
.eq-st.away i { background: var(--yellow); }
.eq-act { grid-column: 2 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line); }
.eq-act .switch { margin-right: auto; font-size: 12px; color: var(--muted); }
.eq-row.off { opacity: .5; }
.eq-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--orange) 15%, transparent); color: var(--orange); font-weight: 800; font-size: 16px; }
.eq-who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eq-who small, .eq-n small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 5px; }
.eq-on { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; }
.eq-n { text-align: right; }
.eq-n small { justify-content: flex-end; }
.eq-x { font-size: 12px; color: var(--dim); }
.eq-how { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.eq-how li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.eq-how li b { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--card-2); color: var(--text); display: grid; place-items: center; font-size: 12px; }
/* Motoboys */
.eq-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.eq-seg .ic { width: 16px; height: 16px; }
.eq-seg .tb { margin-left: 2px; }
.mb-row .eq-who small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-row .eq-who small.eq-st { display: flex; }
.plate { font-family: ui-monospace, Consolas, monospace; font-weight: 700; letter-spacing: .04em; color: var(--text); }
.mb-row.pend { grid-template-columns: 38px minmax(0, 1fr) auto; border-color: rgba(255, 197, 61, .45); background: rgba(255, 197, 61, .06); }
.tag-pend { background: rgba(255, 197, 61, .16); color: var(--yellow); }
.som-list { display: flex; flex-wrap: wrap; gap: 6px; }
.mb-row.has-req { border-color: rgba(255, 197, 61, .45); }
.mb-req small { margin-right: auto; color: var(--muted); font-size: 12px; }
.mb-req small b { color: var(--text); }
.tag-pend .ic { width: 12px; height: 12px; }
.mb-pick { display: grid; gap: 8px; }
.mb-pick .b { justify-content: flex-start; text-align: left; padding: 10px 12px; white-space: normal; }
.mb-pick .b > span:nth-child(2) { flex: 1; display: grid; line-height: 1.3; min-width: 0; }
.mb-pick small { color: var(--muted); font-weight: 500; font-size: 12px; }
.mb-pick em { font-style: normal; font-size: 12px; color: var(--dim); font-weight: 700; }
.mb-pick em.on { color: var(--green); }
.mb-pick .eq-av { width: 32px; height: 32px; font-size: 14px; flex: none; }
.mb-pick .b.sure { border-color: var(--yellow); }
.mb-pick .b.sure em { color: var(--yellow); }
.disp-air { justify-content: flex-start; text-align: left; padding: 12px 14px; margin: 12px 0; white-space: normal; gap: 12px; }
.disp-air > span { display: grid; line-height: 1.3; min-width: 0; }
.disp-air small { font-weight: 500; font-size: 12px; opacity: .85; }
.disp-air .ic { flex: none; width: 20px; height: 20px; }
.disp-none, .disp-on { display: flex; gap: 10px; margin: 12px 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; line-height: 1.4; color: var(--muted); border: 1px solid rgba(255, 197, 61, .4); }
.disp-none[hidden] { display: none; }
.disp-none b, .disp-on b { color: var(--yellow); }
.disp-none .ic, .disp-on .ic { flex: none; width: 18px; height: 18px; color: var(--yellow); }
.mb-rules { display: grid; gap: 14px; }
.mb-rules .switch { white-space: normal; align-items: flex-start; }
.mb-rules .switch > span:last-child { display: grid; gap: 2px; }
.mb-rules .switch small { color: var(--muted); font-weight: 500; font-size: 12px; }
@media (max-width: 760px) {
  .eq-row { grid-template-columns: 38px minmax(0, 1fr); }
  .eq-row .eq-n { display: none; }
  .eq-how { grid-template-columns: 1fr; }
}

/* Financeiro */
.fin-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.chart { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: var(--line); }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--f); }
.chart .bar { fill: var(--orange); }
.chart .bar:hover { fill: var(--orange-2); }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 110px 1fr 120px; gap: 10px; align-items: center; font-size: 13px; }
.hbar .track { height: 10px; background: var(--card-2); border-radius: 5px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--orange); border-radius: 5px; }
.hbar b { text-align: right; font-weight: 700; }
.hbar b small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.tbl-wrap { overflow: auto; max-height: 420px; border: 1px solid var(--line); border-radius: 12px; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { position: sticky; top: 0; background: var(--card); text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t tr:hover td { background: var(--card); }
table.t .r { text-align: right; }
table.t tr { cursor: pointer; }
.cash { display: grid; gap: 8px; }
.cash .fi-row { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.cash .diff.ok { color: var(--green); }
.cash .diff.bad { color: var(--red); }
.sangria { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

/* Cardápio */
.menu-admin { display: grid; gap: 14px; }
.ma-cat h3 { margin: 0 0 8px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ma-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
.ma-it { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 8px 8px; transition: border-color .15s; }
.ma-it:hover { border-color: #463f37; }
.ma-grip { flex: none; align-self: stretch; display: grid; place-items: center; width: 26px; margin: -8px -8px -8px -4px; color: var(--dim); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ma-grip .ic { stroke-width: 3; stroke-linecap: round; }
.ma-grip:hover { color: var(--text); }
.ma-it.drag { position: relative; z-index: 5; border-color: var(--orange); box-shadow: 0 12px 28px rgba(0, 0, 0, .45); transition: none; }
.ma-it.drag .ma-grip { color: var(--orange); cursor: grabbing; }
.ma-list.dragging { user-select: none; -webkit-user-select: none; }
.ma-pos { font-weight: 700; color: var(--text); }
.ma-pos::after { content: ' ·'; font-weight: 400; color: var(--muted); }
.ma-it.promo { border-color: color-mix(in srgb, var(--orange) 45%, transparent); background: linear-gradient(100deg, color-mix(in srgb, var(--orange) 10%, transparent), var(--panel) 55%); }
.ma-th { flex: none; width: 52px; height: 52px; border-radius: 10px; border: 0; padding: 0; overflow: hidden; background: var(--card-2); display: grid; place-items: center; color: var(--dim); cursor: pointer; }
.ma-th img { width: 100%; height: 100%; object-fit: cover; }
.ma-th.ph .ic { width: 20px; height: 20px; }
.ma-it .nm { flex: 1; min-width: 0; border: 0; background: transparent; color: inherit; text-align: left; padding: 0; cursor: pointer; font: inherit; }
.ma-it .nm b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-it .nm small { color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 2px; }
.ma-it .nm s { color: var(--dim); }
.ma-it .nm .pr { font-style: normal; color: var(--orange); font-weight: 700; }
.ma-it .off, .ma-it .cd { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 6px; }
.ma-it .off { background: var(--orange); color: #1a1000; }
.ma-it .cd { display: inline-flex; align-items: center; gap: 3px; background: rgba(240, 72, 76, .16); color: #ff8b8e; }
.ma-it .cd .ic { width: 11px; height: 11px; }
.ma-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--yellow); margin-left: 4px; }
.chip.hot { border-color: color-mix(in srgb, var(--orange) 50%, transparent); color: var(--orange); }
.chip.hot.on { background: var(--orange); color: #1a1000; }
.chip .ic { width: 14px; height: 14px; }

/* Editor de item */
.ie { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.ie-photo { display: grid; gap: 8px; }
.ie-img { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; }
.ie-img img { width: 100%; height: 100%; object-fit: cover; }
.ie-img.ph { color: var(--dim); align-content: center; justify-items: center; gap: 6px; border-style: dashed; }
.ie-img.ph .ic { width: 34px; height: 34px; }
.ie-form { display: grid; gap: 12px; }
.ie-sw { align-self: end; padding-bottom: 9px; }
.ie-promo { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 12px; transition: border-color .15s, background-color .15s; }
.ie-promo.on { border-color: color-mix(in srgb, var(--orange) 50%, transparent); background: color-mix(in srgb, var(--orange) 6%, transparent); }
.ie-promo .switch b { display: inline-flex; align-items: center; gap: 6px; color: var(--orange); }
.ie-promo .switch b .ic { width: 15px; height: 15px; }
.ie-promo-body { display: none; gap: 12px; }
.ie-promo.on .ie-promo-body { display: grid; }
.cm-foot .spacer { flex: 1; }

/* Cupons */
.cp-new { display: grid; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.cp-new .fld input, .cp-new .seg { background: var(--panel); }
.cp-list { display: grid; gap: 8px; }
.cp { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.cp code { font: 800 15px/1 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .04em; color: var(--orange); background: color-mix(in srgb, var(--orange) 10%, transparent); border: 1px dashed color-mix(in srgb, var(--orange) 50%, transparent); border-radius: 8px; padding: 8px 10px; min-width: 130px; text-align: center; }
.cp-info { flex: 1; min-width: 0; }
.cp-info b, .cp-uses b { display: block; }
.cp-info small, .cp-uses small { color: var(--muted); font-size: 12px; }
.cp-uses { text-align: right; }
.cp.off { opacity: .55; }
.cp.off code { color: var(--muted); border-color: var(--line); background: transparent; }
@media (max-width: 760px) { .ie { grid-template-columns: 1fr; } .ie-photo { grid-template-columns: 96px 1fr; align-items: center; } .ie-img { grid-row: span 3; } }
.ma-it.off .nm b { color: var(--muted); text-decoration: line-through; }
.ma-it .switch input:not(:checked) + .sw { background: #5a2a2b; }

/* Ajustes */
.settings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 12px; align-items: start; }
/* o conteúdo nunca alarga o cartão (etiquetas longas quebram a linha em vez de passar por baixo do vizinho) */
.settings > .panel, .settings .fld, .settings .g2 > *, .settings .g3 > * { min-width: 0; }
.settings .switch { white-space: normal; line-height: 1.35; }
.hint { font-size: 12px; color: var(--muted); margin: 0; }
.preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.preview div { background: var(--card); border-radius: 8px; padding: 8px; text-align: center; }
.preview small { display: block; color: var(--muted); font-size: 11px; }

/* Toast */
.toast { position: fixed; z-index: 90; left: 50%; bottom: 22px; transform: translate(-50%, 20px); opacity: 0; background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-weight: 700; pointer-events: none; transition: .2s; display: flex; gap: 8px; align-items: center; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .7); }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.undo-box { position: fixed; z-index: 85; top: calc(var(--top-h) + 10px); right: 14px; display: grid; gap: 6px; justify-items: end; pointer-events: none; }
.undo { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; max-width: 340px; padding: 7px 8px 7px 11px; border-radius: 10px; background: var(--card, #1c1a18); border: 1px solid var(--line); color: var(--text); font-size: 12.5px; font-weight: 600; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .8); opacity: 0; transform: translateX(16px); transition: opacity .2s, transform .25s; pointer-events: auto; }
.undo.on { opacity: 1; transform: none; }
.undo svg { width: 14px; height: 14px; flex: none; color: var(--green, #34c27a); }
.undo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.undo button { flex: none; border: 1px solid var(--line); border-radius: 7px; padding: 3px 9px; background: transparent; color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.undo button:hover { border-color: var(--orange); color: var(--orange); }
.undo i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--orange); transform-origin: left; animation: undoT 6s linear forwards; }
@keyframes undoT { to { transform: scaleX(0); } }
.toast button { margin-left: 6px; border: 0; border-radius: 8px; padding: 5px 11px; background: var(--bg); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }

/* Impressão: comanda 80mm e QR das mesas */
.print-area { display: none; }
@page comanda { size: 80mm auto; margin: 3mm; }
@page comanda58 { size: 58mm auto; margin: 2mm; }

/* Comandas (cozinha / caixa): as mesmas regras na prévia em tela e no papel */
.tk { font: 12px/1.35 'Courier New', monospace; color: #000; }
.tk h1 { font-size: 15px; text-align: center; margin: 0 0 2px; }
.tk .c { text-align: center; }
.tk hr { border: 0; border-top: 1px dashed #000; margin: 6px 0; }
.tk .row { display: flex; justify-content: space-between; gap: 8px; }
.tk .big { font-size: 18px; font-weight: 700; }
.tk .ind { padding-left: 14px; }
.tk-tag { text-align: center; font-weight: 700; font-size: 14px; letter-spacing: .3em; border: 2px solid #000; padding: 2px 0; margin-bottom: 6px; }
.tk-inv { background: #000; color: #fff; text-align: center; font-weight: 700; padding: 2px 0; margin-top: 4px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.tk-it { font-size: 14px; margin-top: 5px; }
.tk-sem { font-weight: 700; font-size: 13px; }
.tk-qr { width: 110px; margin: 6px auto 2px; }
.tk-qr svg { width: 100%; height: auto; }
.paper { background: #fff; border-radius: 6px; padding: 14px 12px; width: 300px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); }
.paper.w58 { width: 224px; }
.paper .tk { font-size: 12px; }
.tk-prev { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
.tk-prev > div { display: grid; gap: 10px; justify-items: center; max-width: 300px; }
.tk-prev h4 { margin: 0; display: flex; gap: 8px; align-items: center; justify-self: start; }
.tk-prev .hint { text-align: center; }
@media print {
  body { background: #fff; color: #000; }
  body > *:not(.print-area) { display: none !important; }
  .print-area { display: block; }
  .print-area.comanda { page: comanda; width: 72mm; }
  .print-area.comanda.w58 { page: comanda58; width: 52mm; }
  .print-area.w58 .tk { font-size: 11px; }
  .print-area .tk + .tk { break-before: page; }
  .print-area.qrs { display: grid; grid-template-columns: 1fr 1fr; gap: 10mm; }
  .print-area.qrs .qr-card { border: 1px solid #ccc; break-inside: avoid; }
}

/* ---------- Responsivo (tablet do caixa) ---------- */
@media (max-width: 1280px) {
  .tabs button { padding: 8px 10px; }
  .board { grid-template-columns: repeat(5, minmax(220px, 1fr)); overflow-x: auto; }
  .kpis, .fin-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .board { height: calc(100vh - var(--top-h) - 270px); }
}
@media (max-width: 980px) {
  .top { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 10px; }
  .tabs { order: 3; width: 100%; }
  .split, .grid-2, .grid-2.grid-2-l, .grid-3, .pm { grid-template-columns: minmax(0, 1fr); }
  .board { display: flex; height: auto; min-height: 0; overflow-x: auto; }
  .col { flex: 0 0 280px; max-height: 70vh; }
}
/* Celular: a barra de cima quebra em linhas em vez de alargar a página */
@media (max-width: 600px) {
  .brand { min-width: 0; }
  .top-right { flex-wrap: wrap; gap: 8px 12px; margin-left: auto; justify-content: flex-end; min-width: 0; }
  .clock { font-size: 15px; min-width: 0; }
  .kpis, .fin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi b { font-size: 19px; }
  .kpi .sub { white-space: normal; }
  .hbar { grid-template-columns: 76px minmax(0, 1fr) auto; }
  .rs { grid-template-columns: 56px minmax(0, 1fr); gap: 8px 12px; }
  .rs-act { grid-column: 1 / -1; justify-content: flex-start; }
}
/* Troca de aba: a tela nova entra com um fade curto subindo 6px (C.enter). A regra de "reduzir movimento" logo abaixo desliga. */
.enter { animation: viewIn .22s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.otp { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; color: var(--text); font: 800 28px/1 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .5em; text-align: center; outline: 0; }
.otp:focus { border-color: var(--orange); }
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.sec-row b { display: block; }
.sec-row small { color: var(--muted); font-size: 12px; }
.tfa { display: grid; grid-template-columns: 210px 1fr; gap: 20px; align-items: start; }
.tfa-qr { background: #fff; border-radius: 14px; padding: 10px; }
.tfa-qr svg { display: block; width: 100%; height: auto; }
.tfa-steps { display: grid; gap: 10px; }
.tfa-steps p { margin: 0; color: var(--muted); font-size: 13.5px; }
.tfa-steps p b { color: var(--orange); }
.tfa-key { font: 700 15px/1.4 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .06em; color: var(--text); background: var(--card); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px; word-break: break-all; }
@media (max-width: 760px) { .tfa { grid-template-columns: 1fr; } .tfa-qr { width: 200px; justify-self: center; } }

/* Fidelidade (Clube Coruja) */
.fd-tabs { flex: none; }
.fd-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.fd-tabs .ic { width: 16px; height: 16px; }
.fd-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.fd-prog { text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 12px; color: var(--text); transition: border-color .15s, transform .15s; }
.fd-prog:hover { border-color: #4a423a; transform: translateY(-2px); }
.fd-meta { display: grid; gap: 6px; padding: 0 4px 2px; }
.fd-row { display: flex; align-items: center; gap: 8px; }
.fd-row b { font-size: 15px; }
.fd-pill { margin-left: auto; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--card-2); color: var(--muted); }
.fd-pill.on { background: rgba(52, 194, 122, .15); color: var(--green); }
.fd-meta small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.fd-stats { display: flex; gap: 16px; font-size: 12px; color: var(--muted); }
.fd-stats b { color: var(--text); font-size: 15px; margin-right: 4px; }
.fd-new { align-items: center; justify-content: center; text-align: center; border-style: dashed; min-height: 240px; gap: 6px; color: var(--muted); }
.fd-new .ic { width: 30px; height: 30px; color: var(--orange); }
.fd-new b { color: var(--text); font-size: 15px; }
.fd-list { display: grid; gap: 6px; }
.fd-mem { display: grid; grid-template-columns: 40px minmax(170px, 1.2fr) 104px minmax(0, 2fr) 96px auto; align-items: center; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; cursor: pointer; }
.fd-mem:hover, .fd-mem:focus-visible { border-color: #4a423a; outline: 0; }
.fd-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--card-2); color: var(--muted); flex: none; }
.fd-av.lg { width: 56px; height: 56px; font-size: 19px; }
.fd-av.lv1 { background: rgba(74, 163, 255, .15); color: var(--blue); }
.fd-av.lv2 { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }
.fd-av.lv3 { background: linear-gradient(135deg, #ffc53d, var(--orange)); color: #1a1000; }
.fd-who { min-width: 0; }
.fd-who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-who small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-lv { justify-self: start; font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--card-2); color: var(--muted); white-space: nowrap; }
.fd-lv.lv1 { color: var(--blue); background: rgba(74, 163, 255, .13); }
.fd-lv.lv2 { color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, transparent); }
.fd-lv.lv3 { color: #1a1200; background: linear-gradient(90deg, #ffc53d, var(--orange)); }
.fd-prg { display: flex; gap: 22px; min-width: 0; overflow: hidden; }
.fd-gift { color: var(--green); font-weight: 700; font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.fd-gift .ic { width: 16px; height: 16px; }
.fd-pick { display: grid; gap: 6px; }
.fd-pick button { text-align: left; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 12px; padding: 8px 10px; }
.fd-pick button.on { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.fd-pick .fmini-bar { width: 140px; }

.fm-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.fm-top > div { flex: 1; min-width: 220px; }
.fm-top b { display: block; font-size: 18px; }
.fm-top small { color: var(--muted); }
.fm-lv { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.fm-bar { width: 140px; height: 6px; border-radius: 4px; background: var(--card-2); overflow: hidden; }
.fm-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--yellow)); }
.fm-gifts { display: grid; gap: 8px; margin-bottom: 14px; }
.fm-gift { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(52, 194, 122, .35); background: rgba(52, 194, 122, .08); }
.fm-gift > .ic { width: 22px; height: 22px; color: var(--green); flex: none; }
.fm-gift div { flex: 1; min-width: 0; }
.fm-gift b { display: block; }
.fm-gift small { color: var(--muted); }
.fm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; margin-bottom: 16px; }
.fm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fm-add, .fm-log { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 10px; align-content: start; }
.fm-add h4, .fm-log h4 { margin: 0; font-size: 14px; }
.fm-add .b-orange { justify-self: start; }
.fm-ev { display: grid; grid-template-columns: 44px 1fr auto; column-gap: 10px; align-items: baseline; font-size: 13px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.fm-ev time { color: var(--muted); }
.fm-ev b { color: var(--green); }
.fm-ev b .ic { width: 14px; height: 14px; }
.fm-ev b.neg { color: var(--red); }
.fm-ev small { grid-column: 2 / -1; color: var(--dim); font-size: 11.5px; }

.fe { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }
.fe-form { display: grid; gap: 12px; min-width: 0; }
.fe-prev { position: sticky; top: 0; display: grid; gap: 12px; }
.fe-sum { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.fe-sum .ic { width: 18px; height: 18px; color: var(--orange); flex: none; }
.fe-sum b { color: var(--text); }
.fe-themes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.fe-themes button { border: 2px solid transparent; background: transparent; border-radius: 12px; padding: 4px; display: grid; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 600; }
.fe-themes button.on { border-color: var(--orange); color: var(--text); }
.fe-th { display: block; pointer-events: none; }
.fe-sw, .fe-st { display: flex; gap: 8px; flex-wrap: wrap; }
.fe-sw button { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--panel); background: var(--c); box-shadow: 0 0 0 1px var(--line); }
.fe-sw button.on { box-shadow: 0 0 0 2px var(--text); }
.fe-st button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--muted); display: grid; place-items: center; }
.fe-st button svg { width: 20px; height: 20px; }
.fe-st button.on { border-color: var(--orange); color: var(--orange); }
.fe-cats { display: flex; gap: 6px; flex-wrap: wrap; }
.fe-cats button { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: 99px; padding: 5px 11px; font-size: 12.5px; }
.fe-cats button.on { border-color: var(--orange); color: var(--text); background: color-mix(in srgb, var(--orange) 16%, var(--card)); }
.fe-box { display: grid; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.fe-box .seg, .fe-box .fld input, .fe-box .fld select { background: var(--panel); }
@media (max-width: 1250px) { .fd-mem { grid-template-columns: 40px minmax(150px, 1fr) 104px 96px auto; } .fd-mem .fd-prg { display: none; } }
@media (max-width: 900px) {
  .fd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fe { grid-template-columns: 1fr; }
  .fe-prev { position: static; order: -1; }
  .fm-grid { grid-template-columns: 1fr; }
  .fd-mem { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .fd-mem .fd-lv, .fd-mem .fd-gift { display: none; }
}

/* ===== A cobrar: contas por comanda / mesa / pedido ===== */
.tag-cmd { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }
.tbl-cmd { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); border-radius: 7px; padding: 3px 7px; }
.tbl-cmd .ic { width: 13px; height: 13px; }
.scanbox { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 2px dashed color-mix(in srgb, var(--orange) 45%, transparent); border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; }
.scanbox:focus-within { border-style: solid; border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 15%, transparent); }
.scanbox > .ic { width: 26px; height: 26px; color: var(--orange); flex: none; }
.scanbox input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font-size: 18px; font-weight: 700; }
.scanbox input::placeholder { color: var(--muted); font-weight: 500; font-size: 15px; }
.scanbox kbd { font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 5px 7px; }
.accs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 10px; align-content: start; }
.acc { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.acc.paid { border-style: dashed; }
.acc-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acc-card { display: inline-flex; align-items: center; gap: 5px; background: var(--orange); color: #1a1208; border-radius: 10px; padding: 6px 9px; flex: none; }
.acc-card .ic { width: 16px; height: 16px; }
.acc-card b { font-family: var(--f-display); font-weight: 400; font-size: 22px; line-height: 1; }
.acc-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--card-2); color: var(--muted); display: grid; place-items: center; flex: none; }
.acc-ic .ic { width: 18px; height: 18px; }
.acc-t { min-width: 0; flex: 1; }
.acc-t b { display: block; font-size: 15px; }
.acc-t small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-age { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); flex: none; }
.acc-age .ic { width: 13px; height: 13px; }
.acc-age.warn { color: var(--yellow); }
.acc-age.late { color: var(--red); }
.acc-os { display: grid; gap: 4px; max-height: 132px; overflow: auto; }
.acc-o { display: grid; grid-template-columns: 54px 1fr auto; gap: 8px; align-items: center; text-align: left; background: var(--card); border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; color: var(--text); font-size: 13px; }
.acc-o:hover { border-color: var(--line); }
.acc-o > span:first-child { font-weight: 800; }
.acc-o .st { justify-self: start; }
.acc-o b { font-size: 13px; white-space: nowrap; }
.acc-o s { color: var(--muted); font-weight: 500; }
.acc-f { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.acc-due { margin-right: auto; display: grid; line-height: 1.15; }
.acc-due small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.acc-due b { font-size: 20px; }
.acc.paid .acc-due b { color: var(--green); }
.acc-lines { display: grid; gap: 8px; max-height: 46vh; overflow: auto; margin-bottom: 10px; }
.acc-ord { background: var(--card); border-radius: 10px; padding: 8px 10px; }
.acc-ord.pago { opacity: .6; }
.acc-oh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.acc-oh > span:nth-child(2) { color: var(--muted); font-size: 12px; }
.acc-oh > b:last-child { margin-left: auto; }
.acc-oh small { color: var(--green); font-weight: 600; }
.acc-ord .fi-row { font-size: 13px; }

/* Reservas: mapa das mesas no horário */
.rmap-h { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.rmap-h h3 { margin: 0; }
.mini-sel { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font-weight: 700; font-size: 14px; }
.rmap { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 10px; }
.rm { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 4px 2px; text-align: center; display: grid; gap: 1px; }
.rm b { font-family: var(--f-display); font-weight: 400; font-size: 18px; line-height: 1.1; }
.rm small { font-size: 11px; line-height: 1.2; color: var(--muted); overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rm.res { background: rgba(167, 139, 250, .14); border-color: rgba(167, 139, 250, .5); }
.rm.res small { color: #c4b5fd; }
.rm.ocupada { background: color-mix(in srgb, var(--orange) 12%, transparent); border-color: color-mix(in srgb, var(--orange) 50%, transparent); }
.rm.ocupada small { color: var(--orange); }
.rmap-leg { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--muted); }
.rmap-leg span { display: inline-flex; align-items: center; gap: 5px; }
.rmap-leg i { width: 10px; height: 10px; border-radius: 3px; background: var(--card); border: 1px solid var(--line); }
.rmap-leg .res i { background: rgba(167, 139, 250, .5); }
.rmap-leg .ocupada i { background: color-mix(in srgb, var(--orange) 60%, transparent); }


/* Pedido manual: linha editável (tirar, adicionais, observação), frete ao vivo e pedido criado */
.pm-li { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.pm-li:last-child { border-bottom: 0; padding-bottom: 0; }
.pm-nm { display: grid; gap: 2px; background: none; border: 0; padding: 0; color: var(--text); text-align: left; font-weight: 600; min-width: 0; }
.pm-nm small { font-weight: 500; color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }
.pm-nm small.pm-hint { color: var(--orange); }
.pm-li.open .pm-nm > span { color: var(--orange); }
.pm-ed { display: grid; gap: 6px; margin-top: 8px; padding: 10px; border-radius: 10px; background: var(--panel); }
.pm-ed > small { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pm-ed .chip { padding: 5px 10px; font-size: 12px; }
.pm-obs { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--text); font-size: 13px; outline: 0; width: 100%; }
.pm-obs:focus { border-color: var(--orange); }
.pm-addr { display: grid; gap: 8px; }
.pm-quote { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.pmq-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.pmq-row .ic { width: 18px; height: 18px; }
.pmq-row.bad { color: var(--red); }
.pmq-row.ok { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pmq-row.ok small { display: block; font-size: 11px; color: var(--muted); }
.pmq-row.ok b { font-size: 18px; color: var(--text); }
.pmq-row.ok div:first-child b { color: var(--orange); font-size: 22px; }
.pm-quote .hint { margin-top: 6px; }
.pmq-fee { font-size: 18px; color: var(--orange); padding: 7px 0; }
.pm-done { display: grid; gap: 14px; }
.pm-ok { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; }
.pm-ok .ic { color: var(--green); }
.pm-code { display: grid; justify-items: center; gap: 2px; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--orange) 10%, var(--card)); border: 1px dashed color-mix(in srgb, var(--orange) 50%, transparent); text-align: center; }
.pm-code small { color: var(--muted); font-weight: 600; }
.pm-code b { font-size: 34px; letter-spacing: .22em; color: var(--orange); padding-left: .22em; }
.pm-code span { font-size: 12px; color: var(--muted); }
.pm-link { display: flex; gap: 8px; }
.pm-link input { flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--muted); font-size: 12px; }

/* Fidelidade: filtro de aniversariantes do mês */
.fd-bday { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-weight: 600; font-size: 13px; }
.fd-bday .ic { width: 15px; height: 15px; color: var(--orange); }
.fd-bday b { min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--panel); color: var(--text); }
.fd-bday.on { border-color: var(--orange); color: var(--text); background: color-mix(in srgb, var(--orange) 14%, var(--card)); }

/* Corridas: situação no cartão do pedido e entregador avulso */
.oc-ride { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.oc-ride .ic { width: 14px; height: 14px; }
.oc.has-iss { border-color: rgba(240, 72, 76, .6); border-left-color: var(--red); }
.oc-iss { margin-top: 8px; padding: 9px; border-radius: 10px; background: rgba(240, 72, 76, .1); display: grid; gap: 8px; cursor: default; }
.oc-iss-t { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.oc-iss-t > .ic { width: 18px; height: 18px; flex: none; color: var(--red); margin-top: 1px; }
.oc-iss-t img { width: 44px; height: 44px; flex: none; border-radius: 8px; object-fit: cover; }
.oc-iss-t span { display: grid; gap: 1px; min-width: 0; font-size: 13px; }
.oc-iss-t small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.oc-iss-a { display: flex; flex-wrap: wrap; gap: 6px; }
.cash-mb { display: grid; gap: 8px; }
.acc-door { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.acc-door .ic { width: 16px; height: 16px; }
/* Subabas de uma tela: tudo à vista, sem rolar */
.subtabs { flex: none; max-width: 100%; }
.subtabs button { white-space: nowrap; }
.settings > .panel[hidden] { display: none; }
.split.show-list, .split.show-info { grid-template-columns: minmax(0, 1fr); }
.split.show-list .eq-side, .split.show-info .eq-main { display: none; }
.split.show-info .eq-side { min-width: 0; }
.split.show-info .qr-url { overflow-wrap: anywhere; }
@media (min-width: 761px) {
  .split.show-info .eq-side { columns: 2; column-gap: 24px; }
  .split.show-info .eq-side .qr-card { break-inside: avoid; }
  .split.show-info .eq-side > h3, .split.show-info .eq-side > .eq-how { break-before: column; margin-top: 0 !important; }
}
@media (min-width: 1250px) {
  .show-list .eq-row:not(.pend) { grid-template-columns: 38px minmax(0, 1fr) 76px 110px 480px; }
  .show-list .eq-row:not(.pend) > .eq-act:not(.mb-req) { grid-column: auto; padding-top: 0; border-top: 0; justify-content: flex-end; }
  .show-list .eq-row > .mb-req { order: 2; }
}
@media (max-width: 760px) {
  .subtabs { width: 100%; flex-wrap: wrap; }
  .subtabs button { flex: 1 1 40%; }
}
.cash-mb-r { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cash-mb-r span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cash-list { max-height: 210px; overflow-y: auto; margin-bottom: 4px; }
.fi-iss { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.fi-iss img { width: 96px; height: 96px; flex: none; border-radius: 10px; object-fit: cover; }
.fi-iss div { display: grid; gap: 2px; min-width: 0; }
.fi-moto { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fi-moto > div { display: grid; gap: 2px; }
.fi-moto small { color: var(--muted, #888); }
.fi-stars { display: flex; gap: 4px; }
.fi-stars button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(127,127,127,.12); color: #b9b2a6; display: grid; place-items: center; cursor: pointer; }
.fi-stars button svg { width: 20px; height: 20px; }
.fi-stars button.on { color: var(--orange); }
.fi-stars button.on svg { fill: currentColor; }
.fi-iss small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.oc-ride.ok { color: var(--green); }
.oc-ride.open { color: var(--yellow); }
.guest-box { margin-top: 10px; border: 1px dashed var(--line); border-radius: 12px; padding: 10px 12px; }
.guest-box summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; list-style: none; }
.guest-box summary::-webkit-details-marker { display: none; }
.guest-box[open] summary { margin-bottom: 8px; }
.guest-box .g3 { margin: 8px 0; }

/* Promoção: arte 16:9 */
.pe { display: grid; gap: 14px; }
.pe-art { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px dashed var(--line); display: grid; place-items: center; align-content: center; gap: 4px; color: var(--muted); background: rgba(255, 255, 255, .03); }
.pe-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pe-art:not(.ph) { border-style: solid; }
.pe-art .ic { width: 30px; height: 30px; }
.pe-up { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pe-up .hint { flex: 1; min-width: 220px; }
.ma-tag.ban { background: color-mix(in srgb, var(--orange) 18%, transparent); color: var(--orange); }

/* Código do dono */
.lk-pill { position: fixed; left: 16px; bottom: 16px; z-index: 55; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 99px; background: var(--panel); border: 1px solid color-mix(in srgb, var(--green) 55%, transparent); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); font-size: 13px; font-weight: 700; color: var(--green); }
.lk-pill .ic { width: 16px; height: 16px; }
.lk-pill b { font-variant-numeric: tabular-nums; color: var(--text); }
.lk-pill button { border: 0; border-radius: 99px; padding: 5px 10px; background: var(--line); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.lk-ov { z-index: 70; }
.lk-code { font-size: 26px; letter-spacing: .35em; text-align: center; }
.lk-why { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--orange) 8%, transparent); border: 1px solid color-mix(in srgb, var(--orange) 35%, transparent); font-size: 13px; color: var(--muted); }
.lk-why .ic { width: 20px; height: 20px; color: var(--orange); flex: none; }
.lk-why b { color: var(--text); }

/* Fidelidade · Clientes sumidos */
.wb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.wb-bar .seg { flex: none; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.wb-bar .seg button { white-space: nowrap; }
.wb-st b { margin-left: 3px; font-size: 12px; opacity: .75; }
.wb-cp { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-width: 0; margin-left: auto; }
.wb-cp select { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font: inherit; min-width: 0; max-width: 100%; }
.wb-row { grid-template-columns: 40px minmax(150px, 1.2fr) minmax(130px, .7fr) minmax(0, 1fr) minmax(150px, auto); }
.wb-spent { display: grid; min-width: 0; line-height: 1.25; }
.wb-spent small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-info { color: var(--muted); font-size: 13px; min-width: 0; }
.wb-ok { color: var(--green); }
.wb-acts { display: flex; justify-content: flex-end; gap: 6px; }
.wb-acts .ic { width: 15px; height: 15px; }
.wb-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  /* Os números numa faixa só, para a lista aparecer sem descer */
  .fd-kpis.wb-kpis { display: flex; overflow-x: auto; scrollbar-width: none; gap: 8px; }
  .wb-kpis .kpi { flex: 0 0 132px; padding: 8px 10px; }
  .wb-kpis .kpi b { font-size: 18px; }
  .wb-kpis .kpi .sub { display: none; }
  .wb-row { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 6px 10px; }
  .wb-row .fd-who { grid-column: 2 / -1; }
  .wb-spent { grid-column: 1 / 3; }
  .wb-acts { grid-column: 3; }
  .wb-info { grid-column: 1 / -1; }
  .wb-dim, .wb-avg { display: none; }
  .wb-cp { margin-left: 0; flex: 1 1 0; }
  .wb-cp span { display: none; }
  .wb-cp select { flex: 1; width: 100%; }
}

/* Muito movimento */
.rush-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.rush-btn .ic { width: 15px; height: 15px; }
.rush-btn.on { background: var(--orange); border-color: var(--orange); color: #1a1208; font-weight: 800; }
.rush-btn.hot { border-color: var(--yellow); color: var(--yellow); font-weight: 800; }

/* ===== Área do dono: permissões do gerente e auditoria ===== */
.perm-g { display: grid; gap: 8px; margin-bottom: 14px; }
.perm-g h4 { margin: 0; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.switch.perm { align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.switch.perm small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; white-space: normal; }
.aud-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.aud-who { min-width: 200px; flex: 1 1 200px; max-width: 320px; }
.aud-list { display: grid; gap: 6px; }
.aud-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; padding: 8px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.aud-row time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.aud-row small { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.aud-row.bad b { color: var(--red); }
@media (max-width: 520px) { .aud-row { grid-template-columns: 1fr; gap: 2px; } .aud-who { max-width: none; } }

/* Pronto por item (5/11/2026) */
.oc-ck { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; margin-right: 3px; vertical-align: -2px; background: var(--orange); color: #1b0f00; }
.oc-ck.served { background: var(--green); color: #04210f; }
.oc-ck .ic { width: 11px; height: 11px; stroke-width: 3; }
.fi-st { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 99px; font-style: normal; font-size: 11.5px; font-weight: 800; vertical-align: 1px; background: var(--card-2); color: var(--muted); }
.fi-st.ready { background: color-mix(in srgb, var(--orange) 20%, transparent); color: var(--orange); }
.fi-st.served { background: color-mix(in srgb, var(--green) 20%, transparent); color: var(--green); }
.fi-tj { margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--yellow); color: #1a1000; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.oc-seq { background: var(--yellow); color: #1a1000; font-weight: 800; }

/* Celular do garçom: QR do caixa (5/11/2026) */
.ph-qr { display: grid; justify-items: center; gap: 10px; }
.ph-qr .qr { width: min(240px, 70vw); padding: 12px; background: #fff; border-radius: 14px; transition: opacity .3s, filter .3s; }
.ph-qr .qr svg { display: block; width: 100%; height: auto; }
.ph-qr .qr.off { opacity: .25; filter: blur(3px); }
.ph-left { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 800; color: var(--green); }
.ph-left.off { color: var(--yellow); }
.ph-left .ic { width: 16px; height: 16px; }
.ph-qr .eq-how { width: 100%; }
.ph-pick { display: grid; gap: 8px; margin-top: 10px; }
.ph-pick .b { justify-content: flex-start; gap: 10px; text-align: left; padding: 10px 12px; }
.ph-pick .b > span:nth-child(2) { flex: 1; display: grid; }
.ph-pick small { color: var(--muted); font-weight: 600; }

/* Privacidade (LGPD) em Fidelidade */
.lg-split .panel h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; }
.lg-split .panel h3 .ic { width: 18px; height: 18px; color: var(--orange); }
.lg-split .panel .lg-h { margin-top: 20px; }
.lg-q { width: 100%; margin-bottom: 8px; }
.lg-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.lg-row .fd-who { flex: 1; min-width: 180px; display: grid; gap: 2px; }
.lg-row .fd-who small { color: var(--muted); }
.lg-ask, .lg-no { font-style: normal; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.lg-ask { color: var(--orange); font-weight: 600; }
.lg-ask .ic { width: 14px; height: 14px; }
.lg-no { color: var(--muted); }
.lg-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.lg-seg { display: flex; flex-wrap: wrap; }
.lg-rules { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; color: var(--muted); line-height: 1.45; }
/* 4 abas em Fidelidade: no celular deslizam de lado em vez de empurrar a página */
.fd-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.fd-tabs::-webkit-scrollbar { display: none; }
.fd-tabs button { flex: none; }

/* ================= Gestão (área do dono): mural de gráficos ================= */
.gs-per { flex-wrap: wrap; }
.gs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; grid-auto-flow: row dense; }
.gs-card { min-width: 0; }
.gs-card.w2 { grid-column: span 2; }
.gs-card h3 { flex-wrap: wrap; }
.gs-card h3 > .ic { color: var(--orange); }
.gs-big { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.gs-big .neg { color: var(--red); }
.gs-sub { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.gs-d { display: inline-flex; align-items: baseline; gap: 4px; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.gs-d small { font-weight: 500; }
.gs-d.up { color: var(--green); }
.gs-d.down { color: var(--red); }
.gs-meter { height: 10px; margin-top: 10px; border-radius: 5px; background: var(--card-2); overflow: hidden; }
.gs-meter i { display: block; height: 100%; border-radius: 5px; background: var(--orange); }
.gs-rows { display: grid; }
.gs-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.gs-row:first-child { border-top: 0; }
.gs-row span { color: var(--muted); }
.gs-row.sum b, .gs-row.sum span { color: var(--text); font-weight: 700; }
.gs-row.tot { border-top: 2px solid var(--line); }
.gs-row.tot span, .gs-row.tot b { color: var(--text); font-weight: 800; font-size: 14px; }
.gs-t { font-size: 13px; }
.gs-t td, .gs-t th { padding: 6px 4px; }
.gs-t tr { cursor: default; }
.gs-leg { display: flex; gap: 14px; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.gs-leg span { display: inline-flex; align-items: center; gap: 6px; }
.gs-leg .gs-sw { width: 12px; height: 12px; border-radius: 3px; background: var(--orange); }
.gs-leg .gs-sw.ln { height: 0; border-top: 2px dashed var(--muted); border-radius: 0; background: none; width: 16px; }
.gs-chart .gs-prev { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 4 4; stroke-linejoin: round; pointer-events: none; }
.gs-chart .hit { fill: transparent; }
.gs-chart .gs-hit:hover .bar { fill: var(--orange-2); }
.gs-bills { display: grid; gap: 0; margin-top: 4px; }
.gs-bill { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.gs-bill:first-child { border-top: 0; }
.gs-bill > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.gs-bill small { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.gs-bill small .ic { width: 13px; height: 13px; }
.gs-bill.late small { color: var(--red); font-weight: 600; }
.gs-ex { display: flex; align-items: center; gap: 8px; margin: -4px 0 12px; font-size: 13px; color: var(--muted); }
.gs-ex .ic { width: 16px; height: 16px; color: var(--orange); flex: none; }
.gs-ex .link { border: 0; background: none; padding: 0; color: var(--orange); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
/* modo edição */
.gs-tools { margin-left: auto; display: inline-flex; gap: 4px; }
.gs-tools button { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.gs-tools button .ic { width: 16px; height: 16px; }
.gs-tools .gs-grip { cursor: grab; touch-action: none; }
.gs-grid.editing .gs-card { border-style: dashed; }
.gs-grid.editing .gs-body { pointer-events: none; opacity: .75; }
.gs-card.gs-drag { outline: 2px solid var(--orange); outline-offset: 2px; opacity: .9; }
/* catálogo, despesas e custos */
.gs-mod { margin: 12px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.gs-mod:first-child { margin-top: 0; }
.gs-cat { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.gs-pick { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.gs-pick .ic { grid-row: span 2; width: 20px; height: 20px; color: var(--orange); }
.gs-pick span { font-weight: 700; font-size: 13px; }
.gs-pick small { color: var(--muted); font-size: 12px; }
.gs-pick:disabled { opacity: .5; cursor: default; }
.gs-pick:not(:disabled):hover { border-color: var(--orange); }
.gs-form { display: grid; grid-template-columns: 2fr 1.4fr 1fr 1.2fr; gap: 10px; align-items: end; }
.gs-form .g2, .gs-form .hint { grid-column: 1 / -1; }
.gs-chk { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; grid-column: 1 / -1; }
.gs-chk input { width: 18px; height: 18px; accent-color: var(--orange); }
.gs-dlist { margin-top: 14px; max-height: 42vh; overflow: auto; }
.gs-drow { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.gs-drow.on .gs-dname b { color: var(--orange); }
.gs-dname { flex: 1; min-width: 0; display: grid; gap: 2px; text-align: left; border: 0; background: none; color: var(--text); font: inherit; padding: 0; cursor: pointer; }
.gs-dname b { font-size: 14px; }
.gs-dname b i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
.gs-dname small { color: var(--muted); font-size: 12px; }
.gs-cfg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.gs-cq { width: 100%; margin: 12px 0 8px; }
.gs-cq input { width: 100%; }
.gs-clist { max-height: 40vh; overflow: auto; }
.gs-crow { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.gs-crow > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.gs-crow small { color: var(--muted); font-size: 12px; }
.gs-crow .fld { width: 110px; }
.gs-crow .fld input { text-align: right; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 1180px) { .gs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .gs-grid { grid-template-columns: minmax(0, 1fr); }
  .gs-card.w2 { grid-column: auto; }
  .gs-form, .gs-cfg { grid-template-columns: 1fr 1fr; }
  .gs-form .fld:first-child { grid-column: 1 / -1; }
  .gs-per { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .gs-per button { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .gs-card.gs-drag { transition: none; } }

.gs-t { width: 100%; min-width: 0; table-layout: fixed; }
.gs-t th:not(:first-child), .gs-t td:not(:first-child) { width: 22%; }
.gs-t td:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-card .gs-body { min-width: 0; overflow-x: auto; }
@media (max-width: 720px) { .gs-t th:not(:first-child), .gs-t td:not(:first-child) { width: 25%; } .gs-t { font-size: 12px; } }

/* REPLAX-GO no caixa: Equipe → Motoboys → Convite e regras (preto e branco, como o app) */
.go-h { display: flex; align-items: center; gap: 8px; }
.go-word { font-family: Inter, system-ui, sans-serif; font-weight: 900; letter-spacing: -.02em; white-space: nowrap; color: var(--text); }
.go-word i { font-style: normal; display: inline-block; margin-left: .16em; padding: 0 .26em; border-radius: .22em; background: #67e8f9; color: #031417; }
.tag-go { background: #67e8f9; color: #031417; vertical-align: 2px; margin-left: 4px; }
.go-saldo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.go-saldo span { display: grid; gap: 2px; }
.go-saldo small { color: var(--muted); font-size: 12px; }
.go-saldo b { font-size: 22px; font-variant-numeric: tabular-nums; }
.go-saldo.warn b { color: var(--yellow); }
.go-saldo.low b { color: var(--red, #ff5a4f); }
.go-mes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.go-mes div { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.go-mes small { color: var(--muted); font-size: 11px; }
.go-mes b { font-variant-numeric: tabular-nums; }
.go-tip, .go-low { display: flex; gap: 6px; align-items: flex-start; }
.go-tip .ic, .go-low .ic { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.go-low { color: var(--yellow); }
/* Motoboys → Convite e regras: com a rede REPLAX-GO são 3 colunas no computador; no meio, a rede vem embaixo das regras */
@media (min-width: 761px) { .split.show-info .eq-side > h3.go-h { break-before: auto; margin-top: 22px !important; } }
@media (min-width: 1100px) {
  .split.show-info .eq-side:has(> .go-h) { columns: 3; }
  .split.show-info .eq-side > h3.go-h { break-before: column; margin-top: 0 !important; }
}
