/* ==========================================================================
   Scale Delivery — painel do restaurante
   ========================================================================== */
:root {
  --brand: #e4572e;
  --brand-600: #cc4520;
  --brand-50: #fff3ee;
  --brand-100: #ffe1d4;
  --ink: #1c1917;
  --ink-2: #44403c;
  --muted: #78716c;
  --line: #e7e5e4;
  --line-2: #f0eeec;
  --bg: #f7f6f4;
  --card: #ffffff;
  --side: #17130f;
  --side-2: #221c17;
  --side-ink: #d6d3d1;
  --ok: #16a34a;
  --ok-50: #ecfdf3;
  --warn: #d97706;
  --warn-50: #fffbeb;
  --bad: #dc2626;
  --bad-50: #fef2f2;
  --info: #2563eb;
  --info-50: #eff6ff;
  --violet: #7c3aed;
  --violet-50: #f5f3ff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 4px 16px rgba(28, 25, 23, .04);
  --shadow-lg: 0 12px 40px rgba(28, 25, 23, .16);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --side-w: 248px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
[x-cloak] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.ic { width: 18px; height: 18px; flex: none; stroke-width: 2; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.grow { flex: 1; min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none; }

/* ---------------------------------------------------------------- layout */
.shell { display: flex; min-height: 100vh; }
.side {
  width: var(--side-w); background: var(--side); color: var(--side-ink); position: fixed; inset: 0 auto 0 0; z-index: 40;
  display: flex; flex-direction: column; transition: transform .25s ease;
}
.side-brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px; text-decoration: none; }
.side-logo {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800;
  background: radial-gradient(circle at 30% 20%, #ff9a5c, var(--brand) 55%, #9c2c10); box-shadow: 0 6px 18px rgba(228, 87, 46, .35);
}
.side-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.side-brand b { display: block; color: #fff; font-size: 15px; letter-spacing: -.01em; }
.side-brand span { font-size: 11.5px; color: #a8a29e; }
.side nav { flex: 1; overflow-y: auto; padding: 6px 12px 16px; }
.side .grp { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: #78716c; padding: 16px 10px 6px; font-weight: 700; }
.side a.nav {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--side-ink);
  font-weight: 500; margin-bottom: 2px; transition: background .15s, color .15s;
}
.side a.nav:hover { background: var(--side-2); color: #fff; }
.side a.nav.on { background: linear-gradient(90deg, rgba(228, 87, 46, .22), rgba(228, 87, 46, .06)); color: #fff; box-shadow: inset 2px 0 0 var(--brand); }
.side a.nav.on .ic { color: #ff8a5c; }
.side .pill { margin-left: auto; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; min-width: 20px; text-align: center; }
/* menu retrátil: seções que abrem e fecham + recolher para só os ícones (window.goliasMenu em app.js) */
.side button.grp { display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; font-size: 10.5px; border-radius: 8px; }
.side button.grp:hover { color: #d6d3d1; }
.side .grp-chev { width: 14px; height: 14px; margin-left: auto; transition: transform .2s; }
.side .grp-box.closed .grp-chev { transform: rotate(-90deg); }
.side .grp-box.closed .grp-items { display: none; }
.side .grp-dot { display: none; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
/* seção fechada com aviso dentro (pedido, conta vencendo…): bolinha no título para não esconder o alerta */
.side .grp-box.closed:has(.pill:not([x-cloak]):not([style*="display: none"])) .grp-dot { display: inline-block; }
.side-mini-btn { display: flex; align-items: center; gap: 11px; margin: 0 12px 8px; padding: 8px 10px; background: none; border: 0; border-radius: 10px; color: #a8a29e; cursor: pointer; font: inherit; font-size: 13px; }
.side-mini-btn:hover { background: var(--side-2); color: #fff; }
.side-mini-btn .mini-on { display: none; }
@media (min-width: 1025px) {
  html.side-mini { --side-w: 72px; }
  html.side-mini .side-brand { padding: 20px 17px 16px; }
  html.side-mini .side-brand > div:last-child,
  html.side-mini .side a.nav > span:not(.pill),
  html.side-mini .side .grp span, html.side-mini .side .grp-chev, html.side-mini .side .grp-dot,
  html.side-mini .side-mini-btn span, html.side-mini .side-foot .who, html.side-mini .side-foot .avatar { display: none; }
  html.side-mini .side nav { padding: 6px 10px 16px; }
  html.side-mini .side .grp { padding: 10px 0 4px; pointer-events: none; }
  html.side-mini .side .grp::before { content: ''; display: block; height: 1px; width: 100%; background: #2a231d; }
  html.side-mini .side .grp-box.closed .grp-items { display: block; }
  html.side-mini .side a.nav { justify-content: center; padding: 10px 0; position: relative; }
  html.side-mini .side a.nav .pill { position: absolute; top: 2px; right: 2px; margin: 0; min-width: 16px; padding: 0 4px; font-size: 9.5px; line-height: 15px; }
  html.side-mini .side-mini-btn { justify-content: center; margin: 0 10px 8px; }
  html.side-mini .side-mini-btn .mini-on { display: block; }
  html.side-mini .side-mini-btn .mini-off { display: none; }
  html.side-mini .side-foot { justify-content: center; padding: 14px 0; }
  .side, .main { transition: width .2s ease, margin-left .2s ease, transform .25s ease; }
}
@media (max-width: 1024px) { .side-mini-btn { display: none; } }
.side-foot { padding: 14px 16px; border-top: 1px solid #2a231d; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #3a2f27; color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.side-foot .who { flex: 1; min-width: 0; }
.side-foot .who b { display: block; color: #fff; font-size: 13px; }
.side-foot .who span { font-size: 11.5px; color: #a8a29e; text-transform: capitalize; }
.side-foot button { background: none; border: 0; color: #a8a29e; cursor: pointer; padding: 6px; border-radius: 8px; }
.side-foot button:hover { background: var(--side-2); color: #fff; }

.main { flex: 1; margin-left: var(--side-w); min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 30; background: rgba(247, 246, 244, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 12px 24px; min-height: 64px;
}
.top h1 { font-size: 19px; margin: 0; letter-spacing: -.02em; font-weight: 750; }
.top .spacer { flex: 1; }
.burger { display: none; background: none; border: 0; padding: 6px; margin-left: -6px; cursor: pointer; }
.content { padding: 24px; max-width: 1480px; width: 100%; }
.scrim { display: none; }

@media (max-width: 1024px) {
  .side { transform: translateX(-100%); }
  .side.open { transform: none; box-shadow: var(--shadow-lg); }
  .main { margin-left: 0; }
  .burger { display: inline-flex; }
  .scrim.open { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 35; }
}
@media (max-width: 640px) {
  .top { padding: 10px 12px; }
  .content { padding: 12px; }
  .top h1 { font-size: 17px; }
}

/* ---------------------------------------------------------------- store toggle */
.store-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 99px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; font-size: 13px; }
.store-toggle .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.store-toggle.open .dot { background: var(--ok); box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
.store-toggle.closed .dot { background: var(--bad); box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }
.store-toggle.pickup { background: #fffbeb; border-color: #fcd34d; color: #92400e; margin-right: 6px; }
.store-toggle.pickup .ic { width: 15px; height: 15px; }
.store-toggle.pickup .muted { color: #b45309; }
.sm-sep { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 10px 4px; border-top: 1px solid var(--line-2); margin-top: 6px; }
.sm-hint { padding: 0 10px 6px; max-width: 250px; }
.sm-hint.pickup-on { color: #92400e; font-weight: 600; }
/* pedidos pausados (cozinha cheia): selo laranja no topo + linha no menu da loja */
.store-toggle.paused { background: #fff7ed; border-color: #fdba74; color: #9a3412; margin-right: 6px; }
.store-toggle.paused .ic { width: 15px; height: 15px; }
.store-toggle.paused .muted { color: #c2410c; }
.sm-hint.paused-on { color: #9a3412; font-weight: 600; }
.store-toggle.paused .lbl-short { display: none; }

/* ---------------------------------------------------------------- componentes */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.card-h h3 { margin: 0; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.card-h .spacer { flex: 1; }
.card-b { padding: 16px 18px 18px; }
.card-b.flush { padding: 8px 0 0; }

.grid { display: grid; gap: 16px; }
/* item da grade pode encolher: senão um conteúdo que não quebra linha (ex.: abas .seg) alarga a página no celular */
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1200px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-2-1 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .g3, .g2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .g4 { grid-template-columns: 1fr 1fr; gap: 10px; } }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.mt { margin-top: 16px; }
.mt-s { margin-top: 8px; }
.mb { margin-bottom: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
}
.btn:hover { background: #fafaf9; border-color: #d6d3d1; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn .ic { width: 16px; height: 16px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(228, 87, 46, .25); }
.btn.primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(0, 0, 0, .04); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-50); border-color: #fecaca; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.sm { height: 32px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.xs { height: 26px; padding: 0 8px; font-size: 12px; border-radius: 7px; gap: 5px; }
.btn.icon { width: 38px; padding: 0; }
.btn.sm.icon { width: 32px; }

.seg { display: inline-flex; background: #efedeb; border-radius: 11px; padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap; flex: none; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 12px; }
.input, .select, .textarea {
  width: 100%; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 0 12px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(228, 87, 46, .12); }
.input.sm, .select.sm { height: 34px; font-size: 13px; }
.search { position: relative; }
.search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 16px; height: 16px; }
.search .input { padding-left: 34px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 500; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { width: 38px; height: 22px; border-radius: 99px; background: #d6d3d1; position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(16px); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: #f0eeec; color: var(--ink-2); white-space: nowrap; }
.badge.ok { background: var(--ok-50); color: #15803d; }
.badge.warn { background: var(--warn-50); color: #b45309; }
.badge.bad { background: var(--bad-50); color: #b91c1c; }
.badge.info { background: var(--info-50); color: #1d4ed8; }
.badge.brand { background: var(--brand-50); color: var(--brand-600); }
.badge.violet { background: var(--violet-50); color: #6d28d9; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* status dos pedidos */
.st-aguardando_pagamento { --st: #a16207; --st-bg: #fef9c3; }
.st-novo { --st: #c2410c; --st-bg: #ffedd5; }
.st-preparo { --st: #1d4ed8; --st-bg: #dbeafe; }
.st-entrega { --st: #6d28d9; --st-bg: #ede9fe; }
.st-pronto { --st: #0f766e; --st-bg: #ccfbf1; }
.st-concluido { --st: #15803d; --st-bg: #dcfce7; }
.st-cancelado { --st: #b91c1c; --st-bg: #fee2e2; }
.badge.st { background: var(--st-bg); color: var(--st); }

/* tabelas */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fcfcfb; }
.t td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { transition: background .1s; }
.t tbody tr.click { cursor: pointer; }
.t tbody tr.click:hover { background: #fcfbfa; }
.t .r { text-align: right; }

.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty .ic { width: 36px; height: 36px; margin: 0 auto 10px; color: #d6d3d1; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line-2); }

/* KPIs */
.kpi { padding: 16px 18px; position: relative; overflow: hidden; }
.kpi .k-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.kpi .k-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.kpi .k-ic .ic { width: 16px; height: 16px; }
.kpi .k-val { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin-top: 10px; line-height: 1.1; }
.kpi .k-foot { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 12px; padding: 1px 6px; border-radius: 6px; }
.delta.up { color: #15803d; background: var(--ok-50); }
.delta.down { color: #b91c1c; background: var(--bad-50); }
.delta.flat { color: var(--muted); background: #f5f5f4; }
@media (max-width: 520px) { .kpi { padding: 12px; } .kpi .k-val { font-size: 20px; } }

.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row .bar-l { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 4px; }
.bar-row .bar-t { height: 8px; background: #f2f0ee; border-radius: 99px; overflow: hidden; }
.bar-row .bar-f { height: 100%; background: linear-gradient(90deg, #ff8a5c, var(--brand)); border-radius: inherit; }

.chart-box { position: relative; height: 280px; }
.chart-box.sm { height: 200px; }

/* modal / drawer */
.overlay { position: fixed; inset: 0; background: rgba(28, 25, 23, .45); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; backdrop-filter: blur(2px); }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 620px; box-shadow: var(--shadow-lg); }
.modal.lg { max-width: 860px; }
.modal.sm { max-width: 440px; }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.modal-h h3 { margin: 0; font-size: 16px; flex: 1; }
.modal-b { padding: 20px; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line-2); background: #fcfcfb; border-radius: 0 0 18px 18px; }
.drawer-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(28, 25, 23, .35); }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.drawer .modal-b { flex: 1; overflow-y: auto; }
.drawer .modal-f { border-radius: 0; }

/* toasts */
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 500; max-width: 360px; display: flex; gap: 10px; align-items: center; animation: toastIn .2s ease; }
.toast.error { background: #b91c1c; }
.toast.success { background: #166534; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 640px) { .toasts { left: 12px; right: 12px; bottom: 12px; } }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--brand); }
.tabs button .ic { width: 16px; height: 16px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .n { background: rgba(0, 0, 0, .08); border-radius: 99px; padding: 0 6px; font-size: 11px; }
.chip.on .n { background: rgba(255, 255, 255, .2); }

.hint { background: var(--info-50); border: 1px solid #dbeafe; color: #1e3a8a; border-radius: 12px; padding: 12px 14px; font-size: 13px; display: flex; gap: 10px; }
.hint.warn { background: var(--warn-50); border-color: #fde68a; color: #78350f; }
.hint .ic { flex: none; margin-top: 1px; }
.code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12.5px; background: #f5f5f4; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; word-break: break-all; }

.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: linear-gradient(135deg, #fde2d4, #fbcfb8); display: grid; place-items: center; color: var(--brand); flex: none; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ic { width: 20px; height: 20px; }

.divider { height: 1px; background: var(--line-2); margin: 16px 0; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

/* ---------------------------------------------------------------- pedidos (kanban) */
/* 5 colunas (Novos, Em preparo, Pronto, Saiu para entrega, Finalizados) cabem na tela sem rolar para o lado: a largura vem do
   espaço do quadro (container query no .board-wrap, já descontado o menu lateral); quadro estreito = 3 colunas (3 + 2 linhas);
   celular = uma embaixo da outra. O cartão fica compacto quando a coluna é estreita (container query no .col). */
.board-wrap { container-type: inline-size; }
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: start; padding-bottom: 8px; }
@container (max-width: 759px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (max-width: 479px) { .board { grid-template-columns: minmax(0, 1fr); } .board .col { min-height: 0; } }
.col { container-type: inline-size; min-width: 0; background: #efedea; border-radius: 16px; padding: 8px; min-height: 200px; }
.col-h { display: flex; align-items: center; gap: 7px; padding: 4px 4px 10px; font-weight: 700; line-height: 1.2; }
.col-h .col-l { min-width: 0; overflow-wrap: anywhere; }
.col-h .count { margin-left: auto; flex: none; background: #fff; border-radius: 99px; padding: 0 9px; font-size: 12px; }
.col-h .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--st); flex: none; }
.ocard { background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); border: 1px solid transparent; cursor: pointer; transition: box-shadow .15s, border-color .15s; min-width: 0; overflow-wrap: anywhere; }
.ocard:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.ocard.fresh { border-color: var(--brand); animation: pulse 1.6s ease-in-out 3; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(228, 87, 46, .15); } }
.ocard .o-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.ocard .badge { max-width: 100%; white-space: normal; }
.ocard .o-id { font-weight: 800; }
.ocard .o-time { margin-left: auto; white-space: nowrap; font-size: 12px; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.ocard .o-time.late { color: var(--bad); font-weight: 700; }
.ocard .o-name { font-weight: 600; margin-top: 6px; }
.ocard .o-items { font-size: 12.5px; color: var(--ink-2); margin: 6px 0 8px; }
.ocard .o-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ocard .o-total { margin-left: auto; font-weight: 800; }
.ocard .o-actions { display: flex; gap: 6px; margin-top: 10px; }
.ocard .o-actions .btn { flex: 1; min-width: 0; white-space: normal; height: auto; min-height: 32px; padding-top: 6px; padding-bottom: 6px; line-height: 1.25; text-align: center; }
@container (max-width: 210px) {
  .col-h { font-size: 13.5px; gap: 6px; }
  .ocard { padding: 9px; border-radius: 10px; }
  .ocard .o-top { gap: 4px 5px; }
  .ocard .badge { font-size: 10.5px; padding: 1px 7px; gap: 3px; }
  .ocard .o-name { font-size: 13px; }
  .ocard .o-items, .ocard .o-ifood, .ocard .o-courier { font-size: 11.5px; }
  .ocard .o-actions .btn { font-size: 12px; padding-left: 6px; padding-right: 6px; }
}

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: 13px; }
.timeline li::before { content: ''; position: absolute; left: 5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.timeline li::after { content: ''; position: absolute; left: 8.5px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }

.items-list .it { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.items-list .it:last-child { border-bottom: 0; }
.items-list .q { font-weight: 800; min-width: 28px; color: var(--brand); }
.totals { display: grid; gap: 6px; font-size: 13.5px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 17px; font-weight: 800; padding-top: 8px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- atendimento */
.inbox { display: grid; grid-template-columns: clamp(270px, 22vw, 340px) minmax(0, 1fr) clamp(250px, 19vw, 300px); height: calc(100vh - 64px - 48px); min-height: 520px; overflow: hidden; padding: 0; }
.inbox-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.inbox-list .head { padding: 14px; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
/* lista estreita (notebook/MacBook): a busca encolhe e os filtros quebram linha — nada invade a conversa */
.inbox-list .head .row { min-width: 0; flex-wrap: wrap; gap: 6px; }
.inbox-list .head .search { min-width: 0; }
.inbox-list .items { overflow-y: auto; flex: 1; }
.conv { display: flex; gap: 10px; padding: 12px 14px; cursor: pointer; border-bottom: 1px solid var(--line-2); }
.conv:hover { background: #fcfbfa; }
.conv.on { background: var(--brand-50); }
.conv .avatar { background: #f0e6df; color: var(--brand-600); }
.conv .c-top { display: flex; gap: 6px; align-items: baseline; }
.conv .c-name { font-weight: 700; flex: 1; min-width: 0; }
.conv .c-time { font-size: 11.5px; color: var(--muted); }
.conv .c-last { font-size: 12.5px; color: var(--muted); }
.conv .unread { background: var(--ok); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 700; padding: 0 7px; margin-left: auto; }
.chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #f4efe9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23e7ddd3'/%3E%3C/svg%3E"); }
.chat-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); }
/* cabeçalho da conversa: nome/telefone cortam com "…" e os botões nunca passam por cima; conversa estreita → só ícones */
.chat { container-type: inline-size; }
.chat-h > .avatar, .chat-h > .back-btn { flex: none; }
.chat-h .ch-who { min-width: 0; }
.chat-h .ch-who b, .chat-h .ch-who div { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-actions { display: flex; gap: 6px; flex: none; }
.ch-actions .btn { white-space: nowrap; }
@container (max-width: 620px) { .ch-actions .ch-lbl:not(.ch-keep) { display: none; } .ch-actions .btn { padding-left: 9px; padding-right: 9px; } }
/* Atendimento: IA (ou robô) desligada só nesta conversa */
.ch-actions .btn.bot-off { background: var(--violet-50); color: var(--violet); border-color: var(--violet-50); }
/* tela bem estreita (celular): ligada = só o ícone (o nome do cliente precisa de espaço); desligada = mostra o texto */
@container (max-width: 420px) { .ch-actions .btn:not(.bot-off) .ch-keep { display: none; } }
.bot-off-dot { color: var(--violet); display: inline-flex; vertical-align: -2px; }
.bot-off-dot .ic { width: 14px; height: 14px; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 72%; padding: 8px 12px; border-radius: 14px; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); word-wrap: break-word; font-size: 13.5px; }
.msg .txt { white-space: pre-wrap; display: block; }
.msg.me { align-self: flex-end; background: #dcf8c6; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.bot, .msg.sistema, .msg.campanha { background: #eef2ff; }
.msg .meta { font-size: 10.5px; color: var(--muted); margin-top: 3px; text-align: right; }
.day-sep { align-self: center; background: rgba(255, 255, 255, .85); font-size: 11.5px; padding: 3px 10px; border-radius: 99px; color: var(--muted); margin: 8px 0; }
.chat-f { display: flex; gap: 8px; padding: 12px; background: #fff; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-f .textarea { min-height: 42px; max-height: 140px; }
.quick { display: flex; gap: 6px; padding: 8px 12px 0; background: #fff; overflow-x: auto; }
.inbox-side { border-left: 1px solid var(--line); overflow-y: auto; padding: 16px; min-width: 0; }
.back-btn { display: none; position: relative; }
/* lista escondida (janela menor/celular): quantas mensagens não lidas há nas OUTRAS conversas */
.back-btn .unread { position: absolute; top: -6px; right: -8px; min-width: 18px; line-height: 18px; padding: 0 5px; border-radius: 99px; background: var(--ok); color: #fff; font-size: 11px; font-weight: 700; }
.side-btn, .side-close { display: none; }
/* Atendimento no computador: as faixas de cima (WhatsApp, IA, botão do WhatsApp, supervisão) + o quadro cabem na tela;
   o quadro fica com a altura que sobra (antes ele tinha a altura da tela inteira e a caixa de mensagem ia para baixo da dobra) */
@media (min-width: 800.02px) {
  .inbox-page { display: flex; flex-direction: column; height: calc(100vh - 64px - 48px); min-height: 600px; }
  .inbox-page > .inbox { flex: 1 1 0; height: auto; min-height: 420px; }
}
/* Painel do cliente SEMPRE à vista (02/10, pedido do dono: sumia em notebook/MacBook — antes ele era escondido abaixo de 1400 px).
   Notebook/MacBook (1201–1400 px): as três colunas, mais estreitas. */
@media (min-width: 1200.02px) and (max-width: 1400px) { .inbox:not(.cc) { grid-template-columns: clamp(230px, 20vw, 280px) minmax(0, 1fr) clamp(250px, 21vw, 290px); } }
/* Janela menor (801–1200 px): com conversa aberta = conversa + cliente (a lista volta pela seta ←); sem conversa = lista + aviso */
@media (min-width: 800.02px) and (max-width: 1200px) {
  .inbox:not(.cc) { grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); }
  .inbox:not(.cc).has-conv { grid-template-columns: minmax(0, 1fr) clamp(250px, 30vw, 300px); }
  .inbox:not(.cc).has-conv .inbox-list { display: none; }
  .inbox:not(.cc):not(.has-conv) .inbox-side { display: none; }
  .inbox:not(.cc) .back-btn { display: inline-flex; }
}
@media (max-width: 800px) {
  .inbox { grid-template-columns: 1fr; height: calc(100vh - 64px - 24px); }
  .inbox.has-conv .inbox-list { display: none; }
  .inbox:not(.has-conv) .chat { display: none; }
  .back-btn { display: inline-flex; }
  /* celular: o painel do cliente abre por cima da conversa (botão "Cliente" no topo da conversa) */
  .inbox:not(.cc) .inbox-side { display: none; }
  .inbox:not(.cc).side-open.has-conv .inbox-side { display: block; border-left: 0; padding: 0 12px 12px; }
  .inbox:not(.cc).side-open.has-conv .chat { display: none; }
  .side-btn { display: inline-flex; }
  .side-close { display: flex; width: 100%; justify-content: center; position: sticky; top: 0; z-index: 1; margin: 0 0 10px; border-radius: 0 0 10px 10px; background: var(--card, #fff); }
  .chat-h > .avatar { display: none; } /* sobra espaço para o nome do cliente (4 botões no topo) */
  .msg { max-width: 88%; }
}

/* ---------------------------------------------------------------- cardápio (admin) */
.cat-block { margin-bottom: 18px; }
.cat-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.cat-head h3 { margin: 0; font-size: 15px; }
.prod-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.prod-row:last-child { border-bottom: 0; }
.prod-row.off { opacity: .55; }
.prod-row .p-name { font-weight: 650; }
.price-old { text-decoration: line-through; color: var(--muted); font-size: 12px; margin-right: 4px; }
.og { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; background: #fcfcfb; }
.og-opt { display: grid; grid-template-columns: 1fr 110px 36px; gap: 8px; margin-top: 8px; }
/* opção com "produto ligado" (combo): nome | preço | produto | x — no celular o produto desce para a linha de baixo */
.og-opt { grid-template-columns: minmax(0, 1fr) 100px minmax(0, 170px) 36px; }
.og-opt > select { width: 100% !important; max-width: none !important; min-width: 0; }
@media (max-width: 600px) { .og-opt { grid-template-columns: minmax(0, 1fr) 90px 36px; } .og-opt > select { grid-column: 1 / 3; grid-row: 2; } }
/* com a coluna "No salão": nome | preço | salão | produto | x (no celular o produto desce) */
.og-opt.has-salao { grid-template-columns: minmax(0, 1fr) 90px 90px minmax(0, 170px) 36px; }
@media (max-width: 600px) { .og-opt.has-salao { grid-template-columns: minmax(0, 1fr) 76px 76px 36px; } .og-opt.has-salao > select { grid-column: 1 / 4; grid-row: 2; } }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 14px; cursor: pointer; background: #fcfcfb; }
.drop:hover { border-color: var(--brand); }
.drop .prev { width: 84px; height: 84px; border-radius: 10px; background: #f5f5f4 center/cover; flex: none; display: grid; place-items: center; color: var(--muted); }

/* ---------------------------------------------------------------- campanhas */
.wa-preview { background: #efe7de; border-radius: 16px; padding: 16px; }
.wa-bubble { background: #fff; border-radius: 12px 12px 12px 4px; padding: 8px 10px; max-width: 320px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); white-space: pre-wrap; font-size: 13.5px; }
.wa-bubble img { border-radius: 8px; margin-bottom: 6px; }
.progress { height: 8px; background: #eeeceb; border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: var(--ok); border-radius: inherit; transition: width .5s; }
.vars { display: flex; gap: 6px; flex-wrap: wrap; }
.vars button { border: 1px dashed #d6d3d1; background: #fff; border-radius: 7px; padding: 2px 8px; font-size: 12px; cursor: pointer; font-family: ui-monospace, Menlo, monospace; }

/* ---------------------------------------------------------------- ads */
.plat { display: flex; align-items: center; gap: 12px; }
.plat-logo { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; }
.plat-logo.meta { background: linear-gradient(135deg, #0668e1, #0080fb); }
.plat-logo.google { background: conic-gradient(from 45deg, #ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }
.plat-logo.tiktok { background: #000; box-shadow: inset 2px 2px 0 #25f4ee, inset -2px -2px 0 #fe2c55; }
.plat-logo .ic { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- login */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; }
.login-art { background: radial-gradient(1200px 600px at 20% 10%, #3a2217 0, #17130f 60%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art::after { content: ''; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(228, 87, 46, .55), rgba(228, 87, 46, 0) 70%); filter: blur(10px); }
.login-art h2 { font-size: 40px; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 14px; max-width: 460px; }
.login-art p { color: #d6d3d1; max-width: 420px; font-size: 15px; }
.login-form { display: grid; place-items: center; padding: 32px 20px; }
.login-form form { width: 100%; max-width: 380px; display: grid; gap: 16px; }
.login-form h1 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.alert { background: var(--bad-50); color: #991b1b; border: 1px solid #fecaca; padding: 10px 12px; border-radius: 10px; font-weight: 500; }
@media (max-width: 860px) { .login-page { grid-template-columns: 1fr; } .login-art { display: none; } }

/* ---------------------------------------------------------------- CRM */
.crm-cards { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1400px) { .crm-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .crm-cards { grid-template-columns: 1fr 1fr; } }
.crm-card { text-align: left; cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s, transform .05s; }
.crm-card:hover { border-color: #d6d3d1; }
.crm-card.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(228, 87, 46, .15); }
/* quadros compactos (Dashboard, Clientes, Notas fiscais, Fidelidade) — 2 linhas:
   ícone + nome / valor + variação (.delta); com detalhe (.k-note, Fidelidade) ganha uma 3ª linha pequena. O valor nunca é cortado:
   sem espaço, a variação/detalhe desce para a linha de baixo. No celular, nomes longos usam .lbl-short. */
.kpi.compact { padding: 10px 14px; }
.kpi.compact .k-top { gap: 8px; }
.kpi.compact .k-ic { width: 26px; height: 26px; border-radius: 8px; flex: none; font-size: 14px; }
.kpi.compact .k-ic .ic { width: 14px; height: 14px; }
.kpi.compact .k-lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi.compact .k-row { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; margin-top: 4px; min-width: 0; }
.kpi.compact .k-val { margin: 0; font-size: 21px; white-space: nowrap; }
.kpi.compact .delta { flex: none; margin-left: auto; }
.kpi.compact .k-note { flex-basis: 100%; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* detalhe: linha própria, abaixo do valor */
.kpi.compact .lbl-short { display: none; }
@media (max-width: 520px) {
  .kpi.compact .k-val { font-size: 17px; }
  .kpi.compact .lbl-full { display: none; } .kpi.compact .lbl-short { display: inline; }
}

/* quadros do CRM compactos (2 linhas): ícone + nome + número / explicação numa linha */
.crm-card { padding: 10px 14px; }
.crm-card .k-top { gap: 8px; }
.crm-card .k-ic { width: 26px; height: 26px; border-radius: 8px; flex: none; }
.crm-card .k-ic .ic { width: 14px; height: 14px; }
.crm-card .k-lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-card .k-val { margin: 0; font-size: 21px; color: var(--ink); flex: none; }
.crm-card .k-foot { margin-top: 4px; flex-wrap: nowrap; white-space: nowrap; min-width: 0; line-height: 1.3; }
.crm-card .k-hint { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bulk { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 18px; background: var(--brand-50); border-top: 1px solid var(--brand-100); border-bottom: 1px solid var(--brand-100); }
.grp-row td { background: #f7f5f3; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.tagchip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); border: 1px solid color-mix(in srgb, var(--c) 30%, white); white-space: nowrap; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 2px var(--ink); }
.crm-badges { display: flex; flex-wrap: wrap; gap: 4px; min-width: 190px; }
/* ---------------------------------------------------------------- gatilhos */
.trig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1200px) { .trig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .trig-grid { grid-template-columns: 1fr; } }
.trig-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 150px; }
.trig-card.on { border-color: #bbf7d0; box-shadow: 0 0 0 3px rgba(22, 163, 74, .08); }
.trig-card.soon { opacity: .6; background: #fafaf9; }
.trig-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
.trig-card.on .trig-ic { background: #dcfce7; color: #15803d; }
.trig-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #fafaf9; border: 1px solid var(--line-2); }

/* notas fiscais */
.ck { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; background: #f0eeec; color: var(--ink-2); flex: none; }
.ck.ok { background: var(--ok); color: #fff; }
.bad-in { border-color: #fca5a5 !important; background: #fff7f7; }

/* detalhe do pedido em modal */
.modal.od { max-width: 980px; }
.od-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.od-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.od-sum { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.od-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: var(--brand-50); color: var(--brand-600); font-size: 13px; }
.od-chip b { font-size: 15px; }
.od-items .od-it { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.od-items .od-it:last-child { border-bottom: 0; }
.od-th { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex: none; background: var(--line-2); display: grid; place-items: center; color: var(--muted); }
.od-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.od-th svg { width: 20px; height: 20px; }
.od-q { font-weight: 800; font-size: 16px; min-width: 30px; color: var(--brand); line-height: 1.35; }
.od-opts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.od-opts span { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: #f5f5f4; }
.od-box { border: 1px solid var(--line-2); border-radius: 14px; padding: 13px 14px; background: #fcfcfb; }
.od-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.od-stats div { background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; display: grid; gap: 1px; }
.od-stats b { font-size: 15px; }
.od-stats span { font-size: 11.5px; color: var(--muted); }
.od-addr { display: grid; gap: 2px; margin-top: 3px; }
@media (max-width: 820px) {
  .od-grid { grid-template-columns: 1fr; }
  .od-wrap { padding: 0; }
  .modal.od { border-radius: 0; min-height: 100%; }
  .modal.od .modal-f { border-radius: 0; position: sticky; bottom: 0; }
  .od-wrap .hide-s { display: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* mídia nas conversas do WhatsApp */
.wa-media { display: grid; gap: 6px; white-space: normal; }
.wa-media audio { width: 270px; max-width: 100%; height: 40px; }
.wa-media img { display: block; max-width: 260px; max-height: 320px; border-radius: 10px; cursor: zoom-in; }
.wa-media img.sticker { max-width: 130px; border-radius: 0; background: none; }
.wa-media video { max-width: 280px; max-height: 320px; border-radius: 10px; background: #000; }
.wa-doc { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, .05); color: inherit; text-decoration: none; font-weight: 600; }
.wa-doc svg { width: 18px; height: 18px; flex: none; }
.wa-miss { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.wa-miss svg { width: 15px; height: 15px; flex: none; }

/* vistos de leitura (iguais ao WhatsApp) */
.ticks { display: inline-flex; align-items: center; margin-left: 4px; color: #8696a0; vertical-align: -1px; }
.ticks svg { display: block; }
.ticks .t-read { color: #53bdeb; display: inline-flex; }
.ticks .t-err { color: var(--bad); font-weight: 800; font-size: 12px; }
.ticks.sm { margin: 0 2px 0 0; flex: none; }

/* gravação de áudio no Atendimento */
.rec-bar { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 42px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; flex: none; animation: rec-pulse 1s ease-in-out infinite; }
@keyframes rec-pulse { 50% { opacity: .25; } }

/* anexo antes de enviar (foto/documento) */
.att-prev { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #f7f5f2; border-top: 1px solid var(--line); }
.att-thumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex: none; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.att-thumb img { width: 100%; height: 100%; object-fit: cover; }
.att-thumb svg { width: 22px; height: 22px; }
.chat-body.dragging { outline: 3px dashed var(--brand); outline-offset: -10px; background-color: #fff8f3; }
/* logo da loja no lugar do "G" (Configurações → Loja → Logo) */
.side-logo.has-img { background: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); overflow: hidden; }

/* modal Novo pedido: campo obrigatório vazio e botão "travado" */
.input.bad, .select.bad { border-color: #dc2626 !important; background-color: #fef2f2; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.btn.primary.is-off { opacity: .55; }
.np-missing { color: #b45309; text-align: left; }

/* faixa "pedido aguardando aceite" (alerta repetido) */
.ring-bar { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; margin-right: 10px; border-radius: 999px; background: #fef2f2; border: 1px solid #fecaca; animation: ring-pulse 1.4s ease-in-out infinite; }
.ring-bar a { display: flex; align-items: center; gap: 6px; color: #b91c1c; text-decoration: none; font-size: 13px; }
.ring-bar.muted { animation: none; background: #f5f5f4; border-color: var(--line); }
.ring-bar.muted a { color: var(--ink-2); }
.ring-ic { display: inline-block; animation: ring-shake 1.4s ease-in-out infinite; }
.ring-bar.muted .ring-ic { animation: none; }
@keyframes ring-pulse { 50% { box-shadow: 0 0 0 5px rgba(239, 68, 68, .15); } }
@keyframes ring-shake { 0%, 60%, 100% { transform: rotate(0); } 10%, 30%, 50% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }
@media (max-width: 700px) { .ring-bar b { display: none; } }
/* faixa do entregador: azul para mensagem, vermelha (pulsando) para problema */
.cc-bar { max-width: 620px; min-width: 0; }
.cc-bar > a:first-child { min-width: 0; }
.cc-bar b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-bar.info { background: #eff6ff; border-color: #bfdbfe; animation: none; }
.cc-bar.info > a:first-child { color: #1d4ed8; }
.cc-bar.info .ring-ic { animation: none; }
.push-btn { margin-right: 8px; white-space: nowrap; }
@media (max-width: 700px) { .push-btn span { display: none; } }

/* ---------------------------------------------------------------- área do entregador (celular) */
body.courier { background: var(--bg, #f5f3f0); padding-bottom: env(safe-area-inset-bottom); }
.cr-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #17130f; color: #fff; }
.cr-top b { display: block; font-size: 15px; }
.cr-top span { font-size: 12px; color: #c9bfb6; }
.cr-top .btn.ghost { color: #fff; }
.cr-top form { margin: 0; }
.cr-tabs { display: flex; gap: 6px; padding: 12px 16px 0; }
.cr-tabs button { flex: 1; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.cr-tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.cr-tabs .cnt { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: rgba(0, 0, 0, .1); font-size: 12px; }
.cr-main { padding: 14px 16px 40px; max-width: 640px; margin: 0 auto; }
.cr-card { background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--shadow); display: grid; gap: 12px; border: 2px solid transparent; }
.cr-card:not(.wait) { border-color: #bfdbfe; }
.cr-card.wait { opacity: .85; }
.cr-head { display: flex; align-items: center; gap: 8px; }
.cr-id { font-size: 18px; }
.cr-who { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cr-who > b { font-size: 17px; }
.cr-addr { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: #f7f5f2; }
.cr-addr svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 2px; }
.cr-addr .big { font-size: 16px; font-weight: 600; line-height: 1.35; }
.cr-items { margin: 0; padding: 0 0 0 2px; list-style: none; display: grid; gap: 4px; font-size: 14px; }
.cr-items em { color: #b45309; font-style: normal; }
.cr-pay { padding: 12px 14px; border-radius: 12px; }
.cr-pay.charge { background: #fff7ed; border: 1px solid #fed7aa; }
.cr-pay.charge b { font-size: 24px; color: #c2410c; display: block; }
.cr-pay.paid { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.cr-done { width: 100%; justify-content: center; min-height: 54px; font-size: 16px; }
.cr-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px; }
.cr-sum b { display: block; font-size: 22px; }
.cr-done-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.cr-done-row .r { text-align: right; }
.o-courier { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #1d4ed8; margin-top: 4px; }
.o-courier svg { width: 15px; height: 15px; }
/* iFood: selo vermelho, prazo de aceite, caixa do pedido e negociação */
.badge.ifood { background: #ea1d2c; color: #fff; font-weight: 700; }
.badge.teste { background: #6d28d9; color: #fff; font-weight: 700; } /* pedido / conversa de teste (Modo de teste) */
.o-ifood { font-size: 12px; font-weight: 600; color: #b45309; margin-top: 4px; }
.o-ifood.late { color: #b91c1c; }
.hint.bad { background: var(--bad-50); border-color: #fecaca; color: #7f1d1d; align-items: center; }
.ifood-box { border-color: #fecaca; }
.dispute { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.dispute.open { border-color: #ea1d2c; background: #fff5f5; }
.cr-pick { justify-content: flex-start; gap: 10px; padding: 12px 14px; }
.cr-pick.on, .btn.ghost.on { border-color: var(--brand); background: var(--brand-50); }
.cr-alert { position: sticky; top: 64px; z-index: 19; display: flex; align-items: center; gap: 10px; margin: 10px 16px 0; padding: 12px 14px; border-radius: 14px; background: #dc2626; color: #fff; box-shadow: 0 8px 24px rgba(220, 38, 38, .35); animation: ring-pulse 1.2s ease-in-out infinite; cursor: pointer; }
.cr-alert .btn { background: #fff; color: #b91c1c; border: 0; }
.cr-notif { margin: 12px 16px 0; padding: 12px 14px; border-radius: 14px; background: #fff7ed; border: 1px solid #fed7aa; font-size: 13.5px; }
.cr-notif b { display: block; margin-bottom: 2px; }
.cr-notif span { color: var(--ink-2); line-height: 1.4; }
.cr-notif.ok { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.time-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-weight: 700; }
.time-pill.ok { background: #dcfce7; color: #15803d; }
.time-pill.warn { background: #fef3c7; color: #b45309; }
.time-pill.bad { background: #fee2e2; color: #b91c1c; }
.cr-start { position: fixed; inset: 0; z-index: 40; background: rgba(23, 19, 15, .92); display: grid; place-items: center; padding: 24px; }
.cr-start-box { background: #fff; border-radius: 22px; padding: 26px 22px; max-width: 420px; width: 100%; display: grid; gap: 12px; text-align: center; }
.cr-start-box b { font-size: 20px; }
.cr-start-box span { color: var(--ink-2); line-height: 1.45; }
.cr-start-ic { font-size: 46px; }
.cr-on { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 10px 16px 0; font-size: 13px; color: #15803d; font-weight: 600; }
.cr-on .btn { margin-left: auto; }

/* chat interno loja ↔ entregador */
.inbox.cc { grid-template-columns: 320px minmax(0, 1fr); }
.cc-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #d6d3d1; border: 2px solid #fff; }
.cc-dot.on { background: #22c55e; }
.cc-order { display: inline-block; margin-bottom: 4px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .06); font-size: 12px; font-weight: 700; color: inherit; text-decoration: none; }
@media (max-width: 800px) { .inbox.cc { grid-template-columns: 1fr; } }
.cr-chat-btn { color: #fff; gap: 6px; }
.cr-chat-btn .cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 11.5px; font-weight: 800; }
.cr-chat { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; background: #f4efe9; }
.cr-chat-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #17130f; color: #fff; }
.cr-chat-h b { display: block; }
.cr-chat-h span { font-size: 12px; color: #c9bfb6; }
.cr-chat-h .btn.ghost { color: #fff; }
.cr-chat-body { flex: 1; }
.cr-chat .quick { padding: 8px 12px; background: #fff; border-top: 1px solid var(--line); display: flex; gap: 6px; overflow-x: auto; }
.cc-link { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; padding: 2px 8px; border-radius: 8px; }
.cc-link:hover { background: var(--brand-50); }
.cc-link svg { width: 15px; height: 15px; color: var(--muted); }
.rv-stars { color: #f59e0b; letter-spacing: 1px; }
.rv-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rv-kpis > div { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; }
.rv-kpis b { font-size: 22px; }
tr.rv-low td { background: #fef2f2; }
@media (max-width: 700px) { .rv-kpis { grid-template-columns: 1fr 1fr; } }

/* Atendimento: mensagem saindo (reloginho) e mensagem que não saiu */
.msg.ob .ob-clock svg { width: 13px; height: 13px; vertical-align: -2px; opacity: .7; animation: ob-spin 2s linear infinite; }
@keyframes ob-spin { to { transform: rotate(360deg); } }
.msg.ob-err { background: #fef2f2 !important; border: 1px solid #fecaca; }
.ob-fail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; color: #b91c1c; }

/* Ads → Verificar domínio */
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; line-height: 1.5; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; }

.guide { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fafaf9; }
.guide summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.guide[open] summary { margin-bottom: 8px; }

/* Ads → conferência delivery x plataforma */
.rec { border-top: 1px dashed var(--line); padding-top: 10px; display: grid; gap: 4px; }
.rec-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.rec-row b { color: var(--ink); }
.rec-row.bad, .rec-row.bad b { color: var(--bad, #b91c1c); }

/* Pedidos: volume do aviso */
.vol-sel { width: auto; min-width: 150px; }

/* Atendimento: conversa que começou por anúncio de clique para o WhatsApp */
.ad-chip { color: #1d4ed8; font-weight: 600; }
.ad-dot { font-size: 12px; margin-right: 4px; }

/* Ads → Públicos */
.aud-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 2px; }

/* Pedidos: faixa de pendentes de dias anteriores */
.old-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; }
.old-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 4px 3px 10px; font-size: 13px; }

/* WhatsApp desconectado: faixa no topo de todas as telas do painel */
.wa-down { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px 16px; background: #b91c1c; color: #fff; font-size: 13.5px; }
.wa-down .btn { background: #fff; color: #b91c1c; border-color: #fff; font-weight: 700; }
/* entregador no mapa (tela de entregas) */
.cr-gps { margin: 8px 16px 0; padding: 8px 12px; border-radius: 10px; background: #ecfdf5; color: #065f46; font-size: 13px; line-height: 1.35; }
.cr-gps.bad { background: #fff7ed; color: #9a3412; }
/* Cardápio → produto → "Combina com" */
.pair-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pair-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 11px; border-radius: 99px; background: var(--brand-50, #fff1ea); border: 1px solid #fbd5c4; font-size: 13px; font-weight: 600; }
.pair-chip button { border: 0; background: none; cursor: pointer; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: inherit; padding: 0; }
.pair-chip button:hover { background: rgba(0,0,0,.08); }
.pair-chip button svg { width: 14px; height: 14px; }
.pair-add { width: auto; min-width: 200px; }
/* Usuários → áreas que o usuário acessa */
.perm-grp { margin-top: 10px; }
.perm-gh { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.perm { display: flex; gap: 10px; align-items: flex-start; padding: 7px 8px; border-radius: 10px; cursor: pointer; }
.perm:hover { background: var(--bg-2, #f6f3f0); }
.perm input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.perm span { display: flex; flex-direction: column; gap: 1px; }
.perm b { font-size: 14px; font-weight: 600; }
.perm small { color: var(--muted); font-size: 12.5px; }
/* Campanhas → Proteção do número */
.prot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .prot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prot-grid > div { background: var(--bg-2, #f6f3f0); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.prot-grid b { font-size: 17px; }
.prot-grid span { font-size: 12.5px; color: var(--ink-2, #57534e); }
.prot-grid small { font-size: 11.5px; color: var(--muted); }
.prot-how summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.prot-how ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; color: var(--ink-2, #57534e); }

/* Sacola abandonada (28/09): quadro no Atendimento e página Sacola abandonada (menu Marketing) */
.cart-box { display: flex; flex-direction: column; gap: 4px; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius-sm); padding: 10px 12px; }
.cart-box .btn { margin-top: 6px; align-self: flex-start; }
.cart-box .rl-item { display: flex; flex-direction: column; gap: 2px; }
.cart-box .rl-item + .rl-item { border-top: 1px dashed var(--brand-100); padding-top: 6px; margin-top: 2px; }
.cart-sit { display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.35; padding: 3px 8px; border-radius: 8px; background: var(--line-2); color: var(--ink-2); max-width: 260px; }
.cart-sit.recuperada { background: var(--ok-50); color: var(--ok); }
.cart-sit.pedido { background: var(--info-50); color: var(--info); }
.cart-sit.lembrete { background: var(--brand-50); color: var(--brand-600); }
.cart-sit.fila, .cart-sit.montando { background: var(--warn-50); color: var(--warn); }
.trig-link { color: var(--brand); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 13px; text-align: left; }
.cart-auto .trig-ic.on { background: #dcfce7; color: #15803d; }

/* Visitantes (28/09): quem está no cardápio agora + reprodutor da gravação (rrweb) */
.side .pill.live { background: var(--ok); }
.live-now { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #d6d3d1; flex: none; display: inline-block; }
.live-dot.on { background: var(--ok); box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: live-pulse 1.8s infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); } 70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.lv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.lv-card { border: 1px solid var(--line); border-left: 4px solid #d6d3d1; border-radius: var(--radius-sm); padding: 12px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; background: #fff; min-width: 0; transition: box-shadow .15s; }
.lv-card:hover { box-shadow: var(--shadow); }
.lv-card.st-1, .lv-card.st-2 { border-left-color: var(--warn); }
.lv-card.st-3 { border-left-color: var(--brand); }
.lv-card.st-4 { border-left-color: var(--ok); }
.lv-dev { font-size: 18px; line-height: 1; }
.lv-state { font-weight: 700; font-size: 14px; line-height: 1.3; }
.lv-steps { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rr-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .rr-grid { grid-template-columns: 1fr; } }
.rr-stage { position: relative; width: 100%; min-height: 200px; background: #f5f5f4; border-radius: 12px; overflow: hidden; }
.rr-stage iframe { border: 0; background: #fff; }
.rr-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rr-bar input[type=range] { accent-color: var(--brand); min-width: 120px; }
.rr-steps { display: flex; flex-direction: column; margin-top: 8px; max-height: 62vh; overflow-y: auto; border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
.rr-step { display: flex; gap: 8px; align-items: baseline; padding: 7px 10px; font-size: 13px; border-bottom: 1px solid var(--line-2); }
.rr-step:last-child { border-bottom: 0; }
.rr-step.click { cursor: pointer; }
.rr-step.click:hover { background: var(--brand-50); }
.bar-row.click { cursor: pointer; border-radius: 8px; }
.bar-row.click:hover .bar-l span:first-child { color: var(--brand); text-decoration: underline; }

/* Pedido pelo chat (Atendimento → Novo pedido): o que o cliente escreveu vira rascunho do pedido */
.chat-draft { display: flex; flex-direction: column; gap: 4px; background: var(--info-50); border: 1px solid #dbeafe; border-radius: var(--radius-sm); padding: 10px 12px; }
.chat-draft .btn { margin-top: 6px; align-self: flex-start; }
.cd-check { display: inline-block; font-size: 11px; font-weight: 600; line-height: 16px; background: #fef3c7; color: #92400e; border-radius: 6px; padding: 0 6px; vertical-align: middle; }
.cd-unk { color: #b45309; }
.input.from-chat, .select.from-chat { background-color: var(--info-50); border-color: #93c5fd; }
.np-chat { border: 1px solid #dbeafe; background: #f8fbff; border-radius: var(--radius-sm); margin-bottom: 14px; transition: box-shadow .3s; }
.np-chat.flash { box-shadow: 0 0 0 3px rgba(37, 99, 235, .3); }
.np-chat-h { display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; flex-wrap: wrap; }
.np-chat-b { max-height: 132px; overflow-y: auto; padding: 0 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.np-msg { align-self: flex-start; max-width: 92%; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px 9px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.np-msg small { color: var(--muted); margin-left: 8px; font-size: 11px; }
.np-unk { padding: 0 12px 10px; color: #b45309; }
.np-from { color: var(--info); overflow-wrap: anywhere; }
/* Novo pedido: prêmio da roleta do cliente ("Usar neste pedido") */
.np-prize { display: flex; flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius-sm); padding: 8px 12px; overflow-wrap: anywhere; }
.np-prize .btn { flex: none; }
.np-zone-how { margin-top: -6px; color: var(--info); }

/* Só retirada (entrega pausada): aviso no modal Novo pedido */
.np-pickup { font-size: 13px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius-sm); padding: 8px 10px; }
@media (max-width: 640px) {
  .store-toggle { white-space: nowrap; }
  .store-toggle.pickup { padding: 6px 9px; gap: 5px; margin-right: 2px; }
  .store-toggle.pickup .muted { display: none; }
  .store-toggle.paused { padding: 6px 9px; gap: 5px; margin-right: 2px; }
  .store-toggle.paused .muted, .store-toggle.paused .lbl-full { display: none; }
  .store-toggle.paused .lbl-short { display: inline; }
  /* no celular o "(manual)" do botão da loja não cabe junto com os selos */
  .store-toggle.open .muted, .store-toggle.closed .muted { display: none; }
}
/* tela estreita (título comprido, IA ligada): o selo de pausa fica só com o ícone (o texto completo está no title) */
@media (max-width: 420px) {
  .store-toggle.paused .lbl-short { display: none; }
}
.pickup-card.on { border-color: #fcd34d; box-shadow: 0 0 0 3px rgba(245, 158, 11, .12); }
.sm-hint.closed-on { color: #b91c1c; font-weight: 600; }

/* IA no atendimento (views/admin/ia.ejs + Atendimento) */
.ia-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--violet-50); color: var(--violet); flex: none; }
.ia-ic .ic { width: 22px; height: 22px; }
.ia-state.on { border-color: #c4b5fd; box-shadow: 0 0 0 3px rgba(124, 58, 237, .1); }
.ia-state.on .ia-ic { background: var(--violet); color: #fff; }
.ia-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line-2); border-top: 1px solid var(--line-2); }
.ia-kpis > div { background: var(--card); padding: 10px 16px; display: flex; flex-direction: column; gap: 2px; }
.ia-kpis b { font-size: 18px; }
.ia-kpis span { font-size: 12px; color: var(--muted); }
.ia-ok { color: var(--ok); font-weight: 600; }
.ia-bad { color: var(--bad); }
.ia-chat { background: #efeae2; border-radius: var(--radius-sm); padding: 12px; height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.ia-msg { max-width: 78%; padding: 7px 10px; border-radius: 10px; font-size: 13.5px; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.ia-msg > span { white-space: pre-wrap; }
.pre-box { border: 1px solid #fed7aa; background: #fff7ed; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.np-pre { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 10px; padding: 7px 10px; margin-bottom: 10px; }
.ia-msg.note { align-self: center; background: transparent; box-shadow: none; padding: 2px 8px; font-style: italic; }
.ia-msg.them { align-self: flex-start; background: #fff; }
.ia-msg.me { align-self: flex-end; background: #ede9fe; }
.ia-msg small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.ia-msg.typing { color: var(--muted); font-style: italic; }
.ia-cell { max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg.ia { background: #ede9fe; }
.ia-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.ia-bar.on { border-color: #c4b5fd; background: var(--violet-50); }
.ia-bar .ia-ic { width: 32px; height: 32px; border-radius: 9px; }
.ia-bar .ia-ic .ic { width: 17px; height: 17px; }
.ia-handoff { margin: 6px 0 0; font-size: 12.5px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 4px 8px; }
.store-toggle.ia { background: var(--violet-50); border-color: #c4b5fd; color: var(--violet); margin-right: 6px; text-decoration: none; }
.store-toggle.ia .ic { width: 15px; height: 15px; }
@media (max-width: 640px) { .store-toggle.ia { padding: 6px 9px; } .store-toggle.ia .lbl { display: none; } }

/* Atendimento: aviso do modo supervisão (administrador) */
.sup-note { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--ink-2); background: var(--info-50); border: 1px solid #dbeafe; border-radius: var(--radius-sm); padding: 8px 12px; }
.sup-note .ic { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--info); }

/* Minhas entregas: instalar o app na tela inicial */
.cr-notif.cr-app { background: #eff6ff; border-color: #bfdbfe; }
.app-steps ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.45; }
.app-steps p { margin: 0; font-size: 14px; line-height: 1.45; }
.app-steps .ios-ic { display: inline-flex; vertical-align: middle; color: var(--info); }
.app-steps .ios-ic .ic { width: 16px; height: 16px; }

/* Modo de teste (Sistema → Modo de teste) */
.test-link { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 12px; border: 1px solid #ddd6fe; background: #f5f3ff; border-radius: 12px; }
.test-link img { border-radius: 8px; background: #fff; flex: none; }
.test-ddi { flex: none; font-weight: 650; font-size: 14px; color: var(--ink-2, #57534e); white-space: nowrap; }

/* Atendimento: botão do WhatsApp no cardápio (mesmo formato da barra da IA) */
.ia-bar .wa-ic { background: #dcfce7; color: #16a34a; }
.ia-bar.wa-on .wa-ic { background: #25d366; color: #fff; }

/* Atendimento: IA em silêncio porque a equipe respondeu (com "Devolver para a IA") */
.ia-quiet { margin: 0 12px 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 10px; border-radius: 10px;
  background: var(--violet-50); color: var(--violet); font-size: 12.5px; line-height: 1.35; }
.ia-quiet .btn { background: #fff; }

/* Alterar pedido já feito (partials/editar-pedido.ejs) */
.ed-note { padding: 8px 12px; border-radius: 10px; background: var(--violet-50); color: var(--violet); }
.ed-note.bad { background: var(--bad-50); color: var(--bad); }
.ed-line { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); }
.ed-line.gone b { text-decoration: line-through; color: var(--muted); }
.ed-new { border-color: #bbf7d0; background: #f0fdf4; }
.ed-err { color: var(--bad); }
.badge.alt { background: #fef3c7; color: #92400e; font-weight: 700; } /* pedido alterado depois de feito */
.od-change { padding: 6px 0; border-top: 1px dashed var(--line-2); }
.od-change:first-of-type { border-top: 0; }

/* Editor das instruções da IA (tela IA no atendimento): linhas numeradas, fundo com destaques (títulos, problemas, linha atual)
   atrás de um textarea transparente que cresce com o texto (o corretor ortográfico do navegador continua funcionando) */
.ins-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .ins-layout { grid-template-columns: minmax(0, 1fr); } }
.ins-editor { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fcfbf9; }
.ins-scroll { display: flex; align-items: flex-start; max-height: 68vh; min-height: 420px; overflow: auto; }
.ins-gutter { flex: none; position: relative; width: 46px; padding: 0; background: #f3f0eb; border-right: 1px solid var(--line); color: #a8a29e;
  font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-align: right; user-select: none; cursor: pointer; align-self: stretch; }
.ins-gutter div { position: absolute; left: 0; right: 0; padding-right: 9px; box-sizing: border-box; overflow: hidden; line-height: 22.3px; }
.ins-gutter div.h { color: var(--ink); font-weight: 700; }
.ins-gutter div.cur { color: var(--brand); font-weight: 700; }
.ins-gutter div.alta::before, .ins-gutter div.media::before, .ins-gutter div.baixa::before { content: ''; position: absolute; left: 6px; top: .62em; width: 7px; height: 7px; border-radius: 50%; }
.ins-gutter div.alta::before { background: var(--bad); }
.ins-gutter div.media::before { background: var(--warn); }
.ins-gutter div.baixa::before { background: #60a5fa; }
.ins-main { position: relative; flex: 1; min-width: 0; }
.ins-back, .ins-text { font: 13.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0; padding: 12px 14px; margin: 0;
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; tab-size: 2; box-sizing: border-box; }
.ins-back { position: absolute; inset: 0; color: transparent; pointer-events: none; }
.ins-back div.h { background: #fff1e6; box-shadow: inset 3px 0 0 var(--brand); }
.ins-back div.cur { background: rgba(28, 25, 23, .045); }
.ins-back div.baixa { background: #eff6ff; }
.ins-back div.media { background: #fef3c7; }
.ins-back div.alta { background: #fee2e2; }
.ins-text { position: relative; display: block; width: 100%; min-height: 420px; border: 0; outline: 0; resize: none; overflow: hidden; background: transparent;
  color: var(--ink); caret-color: var(--brand); }
.ins-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 12px; border-top: 1px solid var(--line); background: #f7f5f2; color: var(--ink-2, #44403c); }
.ins-dirty { color: #b45309; font-weight: 600; }
.ok-txt { color: var(--ok); }
.ins-review { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; max-height: calc(68vh + 40px); overflow: auto; }
.ins-rev-h { margin-bottom: 8px; }
.ins-issue { border: 1px solid var(--line); border-left: 4px solid #93c5fd; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; display: grid; gap: 6px; }
.ins-issue.alta { border-left-color: var(--bad); }
.ins-issue.media { border-left-color: var(--warn); }
.ins-issue.done, .ins-issue.ignored { opacity: .55; }
.ins-ln { border: 1px solid var(--line); background: #f7f5f2; border-radius: 99px; padding: 1px 8px; font-size: 11.5px; cursor: pointer; color: var(--ink); }
.ins-ln:hover { border-color: var(--brand); color: var(--brand); }
.ins-fix { background: #f0fdf4; border: 1px dashed #86efac; border-radius: 8px; padding: 6px 8px; display: grid; gap: 4px; }
.badge.g-alta { background: #fee2e2; color: #b91c1c; }
.badge.g-media { background: var(--warn-50); color: #b45309; }
.badge.g-baixa, .badge.g-escrita { background: #eff6ff; color: #1d4ed8; }
/* tela cheia: o editor ocupa a tela (Esc sai) */
/* abaixo da barra do topo (z-index 30): o alarme de pedido aguardando aceite e os avisos continuam à vista */
.ins-backdrop { position: fixed; inset: 0; z-index: 28; background: rgba(28, 25, 23, .45); }
.ins-card.full { position: fixed; top: 76px; left: calc(var(--side-w) + 12px); right: 12px; bottom: 12px; z-index: 29; margin: 0; overflow: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.ins-lost { color: #b45309; }
.ins-card.full .ins-scroll { max-height: calc(100vh - 270px); }
.ins-card.full .ins-review { max-height: calc(100vh - 230px); }
@media (max-width: 800px) { .ins-scroll { max-height: 60vh; min-height: 320px; } .ins-text { min-height: 320px; } .ins-back, .ins-text { font-size: 13px; } .ins-foot .grow { flex-basis: 100%; } }
/* menu lateral escondido (telas menores): a tela cheia começa na borda */
@media (max-width: 1024px) { .ins-card.full { left: 12px; } }

/* iFood: app (configuração técnica) e autorização da loja (app distribuído, igual ao Suitable) */
.ifood-app summary { cursor: pointer; }
.ifood-code { background: var(--bg-2, #f6f6f4); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px; }
.ifood-code-v { font: 700 26px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; color: #ea1d2c; }

/* iFood: pedido AGENDADO (janela do cliente; "Saiu para entrega" só a partir do início) */
.badge.agendado { background: #eef2ff; color: #3730a3; border: 1px solid #c7d2fe; }
.od-agendado { font-size: 13px; font-weight: 600; color: #3730a3; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: var(--radius-sm); padding: 8px 10px; }

/* ---------------------------------------------------------------- roleta de prêmios (/admin/roleta) */
.rl-mini { width: 132px; height: 132px; flex: none; }
.rl-mini .rl-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.rl-rotor { transform-origin: 0 0; }
.rl-txt { font-weight: 800; font-family: var(--font, sans-serif); }
.rl-hub { font-size: 24px; }
.rl-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; border: 1px solid rgba(0, 0, 0, .1); }
.rl-rule { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.rl-rule.off { opacity: .6; }
.rl-rule-n { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; font-weight: 800; flex: none; }
.rl-default { background: #fcfbfa; border-style: dashed; }
.cart-sit.usou { background: var(--ok-50); color: var(--ok); }
.cart-sit.girou, .cart-sit.abriu { background: var(--brand-50); color: var(--brand-600); }
.cart-sit.enviado { background: var(--info-50); color: var(--info); }
.cart-sit.falhou, .cart-sit.cancelado { background: #fef2f2; color: var(--bad); }
.cart-sit.pulado, .cart-sit.venceu { background: var(--line-2); color: var(--muted); }
.wa-preview.rl-msg-prev, .card-b > .wa-preview { white-space: pre-wrap; font-size: 13.5px; }

/* ---------------------------------------------------------------- Scale Delivery: avisos da assinatura */
.saas-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 24px; font-size: 13px; border-bottom: 1px solid var(--line); background: var(--info-50); color: #1e3a8a; }
.saas-bar.warn { background: var(--warn-50); color: #78350f; border-bottom-color: #fde68a; }
.saas-bar.support { background: var(--violet-50); color: #5b21b6; border-bottom-color: #ddd6fe; }
@media (max-width: 640px) { .saas-bar { padding: 8px 12px; } }

/* ---------- Caixa (PDV de balcão) ---------- */
.pdv-op { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.pdv-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pdv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 16px; align-items: start; }
.pdv-prods { min-width: 0; }
.pdv-cats { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; }
.pdv-cats .btn { white-space: nowrap; }
.pdv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pdv-p { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-height: 76px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; cursor: pointer; font: inherit; color: inherit; }
.pdv-p:hover { border-color: var(--brand, #e0612f); }
.pdv-p:active { transform: scale(.98); }
.pdv-p b { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.pdv-p.off { opacity: .5; }
.pdv-sale { position: sticky; top: 12px; }
.pdv-line { display: flex; align-items: center; gap: 8px; border-bottom: 1px dashed var(--line-2); padding-bottom: 8px; }
.pdv-qty { display: flex; align-items: center; gap: 4px; }
.pdv-qty .num { min-width: 20px; text-align: center; }
.pdv-total { display: flex; align-items: baseline; justify-content: space-between; font-size: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
.pdv-total b { font-size: 26px; }
.pdv-pay { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pdv-senha { font-size: 64px; font-weight: 800; line-height: 1; margin: 6px 0 12px; }
@media (max-width: 900px) { .pdv { grid-template-columns: minmax(0, 1fr); } .pdv-sale { position: static; } }
/* Venda rápida (3 áreas: venda | produtos | pagamento) */
.pdv3 { grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) minmax(300px, 340px); gap: 14px; }
.pdv3 .pdv-sale, .pdv3 .pdv-payc { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.pdv-lines { display: flex; flex-direction: column; gap: 6px; }
.pdv-line.sel { background: var(--brand-50, #fff4ee); border-radius: 8px; padding: 6px; margin: 0 -6px; border-bottom-color: transparent; }
.pdv-code .input { font-size: 17px; height: 46px; }
.pdv-favs { margin-top: 10px; }
.pdv-fav-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 6px; }
.pdv-fav { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px; border-radius: 12px; border: 1px solid var(--brand, #e0612f); background: var(--brand-50, #fff4ee); cursor: pointer; font: inherit; color: inherit; min-height: 58px; }
.pdv-fav span { font-weight: 700; font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; }
.pdv-fav small { color: var(--muted); }
.pdv-fav.off { opacity: .5; }
.pdv-fav:active { transform: scale(.97); }
.pdv-p { position: relative; }
.pdv-cod { position: absolute; top: 6px; right: 8px; font-size: 11px; color: var(--muted); }
.pdv-p b { padding-right: 22px; }
.pdv-keys { margin-top: 14px; line-height: 2; }
.pdv-keys-btn { margin-top: 12px; }
kbd { display: inline-block; min-width: 18px; padding: 0 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; font: 600 11px/16px ui-monospace, monospace; text-align: center; background: #fff; color: var(--muted); }
.btn.primary kbd { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.4); }
.pdv-payc .pdv-total b { font-size: 34px; }
.pdv-cash { display: flex; gap: 6px; flex-wrap: wrap; }
.pdv-cash .btn.sm { flex: 1 1 70px; justify-content: center; }
.pdv-troco { text-align: right; padding: 6px 10px; border-radius: 10px; background: var(--ok-50, #ecfdf5); color: var(--ok); min-width: 110px; }
.pdv-troco b { display: block; font-size: 22px; }
.pdv-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pdv-methods .btn { justify-content: center; }
.pdv-fin { width: 100%; justify-content: center; min-height: 52px; font-size: 17px; }
.pdv-fin-k { min-height: 44px; font-size: 15px; margin-top: 6px; }
.pdv-done { display: flex; padding: 10px 14px; margin-bottom: 12px; border-radius: 12px; background: var(--ok-50, #ecfdf5); border: 1px solid var(--ok); }
.pdv-done-n { font-size: 30px; line-height: 1; }
.pdv-done-troco { font-size: 18px; } .pdv-done-troco b { font-size: 24px; color: var(--ok); }
.pdv-mbar { display: none; }
@media (max-width: 1199px) {
  .pdv3 { grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); grid-template-rows: auto 1fr; }
  .pdv3 .pdv-payc { align-self: start; }
  .pdv3 .pdv-prods { grid-column: 1; grid-row: 1 / span 2; }
  .pdv3 .pdv-sale { grid-column: 2; position: static; max-height: none; }
  .pdv3 .pdv-payc { grid-column: 2; position: static; max-height: none; }
}
@media (max-width: 767px) {
  .pdv3 { grid-template-columns: minmax(0, 1fr); }
  .pdv3 .pdv-prods, .pdv3 .pdv-sale, .pdv3 .pdv-payc { grid-column: 1; grid-row: auto; }
  .pdv3 .pdv-prods { order: 1; } .pdv3 .pdv-sale { order: 2; } .pdv3 .pdv-payc { order: 3; margin-bottom: 70px; }
  .pdv-keys, .pdv-keys-btn { display: none !important; }
  .pdv-fav-row > button:nth-of-type(n+7) { display: none; }
  .pdv-mbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--ink, #1c1917); color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
}

/* ---------- Tela da cozinha (KDS) — views/admin/cozinha.ejs ---------- */
.kds { --k-bg: #f4f2ef; --k-card: #fff; --k-ink: #1c1917; --k-mut: #78716c; --k-line: #e7e5e4; --k-ok: #15803d; --k-warn: #ca8a04; --k-late: #dc2626; --k-sched: #2563eb; }
.kds.dark { --k-bg: #0f0d0b; --k-card: #1c1916; --k-ink: #f5f5f4; --k-mut: #a8a29e; --k-line: #33302c; }
.kds.dark { background: var(--k-bg); color: var(--k-ink); margin: -24px; padding: 16px 24px 24px; min-height: calc(100vh - 64px); }
.kds-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.kds.dark .kds-bar .btn { background: #26221e; color: var(--k-ink); border-color: var(--k-line); }
.kds.dark .seg { background: #26221e; } .kds.dark .seg button { color: var(--k-mut); } .kds.dark .seg button.on { background: #3a342e; color: #fff; }
.kds-count { font-size: 15px; } .kds-late-n { color: var(--k-late); }
.kds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; align-items: start; }
.kds-t { background: var(--k-card); border: 1px solid var(--k-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; border-top: 8px solid var(--k-ok); }
.kds-t.warn { border-top-color: var(--k-warn); } .kds-t.late { border-top-color: var(--k-late); } .kds-t.sched { border-top-color: var(--k-sched); }
.kds-t.late .kds-time b { color: var(--k-late); } .kds-t.warn .kds-time b { color: var(--k-warn); }
.kds-t.flash { animation: kdsflash 1s ease-in-out 4; }
@keyframes kdsflash { 50% { box-shadow: 0 0 0 4px #f59e0b; } }
.kds-h { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px 6px; }
.kds-num b { display: block; font-size: 26px; line-height: 1.05; font-weight: 800; }
.kds-num span { font-size: 13px; color: var(--k-mut); font-weight: 600; }
.kds-time { text-align: right; } .kds-time b { font-size: 24px; font-variant-numeric: tabular-nums; } .kds-time span { font-size: 13px; color: var(--k-sched); font-weight: 700; }
.kds-who { padding: 0 12px 6px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.kds-chg { margin: 0 12px 6px; padding: 6px 8px; border-radius: 8px; background: #fef3c7; color: #78350f; font-size: 13px; display: flex; flex-direction: column; }
.kds-items { list-style: none; margin: 0; padding: 4px 6px; border-top: 1px solid var(--k-line); }
.kds-items li { display: flex; gap: 8px; padding: 8px 6px; border-radius: 8px; cursor: pointer; user-select: none; }
.kds-items li:hover { background: rgba(120, 113, 108, .08); }
.kds-items li + li { border-top: 1px dashed var(--k-line); }
.kds-ck { flex: none; width: 24px; height: 24px; border: 2px solid var(--k-mut); border-radius: 7px; display: grid; place-items: center; margin-top: 1px; }
.kds-ck .ic { width: 16px; height: 16px; opacity: 0; }
.kds-items li.done .kds-ck { background: var(--k-ok); border-color: var(--k-ok); color: #fff; } .kds-items li.done .kds-ck .ic { opacity: 1; }
.kds-items li.done .kds-it, .kds-items li.done .kds-op { text-decoration: line-through; opacity: .5; }
.kds-it { font-size: 18px; line-height: 1.25; } .kds-it b { font-weight: 800; }
.kds-stag { font-size: 11px; font-weight: 700; color: var(--k-mut); border: 1px solid var(--k-line); border-radius: 6px; padding: 0 5px; margin-left: 4px; vertical-align: middle; }
.kds-op { font-size: 14px; color: var(--k-mut); }
.kds-obs { margin-top: 3px; font-size: 14px; font-weight: 700; background: #fde68a; color: #713f12; border-radius: 6px; padding: 2px 6px; display: inline-block; }
.kds-note { margin: 4px 12px 0; font-size: 14px; font-weight: 700; color: #b45309; }
.kds.dark .kds-note { color: #fbbf24; }
.kds-wait { margin: 6px 12px 0; font-size: 13px; color: var(--k-sched); font-weight: 700; }
.kds-warn { margin: 6px 12px 0; font-size: 13px; color: var(--k-late); font-weight: 600; }
.kds-f { display: flex; align-items: center; gap: 8px; padding: 10px 12px 12px; margin-top: auto; }
.kds-f .small { flex: 1; }
.kds-go { min-height: 46px; font-size: 16px; padding: 0 18px; }
.kds-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 60px 16px; text-align: center; }
.kds-empty .ic { width: 48px; height: 48px; opacity: .4; }
.kds-rec { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.kds-cats { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.kds-cat { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.kds .overlay { color: var(--ink, #1c1917); }
/* tela cheia: sem menu nem barra do topo (TV/tablet da cozinha) */
body.kds-tv .side, body.kds-tv header.top { display: none; }
body.kds-tv .main { margin-left: 0; }
body.kds-tv .content { max-width: none; padding: 12px; }
body.kds-tv .kds.dark { margin: -12px; padding: 12px; min-height: 100vh; }
@media (max-width: 760px) { .kds.dark { margin: -12px; padding: 12px; } .kds-hide-sm { display: none; } .kds-grid { grid-template-columns: 1fr; } }
.kds .kds-go { background: #16a34a; border-color: #16a34a; color: #fff; }
.kds .kds-go:hover { background: #15803d; }
.kds-stag { white-space: nowrap; }
.kds.dark .hint { background: #1e293b; color: #cbd5e1; border-color: #334155; }
.kds.dark .hint.warn { background: #422006; color: #fde68a; border-color: #713f12; }

/* ---------- Pergunte à IA — views/admin/pergunte.ejs ---------- */
.ask { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.ask-box { display: flex; flex-direction: column; height: calc(100vh - 150px); min-height: 420px; overflow: hidden; }
.ask-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.ask-hello { margin: 0 auto; text-align: center; max-width: 620px; padding: 12px; }
.ask-hello h3 { margin: 8px 0 4px; font-size: 20px; }
.ask-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin: 0 auto; background: #f3e8ff; color: #7c3aed; }
.ask-ico .ic { width: 24px; height: 24px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.ask-chips .chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.ask-chips .chip:hover:not(:disabled) { border-color: #7c3aed; color: #6d28d9; }
.ask-m { display: flex; flex-direction: column; max-width: 88%; }
.ask-m.user { align-self: flex-end; align-items: flex-end; }
.ask-m.assistant { align-self: flex-start; }
.ask-bubble { padding: 10px 14px; border-radius: 16px; line-height: 1.5; font-size: 14.5px; overflow-wrap: anywhere; }
.ask-m.user .ask-bubble { background: #7c3aed; color: #fff; border-bottom-right-radius: 4px; }
.ask-m.user .ask-bubble span { white-space: pre-wrap; }
.ask-m.assistant .ask-bubble { background: #f5f5f4; border-bottom-left-radius: 4px; }
.ask-md p { margin: 0 0 6px; } .ask-md p:last-child { margin-bottom: 0; }
.ask-md ul, .ask-md ol { margin: 4px 0 8px; padding-left: 20px; }
.ask-md .table-wrap { margin: 6px 0; background: #fff; border-radius: 10px; }
.ask-md .t th, .ask-md .t td { padding: 6px 10px; font-size: 13px; }
.ask-meta { margin-top: 3px; padding: 0 6px; }
.ask-typing span:not(.small) { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #a8a29e; margin-right: 3px; animation: askdot 1.2s infinite; }
.ask-typing span:nth-child(2) { animation-delay: .2s; } .ask-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes askdot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.ask-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-2); align-items: flex-end; }
.ask-form textarea { flex: 1; resize: none; min-height: 42px; max-height: 160px; line-height: 1.4; }
.ask-form .btn { min-height: 42px; }
.ask-foot { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 10px; gap: 8px; }
@media (max-width: 640px) { .ask-box { height: calc(100vh - 120px); } .ask-msgs { padding: 12px; } .ask-m { max-width: 96%; } .ask-hide-sm { display: none; } }
.ask-chips .chip { white-space: normal; text-align: left; }
.side .pill.warn { background: #d97706; } .side .pill.bad { background: var(--bad); }

/* ---------- Estoque (modelo do Suitable) — views/admin/estoque.ejs ---------- */
.est-tabs { align-self: flex-start; flex-wrap: wrap; }
.est-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.est-t td { vertical-align: middle; }
.est-click { cursor: pointer; } .est-click:hover td { background: #fafaf9; }
.est-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }
.est-dot.verde { background: #16a34a; } .est-dot.amarelo { background: #eab308; } .est-dot.vermelho { background: #dc2626; }
td.est-vermelho { color: var(--bad); font-weight: 700; } td.est-amarelo { color: #a16207; font-weight: 700; }
.est-num { width: 96px; text-align: right; padding: 6px 8px; display: inline-block; }
.est-unit { width: 74px; padding: 6px 6px; }
.est-line { display: grid; grid-template-columns: minmax(0, 1fr) 96px 74px auto; gap: 6px; align-items: center; }
.est-mvt select.input { min-width: 180px; }
.est-rev { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.est-comp { padding: 0 16px 16px; }
.est-compp { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.est-compg { margin: 6px 0 0 10px; }
.est-compo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 4px 0 4px 10px; }
.est-compo > span:first-child { min-width: 140px; font-weight: 600; }
.est-compo .btn { margin-left: auto; }
@media (max-width: 640px) { .est-kpis { gap: 8px; } .est-line { grid-template-columns: minmax(0, 1fr) 80px 66px auto; } .est-num { width: 80px; } }
.est-mvh, .est-mvr { display: grid; grid-template-columns: minmax(0, 1fr) 84px 76px 30px; gap: 6px; align-items: center; }
.est-mvt.ent .est-mvh, .est-mvt.ent .est-mvr { grid-template-columns: minmax(0, 1fr) 84px 76px 96px 84px 30px; }
.est-mvr { margin-bottom: 6px; } .est-mvr .input { padding: 7px 8px; } .est-mvr .num { text-align: right; }
.est-line .input.est-unit, .est-line .input.est-num { width: auto; }
@media (max-width: 640px) {
  .est-mvt.ent .est-mvh { display: none; }
  .est-mvt.ent .est-mvr { grid-template-columns: 1fr 1fr 30px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
  .est-mvt.ent .est-mvr select:first-child { grid-column: 1 / -1; }
}
.est-units { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.est-units .chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.est-quick { border: 1px dashed var(--line); border-radius: 12px; padding: 10px; background: #fafaf9; }
.est-start .est-steps { display: grid; gap: 10px; }
.est-step { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line-2); border-radius: 12px; }
.est-step > b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; }
.est-step > div { display: flex; flex-direction: column; }
.ok-msg { color: var(--ok); font-weight: 600; }
@media (max-width: 640px) { .est-step { grid-template-columns: 30px 1fr; } .est-step .btn { grid-column: 1 / -1; } }
.est-auto { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-left: 4px solid #d97706; background: #fffbeb; }
.est-auto.on { border-left-color: var(--ok); background: #f0fdf4; }
.est-auto { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-left: 4px solid #d97706; background: #fffbeb; }
.est-auto.on { border-left-color: var(--ok); background: #f0fdf4; }
/* selo dos apps de pedido: iFood vermelho (padrão .badge.ifood), 99Food amarelo-ouro, Keeta amarelo */
.badge.ifood.app-99food { background: #ffb800; color: #1c1917; } .badge.ifood.app-keeta { background: #ffd100; color: #1c1917; }

/* ---------- Financeiro (views/admin/financeiro.ejs) ---------- */
.fin-tabs { flex-wrap: nowrap; overflow-x: auto; }
.fin-tabs .pill { margin-left: 4px; }
.fin-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fin-kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fin-click { cursor: pointer; }
.fin-click:hover { filter: brightness(.98); }
.fin-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fin-filters .input { width: auto; max-width: 210px; }
.fin-setup { border-left: 4px solid #d97706; background: #fffbeb; }
.fin-t tr.late td:first-child { color: var(--bad); font-weight: 600; }
.t tr.done td { opacity: .6; }
.t tr.fin-group td { background: var(--soft, #f6f7f9); font-weight: 600; font-size: .86em; }
.neg { color: var(--bad); }
.pos { color: var(--ok); }
.nowrap { white-space: nowrap; }
.fin-accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.fin-acc { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 2px solid transparent; }
.fin-acc.on { border-color: var(--brand, #e2572b); }
.fin-acc .k-val { font-size: 1.25em; font-weight: 700; }
.fin-dre-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.fin-dre td { padding-top: 7px; padding-bottom: 7px; }
.fin-dre tr.sub td:first-child { padding-left: 28px; color: var(--muted, #6b7280); font-size: .92em; }
.fin-dre tr.big td { font-weight: 600; }
.fin-dre tr.total td { font-weight: 700; font-size: 1.08em; border-top: 2px solid var(--line, #e5e7eb); }
.fin-methods .input { min-width: 0; }
.fin-methods .input.num, .fin-t .input.num { width: 76px; text-align: right; }
@media (max-width: 900px) { .fin-dre-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .fin-kpis, .fin-kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .fin-filters .input { max-width: 100%; flex: 1 1 140px; } }
/* entrada pela nota (XML): item da nota à esquerda, ligação ao estoque à direita (no celular um embaixo do outro) */
.ifl-state { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.nf-head { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 12px; border-radius: 10px; background: var(--soft, #f6f7f9); }
.nf-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.nf-row.off .nf-info b { color: var(--muted); }
.nf-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.nf-pick { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
@media (max-width: 640px) { .nf-row { grid-template-columns: 1fr; } }
.est-pay { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--soft, #f6f7f9); }

/* ---------- Mesas e garçom (views/admin/mesas.ejs) ---------- */
.ms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ms-card { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 12px; border-radius: 14px; border: 2px solid transparent; background: #ecfdf3; color: inherit; cursor: pointer; min-height: 96px; font: inherit; }
.ms-card.ocupada { background: #fef2f2; } .ms-card.parcial { background: #fffbeb; }
.ms-card.call, .ms-card.req { border-color: #dc2626; animation: msPulse 1.4s ease-in-out infinite; }
@keyframes msPulse { 50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, .18); } }
.ms-name { font-size: 1.25em; } .ms-total { font-weight: 700; font-size: 1.1em; }
.ms-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ms-dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; } .ms-dot.livre { background: #bbf7d0; } .ms-dot.ocupada { background: #fecaca; } .ms-dot.parcial { background: #fde68a; }
.ms-areas, .ms-coms, .ms-cats { flex-wrap: nowrap; overflow-x: auto; }
.ms-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ms-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .ms-filters .input { width: auto; max-width: 180px; }
.ms-new { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ms-modal { width: min(820px, 100%); } .ms-req { border-left: 4px solid #dc2626; }
.ms-items { display: flex; flex-direction: column; gap: 10px; } .ms-round { display: flex; flex-direction: column; gap: 2px; }
.ms-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line, #e5e7eb); }
.ms-q { min-width: 28px; font-weight: 700; text-align: center; }
.ms-sum { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--soft, #f6f7f9); }
.ms-tot { font-weight: 700; font-size: 1.1em; border-top: 1px solid var(--line, #e5e7eb); padding-top: 6px; margin-top: 2px; } .ms-rest { font-weight: 700; color: var(--bad); }
.ms-pick { width: min(1000px, 100%); } .ms-pick-b { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.ms-prods { display: flex; flex-direction: column; gap: 6px; max-height: 58vh; overflow: auto; }
.ms-prod { display: flex; gap: 8px; align-items: center; text-align: left; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line, #e5e7eb); background: #fff; font: inherit; color: inherit; cursor: pointer; }
.ms-prod.off { opacity: .5; }
.ms-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-opt { display: flex; gap: 6px; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line, #e5e7eb); background: #fff; font: inherit; color: inherit; cursor: pointer; }
.ms-opt.on { border-color: var(--brand, #e2572b); background: #fff1eb; font-weight: 600; }
@media (max-width: 760px) {
  .ms-pick-b { grid-template-columns: minmax(0, 1fr); } .ms-prods { max-height: 42vh; } .ms-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-over .modal { width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; margin: 0; }
  .ms-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
}

/* Central de Ajuda (views/admin/ajuda.ejs) */
.help-page { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.help-list { padding: 16px; position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; }
.help-group { margin-bottom: 14px; }
.help-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted, #78716c); font-weight: 700; margin: 6px 0; }
.help-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: inherit; }
.help-item:hover { background: #f5f2ef; }
.help-item.on { background: var(--brand-50, #fff3ee); box-shadow: inset 2px 0 0 var(--brand); }
.help-art { padding: 24px; min-height: 300px; }
.help-title { margin: 4px 0 14px; font-size: 22px; letter-spacing: -.02em; }
.help-body { line-height: 1.6; font-size: 15px; max-width: 760px; }
.help-body h2 { font-size: 18px; margin: 22px 0 8px; }
.help-body h3 { font-size: 15.5px; margin: 18px 0 6px; }
.help-body ul, .help-body ol { padding-left: 22px; margin: 8px 0; }
.help-body li { margin: 4px 0; }
.help-body code { font-family: inherit; font-weight: 600; background: #fff; border: 1px solid var(--line); padding: 1px 7px; border-radius: 7px; font-size: .92em; white-space: nowrap; } /* nome de botão da tela */
.help-body a { color: var(--brand); }
.help-tip { background: var(--brand-50, #fff3ee); border-left: 3px solid var(--brand); padding: 10px 14px; border-radius: 8px; margin: 12px 0; }
.help-back { display: none; margin-bottom: 8px; }
.help-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: inherit; text-decoration: none; font-weight: 800; flex: none; }
.help-btn:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 900px) {
  .help-page { grid-template-columns: 1fr; }
  .help-list { position: static; max-height: none; }
  .help-page .m-hide { display: none; }
  .help-back { display: inline-flex; }
  .help-art { padding: 16px 12px; }
}

/* ---------- App do garçom (celular, tela escura) — views/admin/garcom.ejs ---------- */
body.gw { --g-bg: #121212; --g-card: #1e1e1e; --g-card2: #262626; --g-ink: #f5f5f4; --g-mut: #a8a29e; --g-line: #2e2e2e; --g-acc: #3b82f6; --g-free: #4ade80; --g-busy: #f87171; --g-part: #facc15;
  margin: 0; background: var(--g-bg); color: var(--g-ink); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; min-height: 100vh; padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.gw .grow { flex: 1; min-width: 0; }
.gw .num { font-variant-numeric: tabular-nums; }
.gw-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: var(--g-bg); border-bottom: 1px solid var(--g-line); }
.gw-title b { display: block; font-size: 18px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-title span { display: block; font-size: 12px; color: var(--g-mut); }
.gw-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 0; background: transparent; color: var(--g-ink); cursor: pointer; }
.gw-ic .ic { width: 22px; height: 22px; }
.gw-ic:active { background: var(--g-card2); }
.gw-areas, .gw-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; }
.gw-areas button, .gw-chips button { flex: none; border: 1px solid var(--g-line); background: var(--g-card); color: var(--g-ink); border-radius: 99px; padding: 7px 14px; font-family: inherit; font-weight: 600; font-size: 13px; display: inline-flex; gap: 4px; align-items: center; }
.gw-areas button.on, .gw-chips button.on { background: var(--g-acc); border-color: var(--g-acc); }
.gw-chips .ic { width: 14px; height: 14px; }
.gw-main { padding: 12px; }
.gw-stack { display: flex; flex-direction: column; gap: 12px; }
.gw-row { display: flex; align-items: center; gap: 8px; }
.gw-small { font-size: 12px; color: var(--g-mut); display: block; }
.gw-lbl { display: block; font-size: 12px; color: var(--g-mut); margin-bottom: 6px; }
.gw-empty { color: var(--g-mut); text-align: center; padding: 32px 12px; }
.gw-empty.sm { padding: 12px; }
.gw-alert { display: flex; gap: 12px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; background: #3b2a06; color: #fde68a; font-weight: 700; font-size: 14px; }
/* mapa */
.gw-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.gw-t { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-height: 76px; padding: 0 0 6px; border-radius: 10px; border: 0; background: var(--g-card); color: var(--g-ink); cursor: pointer; font: inherit; overflow: hidden; }
.gw-t-name { display: block; padding: 4px 4px; font-size: 12px; font-weight: 800; color: #052e16; background: var(--g-free); }
.gw-t.st-ocupada .gw-t-name { background: var(--g-busy); color: #450a0a; }
.gw-t.st-parcial .gw-t-name { background: var(--g-part); color: #422006; }
.gw-t-info { display: flex; gap: 3px; justify-content: center; font-size: 11px; color: var(--g-mut); min-height: 15px; }
.gw-t-val { font-size: 12px; font-weight: 700; }
.gw-t.call, .gw-t.req { box-shadow: 0 0 0 2px #facc15; animation: gwPulse 1.2s ease-in-out infinite; }
@keyframes gwPulse { 50% { box-shadow: 0 0 0 4px rgba(250, 204, 21, .35); } }
.gw-t:active { transform: scale(.97); }
.gw-legend { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 16px; font-size: 12px; color: var(--g-mut); }
.gw-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; background: var(--g-free); }
.gw-legend i.st-ocupada { background: var(--g-busy); } .gw-legend i.st-parcial { background: var(--g-part); }
/* cartões, botões, campos */
.gw-card { background: var(--g-card); border-radius: 14px; padding: 14px; }
.gw-call { display: flex; align-items: center; gap: 10px; background: #3b2a06; color: #fde68a; } .gw-call b { flex: 1; }
.gw-req { background: #10233f; display: flex; flex-direction: column; gap: 8px; }
.gw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 16px; background: var(--g-acc); color: #fff; font-family: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.gw-btn .ic { width: 18px; height: 18px; }
.gw-btn.sm { padding: 8px 12px; font-size: 13px; }
.gw-btn.big { width: 100%; min-height: 54px; font-size: 16px; }
.gw-btn.ghost { background: transparent; border: 1px solid var(--g-line); color: var(--g-ink); }
.gw-btn:disabled { opacity: .45; }
.gw-btn:active:not(:disabled) { transform: scale(.98); }
.gw-link { border: 0; background: none; color: var(--g-acc); font-family: inherit; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.gw-link .ic { width: 14px; height: 14px; }
.gw-in { width: 100%; box-sizing: border-box; background: var(--g-card2); border: 1px solid var(--g-line); color: var(--g-ink); border-radius: 10px; padding: 12px; font-family: inherit; font-weight: 500; font-size: 16px; }
.gw-in:focus { outline: 2px solid var(--g-acc); border-color: transparent; }
.gw-steps { display: inline-flex; align-items: center; gap: 4px; background: var(--g-card2); border-radius: 12px; padding: 4px; }
.gw-steps button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--g-card); color: var(--g-ink); font-family: inherit; font-weight: 700; font-size: 22px; }
.gw-steps b { min-width: 48px; text-align: center; font-size: 20px; }
/* consumo */
.gw-round { padding-top: 10px; margin-top: 10px; border-top: 1px solid var(--g-line); }
.gw-line { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.gw-line + .gw-line { border-top: 1px dashed var(--g-line); }
.gw-sum { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; font-size: 14px; }
.gw-sum > div { display: flex; justify-content: space-between; }
.gw-sum .tot { font-size: 16px; padding-top: 8px; border-top: 1px solid var(--g-line); } .gw-sum .tot b { font-size: 20px; }
/* cardápio */
.gw-menu { padding-top: 0; }
.gw-search { position: sticky; top: 61px; z-index: 20; padding: 8px 0; background: var(--g-bg); }
.gw-cats { position: sticky; top: 61px; z-index: 20; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; margin: 0 -12px; padding-left: 12px; padding-right: 12px; background: var(--g-bg); scrollbar-width: none; }
.gw-cats button { flex: none; width: 84px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; border: 0; border-radius: 12px; background: transparent; color: var(--g-ink); font-family: inherit; font-weight: 600; font-size: 12px; text-align: center; line-height: 1.2; }
.gw-cats button.on { background: var(--g-card2); outline: 1px solid var(--g-acc); }
.gw-cat-ic { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--g-card2); }
.gw-cat-ic img { width: 100%; height: 100%; object-fit: cover; }
.gw-cat-ic b { font-size: 18px; color: var(--g-mut); }
.gw-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
@media (min-width: 560px) { .gw-prods { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.gw-p { display: flex; flex-direction: column; background: var(--g-card); border-radius: 12px; overflow: hidden; border: 1px solid transparent; }
.gw-p.sel { border-color: var(--g-acc); }
.gw-p.off { opacity: .45; }
.gw-p-img { aspect-ratio: 1 / .8; border: 0; padding: 0; background: var(--g-card2); display: grid; place-items: center; cursor: pointer; }
.gw-p-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gw-p-img span { font-size: 28px; font-weight: 800; color: var(--g-mut); }
.gw-p-txt { flex: 1; text-align: left; border: 0; background: transparent; color: var(--g-ink); padding: 8px 8px 4px; font: inherit; cursor: pointer; }
.gw-p-txt b { display: block; font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.gw-p-txt span { display: block; font-size: 12px; color: var(--g-mut); margin-top: 4px; }
.gw-p-act { padding: 4px 8px 8px; }
.gw-add { width: 100%; border: 0; background: transparent; color: var(--g-acc); font-family: inherit; font-weight: 700; font-size: 13px; padding: 6px 0; cursor: pointer; }
.gw-qty { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.gw-qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--g-line); background: transparent; color: var(--g-ink); display: grid; place-items: center; }
.gw-qty button.plus { background: var(--g-acc); border-color: var(--g-acc); color: #fff; }
.gw-qty button .ic { width: 16px; height: 16px; }
.gw-qty b { font-size: 15px; }
.gw-qty.sm { gap: 8px; }
/* barra de baixo */
.gw-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--g-bg) 30%); }
.gw-bar.static { position: static; background: none; padding: 12px; }
.gw-badge { min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: rgba(255,255,255,.25); display: inline-grid; place-items: center; font-size: 13px; }
/* produto em passos */
.gw-sheet { position: fixed; inset: 0; z-index: 60; background: var(--g-bg); display: flex; flex-direction: column; }
.gw-sheet.center { background: rgba(0,0,0,.7); align-items: center; justify-content: center; padding: 16px; }
.gw-sheet-in { display: flex; flex-direction: column; height: 100%; }
.gw-sheet-b { flex: 1; overflow-y: auto; padding: 0 12px 12px; }
.gw-hint { padding: 10px 2px; }
.gw-limit { flex: none; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 6px; background: var(--g-card2); color: var(--g-mut); text-transform: uppercase; }
.gw-opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 4px; border: 0; border-bottom: 1px solid var(--g-line); background: transparent; color: var(--g-ink); text-align: left; font: inherit; cursor: pointer; }
.gw-opt b { font-size: 15px; font-weight: 600; }
.gw-opt i { flex: none; width: 22px; height: 22px; border: 2px solid var(--g-mut); }
.gw-opt i.radio { border-radius: 50%; } .gw-opt i.check { border-radius: 5px; }
.gw-opt.on i { border-color: var(--g-acc); background: var(--g-acc); box-shadow: inset 0 0 0 3px var(--g-bg); }
.gw-opt.on i.check { box-shadow: none; background: var(--g-acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/16px no-repeat; }
.gw-dots { display: flex; gap: 6px; justify-content: center; padding: 8px 0 0; }
.gw-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--g-line); }
.gw-dots i.on { background: var(--g-acc); width: 18px; border-radius: 99px; }
.gw-sending { background: var(--g-acc); color: #fff; padding: 22px 28px; border-radius: 16px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gw-spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid rgba(255,255,255,.35); border-top-color: #fff; animation: gwSpin .8s linear infinite; }
@keyframes gwSpin { to { transform: rotate(360deg); } }
.gw-toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 70; background: #fafaf9; color: #1c1917; padding: 10px 16px; border-radius: 99px; font-weight: 700; font-size: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.4); max-width: calc(100% - 32px); }

/* ---------- Caixa: aparência escolhida pela loja (views/admin/caixa.ejs → Aparência) ----------
   lay-padrao (3 colunas, como antes) · lay-compacto (botões pequenos) · lay-fotos (com foto) · lay-lista (uma linha por produto,
   categorias na lateral); lado-esquerda/direita = onde fica a coluna da venda; body.pdv-dark = tema escuro */
.pdv-p { background: var(--card); }
/* modelos de 2 colunas: produtos de um lado, venda + pagamento um embaixo do outro do outro lado */
@media (min-width: 768px) {
  .pdv3.lay-compacto, .pdv3.lay-fotos, .pdv3.lay-lista { grid-template-columns: minmax(0, 1fr) minmax(320px, 360px); grid-template-rows: auto 1fr; grid-template-areas: "prods sale" "prods pay"; }
  .pdv3.lay-compacto.lado-esquerda, .pdv3.lay-fotos.lado-esquerda, .pdv3.lay-lista.lado-esquerda { grid-template-columns: minmax(320px, 360px) minmax(0, 1fr); grid-template-areas: "sale prods" "pay prods"; }
  .pdv3.lay-compacto > .pdv-prods, .pdv3.lay-fotos > .pdv-prods, .pdv3.lay-lista > .pdv-prods { grid-area: prods; order: 0; }
  .pdv3.lay-compacto > .pdv-sale, .pdv3.lay-fotos > .pdv-sale, .pdv3.lay-lista > .pdv-sale { grid-area: sale; position: static; max-height: none; order: 0; }
  .pdv3.lay-compacto > .pdv-payc, .pdv3.lay-fotos > .pdv-payc, .pdv3.lay-lista > .pdv-payc { grid-area: pay; position: static; max-height: none; align-self: start; order: 0; }
  .pdv3.lay-compacto .pdv-lines, .pdv3.lay-fotos .pdv-lines, .pdv3.lay-lista .pdv-lines { max-height: 34vh; overflow: auto; }
}
/* Botões compactos (parecido com o PDV do Suitable): muitos produtos por tela */
.lay-compacto .pdv-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.lay-compacto .pdv-p { min-height: 60px; padding: 7px 9px 7px 11px; border-radius: 8px; gap: 2px; border-left: 4px solid var(--brand); }
.lay-compacto .pdv-p b { font-size: 12.5px; padding-right: 18px; }
.lay-compacto .pdv-p .pdv-pr { font-size: 12px; color: var(--muted); }
.lay-compacto .pdv-cod { font-size: 10px; top: 4px; right: 6px; }
.lay-compacto .pdv-cats { flex-wrap: wrap; overflow: visible; gap: 5px; }
.lay-compacto .pdv-cats .btn { border-left: 3px solid var(--brand); border-radius: 6px; }
.lay-compacto .pdv-fav-row { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.lay-compacto .pdv-fav { min-height: 48px; padding: 6px 8px; border-radius: 8px; }
/* Com fotos */
.lay-fotos .pdv-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.lay-fotos .pdv-p { padding: 0 0 10px; overflow: hidden; justify-content: flex-start; }
.lay-fotos .pdv-p b, .lay-fotos .pdv-p .pdv-pr { padding: 0 10px; }
.lay-fotos .pdv-ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--brand-50); color: var(--brand); font-weight: 800; font-size: 22px; margin-bottom: 4px; }
.lay-fotos .pdv-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lay-fotos .pdv-ph i { font-style: normal; }
.lay-fotos .pdv-cod { top: 6px; right: 6px; background: rgba(0, 0, 0, .55); color: #fff; border-radius: 6px; padding: 0 5px; }
/* Lista: categorias na lateral, um produto por linha */
@media (min-width: 768px) {
  .lay-lista .pdv-prods { display: grid; grid-template-columns: minmax(150px, 190px) minmax(0, 1fr); column-gap: 12px; align-items: start; }
  .lay-lista .pdv-prods > :not(.pdv-cats):not(.pdv-grid) { grid-column: 1 / -1; }
  .lay-lista .pdv-cats { flex-direction: column; overflow: visible; position: sticky; top: 76px; max-height: calc(100vh - 88px); overflow-y: auto; }
  .lay-lista .pdv-cats .btn { justify-content: flex-start; white-space: normal; text-align: left; }
}
.lay-lista .pdv-grid { grid-template-columns: minmax(0, 1fr); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 10px; }
.lay-lista .pdv-p { flex-direction: row; align-items: center; min-height: 44px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; gap: 12px; }
.lay-lista .pdv-p:hover { background: var(--brand-50); }
.lay-lista .pdv-p:active { transform: none; }
.lay-lista .pdv-cod { position: static; order: -1; min-width: 34px; font-size: 12px; }
.lay-lista .pdv-p b { flex: 1; padding-right: 0; font-weight: 600; }
.lay-lista .pdv-p .pdv-pr { white-space: nowrap; font-weight: 700; }
/* janela de escolha: miniaturas desenhadas com CSS */
.lay-modal { max-width: 760px; }
.lay-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.lay-opt { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 10px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; font: inherit; color: inherit; }
.lay-opt.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.lay-mini { display: grid; gap: 3px; height: 74px; padding: 5px; border-radius: 8px; background: #f2f0ee; margin-bottom: 4px; }
.lay-mini.dark { background: #1f1f1f; }
.lay-mini i { background: #fff; border-radius: 3px; border: 1px solid #e2dfdc; }
.lay-mini.dark i { background: #333; border-color: #444; }
.mini-padrao { grid-template-columns: 1fr 2fr 1fr; } .mini-padrao i:nth-child(n+4) { display: none; }
.mini-compacto { grid-template-columns: repeat(5, 1fr) 1.6fr; grid-auto-rows: 1fr; }
.mini-compacto i { border-left: 2px solid var(--brand); }
.mini-compacto i:nth-child(6) { grid-column: 6; grid-row: 1 / span 3; border-left: 1px solid #e2dfdc; }
.mini-fotos { grid-template-columns: repeat(3, 1fr) 1.4fr; }
.mini-fotos i { background: linear-gradient(var(--brand-100) 60%, #fff 60%); }
.lay-mini.dark.mini-fotos i { background: linear-gradient(#7a3b25 60%, #333 60%); }
.mini-fotos i:nth-child(4) { grid-column: 4; grid-row: 1 / span 2; background: #fff; } .lay-mini.dark.mini-fotos i:nth-child(4) { background: #333; }
.mini-fotos i:nth-child(n+8) { display: none; }
.mini-lista { grid-template-columns: .8fr 3fr 1.4fr; grid-auto-rows: 1fr; }
.mini-lista i:nth-child(1) { grid-row: 1 / span 4; } .mini-lista i:nth-child(3) { grid-row: 1 / span 4; } .mini-lista i:nth-child(n+7) { display: none; }
/* tema escuro (só na tela do caixa: a classe sai ao trocar de página) */
body.pdv-dark { --ink: #f5f5f4; --ink-2: #d6d3d1; --muted: #a8a29e; --line: #3f3a36; --line-2: #34302c; --bg: #161412; --card: #23201d;
  --brand-50: #3a241b; --brand-100: #5a3020; --ok-50: #10301d; --warn-50: #35260b; --bad-50: #3a1515; --info-50: #13233f; color-scheme: dark; }
body.pdv-dark .btn { background: #2c2825; color: var(--ink); border-color: var(--line); }
body.pdv-dark .btn:hover { background: #36312d; }
body.pdv-dark .btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
body.pdv-dark .btn.ghost { background: transparent; }
body.pdv-dark .input, body.pdv-dark .select, body.pdv-dark textarea { background: #1b1917; color: var(--ink); border-color: var(--line); }
body.pdv-dark .seg { background: #2c2825; }
body.pdv-dark .seg button.on { background: #45403b; color: var(--ink); }
body.pdv-dark :where(.badge) { background: #34302c; color: var(--ink-2); }
body.pdv-dark .badge.ok { color: #4ade80; } body.pdv-dark .badge.warn { color: #fbbf24; } body.pdv-dark .badge.bad { color: #f87171; }
body.pdv-dark .badge.info { color: #93c5fd; } body.pdv-dark .badge.brand { color: #fdba8c; }
body.pdv-dark .pdv-op { background: var(--card); }
body.pdv-dark .pdv-troco { color: #4ade80; }
body.pdv-dark .lay-mini { background: #2c2825; }
body.pdv-dark header.top { background: rgba(22, 20, 18, .9); border-color: var(--line); }
body.pdv-dark .store-toggle { background: #2c2825; color: var(--ink); border-color: var(--line); }
body.pdv-dark kbd { background: #34302c; color: var(--ink); border-color: var(--line); }
body.pdv-dark .help-btn { background: #2c2825; color: var(--ink); border-color: var(--line); }
body.pdv-dark .modal, body.pdv-dark .drawer { background: var(--card); color: var(--ink); }
body.pdv-dark .modal-f { background: #1f1c19; }
body.pdv-dark .lay-opt { background: #2c2825; }
body.pdv-dark .toast:not(.error):not(.success) { background: #45403b; color: #fff; }
body.pdv-dark .pdv-mbar { background: #0c0a09; color: #f5f5f4; border: 1px solid var(--line); }
body.pdv-dark .hint { border-color: #1e3a5f; color: #bfdbfe; }
body.pdv-dark .hint.warn { border-color: #713f12; color: #fde68a; }
body.pdv-dark .hint.bad { border-color: #7f1d1d; color: #fecaca; }
body.pdv-dark .btn.danger { color: #f87171; }
body.pdv-dark .btn.danger:hover { background: var(--bad-50); border-color: #7f1d1d; }
body.pdv-dark .btn.primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
body.pdv-dark .t th { background: #2c2825; color: var(--muted); }
body.pdv-dark .chip { background: #2c2825; color: var(--ink); border-color: var(--line); }
body.pdv-dark .chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
/* impressão (resumo do caixa, comprovante pelo navegador): sempre claro */
@media print {
  body.pdv-dark { --ink: #1c1917; --ink-2: #44403c; --muted: #78716c; --line: #e7e5e4; --line-2: #f0eeec; --bg: #fff; --card: #fff; color-scheme: light; }
  body.pdv-dark .modal, body.pdv-dark .drawer, body.pdv-dark .t th { background: #fff; color: #1c1917; }
}

/* ---------- Menu lateral: Organizar menu (arrastar e soltar) e balão do menu recolhido (public/js/admin/app.js) ---------- */
.side .nav-grip { display: none; margin-left: auto; width: 16px; height: 16px; color: #78716c; }
.side-edit-bar { display: none; margin: 0 12px 8px; padding: 10px; border-radius: 10px; background: var(--side-2); color: #d6d3d1; font-size: 12.5px; line-height: 1.35; }
.side-edit-bar > div { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.side-edit-bar .btn.ghost { color: #d6d3d1; }
html.menu-edit .side-edit-bar { display: block; }
html.menu-edit .side-org-btn { display: none; }
html.menu-edit .side a.nav[data-k] { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline: 1px dashed #3a312a; outline-offset: -1px; }
html.menu-edit .side a.nav[data-k] .nav-grip { display: block; }
html.menu-edit .side a.nav.dragging { cursor: grabbing; background: var(--brand); color: #fff; opacity: .92; }
html.menu-edit .side .grp-items { min-height: 18px; }
html.menu-edit .side .grp-chev { display: none; }
@media (min-width: 1025px) {
  html.side-mini .side-edit-bar span { display: none; }
  html.side-mini .side-edit-bar { margin: 0 8px 8px; padding: 6px; }
  html.side-mini .side-edit-bar > div { flex-direction: column; margin-top: 0; }
  html.side-mini .side-edit-bar .btn { padding: 4px 2px; font-size: 10.5px; white-space: normal; justify-content: center; }
  html.side-mini.menu-edit .side a.nav[data-k] .nav-grip { display: none; }
}
.side-tip { position: fixed; z-index: 200; transform: translateY(-50%); background: #1c1917; color: #fff; font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.side-tip.on { opacity: 1; }
.side-tip::before { content: ''; position: absolute; left: -5px; top: 50%; transform: translateY(-50%); border: 5px solid transparent; border-left: 0; border-right-color: #1c1917; }
html.menu-edit .side a.nav .pill { display: none !important; }
/* "Organizar menu" também no celular e no tablet (o "Recolher menu" continua só no computador) */
@media (max-width: 1024px) { html:not(.menu-edit) .side-org-btn { display: flex; } }
