/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  /* Design tokens do app interno — paleta única (base "painel"). */
  --app-bg: #120c07;        /* fundo da página */
  --app-surface: #1b120a;   /* cards / painéis */
  --app-surface-2: #221609; /* cards internos / caixas secundárias */
  --app-input: #14100d;     /* campos de formulário */
  --app-line: #33220f;      /* bordas / divisórias */
  --app-line-soft: #2a1c0e;
  --app-ink: #f5ece0;       /* texto principal */
  --app-dim: #bca99b;       /* texto secundário */
  --app-dim2: #8a7862;      /* texto terciário / labels */
  --app-accent: #e8641c;    /* laranja da marca */
  --app-accent-2: #f0842f;
  --app-gold: #d6a889;
  --app-good: #3ecf8e;      /* verde sucesso */
  --app-good-dim: #92e0bb;
  --app-bad: #ff6b5b;       /* vermelho alerta */
  --app-container: 1180px;  /* largura máxima consistente */

  color: var(--app-ink);
  background: var(--app-bg);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--app-bg); }
button { font: inherit; cursor: pointer; }

/* ---- Topbar de navegação global ---- */
.topbar { align-items: center; background: var(--app-surface); border-bottom: 1px solid #2a201a; display: flex; gap: 18px; padding: 10px 20px; position: sticky; top: 0; z-index: 50; }
.topbar-brand { align-items: center; color: #f5efe7; display: flex; font-weight: 800; gap: 8px; text-decoration: none; }
.topbar-flame { align-items: center; background: #e8641c; border-radius: 8px; color: #fff; display: flex; height: 28px; justify-content: center; width: 28px; }
.topbar-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.topbar-link { border-radius: 8px; color: #bca99b; padding: 7px 12px; text-decoration: none; }
.topbar-link:hover { background: rgba(255,255,255,.06); color: #f5efe7; }
.topbar-link.is-active { background: #e8641c; color: #fff; font-weight: 700; }
.topbar-user { align-items: center; display: flex; gap: 12px; margin-left: auto; }
.topbar-whoami { color: #967c6c; font-size: .82rem; }
.topbar-logout { background: transparent; border: 1px solid #4a3728; border-radius: 8px; color: #d6a889; cursor: pointer; font-size: .82rem; padding: 6px 12px; }
.topbar-logout:hover { border-color: #e8641c; }
.topbar-kbd { background: transparent; border: 1px solid #4a3728; border-radius: 8px; color: #d6a889; cursor: pointer; font-size: 1rem; line-height: 1; padding: 5px 9px; }
.topbar-kbd:hover { border-color: #e8641c; }
@media (max-width: 720px) { .topbar { flex-wrap: wrap; gap: 10px; } .topbar-whoami { display: none; } }
.topbar-alarm { align-items: center; display: inline-flex; padding: 4px 7px; }
.topbar-alarm .alarm-off, .topbar-alarm.is-off .alarm-on { display: none; }
.topbar-alarm.is-off .alarm-off { display: block; }
.topbar-alarm.is-off { border-color: var(--app-bad); color: var(--app-bad); }

/* Alarme de pedido novo: faixa vermelha que fica no topo até alguém aceitar */
.order-alarm { animation: oa-pulse 1.3s ease-in-out infinite; background: #c62a1a; box-shadow: 0 6px 24px rgba(0,0,0,.45); color: #fff; padding: 10px 20px 12px; position: sticky; top: 0; z-index: 60; }
.order-alarm[hidden] { display: none; }
@keyframes oa-pulse { 50% { background: #e2432f; } }
@media (prefers-reduced-motion: reduce) { .order-alarm { animation: none; } .oa-bell { animation: none !important; } }
.oa-head { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 auto 6px; max-width: var(--app-container); }
.oa-head strong { font-size: 1.05rem; }
.oa-bell { animation: oa-shake 1.3s ease-in-out infinite; display: inline-flex; transform-origin: 50% 10%; }
@keyframes oa-shake { 0%, 50%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-16deg); } 20%, 40% { transform: rotate(16deg); } }
.oa-unlock { background: #fff; border: 0; border-radius: 999px; color: #a3200f; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 800; margin-left: auto; padding: 6px 14px; }
.oa-list { display: grid; gap: 6px; list-style: none; margin: 0 auto; max-width: var(--app-container); padding: 0; }
.oa-list li { align-items: center; background: rgba(0,0,0,.18); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: space-between; padding: 8px 10px 8px 14px; }
.oa-info { min-width: 0; }
.oa-info b { font-size: 1.05rem; }
.oa-title { font-weight: 700; }
.oa-info small { display: block; font-size: .82rem; opacity: .92; }
.oa-deadline { background: rgba(255,255,255,.2); border-radius: 6px; font-weight: 700; padding: 0 5px; }
.oa-actions { align-items: center; display: flex; gap: 8px; }
.oa-view { color: #fff; font-weight: 700; padding: 8px 6px; }
.oa-accept { background: #fff; border: 0; border-radius: 10px; color: #a3200f; cursor: pointer; font: inherit; font-size: 1rem; font-weight: 900; padding: 10px 22px; text-decoration: none; }
.oa-accept:hover { background: #ffe7e3; }
.oa-accept:disabled { opacity: .7; }
@media (max-width: 720px) { .order-alarm { padding: 8px 12px 10px; } .oa-actions { margin-left: auto; } }

/* Container único: mesma largura e alinhamento em todas as telas do app. */
.pos-shell { margin: 0 auto; max-width: var(--app-container); min-height: 100vh; padding: 24px 24px 60px; width: 100%; }
/* Modificadores de largura antigos herdam o container único (formulários ficam
   estreitos via o próprio card, não via o shell). */
.sale-shell, .checkout-shell, .dash2 { margin: 0 auto; max-width: var(--app-container); }
/* Telas de formulário: limitam o card interno (e a barra de etapas), não o shell.
   Assim a tela ocupa a mesma largura larga das demais, mas o formulário fica
   centralizado e legível. */
.checkout-shell > .checkout-card, .sale-shell > .sale-card, .sale-shell > form > .sale-card, .sale-shell > .sale-steps { margin-left: auto; margin-right: auto; max-width: 640px; }
.pos-header, .section-heading, .order-item, .order-total > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pos-header { border-bottom: 1px solid var(--app-line); padding-bottom: 20px; margin-bottom: 20px; }
.pos-header-actions { align-items: center; display: flex; gap: 14px; }
.pos-leave-primary { background: #e8641c; border: 0; border-radius: 10px; color: #fff; cursor: pointer; font-weight: 700; padding: 9px 16px; }
.pos-leave-primary:hover { filter: brightness(1.06); }
.pos-header h1, .section-heading h2, .category-section h3, .product-card h4 { margin: 0; }
.eyebrow { color: #d6a889; font-size: .75rem; font-weight: 700; letter-spacing: .1em; margin: 0 0 4px; text-transform: uppercase; }
.connection-status, .order-status { background: rgba(62,207,142,.12); border: 1px solid rgba(62,207,142,.35); border-radius: 999px; color: var(--app-good); font-size: .78rem; font-weight: 700; padding: 6px 12px; }
.pos-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; }
.menu-panel, .order-panel { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 18px; padding: 20px; }
.category-section + .category-section { border-top: 1px solid var(--app-line); margin-top: 24px; padding-top: 24px; }
.category-section h3 { color: #d6a889; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.product-card { background: var(--app-surface-2); border: 1px solid #422d23; border-radius: 14px; padding: 14px; }
.product-card h4 { font-size: 1rem; }
.product-card p { color: #bca99b; font-size: .85rem; min-height: 2.5em; }
.variation-list { display: grid; gap: 7px; }
.variation-choice, .modifier-group label { align-items: center; background: #37231a; border: 1px solid #5d3a26; border-radius: 9px; color: #fff7f0; display: flex; gap: 8px; padding: 9px 10px; }
.variation-choice strong { margin-left: auto; }
.modifier-group { border: 0; margin: 12px 0 0; padding: 0; }
.modifier-group legend { color: #d6a889; font-size: .74rem; font-weight: 700; margin-bottom: 6px; text-transform: uppercase; }
.modifier-group legend span { color: #967c6c; font-weight: 500; }
.modifier-group label { background: transparent; border: 0; border-radius: 0; font-size: .85rem; padding: 5px 0; }
.modifier-group small { color: #d6a889; margin-left: auto; }
.item-form-footer, .order-item-actions { align-items: center; display: flex; gap: 8px; }
.item-form-footer { margin-top: 14px; }
.quantity-input { background: var(--app-input); border: 1px solid #5d3a26; border-radius: 9px; color: #fff7f0; padding: 9px; width: 58px; }
.add-item-button { background: #e8641c; border: 0; border-radius: 9px; color: white; flex: 1; font-weight: 800; padding: 10px; }
.quantity-control, .remove-item-button { background: transparent; border: 1px solid #684936; border-radius: 7px; color: #f5efe7; padding: 4px 7px; }
.remove-item-button { color: #ffb5a8; }
.quantity-control:disabled { cursor: not-allowed; opacity: .35; }
.order-panel { display: flex; flex-direction: column; min-height: 520px; }
.order-items { flex: 1; margin: 18px 0; }
.order-item { border-top: 1px solid var(--app-line); padding: 12px 0; }
.order-item small { color: #bca99b; display: block; margin-top: 3px; }
.order-item-combo, .track-item-combo { color: var(--app-accent-2) !important; }
.empty-state { color: #bca99b; text-align: center; }
.order-total { border-top: 1px dashed #684936; padding-top: 12px; }
.order-total > div { color: #d9ccc0; padding: 4px 0; }
.order-total .grand-total { color: #92e0bb; font-size: 1.22rem; }
.checkout-button { background: #e8641c; border: 0; border-radius: 10px; color: white; font-weight: 800; margin-top: 16px; padding: 13px; }
.checkout-button:disabled { cursor: not-allowed; opacity: .45; }
.checkout-card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 18px; padding: 24px; }
.checkout-card h2 { font-size: 2rem; margin: 0 0 24px; }
.checkout-card label, .checkout-card input { display: block; margin: 12px 0 6px; width: 100%; }
.checkout-card input { background: var(--app-input); border: 1px solid #5d3a26; border-radius: 8px; color: #fff7f0; padding: 10px; }
.payment-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 6px 0 14px; }
.payment-methods label { align-items: center; background: #37231a; border: 1px solid #5d3a26; border-radius: 10px; cursor: pointer; display: flex; gap: 8px; justify-content: center; margin: 0; padding: 12px; width: auto; }
.payment-methods label:has(input:checked) { background: linear-gradient(90deg, #e8641c, #f0842f); border-color: #e8641c; color: #fff; font-weight: 700; }
.payment-methods label input { accent-color: #fff; }
.back-link { color: #d6a889; }
.kds-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.kds-card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 16px; display: grid; gap: 12px; padding: 16px; }
.kds-card header { display: flex; justify-content: space-between; }
.kds-card p { color: #d6a889; margin: 0; }
.kds-item { border-top: 1px solid var(--app-line); padding-top: 9px; }
.kds-item small { color: #bca99b; display: block; margin-top: 3px; }
.kds-note, .kds-ready { background: #173d2d; border-radius: 8px; color: #b9f3d1; padding: 9px; }
/* ---- KDS colunas ---- */
.kds-columns { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.kds-col { background: var(--app-surface); border: 1px solid #2a201a; border-radius: 14px; padding: 12px; }
.kds-col-head { align-items: center; color: #c9a68f; display: flex; font-size: .78rem; gap: 8px; letter-spacing: .06em; margin: 0 0 12px; text-transform: uppercase; }
.kds-dot { border-radius: 50%; height: 9px; width: 9px; }
.kds-count { background: rgba(255,255,255,.08); border-radius: 999px; margin-left: auto; padding: 2px 9px; }
.kds-col .kds-card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 12px; display: block; margin-bottom: 10px; padding: 12px; }
.kds-card.sla-warn { border-color: #b56a2a; }
.kds-card.sla-danger { border-color: #c0392b; box-shadow: 0 0 0 1px rgba(192,57,43,.4); }
.kds-card-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 8px; }
.kds-badge { border-radius: 999px; font-size: .68rem; font-weight: 700; padding: 3px 9px; }
.badge-delivery { background: #3b2a1a; color: #f0a35e; }
.badge-table { background: #1e2f3b; color: #68b6e6; }
.badge-pickup { background: #2a2130; color: #c49be0; }
.badge-counter { background: #2a2a2a; color: #cfcfcf; }
.kds-customer { background: rgba(255,255,255,.05); border-radius: 7px; color: #d6a889; font-size: .78rem; margin: 0 0 8px; padding: 5px 8px; }
.kds-item { border-top: 1px solid #2a201a; padding: 6px 0; }
.kds-item:first-of-type { border-top: 0; }
.kds-item strong { font-size: .9rem; }
.kds-item-note { color: #f0a35e; }
.kds-round { background: #b56a2a; border-radius: 999px; color: #fff; display: inline-block; font-size: .62rem; font-weight: 700; margin: 0 0 8px; padding: 2px 8px; text-transform: uppercase; }
.kds-card-foot { align-items: center; display: flex; justify-content: space-between; margin-top: 10px; }
.kds-timer { color: #f0a35e; font-variant-numeric: tabular-nums; font-weight: 700; }
.kds-timer-done { color: #92e0bb; }

/* ---- Painel do garçom ---- */
.waiter-head-actions { align-items: center; display: flex; gap: 14px; }
.waiter-sound-toggle { align-items: center; background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 9px; color: #d6a889; cursor: pointer; display: flex; gap: 7px; font-size: .82rem; padding: 8px 12px; }
.waiter-sound-toggle.is-off { color: #967c6c; opacity: .7; }
.waiter-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.waiter-empty { padding: 40px 0; }
.waiter-card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 14px; padding: 16px; transition: box-shadow .3s, border-color .3s; }
.waiter-card.status-ready { border-color: #327a5b; }
.waiter-card.just-ready { animation: waiterPulse 1s ease-in-out 4; border-color: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.4); }
@keyframes waiterPulse { 50% { box-shadow: 0 0 0 8px rgba(52,211,153,0); } }
.waiter-card-head { align-items: center; display: flex; justify-content: space-between; }
.waiter-card-head strong { font-size: 1.1rem; }
.waiter-type { background: rgba(255,255,255,.06); border-radius: 999px; color: #bca99b; font-size: .68rem; font-weight: 700; padding: 3px 9px; }
.waiter-status { border-radius: 999px; display: inline-block; font-size: .68rem; font-weight: 700; margin: 10px 0; padding: 3px 10px; text-transform: uppercase; }
.waiter-status-queued { background: #3b2a1a; color: #f0a35e; }
.waiter-status-preparing { background: #4a2f1a; color: #ff9a52; }
.waiter-status-ready { background: #173d2d; color: #92e0bb; }
.waiter-items { color: #d9ccc0; font-size: .85rem; list-style: none; margin: 0 0 12px; padding: 0; }
.waiter-items li { padding: 2px 0; }
.waiter-card-foot { align-items: center; border-top: 1px solid var(--app-line); display: flex; justify-content: space-between; padding-top: 10px; }
.waiter-time { color: #f0a35e; font-variant-numeric: tabular-nums; font-weight: 700; }
.status-ready .waiter-time { color: #92e0bb; }
.waiter-deliver { background: #34d399; border: 0; border-radius: 8px; color: #0b2a1d; cursor: pointer; font-weight: 700; padding: 7px 14px; }
.waiter-deliver:hover { filter: brightness(1.06); }
.sla-danger .kds-timer { color: #ff7a6b; }
.kds-advance { background: rgba(255,255,255,.1); border: 0; border-radius: 8px; color: #fff; font-weight: 700; padding: 6px 12px; }
.kds-advance:hover { background: #e8641c; }
.kds-empty { padding: 20px 0; }

@media (max-width: 760px) { .kds-columns { grid-template-columns: 1fr; } }

.flash { border-radius: 10px; margin: 0 0 16px; padding: 10px 12px; }
.flash-notice { background: #173d2d; color: #b9f3d1; }
.flash-alert { background: #4a211d; color: #ffd0c7; }

/* ---- Login / autenticação ---- */
.auth-shell { align-items: center; display: flex; justify-content: center; min-height: 100vh; padding: 24px; }
.auth-card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); max-width: 420px; padding: 32px; width: 100%; }
.auth-brand { align-items: center; display: flex; gap: 12px; margin-bottom: 22px; }
.auth-flame { align-items: center; background: #e8641c; border-radius: 13px; box-shadow: 0 8px 22px rgba(232, 100, 28, .4); color: #fff; display: flex; font-size: 24px; height: 48px; justify-content: center; width: 48px; }
.auth-brand h1 { font-size: 1.5rem; letter-spacing: -.02em; margin: 0; }
.auth-brand .auth-sub { color: #967c6c; font-size: .82rem; margin: 2px 0 0; }
.auth-lede { color: #bca99b; font-size: .92rem; margin: 0 0 20px; }
.auth-field { margin-bottom: 14px; }
.auth-field label { color: #d6a889; display: block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; margin-bottom: 6px; text-transform: uppercase; }
.auth-field input { background: var(--app-input); border: 1px solid #5d3a26; border-radius: 10px; color: #fff7f0; font-size: .95rem; padding: 12px; width: 100%; }
.auth-field input:focus { border-color: #e8641c; box-shadow: 0 0 0 3px rgba(232, 100, 28, .22); outline: none; }
.auth-submit { background: linear-gradient(90deg, #e8641c, #f0842f); border: 0; border-radius: 11px; color: #fff; font-size: 1rem; font-weight: 800; margin-top: 8px; padding: 13px; width: 100%; }
.auth-submit:hover { filter: brightness(1.05); }
.auth-alert { background: #4a211d; border-radius: 10px; color: #ffd0c7; font-size: .88rem; margin: 0 0 18px; padding: 11px 13px; }

/* ---- Painel da operação (dashboard rico) ---- */
/* .dash2 herda a largura única do .pos-shell (var(--app-container)). */
.dash2-head { align-items: flex-end; border-bottom: 1px solid var(--app-line); display: flex; flex-wrap: wrap; gap: 20px; padding-bottom: 20px; margin-bottom: 20px; }
.dash2-head h1 { font-size: 2rem; letter-spacing: -.02em; margin: 4px 0 2px; }
.dash2-sub { color: var(--app-dim); font-size: .85rem; }
.dash2-tools { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.dash2-seg { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 11px; display: flex; padding: 3px; }
.dash2-seg-btn { border-radius: 8px; color: var(--app-dim); font-size: .82rem; font-weight: 600; padding: 7px 14px; text-decoration: none; }
.dash2-seg-btn.is-on { background: #e8641c; color: #fff; }
.pill { align-items: center; border: 1px solid; border-radius: 999px; display: inline-flex; font-size: .78rem; font-weight: 600; gap: 7px; padding: 7px 13px; }
.pill.ok { background: rgba(62,207,142,.12); border-color: rgba(62,207,142,.35); color: var(--app-good); }
.pill .d { background: currentColor; border-radius: 50%; height: 7px; width: 7px; }
.dash2-newsale { margin: 16px 0 4px; }
.dash2-grid { display: grid; gap: 14px; margin-top: 16px; }
.dash2-grid.g4 { grid-template-columns: repeat(4, 1fr); }
.dash2-grid.g3 { grid-template-columns: 1.5fr 1fr 1fr; }
.dash2-grid.g2 { grid-template-columns: 1.35fr .65fr; }
@media (max-width: 980px) { .dash2-grid.g4 { grid-template-columns: repeat(2, 1fr); } .dash2-grid.g3, .dash2-grid.g2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .dash2-grid.g4 { grid-template-columns: 1fr; } }
/* Card do sistema: usado no painel e no fechamento do dia. */
.card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 16px; padding: 18px; }
.card h3 { align-items: center; color: var(--app-dim2); display: flex; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; margin: 0 0 14px; text-transform: uppercase; }
.card-side { color: var(--app-dim); float: right; font-weight: 500; letter-spacing: 0; text-transform: none; }
/* KPI */
.kpi-lbl { color: var(--app-dim); font-size: .82rem; }
.kpi-val { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; margin-top: 3px; }
.kpi-foot { align-items: center; display: flex; gap: 8px; margin-top: 9px; font-size: .8rem; }
.kpi-delta { align-items: center; border-radius: 999px; display: inline-flex; font-weight: 700; gap: 3px; padding: 2px 8px; }
.kpi-delta.up { background: rgba(62,207,142,.13); color: var(--app-good); }
.kpi-delta.down { background: rgba(255,107,91,.13); color: var(--app-bad); }
.kpi-vs { color: var(--app-dim2); }
/* barras horizontais */
.brow { align-items: center; display: flex; gap: 11px; margin: 11px 0; font-size: .85rem; }
.brow-nm { color: var(--app-dim); flex: none; width: 92px; }
.brow-track { background: rgba(255,255,255,.06); border-radius: 999px; flex: 1; height: 9px; overflow: hidden; }
.brow-fill { border-radius: 999px; display: block; height: 100%; }
.brow-vl { font-size: .82rem; font-weight: 700; text-align: right; width: 84px; }
/* vendas por hora */
.hourbars { align-items: flex-end; display: flex; gap: 6px; height: 150px; }
.hourbar { display: flex; flex: 1; flex-direction: column; height: 100%; justify-content: flex-end; }
.hourbar-track { align-items: flex-end; display: flex; flex: 1; }
.hourbar-fill { background: linear-gradient(#ff8a3d, #c1541c); border-radius: 5px 5px 0 0; min-height: 2px; width: 100%; }
.hourbar-lbl { color: var(--app-dim2); font-size: .62rem; margin-top: 6px; text-align: center; }
/* top produtos */
.prow { align-items: center; border-top: 1px solid var(--app-line); display: flex; gap: 12px; padding: 9px 0; }
.prow:first-of-type { border-top: 0; }
.rk { align-items: center; background: rgba(255,255,255,.06); border-radius: 7px; color: var(--app-dim); display: flex; flex: none; font-size: .68rem; font-weight: 700; height: 22px; justify-content: center; width: 22px; }
.rk.top { background: #e8641c; color: #fff; }
.prow-nm { flex: 1; font-weight: 500; }
.prow-qt { color: var(--app-dim); font-size: .78rem; }
.prow-vl { font-weight: 700; text-align: right; width: 78px; }
/* cozinha */
.kstat { display: flex; gap: 10px; }
.kbox { background: var(--app-surface-2); border: 1px solid var(--app-line); border-radius: 12px; flex: 1; padding: 12px; text-align: center; }
.kbox-n { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.kbox-l { color: var(--app-dim2); font-size: .68rem; margin-top: 4px; }
.tickets { margin-top: 14px; }
.tk { align-items: center; border-top: 1px solid var(--app-line); display: flex; gap: 10px; font-size: .82rem; padding: 9px 0; }
.tk-no { font-weight: 700; width: 42px; }
.tk-tm { color: var(--app-good); font-weight: 700; margin-left: auto; }
.tk-tm.warn { color: #d99b34; }
.tk-tm.late { color: var(--app-bad); }
/* economia */
.save { background: linear-gradient(150deg, rgba(62,207,142,.16), rgba(62,207,142,.04)) !important; border-color: rgba(62,207,142,.3) !important; }
.save-h { color: rgba(62,207,142,.7) !important; }
.save-big { color: var(--app-good); font-size: 2.2rem; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.save p { color: var(--app-dim); font-size: .82rem; margin: 8px 0 0; }
.save b { color: #f5ece0; }
/* atenção */
.al { border-top: 1px solid var(--app-line); display: flex; gap: 11px; font-size: .84rem; padding: 11px 0; }
.al:first-of-type { border-top: 0; }
.al-ic { align-items: center; border-radius: 8px; display: grid; flex: none; height: 26px; place-items: center; width: 26px; }
.al-ic.r { background: rgba(255,107,91,.14); color: var(--app-bad); }
.al-ic.y { background: rgba(217,155,52,.16); color: #d99b34; }
.al-ic.b { background: rgba(90,169,230,.14); color: #5aa9e6; }
.al-tx b { display: block; font-weight: 600; }
.al-tx span { color: var(--app-dim2); font-size: .78rem; }
/* caixa */
.cxrow { border-top: 1px solid var(--app-line); display: flex; font-size: .85rem; justify-content: space-between; padding: 8px 0; }
.cxrow:first-of-type { border-top: 0; }
.cxrow span { color: var(--app-dim); }
.cxtot { align-items: center; border-top: 1px dashed #46301a; display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px; }
.cxtot-v { color: var(--app-good); font-size: 1.4rem; font-weight: 700; }
.btn-block { background: #e8641c; border-radius: 11px; color: #fff; display: block; font-weight: 700; margin-top: 14px; padding: 11px; text-align: center; text-decoration: none; }
/* sync bar */
.dash2-sync { align-items: center; background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 14px; color: var(--app-dim); display: flex; flex-wrap: wrap; font-size: .8rem; gap: 14px; margin-top: 14px; padding: 14px 18px; }
.dash2-sync b { color: #f5ece0; }
.dash2-sync .sep { background: var(--app-line); height: 20px; width: 1px; }

/* ---- Dashboard (antigo) ---- */
.dash-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 22px; }
.dash-nav-link { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 10px; color: #f5efe7; padding: 10px 16px; text-decoration: none; }
.dash-nav-link:hover { border-color: #e8641c; color: #f0842f; }
.dash-card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 18px; margin-bottom: 18px; max-width: 560px; padding: 22px; }
.dash-card h2 { margin: 0 0 6px; }
.dash-card p { color: #bca99b; margin: 0 0 16px; }
.channel-picker { display: grid; gap: 8px; grid-template-columns: repeat(4, 1fr); margin-bottom: 14px; }
.channel-option { align-items: center; background: var(--app-surface-2); border: 1px solid #422d23; border-radius: 10px; cursor: pointer; display: flex; gap: 8px; justify-content: center; padding: 10px; }
.channel-option:has(input:checked) { background: #e8641c; border-color: #e8641c; color: #fff; font-weight: 700; }
.channel-option input { accent-color: #fff; }
.conditional-field { margin-bottom: 12px; }
.conditional-field label { color: #d6a889; display: block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; margin-bottom: 6px; text-transform: uppercase; }
.conditional-field input { background: var(--app-input); border: 1px solid #5d3a26; border-radius: 10px; color: #fff7f0; padding: 11px; width: 100%; }
.cf-table, .cf-delivery { display: none; }
.new-order-form:has(input[value="table"]:checked) .cf-table { display: block; }
.new-order-form:has(input[value="delivery"]:checked) .cf-delivery { display: block; }
.dash-primary { background: linear-gradient(90deg, #e8641c, #f0842f); border: 0; border-radius: 11px; color: #fff; font-weight: 800; margin-top: 6px; padding: 12px 20px; }
.dash-primary-link { display: inline-block; text-decoration: none; }
.dash-logout { background: transparent; border: 1px solid #684936; border-radius: 10px; color: #d6a889; padding: 9px 16px; }
.dash-status { text-align: right; }
.sync-meta { color: #967c6c; display: block; font-size: .74rem; margin-top: 6px; }
/* Três estados do indicador de conexão. Verde (base) = servidor da loja. */
.connection-status.is-cloud, .pill.ok.is-cloud { background: rgba(90,169,230,.12); border-color: rgba(90,169,230,.4); color: #7bb8e6; }
.connection-status.is-offline, .pill.ok.is-offline { background: rgba(150,124,108,.14); border-color: rgba(150,124,108,.4); color: #b7a595; }
.offline-queue-badge { background: #4a211d; border-radius: 999px; color: #ffd0c7; display: inline-block; font-size: .72rem; font-weight: 700; margin-top: 6px; padding: 3px 10px; }

@media (max-width: 560px) { .channel-picker { grid-template-columns: repeat(2, 1fr); } }

/* ---- PDV extras (badge, observação, painel de ajustes) ---- */
.order-channel-badge { background: #e8641c; border-radius: 999px; color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .04em; margin-left: 8px; padding: 3px 10px; text-transform: uppercase; vertical-align: middle; }
.channel-bar { display: flex; gap: 8px; margin: -8px 0 18px; }
.channel-tab { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 8px; color: #967c6c; font-size: .82rem; padding: 7px 14px; }
.channel-tab.is-active { background: #e8641c; border-color: #e8641c; color: #fff; font-weight: 700; }

/* ---- Fluxo de venda guiado (wizard PDV) ---- */
.axion-mark { background: rgba(255,255,255,.06); border-radius: 6px; color: #c9a68f; font-size: .62rem; font-weight: 600; margin-left: 6px; padding: 2px 6px; }
/* .sale-shell herda a largura única do .pos-shell; o card interno (.sale-card) é
   quem limita a 640px, mantendo o formulário legível sem estreitar a tela toda. */
.sale-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.sale-step { align-items: center; background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 999px; color: #967c6c; display: flex; font-size: .78rem; gap: 6px; padding: 5px 12px 5px 6px; }
.sale-step-n { align-items: center; background: var(--app-line); border-radius: 50%; color: #d6a889; display: flex; font-size: .68rem; font-weight: 700; height: 18px; justify-content: center; width: 18px; }
.sale-step.is-active { border-color: #e8641c; color: #f5efe7; }
.sale-step.is-active .sale-step-n { background: #e8641c; color: #fff; }
.sale-step.is-done .sale-step-n { background: #327a5b; color: #fff; }
.sale-step.is-link { color: #d6a889; cursor: pointer; text-decoration: none; transition: border-color .12s, color .12s; }
.sale-step.is-link:hover { border-color: #e8641c; color: #f5efe7; }
.sale-card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 16px; margin-bottom: 16px; padding: 22px; }
.sale-card h2 { margin: 0 0 16px; }
.sale-cash-closed { text-align: center; }
.sale-lock { color: #e8641c; }
.sale-cash-form { margin: 12px auto 0; max-width: 320px; text-align: left; }
.sale-cash-form label, .contact-form label { color: #d6a889; display: block; font-size: .74rem; font-weight: 700; letter-spacing: .05em; margin: 12px 0 6px; text-transform: uppercase; }
.sale-cash-form input, .contact-form input { background: var(--app-input); border: 1px solid #5d3a26; border-radius: 9px; color: #fff7f0; padding: 11px; width: 100%; }
.sale-primary { background: linear-gradient(90deg, #e8641c, #f0842f); border: 0; border-radius: 11px; color: #fff; font-weight: 800; margin-top: 16px; padding: 13px; width: 100%; }
/* tipo do pedido — botões grandes */
.sale-type-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.sale-type-form { margin: 0; }
.sale-type-btn { background: var(--app-surface-2); border: 1px solid #422d23; border-radius: 14px; color: #f5efe7; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 22px 14px; text-align: center; width: 100%; }
.sale-type-btn:hover { border-color: #e8641c; }
.sale-type-icon { color: #e8641c; }
.icn { display: inline-block; vertical-align: middle; }
.sale-type-label { font-size: 1.05rem; font-weight: 700; }
.sale-type-btn small { color: #967c6c; }
/* grade de mesas */
.mesa-grid { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); }
.mesa-form { margin: 0; }
.mesa-btn { background: var(--app-surface-2); border: 1px solid #422d23; border-radius: 12px; color: #f5efe7; cursor: pointer; padding: 16px 0; width: 100%; }
.mesa-btn:hover { border-color: #e8641c; }
.mesa-btn.is-busy { background: #3b2a1a; border-color: #5c3d20; color: #f0a35e; }
.mesa-num { display: block; font-size: 1.2rem; font-weight: 800; }
.mesa-btn small { color: #b9b1a5; font-size: .68rem; }
.mesa-empty { text-align: center; }
.mesa-empty > p { margin: 4px 0; }
.sale-primary-inline { display: inline-block; margin: 10px 0; padding: 12px 22px; text-decoration: none; width: auto; }
.mesa-empty-alt { border-top: 1px solid var(--app-line); margin-top: 18px; padding-top: 18px; }
.mesa-manual { align-items: center; display: flex; gap: 8px; justify-content: center; }
.mesa-manual input { background: var(--app-input); border: 1px solid #5d3a26; border-radius: 8px; color: #fff7f0; padding: 10px; width: 140px; }

/* ---- Gestão de mesas (cards com QR) ---- */
.table-new-form { align-items: center; display: flex; gap: 10px; }
.table-new-form input { background: var(--app-input); border: 1px solid #5d3a26; border-radius: 10px; color: #fff7f0; flex: 1; padding: 12px; }
.table-new-form .sale-primary { margin: 0; padding: 12px 20px; white-space: nowrap; width: auto; }
.table-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.table-card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 16px; padding: 18px 16px 16px; position: relative; text-align: center; }
.table-del { align-items: center; background: transparent; border: 1px solid #4a3728; border-radius: 8px; color: #d6a889; cursor: pointer; display: flex; padding: 6px; position: absolute; right: 10px; top: 10px; }
.table-del:hover { border-color: #c0392b; color: #ff7a6b; }
.table-hit { align-items: center; color: inherit; display: flex; flex-direction: column; gap: 10px; padding: 8px 0 14px; text-decoration: none; }
.table-hit:hover .table-ic { background: #e8641c; color: #fff; }
.table-ic { align-items: center; background: rgba(232,100,28,.14); border-radius: 14px; color: #f0842f; display: flex; height: 62px; justify-content: center; width: 62px; }
.table-name { font-size: 1.35rem; line-height: 1.15; }
.table-actions { display: flex; flex-direction: column; gap: 8px; }
.table-launch { background: #e8641c; border-radius: 9px; color: #fff; display: block; font-size: .9rem; font-weight: 700; padding: 10px; text-decoration: none; }
.table-launch:hover { background: #f0842f; }
.table-showqr { background: transparent; border: 1px solid var(--app-line); border-radius: 9px; color: #d6a889; cursor: pointer; font-size: .8rem; font-weight: 600; padding: 8px; }
.table-showqr:hover { border-color: #f0842f; color: #f0842f; }
.table-qr { background: #fff; border-radius: 12px; display: inline-flex; margin-bottom: 12px; padding: 10px; }
.table-qr .qr-svg svg { display: block; height: 100%; width: 100%; }
.table-open { background: rgba(232,100,28,.14); border-radius: 9px; color: #f0842f; display: block; font-size: .85rem; font-weight: 600; padding: 9px; text-decoration: none; }
.table-open:hover { background: #e8641c; color: #fff; }
.qr-modal { background: transparent; border: 0; margin: auto; padding: 0; }
.qr-modal::backdrop { background: rgba(10,6,4,.7); }
.qr-modal-in { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 18px; color: inherit; min-width: 260px; padding: 18px 20px 20px; text-align: center; }
.qr-modal-in header { align-items: center; display: flex; justify-content: space-between; margin-bottom: 14px; }
.qr-modal-in header strong { font-size: 1.15rem; }
.qr-modal-in .muted { font-size: .8rem; margin: 0 0 12px; }
.table-nfc { border-top: 1px solid var(--app-line); display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; padding-top: 14px; }
.table-nfc-btn { align-items: center; background: transparent; border: 1px solid var(--app-line); border-radius: 9px; color: #d6a889; cursor: pointer; display: inline-flex; font-size: .8rem; font-weight: 600; gap: 6px; padding: 8px 12px; }
.table-nfc-btn:hover { border-color: #f0842f; color: #f0842f; }
.table-nfc-btn:disabled { cursor: wait; opacity: .6; }
.table-nfc-status { flex-basis: 100%; margin: 0 !important; max-width: 280px; min-height: 1em; }
.table-nfc-status:empty { display: none; }
.qr-modal-close { background: transparent; border: 0; color: #d6a889; cursor: pointer; font-size: 1.5rem; line-height: 1; padding: 0 2px; }
.qr-modal-close:hover { color: #fff; }
@media (max-width: 480px) { .table-new-form { flex-direction: column; align-items: stretch; } .table-new-form .sale-primary { width: 100%; } }
.contact-form { max-width: 440px; }
.contact-form .customer-row { display: flex; gap: 8px; }
.customer-found { color: #92e0bb; font-size: .8rem; margin: 6px 0 0; }
.sale-skip { display: inline-block; margin-top: 12px; }
.sale-shell .muted { color: #967c6c; }

/* comanda em 3 colunas (passo 3) */
.pdv-3col { display: grid; grid-template-columns: 1.35fr 1fr 0.85fr; gap: 16px; align-items: start; }
.pdv-3col .menu-panel, .pdv-3col .order-panel, .pdv-3col .summary-panel { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 16px; padding: 16px; }
.summary-panel { position: sticky; top: 16px; }
.order-customer { color: #bca99b; font-size: .82rem; margin: -6px 0 12px; }
/* rodadas da comanda: já enviado vs. nova rodada */
.order-round { margin-bottom: 14px; }
.order-round-title { align-items: center; color: #967c6c; display: flex; font-size: .72rem; font-weight: 700; gap: 6px; letter-spacing: .04em; margin: 0 0 6px; text-transform: uppercase; }
.order-round-print { color: inherit; font-weight: 600; margin-left: auto; text-decoration: underline; text-transform: none; }
.order-round-sent .order-round-title { color: #92e0bb; }
.order-round-new .order-round-title { color: #f0a35e; }
.order-round-new { border: 1px dashed #5d3a26; border-radius: 10px; padding: 8px 10px; }
.order-item.is-sent { opacity: .78; }
.order-item-sent-tag { background: #173d2d; border-radius: 999px; color: #92e0bb; font-size: .64rem; font-weight: 700; padding: 3px 8px; text-transform: uppercase; }
.summary-secondary { color: #d6a889; display: block; font-size: .85rem; margin-bottom: 10px; text-align: center; }
.summary-close { background: rgba(255,255,255,.05); border: 1px solid var(--app-line); border-radius: 10px; margin-top: 10px; padding: 11px; text-decoration: none; }
.summary-close:hover { border-color: #e8641c; color: #f0842f; }
@media (max-width: 980px) { .pdv-3col { grid-template-columns: 1fr; } .summary-panel { position: static; } }

/* modal de modificadores (passo 4) */
.modifier-dialog { background: var(--app-surface); border: 1px solid #3a2417; border-radius: 16px; color: #efeae2; max-width: 440px; padding: 0; width: 92%; }
.modifier-dialog::backdrop { background: rgba(0,0,0,.6); }
.modifier-modal-form { padding: 20px; }
.modifier-dialog h3 { margin: 0 0 14px; }
.mm-section-title, .mm-group legend { color: #c9a68f; font-size: .72rem; font-weight: 700; letter-spacing: .05em; margin: 12px 0 8px; padding: 0; text-transform: uppercase; }
.mm-group legend small { color: #f0a35e; font-weight: 500; text-transform: none; }
.mm-opt { align-items: center; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; cursor: pointer; display: flex; gap: 10px; margin-bottom: 7px; padding: 10px 12px; }
.mm-opt.is-sel { background: rgba(232,100,28,.14); border-color: #e8641c; }
.mm-opt input { accent-color: #e8641c; }
.mm-opt b { margin-left: auto; }
.mm-extra { color: #e8641c; font-style: normal; margin-left: auto; }
.mm-group.mm-invalid legend small { color: #ff7a6b; }
.mm-note-label { color: #c9a68f; display: block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; margin: 14px 0 6px; text-transform: uppercase; }
#mm-note { background: var(--app-input); border: 1px solid #5d3a26; border-radius: 9px; color: #fff7f0; padding: 10px; width: 100%; }
.mm-footer { display: flex; gap: 10px; margin-top: 18px; }
.mm-cancel { background: transparent; border: 1px solid #5d3a26; border-radius: 10px; color: #d6a889; cursor: pointer; flex: 1; padding: 12px; }
.mm-confirm { background: linear-gradient(90deg, #e8641c, #f0842f); border: 0; border-radius: 10px; color: #fff; cursor: pointer; flex: 2; font-weight: 800; padding: 12px; }
.mm-confirm:disabled { cursor: not-allowed; filter: grayscale(.6); opacity: .6; }

/* comprovante / sucesso (passo 7) */
/* .is-done usa o verde padrão do .connection-status (já tokenizado). */
.done-card { text-align: center; }
.done-head { padding-bottom: 16px; }
.done-ic { align-items: center; background: rgba(52,211,153,.15); border-radius: 50%; color: #34d399; display: flex; font-size: 1.7rem; height: 54px; justify-content: center; margin: 0 auto 10px; width: 54px; }
.done-head h2 { margin: 0; }
.done-receipt { background: #fff; border-radius: 8px; color: #000; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11px; line-height: 1.45; margin: 0 auto; max-width: 320px; padding: 14px; text-align: left; white-space: pre-wrap; }
.done-kds { color: #34d399; font-size: .85rem; margin-top: 14px; }
.done-actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: 14px auto 0; max-width: 320px; }
.done-btn { border-radius: 10px; font-weight: 700; padding: 11px; text-decoration: none; }
.done-btn-g { background: rgba(255,255,255,.1); color: #f5efe7; }
.done-btn-o { background: #e8641c; color: #fff; }

/* ---- Atalhos de teclado ---- */
kbd { background: #2a201a; border: 1px solid #4a3728; border-bottom-width: 2px; border-radius: 5px; color: #f5efe7; display: inline-block; font-family: ui-monospace, Menlo, monospace; font-size: .72rem; line-height: 1; min-width: 12px; padding: 3px 6px; text-align: center; }
.kbd-hint { background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.2); border-radius: 4px; color: #fff; font-size: .62rem; font-weight: 700; margin-left: 8px; opacity: .8; padding: 1px 5px; text-transform: uppercase; vertical-align: middle; }

/* barra de dica de atalhos da tela (no fluxo, sob o conteúdo) */
.kbd-hintbar { align-items: center; background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 12px; color: #967c6c; display: flex; flex-wrap: wrap; font-size: .76rem; gap: 8px 18px; margin: 0 auto 40px; max-width: 1080px; padding: 12px 18px; }
.kbd-hintbar-title { color: #d6a889; font-weight: 700; }
.kbd-hintbar-item { color: #bca99b; white-space: nowrap; }
.kbd-hintbar-item kbd { font-size: .66rem; margin: 0 1px; padding: 2px 5px; }
.kbd-hintbar-more { color: #d6a889; margin-left: auto; text-decoration: none; }
.kbd-hintbar-more:hover { color: #f0842f; }
@media (max-width: 700px) { .kbd-hintbar { display: none; } }
.sale-type-btn .kbd-hint, .checkout-button .kbd-hint { position: absolute; top: 8px; right: 8px; margin: 0; }
.sale-type-btn, .checkout-button, .summary-secondary { position: relative; }
.kbd-tip { color: #967c6c; font-size: .8rem; margin-top: 14px; text-align: center; }
.kbd-help { background: var(--app-surface); border: 1px solid #3a2417; border-radius: 16px; color: #efeae2; max-width: 440px; padding: 22px; width: 92%; }
.kbd-help::backdrop { background: rgba(0,0,0,.6); }
.kbd-help h3 { margin: 0 0 14px; }
.kbd-help h4 { color: #c9a68f; font-size: .74rem; letter-spacing: .05em; margin: 18px 0 10px; text-transform: uppercase; }
.kbd-grid { display: grid; gap: 8px; }
.kbd-row { align-items: center; display: flex; font-size: .88rem; gap: 12px; justify-content: space-between; }
.kbd-row span:last-child { color: #bca99b; }
.kbd-close { background: #e8641c; border: 0; border-radius: 10px; color: #fff; cursor: pointer; font-weight: 700; padding: 9px 16px; }
.kbd-help-foot { align-items: center; display: flex; gap: 14px; justify-content: space-between; margin-top: 18px; }
.kbd-help-foot a { color: #d6a889; font-size: .85rem; }

/* ---- Tela de configuração de atalhos ---- */
.sc-master { align-items: center; cursor: pointer; display: flex; font-size: 1rem; font-weight: 700; gap: 10px; }
.sc-master input[type="checkbox"] { accent-color: #e8641c; height: 18px; width: 18px; }
.sc-hint { margin-top: 10px; }
.sc-hint kbd { font-size: .68rem; }
.sc-list { display: grid; gap: 8px; }
.sc-row { align-items: center; border-top: 1px solid #2a201a; display: flex; gap: 12px; justify-content: space-between; padding: 10px 0; }
.sc-row:first-child { border-top: 0; }
.sc-row.is-off { opacity: .5; }
.sc-row.has-conflict { background: rgba(192,57,43,.12); border-radius: 8px; padding: 10px; }
.sc-label { font-size: .92rem; }
.sc-controls { align-items: center; display: flex; gap: 8px; }
.sc-key { background: var(--app-input); border: 1px solid #5d3a26; border-radius: 8px; color: #f5efe7; cursor: pointer; font-family: ui-monospace, Menlo, monospace; font-size: .82rem; min-width: 90px; padding: 8px 10px; text-align: center; }
.sc-key.is-capturing { border-color: #e8641c; box-shadow: 0 0 0 3px rgba(232,100,28,.25); color: #f0a35e; }
.sc-reset { align-items: center; background: transparent; border: 1px solid #4a3728; border-radius: 8px; color: #d6a889; cursor: pointer; display: flex; padding: 7px; }
.sc-reset:hover { border-color: #e8641c; }
.sc-toggle { align-items: center; color: #967c6c; cursor: pointer; display: flex; font-size: .78rem; gap: 5px; }
.sc-toggle input { accent-color: #327a5b; }
.sc-actions { margin: 8px 0 40px; }
.sc-actions .sale-primary { width: auto; padding: 12px 28px; }
.item-note-input { background: var(--app-input); border: 1px solid #5d3a26; border-radius: 8px; color: #fff7f0; font-size: .82rem; margin-top: 8px; padding: 8px; width: 100%; }
.adjust-panel { background: var(--app-input); border: 1px solid var(--app-line); border-radius: 12px; margin-bottom: 14px; padding: 6px 12px; }
.adjust-panel summary { color: #d6a889; cursor: pointer; font-size: .82rem; font-weight: 700; padding: 8px 0; }
.adjust-form label { color: #d6a889; display: block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; margin: 10px 0 5px; text-transform: uppercase; }
.adjust-form input, .adjust-form select { background: var(--app-surface); border: 1px solid #5d3a26; border-radius: 8px; color: #fff7f0; padding: 9px; width: 100%; }
.adjust-form .discount-row { align-items: center; display: flex; gap: 8px; }
.adjust-form .discount-row select { width: 80px; }
.adjust-form .add-item-button { margin-top: 12px; width: 100%; }
.payment-list { list-style: none; margin: 0 0 16px; padding: 0; }
.payment-list li { border-top: 1px solid var(--app-line); color: #d9ccc0; font-size: .9rem; padding: 8px 0; }
.payment-list small { color: #92e0bb; }
.split-hint { color: #967c6c; font-size: .8rem; margin-top: 10px; }
.print-links { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.print-links a { color: #d6a889; font-size: .82rem; }
.customer-panel { background: var(--app-input); border: 1px solid var(--app-line); border-radius: 12px; margin-bottom: 14px; padding: 6px 12px; }
.customer-panel summary { color: #f5efe7; cursor: pointer; font-size: .85rem; padding: 8px 0; }
.customer-panel summary small { color: #bca99b; display: block; margin-top: 2px; }
.customer-form label { color: #d6a889; display: block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; margin: 10px 0 5px; text-transform: uppercase; }
.customer-form input { background: var(--app-surface); border: 1px solid #5d3a26; border-radius: 8px; color: #fff7f0; padding: 9px; width: 100%; }
.customer-form .customer-row { display: flex; gap: 8px; margin-top: 8px; }
.customer-form .add-item-button { margin-top: 12px; width: 100%; }

/* ---- Caixa / fechamento (dashboard) ---- */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin-bottom: 18px; }
.kpi { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 14px; padding: 15px; }
.kpi .k { color: #967c6c; font-size: .8rem; }
.kpi .v { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-top: 3px; }
.kpi .v.g { color: #92e0bb; }
.dcols { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
.dcard { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 14px; padding: 16px; }
.dcard h5 { color: #967c6c; font-size: .74rem; letter-spacing: .06em; margin: 0 0 14px; text-transform: uppercase; }
.bar { align-items: center; display: flex; font-size: .85rem; gap: 10px; margin: 10px 0; }
.bar .lab { color: #d9ccc0; width: 84px; }
.bar .track { background: var(--app-input); border-radius: 999px; flex: 1; height: 9px; overflow: hidden; }
.bar .fill { background: #e8641c; border-radius: 999px; display: block; height: 100%; }
.bar .fill.emerald { background: #0f9d63; }
.bar .val { color: #f5efe7; font-size: .82rem; font-weight: 700; text-align: right; width: 90px; }
.cash-session-card { max-width: 560px; }
.close-cash-form { margin-top: 14px; }
.close-cash-form label { color: #d6a889; display: block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; margin-bottom: 6px; text-transform: uppercase; }
.close-cash-form input { background: var(--app-input); border: 1px solid #5d3a26; border-radius: 8px; color: #fff7f0; margin-bottom: 12px; padding: 10px; width: 100%; }
.dclose { background: #14100d; border: 0; border-radius: 9px; color: #fff; font-weight: 700; padding: 11px 18px; }

@media (max-width: 700px) { .kpis { grid-template-columns: 1fr; } .dcols { grid-template-columns: 1fr; } }

/* ---- Gestão de cardápio (manage) ---- */
.manage-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }

/* ---- Hub de gestão (cards de navegação) ---- */
.hub-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.hub-card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 16px; display: flex; flex-direction: column; gap: 4px; padding: 20px; text-decoration: none; transition: border-color .12s, transform .12s; }
.hub-card:hover { border-color: #e8641c; transform: translateY(-2px); }
.hub-icon { align-items: center; background: rgba(232,100,28,.14); border-radius: 11px; color: #e8641c; display: flex; height: 44px; justify-content: center; margin-bottom: 8px; width: 44px; }
.hub-title { color: #f5efe7; font-size: 1.1rem; font-weight: 700; }
.hub-desc { color: #bca99b; font-size: .85rem; }
.hub-count { color: #967c6c; font-size: .78rem; margin-top: 8px; }
.crumb { color: #d6a889; text-decoration: none; }
.crumb:hover { color: #f0842f; }
.manage-empty { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 14px; padding: 28px; text-align: center; }
.manage-empty p { color: #bca99b; margin: 0 0 12px; }

/* ---- Lista de usuários ---- */
.user-list { display: grid; gap: 2px; }
.user-row { align-items: center; border-radius: 10px; display: grid; gap: 14px; grid-template-columns: 1fr auto auto; padding: 12px; }
.user-row:hover { background: rgba(255,255,255,.03); }
.user-identity { align-items: center; display: flex; gap: 12px; min-width: 0; }
.user-avatar { align-items: center; border-radius: 50%; color: #fff; display: flex; flex: none; font-weight: 700; height: 38px; justify-content: center; width: 38px; }
.user-meta { min-width: 0; }
.user-meta strong { display: block; }
.user-meta small { color: #967c6c; }
.role-badge { border-radius: 999px; font-size: .72rem; font-weight: 700; padding: 4px 11px; white-space: nowrap; }
/* cores por papel (avatar usa background, badge usa tom suave) */
.user-avatar.role-owner { background: #b64a11; }
.role-badge.role-owner { background: #3b2a1a; color: #f0a35e; }
.user-avatar.role-operator { background: #1d4ed8; }
.role-badge.role-operator { background: #1e2f3b; color: #68b6e6; }
.user-avatar.role-kitchen { background: #0f9d63; }
.role-badge.role-kitchen { background: #173d2d; color: #92e0bb; }
.user-avatar.role-waiter { background: #b58a2a; }
.role-badge.role-waiter { background: #3b3018; color: #e8c26a; }
.user-avatar.role-platform_admin { background: #6b4ea0; }
.role-badge.role-platform_admin { background: #2a2130; color: #c49be0; }
.user-actions { align-items: center; display: flex; gap: 12px; }
.user-you { color: #967c6c; font-size: .78rem; font-style: italic; }

@media (max-width: 640px) { .user-row { grid-template-columns: 1fr; gap: 8px; } }
.manage-group { margin-bottom: 8px; }
.manage-group-title { color: #d6a889; font-size: .78rem; font-weight: 700; letter-spacing: .08em; margin: 0 0 10px; text-transform: uppercase; }
.manage-group .manage-actions { margin-bottom: 20px; }
.manage-category { margin-bottom: 28px; }
.manage-inline-actions { display: flex; gap: 12px; align-items: center; }
.tag-off { background: #4a211d; border-radius: 999px; color: #ffd0c7; font-size: .65rem; padding: 2px 8px; vertical-align: middle; }
.manage-product-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 12px; }
.manage-product-card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 12px; padding: 14px; }
.manage-product-card.is-inactive { opacity: .5; }
.mpc-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 8px; }
.mpc-variations { color: #d9ccc0; font-size: .85rem; list-style: none; margin: 0; padding: 0; }
.mpc-variations li { padding: 3px 0; }
.mpc-meta { color: #967c6c; font-size: .8rem; margin: 4px 0; }
.mpc-warning { color: #f0a35e; font-size: .82rem; }
.manage-add-product { align-items: center; border: 1px dashed #5d3a26; border-radius: 12px; color: #d6a889; display: flex; justify-content: center; padding: 14px; text-decoration: none; }
.manage-add-product:hover { border-color: #e8641c; color: #f0842f; }
.manage-form label, .manage-fieldset legend { color: #d6a889; display: block; font-size: .74rem; font-weight: 700; letter-spacing: .05em; margin: 14px 0 6px; text-transform: uppercase; }
.manage-form input, .manage-form textarea, .manage-form select { background: var(--app-input); border: 1px solid #5d3a26; border-radius: 8px; color: #fff7f0; padding: 10px; width: 100%; }
.manage-form .inline-check { align-items: center; display: flex; gap: 8px; text-transform: none; }
.manage-form .inline-check input { width: auto; }
.manage-form .dash-primary { margin-top: 18px; margin-right: 10px; }
.manage-fieldset { border: 1px solid var(--app-line); border-radius: 10px; margin-top: 16px; padding: 4px 14px 14px; }
.manage-list { list-style: none; margin: 0 0 14px; padding: 0; }
.manage-list li { align-items: center; border-top: 1px solid var(--app-line); display: flex; gap: 10px; justify-content: space-between; padding: 10px 0; }
.manage-inline-form { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.manage-inline-form input, .manage-inline-form select { background: var(--app-input); border: 1px solid #5d3a26; border-radius: 8px; color: #fff7f0; min-width: 0; padding: 8px; }
/* Nome ocupa a sobra; valores ficam estreitos para nome+venda+custo caberem na linha. */
.manage-inline-form input[type="text"] { flex: 1 1 140px; }
.manage-inline-form input[type="number"] { flex: 0 0 96px; }
.manage-inline-form input[type="submit"] { flex: 0 0 auto; }
.checkout-card h3 { margin-top: 0; }

/* ---- Campos de mídia do produto (foto / ícone) ---- */
.media-current { align-items: center; display: flex; gap: 14px; margin-bottom: 12px; }
.media-preview { border: 1px solid #5d3a26; border-radius: 12px; height: 72px; object-fit: cover; width: 72px; }
.media-preview-icon { align-items: center; color: #e8641c; display: flex; justify-content: center; }
.media-preview-icon.is-placeholder { color: #6a5c50; }
.media-hint { color: #967c6c; font-size: .82rem; }
.media-file { color: #d9ccc0; font-size: .85rem; }
.media-note { color: #967c6c; font-size: .76rem; margin: 6px 0 0; }
.media-video { align-items: flex-start; display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.media-video video { background: #000; border: 1px solid #5d3a26; border-radius: 12px; max-height: 180px; max-width: 100%; width: 240px; }
.media-icon-label { margin-top: 14px; }
.icon-gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); margin-top: 8px; }
.icon-option { align-items: center; background: var(--app-input); border: 1px solid var(--app-line); border-radius: 10px; color: #d6a889; cursor: pointer; display: flex; height: 52px; justify-content: center; position: relative; }
.icon-option:hover { border-color: #5d3a26; }
.icon-option.on, .icon-option:has(input:checked) { background: rgba(232,100,28,.14); border-color: #e8641c; color: #e8641c; }
.icon-option input { position: absolute; opacity: 0; }
.icon-none { font-size: .72rem; }
.ob { background: #173d2d; border: 1px solid #327a5b; border-radius: 999px; color: #92e0bb; font-size: .65rem; font-weight: 700; padding: 2px 9px; vertical-align: middle; }

/* ---- Storefront (telas do consumidor: QR mesa + site) ---- */
.storefront { --brand-primary: #e8641c; --brand-secondary: #14100d; background: #f4f1ea; color: #26211b; }
.sf-shell { margin: 0 auto; max-width: 480px; min-height: 100vh; }
.sf-hero { background: var(--brand-secondary); color: #fff; padding: 22px 18px; text-align: left; }
.sf-logo { border-radius: 10px; height: 48px; margin-bottom: 10px; }
.sf-context { background: var(--brand-primary); border-radius: 999px; color: #fff; display: inline-block; font-size: .7rem; font-weight: 700; margin-bottom: 10px; padding: 4px 11px; }
.sf-hero h1 { font-size: 1.5rem; margin: 0; }
.sf-hero p { color: rgba(255,255,255,.75); margin: 4px 0 0; }
.sf-flash { border-radius: 0; margin: 0; }
.sf-menu { padding: 14px; }
.sf-item { background: #fff; border: 1px solid #e4ddd0; border-radius: 14px; margin-bottom: 12px; padding: 14px; }
.sf-item-head strong { font-size: 1.05rem; }
.sf-item-desc { color: #6a6357; font-size: .85rem; margin: 4px 0 8px; }
.sf-modifier-group { border: 0; margin: 8px 0; padding: 0; }
.sf-modifier-group legend { color: #8a8377; font-size: .72rem; font-weight: 700; padding: 0; text-transform: uppercase; }
.sf-modifier-group small { color: #b0a798; }
.sf-chip { align-items: center; border: 1px solid #e4ddd0; border-radius: 999px; display: inline-flex; font-size: .8rem; gap: 6px; margin: 4px 4px 0 0; padding: 5px 11px; }
.sf-chip:has(input:checked) { background: var(--brand-secondary); border-color: var(--brand-secondary); color: #fff; }
.sf-variation-row { align-items: center; border-top: 1px solid #f0ece3; display: flex; gap: 10px; margin-top: 10px; padding-top: 10px; }
.sf-variation-row span { flex: 1; font-size: .9rem; }
.sf-qty { border: 1px solid #e4ddd0; border-radius: 8px; padding: 8px; width: 54px; }
.sf-cta { background: var(--brand-primary); border: 0; border-radius: 10px; color: #fff; font-weight: 700; padding: 9px 16px; }
.storefront-footer { color: #b0a798; font-size: .72rem; padding: 20px; text-align: center; }

/* ---- Cardápio do cliente (redesign) ---- */
.menu-shell { background: #f4ece0; margin: 0 auto; max-width: 460px; min-height: 100vh; padding-bottom: 40px; }
.menu-hero { background: var(--brand-secondary, #171009); color: #f6efe6; overflow: hidden; padding: 26px 22px 30px; position: relative; }
.menu-hero::before { background: radial-gradient(50% 45% at 50% 35%, rgba(255,110,40,.45), transparent 70%); content: ""; inset: -40% 0 0; position: absolute; }
.menu-logo { border-radius: 12px; height: 48px; margin-bottom: 12px; position: relative; }
.menu-badge { align-items: center; background: var(--brand-primary, #e2571e); border-radius: 999px; color: #fff; display: inline-flex; font-size: .72rem; font-weight: 700; gap: 6px; padding: 6px 12px; position: relative; }
.menu-hero h1 { font-size: 2rem; letter-spacing: -.015em; margin: 16px 0 0; position: relative; }
.menu-hero p { color: #cabeaf; font-size: .9rem; margin: 8px 0 0; position: relative; }
.menu-flash { font-size: .9rem; margin: 0; padding: 12px 22px; }
.menu-flash.is-ok { background: #e7f7ef; color: #0b6b46; }
.menu-flash.is-alert { background: #fdecec; color: #b64a11; }
.menu-catnav { backdrop-filter: blur(10px); background: rgba(244,236,224,.9); border-bottom: 1px solid #e7dccc; position: sticky; top: 0; z-index: 30; }
.menu-cattrack { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; scrollbar-width: none; }
.menu-cattrack::-webkit-scrollbar { display: none; }
.menu-chip { background: #fff; border: 1px solid #e7dccc; border-radius: 999px; color: #5c5145; font-size: .82rem; font-weight: 600; padding: 8px 15px; text-decoration: none; white-space: nowrap; }
.menu-chip.is-active { background: var(--brand-secondary, #171009); border-color: var(--brand-secondary, #171009); color: #ffd9be; }
.menu-section { padding: 24px 16px 6px; scroll-margin-top: 60px; }
.menu-sectitle { align-items: center; display: flex; gap: 12px; margin-bottom: 14px; }
.menu-sectitle h2 { color: #241a12; font-size: 1.35rem; margin: 0; }
.menu-rule { background: linear-gradient(90deg, #e7dccc, transparent); flex: 1; height: 1px; }
.menu-item { border-top: 1px solid #e7dccc; display: flex; gap: 14px; padding: 14px 0; }
.menu-item:first-of-type { border-top: 0; }
.menu-thumb { border-radius: 15px; flex: none; height: 88px; overflow: hidden; width: 88px; }
.menu-thumb .product-photo { height: 88px; object-fit: cover; width: 88px; }
.menu-thumb .product-icon-frame { align-items: center; background: linear-gradient(150deg, #7a3c1c, #3a1d10); border-radius: 15px; color: #ffd9be; display: flex; height: 88px; justify-content: center; width: 88px; }
.menu-thumb .product-icon-frame.is-placeholder { background: #e7dccc; color: #a1927f; }
.menu-thumb.has-video { background: transparent; border: 0; cursor: pointer; padding: 0; position: relative; }
.menu-play { align-items: center; background: rgba(0,0,0,.55); border-radius: 999px; bottom: 6px; color: #fff; display: flex; height: 24px; justify-content: center; position: absolute; right: 6px; width: 24px; }
.menu-play .icn { fill: currentColor; margin-left: 1px; }
.menu-videomodal { background: #000; border: 0; border-radius: 18px; max-height: 92vh; max-width: min(560px, 94vw); padding: 0; width: auto; }
.menu-videomodal::backdrop { background: rgba(10,6,4,.8); }
.menu-videomodal video { background: #000; display: block; max-height: 80vh; max-width: 100%; width: min(560px, 94vw); }
.menu-videoclose { background: rgba(0,0,0,.6); border: 0; border-radius: 999px; color: #fff; cursor: pointer; font-size: 1.4rem; height: 34px; line-height: 1; position: absolute; right: 10px; top: 10px; width: 34px; z-index: 1; }
.menu-videotitle { color: #ffd9be; font-size: .9rem; font-weight: 700; margin: 0; padding: 10px 14px; }
.menu-videotitle:empty { display: none; }
.menu-itemmain { flex: 1; min-width: 0; }
.menu-itemmain h3 { color: #241a12; font-size: 1.05rem; margin: 0; }
.menu-ds { color: #8b8074; font-size: .82rem; margin: 5px 0 0; }
.menu-vars { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.menu-var { background: #fff; border: 1px solid #e7dccc; border-radius: 999px; color: #6a5f52; cursor: pointer; font-size: .78rem; font-weight: 600; padding: 5px 11px; }
.menu-var.on { background: #2a1a0e; border-color: #2a1a0e; color: #ffd9be; }
.menu-var input { display: none; }
.menu-mods { border: 0; margin: 8px 0 0; padding: 0; }
.menu-mods legend { color: #8b8074; font-size: .7rem; font-weight: 700; padding: 0; text-transform: uppercase; }
.menu-modchip { align-items: center; border: 1px solid #e7dccc; border-radius: 999px; display: inline-flex; font-size: .76rem; gap: 5px; margin: 5px 5px 0 0; padding: 4px 10px; }
.menu-modchip:has(input:checked) { background: #2a1a0e; border-color: #2a1a0e; color: #ffd9be; }
.menu-itemfoot { align-items: center; display: flex; justify-content: space-between; margin-top: 10px; }
.menu-price { color: #241a12; font-size: 1rem; font-weight: 700; }
.menu-qty-add { align-items: center; display: flex; gap: 8px; }
.menu-qty { border: 1px solid #e7dccc; border-radius: 9px; padding: 8px; width: 48px; }
.menu-add { background: var(--brand-primary, #e2571e); border: 0; border-radius: 11px; color: #fff; cursor: pointer; font-weight: 700; padding: 9px 16px; }

/* ---- Site próprio auto-gerado (redesign) ---- */
.storefront { --char: var(--brand-secondary, #150e08); --paper: #f5ede1; --cream: #fdfaf5; --line: #e7dccc; --muted: #8b8074; --ink: #241a12; --green: #1f7a4d; }
.storefront body, body.storefront { background: var(--paper); color: var(--ink); }
.site-shell { margin: 0 auto; max-width: 1080px; }
/* nav */
.site-nav { backdrop-filter: blur(10px); background: rgba(21,14,8,.92); border-bottom: 1px solid rgba(255,255,255,.07); position: sticky; top: 0; z-index: 50; }
.site-nav-in { align-items: center; display: flex; gap: 18px; margin: 0 auto; max-width: 1080px; padding: 12px 20px; }
.site-logo { align-items: center; color: #f7efe4; display: flex; font-size: 1.05rem; font-weight: 700; gap: 10px; text-decoration: none; }
.site-logo-fl { align-items: center; background: linear-gradient(160deg, var(--brand-primary, #ff8a3d), #e2571e); border-radius: 9px; color: #fff; display: flex; height: 30px; justify-content: center; width: 30px; }
.site-nav-links { display: flex; gap: 20px; margin-left: auto; }
.site-nav-links a { color: #c8b9a8; font-size: .88rem; font-weight: 500; text-decoration: none; }
.site-nav-links a:hover { color: #fff; }
.site-nav-cta { background: var(--brand-primary, #e2571e); border-radius: 11px; color: #fff; font-size: .88rem; font-weight: 700; padding: 9px 18px; text-decoration: none; }
@media (max-width: 720px) { .site-nav-links { display: none; } }
/* hero */
.site-hero { background: var(--char); color: #f7efe4; overflow: hidden; position: relative; }
.site-hero::before { background: radial-gradient(circle, rgba(255,120,40,.4), transparent 62%); content: ""; height: 900px; left: 52%; position: absolute; top: -30%; transform: translateX(-50%); width: 900px; }
.site-hero::after { background: repeating-linear-gradient(114deg, rgba(0,0,0,.2) 0 1px, transparent 1px 18px); content: ""; inset: 0; opacity: .35; position: absolute; }
.site-hero-in { align-items: center; display: grid; gap: 40px; grid-template-columns: 1.15fr .85fr; margin: 0 auto; max-width: 1080px; padding: 72px 20px 80px; position: relative; }
@media (max-width: 860px) { .site-hero-in { grid-template-columns: 1fr; padding: 52px 20px 60px; } }
.site-eyebrow { align-items: center; background: rgba(31,122,77,.9); border-radius: 999px; color: #eafff3; display: inline-flex; font-size: .72rem; font-weight: 700; gap: 8px; padding: 6px 13px; }
.site-hero h1 { font-size: 3.4rem; font-weight: 900; letter-spacing: -.025em; line-height: .98; margin: 20px 0 0; }
.site-hero h1 em { color: var(--brand-primary, #ff8a3d); font-style: italic; }
@media (max-width: 860px) { .site-hero h1 { font-size: 2.6rem; } }
.site-lede { color: #c9bbaa; font-size: 1.05rem; margin: 16px 0 0; max-width: 44ch; }
.site-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.site-btn { align-items: center; border-radius: 13px; display: inline-flex; font-size: .98rem; font-weight: 700; gap: 9px; padding: 14px 26px; text-decoration: none; }
.site-btn.primary { background: linear-gradient(100deg, var(--brand-primary, #e2571e), #f0842f); box-shadow: 0 14px 34px rgba(226,87,30,.4); color: #fff; }
.site-btn.ghost { background: rgba(255,255,255,.94); color: #1c1209; }
.site-facts { color: #b6a693; display: flex; flex-wrap: wrap; font-size: .82rem; gap: 26px; margin-top: 30px; }
.site-facts b { color: #ffc79a; display: block; font-size: 1.35rem; font-weight: 700; }
.site-grillcard { background: linear-gradient(165deg, #3a1f0f, #1c1108); border: 1px solid rgba(255,255,255,.09); border-radius: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.5); padding: 26px; }
.site-grillcard-lbl { color: #d9a273; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.site-grillcard h3 { color: #fff; font-size: 1.5rem; margin: 8px 0 0; }
.site-sk { align-items: center; border-top: 1px solid rgba(255,255,255,.09); color: #e4d7c7; display: flex; font-size: .92rem; justify-content: space-between; padding: 11px 0; }
.site-sk:first-of-type { border-top: 0; margin-top: 10px; }
.site-sk b { color: #ffb27a; font-size: 1rem; }
/* sections */
.site-why, .site-menu-sec { padding: 66px 20px; }
.site-why { background: color-mix(in srgb, var(--char) 88%, #000); color: #f3e9dc; }
.site-sechead { align-items: baseline; display: flex; gap: 14px; margin-bottom: 26px; }
.site-eb { align-items: center; color: var(--brand-primary, #e2571e); display: inline-flex; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.site-sechead h2 { font-size: 2.1rem; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.site-why .site-sechead h2 { color: #fff; }
.site-rule { background: linear-gradient(90deg, var(--line), transparent); flex: 1; height: 1px; }
.site-whygrid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .site-whygrid { grid-template-columns: 1fr; } }
.site-wcard { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 22px; }
.site-wic { color: var(--brand-primary, #ff8a3d); }
.site-wcard h4 { color: #fff; font-size: 1.15rem; margin: 12px 0 6px; }
.site-wcard p { color: #bdae9c; font-size: .88rem; margin: 0; }
/* cardápio */
.site-menugrid { align-items: start; display: grid; gap: 28px; grid-template-columns: 1.35fr .65fr; }
@media (max-width: 860px) { .site-menugrid { grid-template-columns: 1fr; } }
.site-cat { margin-bottom: 26px; }
.site-cat h3 { color: var(--brand-primary, #e2571e); font-size: .72rem; font-weight: 700; letter-spacing: .16em; margin: 0 0 6px; text-transform: uppercase; }
.site-mrow { align-items: baseline; border-bottom: 1px dashed var(--line); display: flex; gap: 12px; padding: 11px 0; }
.site-nm { font-size: 1.08rem; font-weight: 600; }
.site-ds { color: var(--muted); display: block; font-size: .82rem; font-weight: 400; margin-top: 2px; }
.site-dots { border-bottom: 1px dotted #d6c9b6; flex: 1; transform: translateY(-4px); }
.site-pr { color: var(--brand-primary, #e2571e); font-size: .98rem; font-weight: 700; white-space: nowrap; }
.site-aside { background: var(--cream); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 34px rgba(90,50,20,.07); padding: 22px; position: sticky; top: 78px; }
.site-k { align-items: center; color: var(--muted); display: flex; font-size: .66rem; font-weight: 700; gap: 6px; letter-spacing: .14em; text-transform: uppercase; }
.site-v { font-size: .95rem; font-weight: 500; margin: 3px 0 16px; }
.site-v:last-of-type { margin-bottom: 0; }
.site-map { background: repeating-linear-gradient(0deg, #e8dfd0 0 1px, transparent 1px 24px), repeating-linear-gradient(90deg, #e8dfd0 0 1px, transparent 1px 24px), #efe7d9; border-radius: 12px; height: 120px; margin-top: 16px; position: relative; }
.site-map-pin { background: var(--brand-primary, #e2571e); border: 3px solid #fff; border-radius: 50% 50% 50% 0; box-shadow: 0 4px 10px rgba(0,0,0,.25); height: 16px; left: 46%; position: absolute; top: 40%; transform: rotate(-45deg); width: 16px; }
/* footer */
.site-foot { background: var(--char); color: #9d8f7e; font-size: .82rem; padding: 40px 20px; text-align: center; }
.site-foot-big { color: #f3e9dc; font-size: 1.4rem; margin-bottom: 6px; }
.site-foot-ax { color: #6d6154; font-size: .72rem; margin-top: 14px; }
/* chatbot */
.site-fab { align-items: center; background: linear-gradient(100deg, var(--brand-primary, #e2571e), #f0842f); border: 0; border-radius: 999px; bottom: 20px; box-shadow: 0 16px 38px rgba(200,70,15,.5); color: #fff; cursor: pointer; display: flex; font-size: .95rem; font-weight: 700; gap: 10px; padding: 14px 20px; position: fixed; right: 20px; z-index: 60; }
.site-fab.hide { display: none; }
.site-pulse { animation: sitepl 2s infinite; background: #7dffb0; border-radius: 50%; height: 9px; width: 9px; }
@keyframes sitepl { 70% { box-shadow: 0 0 0 11px rgba(125,255,176,0); } 100% { box-shadow: 0 0 0 0 rgba(125,255,176,0); } }
.site-chat { background: var(--cream); border: 1px solid var(--line); border-radius: 20px; bottom: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.4); display: none; flex-direction: column; height: 560px; max-height: calc(100vh - 40px); max-width: calc(100vw - 32px); overflow: hidden; position: fixed; right: 20px; width: 380px; z-index: 61; }
.site-chat.open { display: flex; }
.site-chead { align-items: center; background: var(--char); color: #f7efe4; display: flex; gap: 11px; padding: 15px 16px; }
.site-chead-av { align-items: center; background: linear-gradient(160deg, var(--brand-primary, #ff8a3d), #e2571e); border-radius: 12px; color: #fff; display: flex; height: 38px; justify-content: center; width: 38px; }
.site-chead-t { font-size: 1rem; font-weight: 600; }
.site-chead-s { align-items: center; color: #9fe6bd; display: flex; font-size: .72rem; gap: 5px; }
.site-chead-s i { background: #5fd99a; border-radius: 50%; display: inline-block; height: 6px; width: 6px; }
.site-chead-x { background: transparent; border: 0; color: #b9a897; cursor: pointer; font-size: 1.4rem; margin-left: auto; }
.site-msgs { display: flex; flex: 1; flex-direction: column; gap: 10px; overflow-y: auto; padding: 16px; }
.site-m { border-radius: 15px; font-size: .88rem; line-height: 1.5; max-width: 84%; padding: 11px 14px; white-space: pre-line; }
.site-m.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.site-m.me { align-self: flex-end; background: var(--char); border-bottom-right-radius: 5px; color: #f5ece0; }
.site-m b { color: var(--brand-primary, #e2571e); }
.site-m.me b { color: #ffb27a; }
.site-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 12px; }
.site-qc { background: #fff; border: 1px solid var(--line); border-radius: 999px; color: #5c5145; cursor: pointer; font-family: inherit; font-size: .78rem; font-weight: 600; padding: 7px 13px; }
.site-qc:hover { border-color: var(--brand-primary, #e2571e); color: var(--brand-primary, #e2571e); }
.site-cbar { background: #fff; border-top: 1px solid var(--line); display: flex; gap: 8px; padding: 11px 12px; }
.site-cbar input { border: 1px solid var(--line); border-radius: 12px; flex: 1; font-family: inherit; font-size: .88rem; outline: none; padding: 11px 13px; }
.site-cbar input:focus { border-color: var(--brand-primary, #e2571e); }
.site-cbar button { background: var(--brand-primary, #e2571e); border: 0; border-radius: 12px; color: #fff; cursor: pointer; font-size: 1.05rem; width: 44px; }
.site-wabar { background: #e9f7ef; border-top: 1px solid #cbe9d8; padding: 10px 12px; }
.site-wabar a { align-items: center; background: var(--green); border-radius: 12px; color: #fff; display: flex; font-size: .88rem; font-weight: 700; gap: 8px; justify-content: center; padding: 11px; text-decoration: none; }

@media (max-width: 860px) {
  .pos-shell { padding: 14px; }
  .pos-layout { grid-template-columns: 1fr; }
  .order-panel { min-height: auto; }
}

/* ---- Custo e margem (cardápio + painel) ---- */
.margin-badge { border-radius: 999px; font-size: .74rem; font-weight: 700; padding: 4px 10px; white-space: nowrap; }
.margin-badge.is-profit { background: rgba(62,207,142,.12); border: 1px solid rgba(62,207,142,.35); color: var(--app-good); }
.margin-badge.is-loss { align-items: center; background: rgba(255,107,91,.12); border: 1px solid rgba(255,107,91,.4); color: var(--app-bad); display: inline-flex; gap: 5px; }
.margin-badge.is-unknown { background: var(--app-surface-2); border: 1px solid var(--app-line); color: var(--app-dim2); }

.profit-big { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.profit-big.is-negative { color: var(--app-bad); }
.profit-note { color: var(--app-dim); font-size: .82rem; margin: 8px 0 0; }
.loss-alert { border-top: 1px solid var(--app-line); margin-top: 16px; padding-top: 14px; }
.loss-alert-title { align-items: center; color: var(--app-bad); display: flex; font-size: .78rem; font-weight: 700; gap: 6px; margin: 0 0 8px; }
.prow-vl.is-loss { color: var(--app-bad); }
.cost-cta p { color: var(--app-dim); margin: 0 0 16px; max-width: 60ch; }
.cost-cta .checkout-button { display: inline-block; margin-top: 0; padding: 12px 20px; text-decoration: none; }

/* ---- Estoque de insumos ---- */
.supply-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.supply-row { align-items: center; background: var(--app-surface-2); border: 1px solid var(--app-line); border-left: 3px solid var(--app-line-soft); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding: 12px 16px; }
.supply-row.is-low { border-left-color: var(--app-accent); }
.supply-row.is-out { border-left-color: var(--app-bad); }
.supply-id { display: flex; flex-direction: column; gap: 2px; min-width: 180px; }
.supply-min { color: var(--app-dim2); font-size: .76rem; }
.supply-balance { align-items: center; display: flex; gap: 10px; margin-left: auto; }
.supply-qty { font-size: 1.05rem; font-variant-numeric: tabular-nums; font-weight: 700; }
.supply-tag { border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; text-transform: uppercase; }
.supply-tag.is-low { background: rgba(240,132,47,.14); border: 1px solid rgba(240,132,47,.4); color: var(--app-accent-2); }
.supply-tag.is-out { background: rgba(255,107,91,.13); border: 1px solid rgba(255,107,91,.4); color: var(--app-bad); }
.supply-actions { display: flex; gap: 8px; }

.supply-headline { align-items: center; display: flex; gap: 14px; justify-content: space-between; }
.supply-headline-qty { font-size: 2.1rem; font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -.02em; }
.supply-headline.is-out .supply-headline-qty { color: var(--app-bad); }

.movement-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.movement-row { align-items: center; border-bottom: 1px solid var(--app-line); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 10px 0; }
.movement-main { display: flex; flex-direction: column; gap: 3px; }
.movement-kind { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.movement-kind.is-entrada { color: var(--app-good); }
.movement-kind.is-saida { color: var(--app-dim); }
.movement-kind.is-perda, .movement-kind.is-ajuste { color: var(--app-accent-2); }
.movement-note { color: var(--app-dim); font-size: .84rem; }
.movement-auto { background: var(--app-surface-2); border-radius: 4px; color: var(--app-dim2); font-size: .66rem; font-style: normal; margin-left: 6px; padding: 1px 5px; }
.movement-numbers { display: flex; flex-direction: column; gap: 2px; text-align: right; }
.movement-delta { font-variant-numeric: tabular-nums; font-weight: 700; }
.movement-delta.is-in { color: var(--app-good); }
.movement-delta.is-out { color: var(--app-dim); }
.movement-after { color: var(--app-dim2); font-size: .76rem; }
.movement-when { color: var(--app-dim2); font-size: .72rem; }

.manage-form { display: grid; gap: 6px; }
.manage-form label { color: var(--app-dim); font-size: .78rem; font-weight: 600; margin-top: 8px; }
.manage-form input[type="text"], .manage-form select { background: var(--app-input); border: 1px solid #5d3a26; border-radius: 8px; color: var(--app-ink); padding: 10px; width: 100%; }
.manage-form .muted { font-size: .78rem; margin: 0; }

/* Editor de variação: um formulário por linha, campos rotulados. */
.variation-editor { display: grid; gap: 12px; list-style: none; margin: 0 0 18px; padding: 0; }
.variation-item { background: var(--app-surface-2); border: 1px solid var(--app-line); border-radius: 12px; padding: 14px 16px; }
.variation-form { align-items: end; display: flex; flex-wrap: wrap; gap: 10px; }
.vf-field { display: flex; flex-direction: column; gap: 4px; }
.vf-field label { color: var(--app-dim2); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.vf-field input, .vf-field select { background: var(--app-input); border: 1px solid #5d3a26; border-radius: 8px; color: var(--app-ink); padding: 8px 10px; width: 110px; }
.vf-name input { width: 170px; }
.vf-supply select { width: 165px; }
.vf-actions { margin-left: auto; }
.variation-meta { align-items: center; border-top: 1px solid var(--app-line); display: flex; gap: 10px; justify-content: space-between; margin-top: 12px; padding-top: 10px; }
@media (max-width: 720px) {
  .variation-form { flex-direction: column; align-items: stretch; }
  .vf-field input, .vf-field select, .vf-name input, .vf-supply select { width: 100%; }
  .vf-actions { margin-left: 0; }
}

/* ---- Fechamento do dia ---- */
.closing-headline { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-bottom: 16px; }
@media (max-width: 760px) { .closing-headline { grid-template-columns: 1fr; } }
.closing-big { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 16px; padding: 22px 24px; }
.closing-big.is-empty { border-style: dashed; }
.closing-value { font-size: 2.6rem; font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-top: 4px; }
.closing-big.is-negative .closing-value { color: var(--app-bad); }
.closing-value-muted { color: var(--app-dim2); }
.closing-sub { color: var(--app-dim); font-size: .84rem; margin: 10px 0 0; }
.closing-warn { color: var(--app-accent-2); }
.closing-action { border-left: 3px solid var(--app-accent); }
.closing-link { display: inline-block; font-size: .82rem; margin-top: 12px; }
.closing-hint { border-top: 1px solid var(--app-line); color: var(--app-dim); font-size: .82rem; margin: 12px 0 0; padding-top: 10px; }

.closing-link { color: var(--app-accent); font-weight: 600; text-decoration: none; }
.closing-link:hover { text-decoration: underline; }
.closing-action .prow { gap: 10px; }
.closing-action .prow-vl { white-space: nowrap; }
/* Valores em coluna estreita não podem quebrar no meio do número. */
.prow-vl, .cxtot-v { white-space: nowrap; }

/* ---- Selo de estoque no cardápio (PDV e self-order) ---- */
.stock-badge { border-radius: 999px; font-size: .64rem; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; text-transform: uppercase; vertical-align: middle; white-space: nowrap; }
.stock-badge.is-low { background: rgba(240,132,47,.14); border: 1px solid rgba(240,132,47,.4); color: var(--app-accent-2); }
.stock-badge.is-out { background: rgba(255,107,91,.13); border: 1px solid rgba(255,107,91,.4); color: var(--app-bad); }
.product-card.is-out, .menu-item.is-out { opacity: .6; }
.menu-var.is-out { opacity: .5; }
.menu-var.is-out span { text-decoration: line-through; }
.menu-add:disabled, .menu-qty:disabled { cursor: not-allowed; filter: grayscale(.5); opacity: .5; }

/* ---- Tabela de consumo de insumos no fechamento ---- */
.usage-table { border-collapse: collapse; font-size: .88rem; width: 100%; }
.usage-table th { color: var(--app-dim2); font-size: .68rem; font-weight: 700; letter-spacing: .06em; padding: 0 8px 8px; text-align: left; text-transform: uppercase; }
.usage-table td { border-top: 1px solid var(--app-line); font-variant-numeric: tabular-nums; padding: 9px 8px; }
.usage-table td:first-child { font-weight: 600; }
.usage-table td a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.usage-soon { color: var(--app-bad); font-weight: 700; }

/* ---- Cardápio QR só-leitura: barra de chamar garçom ---- */
.menu-varlist { list-style: none; margin: 6px 0 0; padding: 0; }
.menu-varlist li { display: flex; justify-content: space-between; padding: 4px 0; }
.menu-varlist li.is-out { opacity: .5; }
.menu-optnote { color: var(--app-dim2, #8a7862); font-size: .78rem; margin: 6px 0 0; }
.menu-callbar, .menu-staffbar { background: #fff; border: 1px solid #ece0d2; border-radius: 14px; margin: 14px 16px; padding: 16px; }
.menu-calllead { font-weight: 700; margin: 0 0 10px; }
.menu-callactions { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.menu-callbtn { background: #f3ece2; border: 1px solid #e0d2c0; border-radius: 10px; color: #5c4a3d; cursor: pointer; font-weight: 600; padding: 12px; width: 100%; }
.menu-callbtn.is-primary { background: #e8641c; border-color: #e8641c; color: #fff; }
.menu-callstatus { align-items: center; color: #1d7a52; display: flex; font-weight: 700; gap: 8px; margin: 0; }
.menu-staffbar { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.menu-staff-cta { background: #e8641c; border-radius: 10px; color: #fff; font-weight: 700; padding: 10px 16px; text-decoration: none; }

/* ---- Painel do garçom: mesas chamando ---- */
.waiter-secttl { align-items: center; color: var(--app-dim); display: flex; font-size: .95rem; gap: 8px; margin: 20px 0 10px; }
.waiter-callcount { background: var(--app-accent); border-radius: 999px; color: #fff; font-size: .78rem; font-weight: 700; min-width: 22px; padding: 2px 8px; text-align: center; }
.call-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.call-card { align-items: center; background: rgba(240,132,47,.08); border: 1px solid rgba(240,132,47,.4); border-radius: 14px; display: flex; gap: 12px; justify-content: space-between; padding: 14px 16px; }
.call-main { display: flex; flex-direction: column; gap: 3px; }
.call-table { align-items: center; display: flex; font-weight: 700; gap: 6px; }
.call-reason { color: var(--app-accent-2); font-size: .84rem; font-weight: 600; }
.call-wait { color: var(--app-dim2); font-size: .74rem; }
.call-ack { background: var(--app-accent); border: 0; border-radius: 10px; color: #fff; cursor: pointer; font-weight: 700; padding: 10px 16px; }
.call-ack:hover { filter: brightness(1.06); }

/* ---- iFood: vale a pena? ---- */
.ifood-section { margin-bottom: 18px; }
.ifood-section h2 { margin: 0 0 6px; }
.ifood-table .is-loss, .ifood-sim-card .is-loss { color: var(--app-bad); }
.margin-badge.is-warn { background: rgba(240,132,47,.12); border: 1px solid rgba(240,132,47,.4); color: var(--app-accent-2); }
.ifood-table-wrap { margin: 0 0 14px; overflow-x: auto; }
.ifood-table td { vertical-align: top; }
.ifood-table small { display: block; }
.ifood-hint { color: var(--app-dim2); font-size: .74rem; }
.ifood-link { color: var(--app-accent-2); }
.ifood-sim-card { background: var(--app-surface-2); border: 1px solid var(--app-line); border-radius: 14px; padding: 14px 16px; }
.ifood-sim-card.is-current { border-color: var(--app-accent); }
.ifood-sim-card h3 { align-items: center; display: flex; gap: 8px; justify-content: space-between; margin: 0 0 10px; }
.ifood-sim-card dl { margin: 0; }
.ifood-sim-card dl > div { display: flex; justify-content: space-between; padding: 5px 0; }
.ifood-sim-card dt { color: var(--app-dim); }
.ifood-sim-card dd { font-variant-numeric: tabular-nums; margin: 0; }
.ifood-sim-total { border-top: 1px solid var(--app-line); font-size: 1.05rem; font-weight: 700; margin-top: 4px; padding-top: 9px !important; }
.ifood-conn-ok { align-items: center; color: var(--app-good); display: flex; flex-wrap: wrap; gap: 6px; }
.ifood-conn-ok strong { color: var(--app-ink); }
.ifood-accept-form { align-items: end; display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.ifood-accept-form label { color: var(--app-dim2); flex-basis: 100%; font-size: .78rem; font-weight: 600; }
.ifood-accept-form select, .ifood-accept-form input[type=text] { background: var(--app-input); border: 1px solid var(--app-line); border-radius: 9px; color: var(--app-ink); min-width: 260px; padding: 9px 10px; }
.ifood-steps { line-height: 1.8; padding-left: 20px; }
.ifood-code { background: var(--app-surface-2); border: 1px solid var(--app-line); border-radius: 8px; font-family: ui-monospace, monospace; font-size: 1.1rem; letter-spacing: .12em; padding: 2px 10px; }
.ifood-order-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-bottom: 20px; }
.ifood-order-card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 16px; display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.ifood-order-card.verdict-loss { border-color: var(--app-bad); }
.ifood-order-card.verdict-below_min { border-color: var(--app-accent-2); }
.ifood-order-card > header { align-items: center; display: flex; justify-content: space-between; }
.ifood-order-info { background: var(--app-surface-2); border-radius: 10px; color: var(--app-dim); display: grid; font-size: .82rem; gap: 3px; list-style: none; margin: 0; padding: 8px 10px; }
.ifood-dispute { border-color: #e2432f; }
.ifood-dispute.is-answered, .ifood-dispute.is-settled { border-color: var(--app-line); opacity: .85; }
.ifood-dispute-type { color: #ff8a7a; font-size: .8rem; font-weight: 700; text-align: right; }
.ifood-dispute-msg { background: var(--app-surface-2); border-radius: 10px; font-style: italic; margin: 0; padding: 8px 10px; }
.ifood-dispute-form { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ifood-dispute-form select, .ifood-dispute-form input { background: var(--app-input); border: 1px solid var(--app-line); border-radius: 8px; color: var(--app-ink); flex: 1 1 140px; font: inherit; font-size: .85rem; min-width: 0; padding: 7px 9px; }
.ifood-dispute-state { color: var(--app-dim); font-size: .85rem; margin: 0; }
.ifood-link-form { display: flex; gap: 6px; margin: 4px 0 2px; }
.ifood-link-form select { background: var(--app-input); border: 1px solid var(--app-line); border-radius: 8px; color: var(--app-ink); flex: 1; font: inherit; font-size: .82rem; min-width: 0; padding: 5px 8px; }
.ifood-sku { background: var(--app-input); border: 1px solid var(--app-line); border-radius: 8px; color: var(--app-ink); font: inherit; font-size: .82rem; padding: 5px 8px; width: 110px; }
.ifood-countdown { color: var(--app-dim); font-size: .84rem; margin: 0; }
.ifood-countdown.is-urgent { color: var(--app-bad); font-weight: 700; }
.ifood-estimate { margin: 0; }
.ifood-estimate > div { display: flex; justify-content: space-between; padding: 4px 0; }
.ifood-estimate dt { color: var(--app-dim); }
.ifood-estimate dd { font-variant-numeric: tabular-nums; margin: 0; }
.ifood-estimate .is-loss { color: var(--app-bad); }
.ifood-order-actions { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.ifood-order-actions form, .ifood-order-actions .checkout-button { width: 100%; }
.ifood-order-actions .summary-secondary { align-items: center; display: flex; justify-content: center; text-decoration: none; }
.ifood-reject { background: var(--app-bad); }
.kds-ifood { background: #ea1d2c; border-radius: 999px; color: #fff; font-size: .62rem; font-weight: 700; padding: 2px 8px; }
.topbar-badge { background: #ea1d2c; border-radius: 999px; color: #fff; font-size: .68rem; font-weight: 700; margin-left: 4px; padding: 1px 7px; }
.ifood-periods { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.ifood-period { border: 1px solid var(--app-line); border-radius: 999px; color: var(--app-dim); font-size: .84rem; padding: 6px 14px; text-decoration: none; }
.ifood-period.is-active { background: var(--app-accent); border-color: var(--app-accent); color: #fff; }
.ifood-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 14px 0 18px; }
.ifood-kpi { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 14px; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.ifood-kpi span { color: var(--app-dim2); font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ifood-kpi strong { font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.ifood-kpi small { color: var(--app-dim); font-size: .78rem; }
.ifood-kpi.is-main { border-color: var(--app-accent); }
.ifood-kpi .is-good { color: var(--app-good); }
.ifood-kpi .is-loss, .usage-table .is-loss { color: var(--app-bad); }
.ifood-two { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-bottom: 18px; }
.ifood-scenario { align-items: baseline; background: var(--app-surface-2); border: 1px solid var(--app-line); border-radius: 12px; display: grid; gap: 2px 12px; grid-template-columns: 1fr auto; margin: 8px 0; padding: 10px 14px; }
.ifood-scenario span { font-size: 1.15rem; font-variant-numeric: tabular-nums; font-weight: 700; }
.ifood-scenario small { color: var(--app-dim2); grid-column: 1 / -1; }
.ifood-scenario.is-best { border-color: var(--app-good); }

/* ---- iFood: tela "vale a pena?" (escopo .ifood-page) ---- */
/* Neutraliza o estilo genérico de formulário do .checkout-card (label/input em
   bloco, largura total, margens), que empilhava o rádio e duplicava as caixas. */
.ifood-page .checkout-card { min-width: 0; }
.ifood-page .checkout-card h2 { font-size: 1.6rem; margin: 0 0 4px; }
.ifood-page .checkout-card label { display: block; margin: 0; width: auto; }
.ifood-page .checkout-card input { display: inline-block; margin: 0; width: auto; }
.ifood-btn { align-items: center; border: 1px solid transparent; border-radius: 10px; cursor: pointer; display: inline-flex; font-size: .9rem; font-weight: 700; gap: 6px; justify-content: center; line-height: 1.2; padding: 10px 16px; text-decoration: none; white-space: nowrap; }
.ifood-btn-primary { background: var(--app-accent); color: #fff; }
.ifood-btn-primary:hover { background: var(--app-accent-2); }
.ifood-btn-ghost { background: transparent; border-color: var(--app-line); color: var(--app-ink); }
.ifood-btn-ghost:hover { border-color: var(--app-accent); }
.ifood-btn-danger { background: transparent; border-color: rgba(255,107,91,.4); color: var(--app-bad); }
.ifood-linkbtn { background: none; border: 0; color: var(--app-accent-2); cursor: pointer; padding: 0; text-decoration: underline; }
.ifood-inline { display: inline; }

.ifood-page .ifood-section { margin-bottom: 18px; scroll-margin-top: 70px; }
.ifood-section-head { margin-bottom: 16px; }
.ifood-section-head h2 { margin: 0 0 4px; }
.ifood-section-head p { margin: 0; }
.ifood-page .ifood-subtitle { color: var(--app-dim); font-size: .8rem; letter-spacing: .06em; margin: 26px 0 12px; text-transform: uppercase; }
.ifood-actions { display: flex; justify-content: flex-end; margin-top: 18px; }

.ifood-status { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 4px 0 14px; }
.ifood-status-card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 14px; color: inherit; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; text-decoration: none; transition: border-color .12s; }
.ifood-status-card:hover { border-color: var(--app-accent); }
.ifood-status-label { color: var(--app-dim2); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ifood-status-card strong { align-items: center; display: flex; font-size: 1.05rem; gap: 6px; }
.ifood-status-card small { color: var(--app-dim); font-size: .8rem; }
.ifood-status-card small b { color: var(--app-ink); }
.ifood-page .is-good { color: var(--app-good); }
.ifood-page .is-warn { color: var(--app-accent-2); }
.ifood-page .is-bad { color: var(--app-bad); }

.ifood-tabs { background: var(--app-bg); border-bottom: 1px solid var(--app-line); display: flex; gap: 4px; margin-bottom: 16px; overflow-x: auto; padding: 8px 0; position: sticky; top: 53px; z-index: 5; }
.ifood-tabs a { border-radius: 999px; color: var(--app-dim); font-size: .86rem; font-weight: 600; padding: 7px 14px; text-decoration: none; white-space: nowrap; }
.ifood-tabs a:hover { background: var(--app-surface-2); color: var(--app-ink); }

.ifood-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ifood-field > label { color: var(--app-dim2); font-size: .76rem; font-weight: 600; }
.ifood-page .ifood-field select, .ifood-page .ifood-field > input[type=text], .ifood-page .ifood-field > input[type=date], .ifood-input-unit { background: var(--app-input); border: 1px solid var(--app-line); border-radius: 9px; color: var(--app-ink); font: inherit; width: 100%; }
.ifood-page .ifood-field select, .ifood-page .ifood-field > input[type=text], .ifood-page .ifood-field > input[type=date] { padding: 9px 10px; width: 100%; }
.ifood-input-unit { align-items: center; display: flex; overflow: hidden; }
.ifood-input-unit:focus-within { border-color: var(--app-accent); }
.ifood-page .ifood-input-unit input { background: transparent; border: 0; color: var(--app-ink); flex: 1; font: inherit; font-variant-numeric: tabular-nums; min-width: 0; outline: none; padding: 9px 10px; }
.ifood-input-unit span { color: var(--app-dim2); font-size: .85rem; padding: 0 10px; }
.ifood-input-unit.is-money span { padding-right: 0; }
.ifood-input-unit.is-compact { width: 110px; }
.ifood-page .ifood-input-unit.is-compact input { padding: 7px 8px; }

.ifood-callout { border: 1px solid var(--app-line); border-radius: 12px; padding: 14px 16px; }
.ifood-callout.is-warn { background: rgba(240,132,47,.08); border-color: rgba(240,132,47,.35); }
.ifood-callout p { color: var(--app-dim); margin: 6px 0 0; }
.ifood-callout details { color: var(--app-dim2); font-size: .84rem; margin-top: 10px; }
.ifood-callout summary { cursor: pointer; }
.ifood-conn-row { align-items: baseline; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.ifood-conn-row .ifood-conn-ok { margin: 0; }
.ifood-inline-form { align-items: flex-end; display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 8px; }
.ifood-inline-form .ifood-field { flex: 1 1 260px; max-width: 360px; }
.ifood-custom-period { margin-top: 4px; }
.ifood-custom-period .ifood-field { flex: 0 1 170px; }
.ifood-section h4 { font-size: .95rem; margin: 18px 0 4px; }
.ifood-analytics-ref { margin: 6px 0 14px; }
.ifood-analytics-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.ifood-analytics-grid .usage-table td:not(:first-child), .ifood-analytics-grid .usage-table th { white-space: nowrap; }
/* ---- BI do iFood (Gestão › iFood › Desempenho) ---- */
.bi-note { font-size: .8rem; margin: -6px 0 14px; }
.ifood-bi .ifood-section-head a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.ifood-kpi small .kpi-delta { color: var(--app-dim); font-size: .72rem; letter-spacing: 0; margin-right: 4px; padding: 1px 7px; text-transform: none; }
.ifood-kpi small .kpi-delta.up { color: var(--app-good); }
.ifood-kpi small .kpi-delta.down { color: var(--app-bad); }
.bi-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bi-sub { color: var(--app-dim2); display: block; font-size: .74rem; font-weight: 400; }
.bi-inline-bar { background: rgba(255,255,255,.06); border-radius: 999px; display: block; height: 4px; margin-top: 5px; overflow: hidden; }
.bi-inline-bar i, .bi-fill { background: var(--app-accent); border-radius: 999px; display: block; height: 100%; }
.bi-unavailable { max-width: 720px; }
/* o que fazer agora */
.bi-advice h2 { font-size: 1.1rem; margin: 0 0 10px; }
.bi-advice-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); list-style: none; margin: 0; padding: 0; }
.bi-advice-item a { background: var(--app-surface-2); border: 1px solid var(--app-line); border-left: 4px solid var(--app-dim2); border-radius: 12px; color: inherit; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px 14px; text-decoration: none; transition: border-color .12s; }
.bi-advice-item a:hover { border-color: var(--app-accent); }
.bi-advice-item strong { font-size: .95rem; }
.bi-advice-item span { color: var(--app-dim); font-size: .84rem; }
.bi-advice-item.is-bad a { border-left-color: var(--app-bad); }
.bi-advice-item.is-warn a { border-left-color: var(--app-accent-2); }
.bi-advice-item.is-good a { border-left-color: var(--app-good); }
.bi-advice-item.is-bad strong::before { content: "● "; color: var(--app-bad); }
.bi-advice-item.is-warn strong::before { content: "▲ "; color: var(--app-accent-2); }
.bi-advice-item.is-good strong::before { content: "✓ "; color: var(--app-good); }
/* preços */
.bi-target-form .ifood-field { flex: 0 1 220px; }
.bi-target-form .ifood-hint { flex-basis: 100%; margin: 0; }
.bi-price-kpis { margin-bottom: 0; }
.bi-price-table td, .bi-price-table th { white-space: nowrap; }
.bi-price-table td:nth-child(2) { white-space: normal; min-width: 160px; }
.bi-apply { align-items: center; cursor: pointer; display: inline-flex; font-weight: 700; gap: 6px; }
.bi-apply input { accent-color: var(--app-accent); height: 16px; width: 16px; }
.bi-apply-btn { margin-top: 12px; }
.bi-quadrants { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.bi-quadrant { background: var(--app-surface-2); border: 1px solid var(--app-line); border-radius: 14px; padding: 12px 14px; }
.bi-quadrant header { align-items: center; display: flex; justify-content: space-between; }
.bi-quadrant header span { background: var(--app-surface); border-radius: 999px; color: var(--app-dim); font-size: .78rem; font-weight: 700; padding: 2px 9px; }
.bi-quadrant p { color: var(--app-dim); font-size: .82rem; margin: 6px 0 8px; }
.bi-quadrant ul { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
.bi-quadrant li { display: flex; font-size: .84rem; gap: 8px; justify-content: space-between; }
.bi-quadrant li small { color: var(--app-dim2); white-space: nowrap; }
.bi-quadrant.is-star { border-color: rgba(62,207,142,.45); }
.bi-quadrant.is-workhorse { border-color: rgba(240,132,47,.45); }
.bi-quadrant.is-dog { border-color: rgba(255,107,91,.35); }
.bi-all-items summary { cursor: pointer; font-weight: 700; }
.bi-all-items[open] summary { margin-bottom: 12px; }
/* dinheiro */
.bi-waterfall { display: grid; gap: 2px; }
.bi-wf-row { align-items: center; border-top: 1px solid var(--app-line); display: grid; gap: 4px 14px; grid-template-columns: minmax(0, 1.2fr) minmax(80px, 1fr) auto; padding: 9px 0; }
.bi-wf-name strong { display: block; font-size: .9rem; }
.bi-wf-name small, .bi-wf-value small { color: var(--app-dim2); display: block; font-size: .74rem; }
.bi-wf-track { background: rgba(255,255,255,.05); border-radius: 4px; height: 10px; overflow: hidden; }
.bi-wf-track i { background: var(--app-gold); border-radius: 4px; display: block; height: 100%; }
.bi-wf-row.is-out .bi-wf-track i { background: var(--app-dim2); }
.bi-wf-row.is-total { border-top: 2px solid var(--app-line); }
.bi-wf-row.is-total.is-good .bi-wf-track i { background: var(--app-good); }
.bi-wf-row.is-total.is-loss .bi-wf-track i { background: var(--app-bad); }
.bi-wf-row.is-total.is-good .bi-wf-value { color: var(--app-good); }
.bi-wf-row.is-total.is-loss .bi-wf-value { color: var(--app-bad); }
.bi-wf-value { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 110px; text-align: right; }
@media (max-width: 560px) {
  .bi-wf-row { grid-template-columns: 1fr auto; }
  .bi-wf-track { grid-column: 1 / -1; grid-row: 2; }
}
/* horários: mapa de calor dia × hora (uma cor, mais forte = mais pedidos) */
.bi-heat { display: grid; gap: 2px; grid-template-columns: 44px repeat(var(--cols), minmax(30px, 1fr)); min-width: max-content; }
.bi-heat-hour, .bi-heat-day { color: var(--app-dim2); font-size: .7rem; font-weight: 700; }
.bi-heat-hour { padding-bottom: 4px; text-align: center; }
.bi-heat-day { align-self: center; }
.bi-heat-cell { align-items: center; background: color-mix(in srgb, var(--app-accent) var(--heat, 0%), var(--app-surface-2)); border-radius: 4px; color: var(--app-ink); display: flex; font-size: .7rem; font-variant-numeric: tabular-nums; height: 30px; justify-content: center; }
.bi-heat-cell.is-empty { background: var(--app-surface-2); }
/* clientes */
.bi-split { background: var(--app-surface-2); border-radius: 999px; height: 12px; margin: 4px 0 4px; overflow: hidden; }
.bi-split-a { background: var(--app-accent); display: block; height: 100%; }
.bi-split-legend { color: var(--app-dim); display: flex; font-size: .8rem; font-weight: 600; justify-content: space-between; margin: 0 0 4px; }
/* Detalhe do pedido iFood */
.ifood-detail-grid { align-items: start; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); margin-bottom: 18px; }
.ifood-detail-grid .ifood-section { margin-bottom: 0; }
.ifood-detail-grid .usage-table td.num { text-align: right; white-space: nowrap; }
.ifood-detail-grid .ifood-estimate dd { text-align: right; }
.ifood-order-link { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--app-dim); text-underline-offset: 3px; }
.ifood-timeline { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
.ifood-timeline .muted { display: inline-block; font-variant-numeric: tabular-nums; min-width: 92px; }
.ifood-homolog-banner code { font-size: .82em; overflow-wrap: anywhere; }
.ifood-disconnect { margin-top: 14px; }

.ifood-page .ifood-plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ifood-page .ifood-plan { background: var(--app-surface-2); border: 1px solid var(--app-line); border-radius: 14px; padding: 14px 16px 16px; transition: border-color .12s, box-shadow .12s; }
.ifood-page .ifood-plan:has(input[type=radio]:checked) { border-color: var(--app-accent); box-shadow: 0 0 0 1px var(--app-accent); }
.ifood-page .checkout-card .ifood-plan-head { align-items: center; cursor: pointer; display: flex; gap: 12px; margin-bottom: 14px; }
.ifood-page .ifood-plan-head input[type=radio] { flex: none; accent-color: var(--app-accent); height: 18px; margin: 0; width: 18px; }
.ifood-plan-name { display: flex; flex: 1; flex-direction: column; }
.ifood-plan-name small { color: var(--app-dim); font-size: .8rem; }
.ifood-plan-take { background: rgba(234,29,44,.12); border-radius: 999px; color: #ff8a93; font-size: .82rem; font-variant-numeric: tabular-nums; font-weight: 800; padding: 4px 10px; }
.ifood-plan-fields { align-items: end; display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ifood-page .ifood-costs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.ifood-page .ifood-hint { color: var(--app-dim2); font-size: .76rem; }
.ifood-page p.ifood-hint { margin: 10px 0 0; }

.ifood-page .ifood-table th.is-current { color: var(--app-accent-2); }
.ifood-page .ifood-plan-cell { min-width: 200px; }
.ifood-page .ifood-plan-cell.is-current { background: rgba(232,100,28,.04); }
.ifood-cell-top { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.ifood-page .ifood-plan-cell small { display: block; }
.ifood-item-name { font-weight: 600; }
.ifood-empty { align-items: center; border: 1px dashed var(--app-line); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; padding: 24px; text-align: center; }
.ifood-empty p { color: var(--app-dim); margin: 0; }

.ifood-sim { align-items: start; display: grid; gap: 18px; grid-template-columns: minmax(240px, 320px) 1fr; }
.ifood-page .ifood-sim-form { display: flex; flex-direction: column; gap: 12px; }
.ifood-page .ifood-sim-form .ifood-btn { margin-top: 4px; }
.ifood-page .ifood-sim-results { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ifood-sim-note { grid-column: 1 / -1; margin: 0 !important; }

@media (max-width: 720px) {
  .ifood-page .pos-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .ifood-page .pos-header-actions { flex-wrap: wrap; }
  .ifood-plan-fields { grid-template-columns: 1fr 1fr; }
  .ifood-sim { grid-template-columns: 1fr; }
}
.ifood-empty-rec { max-width: 720px; }
.ifood-page .ifood-empty-rec h2 { font-size: 1.35rem; margin: 0 0 8px; }
.ifood-empty-rec p { color: var(--app-dim); margin: 0 0 12px; }
.ifood-empty-rec .ifood-steps { color: var(--app-dim); margin: 0 0 16px; }

/* ---- iFood: cardápio agrupado, com busca/filtro e custo editável ---- */
.ifood-menu-toolbar { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.ifood-page .ifood-menu-search { background: var(--app-input); border: 1px solid var(--app-line); border-radius: 9px; color: var(--app-ink); flex: 1 1 220px; font: inherit; max-width: 320px; padding: 9px 12px; width: auto; }
.ifood-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ifood-chip { background: transparent; border: 1px solid var(--app-line); border-radius: 999px; color: var(--app-dim); cursor: pointer; font-size: .82rem; font-weight: 600; padding: 6px 12px; }
.ifood-chip span { color: var(--app-dim2); margin-left: 4px; }
.ifood-chip:disabled { cursor: default; opacity: .4; }
.ifood-chip.is-active { background: var(--app-accent); border-color: var(--app-accent); color: #fff; }
.ifood-chip.is-active span { color: #fff; }
.ifood-cat { border: 1px solid var(--app-line); border-radius: 12px; margin-bottom: 10px; }
.ifood-cat > summary { align-items: center; cursor: pointer; display: flex; gap: 12px; justify-content: space-between; list-style: none; padding: 12px 16px; }
.ifood-cat > summary::-webkit-details-marker { display: none; }
.ifood-cat > summary::before { color: var(--app-dim2); content: "▸"; transition: transform .12s; }
.ifood-cat[open] > summary::before { transform: rotate(90deg); }
.ifood-cat-name { flex: 1; font-weight: 700; }
.ifood-cat-meta { color: var(--app-dim2); display: flex; flex-wrap: wrap; font-size: .8rem; gap: 10px; }
.ifood-page .ifood-cat-meta .is-muted { color: var(--app-dim); }
.ifood-cat .ifood-table-wrap { border-top: 1px solid var(--app-line); margin: 0; padding: 0 8px 4px; }
.ifood-menu-table td { vertical-align: middle; }
.ifood-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ifood-nocost { color: var(--app-dim); }
.ifood-nocost span { display: block; font-size: .85rem; }
.ifood-page .ifood-input-unit.is-dirty { border-color: var(--app-accent-2); box-shadow: 0 0 0 1px var(--app-accent-2); }
.ifood-empty-filter { color: var(--app-dim); padding: 16px; text-align: center; }
.ifood-savebar { align-items: center; background: var(--app-surface); border-top: 1px solid var(--app-line); bottom: 0; display: flex; gap: 12px; justify-content: flex-end; margin: 12px -24px -24px; padding: 12px 24px; position: sticky; z-index: 4; }
.ifood-savebar .is-warn { color: var(--app-accent-2); font-weight: 600; }
.ifood-page .ifood-tabs a.is-active { background: var(--app-surface-2); box-shadow: inset 0 -2px 0 var(--app-accent); color: var(--app-ink); }
.ifood-tab-count { background: var(--app-surface-2); border-radius: 999px; color: var(--app-dim2); font-size: .72rem; margin-left: 4px; padding: 1px 7px; }
.ifood-page [data-tab-panel][hidden] { display: none; }
.ifood-expand { font-size: .84rem; }
/* Planos: o seu em destaque, o outro apagado "para comparar"; o motoboy mora no card do Básico. */
.ifood-page .ifood-plans-lead { margin: 0 0 10px; }
.ifood-page .ifood-plan { display: flex; flex-direction: column; gap: 12px; }
.ifood-page .ifood-plan-head { margin-bottom: 0; }
.ifood-page .ifood-plan:not(:has(input[type=radio]:checked)) { opacity: .62; }
.ifood-page .ifood-plan:not(:has(input[type=radio]:checked)):hover, .ifood-page .ifood-plan:not(:has(input[type=radio]:checked)):focus-within { opacity: 1; }
.ifood-plan-tag { border-radius: 999px; font-size: .64rem; font-style: normal; font-weight: 700; letter-spacing: .04em; margin-left: 6px; padding: 2px 8px; text-transform: uppercase; vertical-align: 2px; }
.ifood-plan-tag.is-mine { background: var(--app-accent); color: #fff; display: none; }
.ifood-plan-tag.is-compare { border: 1px solid var(--app-line); color: var(--app-dim2); }
.ifood-page .ifood-plan:has(input[type=radio]:checked) .ifood-plan-tag.is-mine { display: inline-block; }
.ifood-page .ifood-plan:has(input[type=radio]:checked) .ifood-plan-tag.is-compare { display: none; }
.ifood-plan-note { background: rgba(255,255,255,.03); border: 1px dashed var(--app-line); border-radius: 10px; color: var(--app-dim); font-size: .82rem; margin: 0; padding: 10px 12px; }
.ifood-plan-extra { border-top: 1px solid var(--app-line); padding-top: 12px; }
.ifood-plan-extra .ifood-input-unit { max-width: 220px; }
.ifood-page .ifood-threshold { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; }
.ifood-page .ifood-threshold > label { color: var(--app-dim); font-size: .84rem; font-weight: 500; }
.ifood-page .ifood-threshold .ifood-input-unit { width: 160px; }
.ifood-page .ifood-costs { grid-template-columns: repeat(auto-fill, minmax(220px, 280px)); }

/* ---- Gestão > Cardápio: busca instantânea ---- */
.catalog-search { align-items: center; background: var(--app-bg); display: flex; gap: 12px; margin: 0 0 18px; padding: 8px 0; position: sticky; top: 53px; z-index: 5; }
.catalog-search input { background: var(--app-input); border: 1px solid var(--app-line); border-radius: 10px; color: var(--app-ink); flex: 1; font: inherit; max-width: 520px; padding: 11px 14px; }
.catalog-search input:focus { border-color: var(--app-accent); outline: none; }
.catalog-search-count { color: var(--app-dim2); font-size: .84rem; white-space: nowrap; }
.manage-product-card[hidden], .manage-category[hidden], .manage-add-product[hidden] { display: none; }

/* Em falta: pausar o que acabou e o estoque contado do item */
.avail-intro { color: var(--app-dim); font-size: .92rem; margin: 0 0 14px; max-width: 760px; }
.avail-intro p { margin: 0 0 8px; }
.avail-note { color: var(--app-dim2); font-size: .84rem; }
.avail-summary { color: var(--app-good); font-weight: 700; }
.avail-summary.is-off { color: var(--app-bad); }
.avail-category h2 { font-size: 1.05rem; margin: 18px 0 8px; }
.avail-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.avail-row { align-items: center; background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 12px; display: grid; gap: 8px 14px; grid-template-columns: 1fr auto; padding: 12px 14px; scroll-margin-top: 120px; }
.avail-row[hidden] { display: none; }
.avail-row.is-off { border-color: rgba(255,107,91,.45); }
.avail-row.is-off .avail-main strong { color: var(--app-dim); }
.avail-main { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; min-width: 0; }
.avail-price { color: var(--app-dim2); font-size: .85rem; }
.avail-status { color: var(--app-dim); flex-basis: 100%; font-size: .84rem; }
.avail-ok { color: var(--app-good); font-weight: 700; }
.avail-actions { display: flex; gap: 8px; justify-content: flex-end; }
.avail-actions form { margin: 0; }
.avail-resume { background: var(--app-good); color: #0b2117; }
.avail-stock { grid-column: 1 / -1; }
.avail-stock summary { color: var(--app-gold); cursor: pointer; font-size: .85rem; }
.avail-stock .muted { font-size: .82rem; margin: 8px 0 0; }
.avail-stock-form { align-items: end; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.avail-stock-form label { color: var(--app-dim); display: grid; font-size: .8rem; gap: 4px; }
.avail-stock-form input { background: var(--app-input); border: 1px solid var(--app-line); border-radius: 9px; color: var(--app-ink); font: inherit; padding: 9px 10px; width: 120px; }
.avail-link { background: none; border: 0; color: #ffb5a8; cursor: pointer; font-size: .8rem; margin-top: 8px; padding: 0; text-decoration: underline; }
@media (max-width: 640px) {
  .avail-row { grid-template-columns: 1fr; }
  .avail-actions { justify-content: stretch; }
  .avail-actions form, .avail-actions .ifood-btn { flex: 1; width: 100%; }
}

/* ---- Estoque: comprado × preparado, custo, compra por embalagem, ficha técnica ---- */
.supply-kind { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 6px; }
.checkout-card .supply-kind-option, .supply-kind-option { align-items: flex-start; background: var(--app-surface-2); border: 1px solid var(--app-line); border-radius: 12px; cursor: pointer; display: flex; gap: 10px; margin: 0; padding: 12px 14px; }
.supply-kind-option:has(input:checked) { border-color: var(--app-accent); box-shadow: 0 0 0 1px var(--app-accent); }
.checkout-card .supply-kind-option input, .supply-kind-option input { accent-color: var(--app-accent); margin: 3px 0 0; width: auto; }
.supply-kind-option span { display: flex; flex-direction: column; gap: 2px; }
.supply-kind-option small { color: var(--app-dim); font-size: .8rem; }
.manage-form:not(:has(input[value="prepared"]:checked)) .supply-yield { display: none; }
.supply-kind-tag { background: rgba(232,100,28,.14); border-radius: 999px; color: var(--app-accent-2); font-size: .66rem; font-weight: 700; margin-left: 4px; padding: 2px 7px; text-transform: uppercase; vertical-align: 2px; }
.supply-unit-cost { color: var(--app-good); display: block; font-size: .8rem; font-weight: 600; }
.supply-unit-cost.is-missing { color: var(--app-dim2); font-weight: 500; }
.supply-summary { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.supply-cost-box { border-left: 1px solid var(--app-line); display: flex; flex-direction: column; gap: 4px; padding-left: 16px; }
.supply-cost { font-size: 1.6rem; font-variant-numeric: tabular-nums; font-weight: 800; }
.impact-card { border-color: var(--app-accent); }
.impact-table .is-bad { color: var(--app-bad); }
.impact-table .is-good { color: var(--app-good); }
.purchase-form { align-items: flex-end; display: flex; flex-wrap: wrap; gap: 10px; }
.purchase-field { display: flex; flex-direction: column; gap: 5px; min-width: 110px; }
.purchase-field > label { color: var(--app-dim2); font-size: .76rem; font-weight: 600; }
.purchase-field input, .purchase-field select { background: var(--app-input); border: 1px solid var(--app-line); border-radius: 9px; color: var(--app-ink); font: inherit; padding: 9px 10px; width: 120px; }
.purchase-field .ifood-input-unit input { border: 0; width: 100px; }
.purchase-field select { width: auto; }
.purchase-note { flex: 1 1 200px; }
.purchase-note input { width: 100%; }
.purchase-op { color: var(--app-dim2); font-size: 1.2rem; padding-bottom: 10px; }
.purchase-preview { background: var(--app-surface-2); border-radius: 10px; color: var(--app-dim); flex-basis: 100%; margin: 4px 0; padding: 10px 12px; }
.purchase-preview b { color: var(--app-ink); }
.other-movements > summary { cursor: pointer; font-weight: 700; }
.other-movements[open] > summary { margin-bottom: 10px; }
.recipe-table { border-collapse: collapse; font-size: .9rem; margin-bottom: 12px; width: 100%; }
.recipe-table th { color: var(--app-dim2); font-size: .68rem; font-weight: 700; letter-spacing: .06em; padding: 0 6px 8px; text-align: left; text-transform: uppercase; }
.recipe-table td { border-top: 1px solid var(--app-line); padding: 8px 6px; vertical-align: middle; }
.recipe-table tfoot td { border-top: 2px solid var(--app-line); font-weight: 600; }
.recipe-meta { color: var(--app-dim2); display: block; font-size: .74rem; }
.recipe-num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.recipe-missing, .recipe-warn { color: var(--app-accent-2); }
.recipe-warn { font-size: .84rem; margin: 0 0 10px; }
.recipe-empty { color: var(--app-dim); margin: 0 0 12px; }
.recipe-inline, .recipe-add { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; }
.recipe-inline input, .recipe-inline select, .recipe-add input, .recipe-add select { background: var(--app-input); border: 1px solid var(--app-line); border-radius: 8px; color: var(--app-ink); font: inherit; margin: 0; padding: 7px 8px; width: auto; }
.recipe-add select.recipe-supply { flex: 1 1 220px; min-width: 200px; }
.recipe-qty { width: 80px !important; }
.recipe-loss { width: 64px !important; }
.recipe-pct { color: var(--app-dim2); }
.recipe-save { background: transparent; border: 1px solid var(--app-line); border-radius: 8px; color: var(--app-good); cursor: pointer; padding: 5px 9px; }
@media (max-width: 720px) { .supply-summary { grid-template-columns: 1fr; } .supply-cost-box { border-left: 0; padding-left: 0; } }
.variation-form:has(.vf-cost-source option[value="recipe"]:checked) .vf-manual-cost { display: none; }
.variation-form:not(:has(.vf-cost-source option[value="recipe"]:checked)) .vf-recipe-cost { display: none; }
.vf-computed { display: block; font-variant-numeric: tabular-nums; font-weight: 700; padding: 9px 0; }
.variation-recipe { border-top: 1px dashed var(--app-line); flex-basis: 100%; margin-top: 10px; padding-top: 10px; }
.variation-recipe > summary { cursor: pointer; font-weight: 700; margin-bottom: 8px; }
.vf-cost-source { min-width: 170px; }

/* ---- Nota fiscal por foto ---- */
.receipt-form { display: flex; flex-direction: column; gap: 14px; margin: 14px 0 8px; }
.receipt-drop { align-items: center; border: 2px dashed var(--app-line); border-radius: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; padding: 34px 20px; text-align: center; }
.receipt-drop:hover { border-color: var(--app-accent); }
.receipt-drop input[type=file] { color: var(--app-dim); max-width: 100%; }
.receipt-drop-icon { color: var(--app-accent-2); }
.receipt-drop small { color: var(--app-dim2); }
.receipt-status { align-items: center; display: flex; flex-direction: column; gap: 8px; padding: 40px 20px; text-align: center; }
.receipt-spinner { animation: receiptSpin 1s linear infinite; border: 3px solid var(--app-line); border-radius: 50%; border-top-color: var(--app-accent); height: 34px; width: 34px; }
@keyframes receiptSpin { to { transform: rotate(360deg); } }
.receipt-actions { display: flex; gap: 10px; }
.receipt-table td { vertical-align: top; }
.receipt-table tr.is-skipped td:not(:first-child) { opacity: .35; }
.receipt-table tr.is-skipped .receipt-desc span { text-decoration: line-through; }
.receipt-desc { max-width: 280px; }
.receipt-desc small { display: block; }
.receipt-skip { align-items: flex-start; display: flex; gap: 8px; }
.receipt-skip input { accent-color: var(--app-accent); margin-top: 3px; }
.receipt-learned { color: var(--app-good); font-weight: 600; }
.receipt-supply, .receipt-new input, .receipt-new select, .receipt-num { background: var(--app-input); border: 1px solid var(--app-line); border-radius: 8px; color: var(--app-ink); font: inherit; padding: 7px 8px; }
.receipt-supply { max-width: 220px; }
.receipt-new { display: flex; gap: 6px; margin-top: 6px; }
.receipt-new[hidden] { display: none; }
.receipt-new input { width: 150px; }
.receipt-num { width: 70px; }
.receipt-per { align-items: center; display: flex; gap: 6px; }
.receipt-per span { color: var(--app-dim2); font-size: .82rem; }
.receipt-cost { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.receipt-cost.is-missing { color: var(--app-accent-2); }
.receipt-bar { align-items: center; background: var(--app-surface); border-top: 1px solid var(--app-line); bottom: 0; display: flex; gap: 14px; justify-content: flex-end; margin-top: 14px; padding: 12px 0; position: sticky; }
.receipt-done { list-style: none; margin: 0; padding: 0; }
.receipt-done li { border-top: 1px solid var(--app-line); padding: 8px 0; }
.receipt-table .ifood-input-unit { background: var(--app-input); border: 1px solid var(--app-line); border-radius: 8px; display: flex; overflow: hidden; width: 120px; }
.receipt-table .ifood-input-unit span { color: var(--app-dim2); font-size: .82rem; padding: 0 0 0 8px; align-self: center; }
.receipt-table .ifood-input-unit input { background: transparent; border: 0; color: var(--app-ink); font: inherit; min-width: 0; outline: none; padding: 7px 8px; width: 100%; }

/* ---- PDV: pedidos em aberto (receber / cancelar) ---- */
.open-orders-help { margin: -6px 0 12px; }
.open-orders-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-bottom: 24px; }
.open-order { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 16px; display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.open-order.is-unacknowledged { border-color: #e2432f; box-shadow: 0 0 0 2px rgba(226,67,47,.35); }
.open-order-new { background: #e2432f; border-radius: 999px; color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .04em; padding: 2px 8px; text-transform: uppercase; }
.open-order.channel-site { border-left: 3px solid var(--app-accent); }
.open-order > header { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.open-order-channel, .open-order-type { background: var(--app-surface-2); border-radius: 999px; color: var(--app-dim); font-size: .72rem; font-weight: 700; padding: 2px 9px; }
.channel-site .open-order-channel { background: rgba(232,100,28,.16); color: var(--app-accent-2); }
.open-order-age { color: var(--app-dim2); font-size: .76rem; margin-left: auto; }
.open-order-customer { font-weight: 600; margin: 0; }
.open-order-note { background: var(--app-surface-2); border-radius: 8px; color: var(--app-dim); font-size: .82rem; margin: 0; padding: 8px 10px; }
.open-order-items { color: var(--app-dim); font-size: .86rem; list-style: none; margin: 0; padding: 0; }
.open-order-status { align-items: center; border-top: 1px solid var(--app-line); display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; padding-top: 10px; }
.kitchen-state { border-radius: 999px; font-size: .74rem; font-weight: 700; padding: 3px 9px; }
.kitchen-state.is-queued, .kitchen-state.is-preparing { background: rgba(240,132,47,.14); color: var(--app-accent-2); }
.kitchen-state.is-ready { background: rgba(62,207,142,.14); color: var(--app-good); }
.kitchen-state.is-delivered, .kitchen-state.is-none { background: var(--app-surface-2); color: var(--app-dim2); }
.open-order-money b { font-size: 1.05rem; }
.open-order .is-good { color: var(--app-good); }
.open-order .is-bad { color: var(--app-bad); }
.open-order-actions { align-items: flex-start; display: flex; flex-wrap: wrap; gap: 8px; }
.open-order-cancel > summary { color: var(--app-bad); cursor: pointer; font-size: .86rem; font-weight: 600; list-style: none; padding: 10px 4px; }
.open-order-cancel > summary::-webkit-details-marker { display: none; }
.open-order-cancel-form { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.open-order-cancel-form input { background: var(--app-input); border: 1px solid var(--app-line); border-radius: 8px; color: var(--app-ink); font: inherit; padding: 8px 10px; }

/* ---- PDV: vendas do dia (pedido a pedido, item a item) ---- */
.orders-tabs { align-self: flex-start; display: inline-flex; margin: -4px 0 18px; }
.day-sales-nav { flex-wrap: wrap; }
.day-sales-nav a.quantity-control { padding: 6px 10px; text-decoration: none; }
.day-sales-nav a.quantity-control:hover, .day-sales-date button:hover { border-color: var(--app-accent); }
.day-sales-date button { padding: 6px 10px; }
.day-sales-date { align-items: center; display: flex; gap: 6px; margin: 0; }
.day-sales-date input { background: var(--app-input); border: 1px solid var(--app-line); border-radius: 7px; color: var(--app-ink); color-scheme: dark; font: inherit; font-size: .88rem; padding: 4px 8px; }
.day-sales-kpis { display: grid; gap: 12px; grid-template-columns: 1.4fr repeat(3, 1fr); margin-bottom: 18px; }
.day-sales-kpi { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 14px; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; }
.day-sales-kpi span { color: var(--app-dim2); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.day-sales-kpi strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.day-sales-kpi.is-main strong { color: var(--app-good); font-size: 1.9rem; }
.day-sales-kpi small { color: var(--app-dim); font-size: .8rem; }
.day-sales-kpi small.is-warn { color: var(--app-accent-2); }
.day-sales-toolbar { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-bottom: 10px; }
.day-sales-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.day-sales-chip { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 999px; color: var(--app-dim); font-size: .84rem; font-weight: 600; padding: 7px 13px; text-decoration: none; }
.day-sales-chip b { color: var(--app-dim2); font-weight: 700; margin-left: 4px; }
.day-sales-chip.is-on { background: var(--app-accent); border-color: var(--app-accent); color: #fff; }
.day-sales-chip.is-on b { color: rgba(255,255,255,.8); }
.day-sales-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.day-sales-tools .ifood-btn { font-size: .82rem; padding: 8px 12px; }
.day-sales-help { font-size: .82rem; margin: 4px 0 8px; }
.day-sales-list { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 14px; margin-bottom: 20px; overflow: hidden; }
.day-sales-head, .day-sale > summary { align-items: center; display: grid; gap: 12px; grid-template-columns: 48px 92px 104px minmax(0, 1fr) 128px 118px 96px 14px; padding: 12px 16px; }
.day-sales-head { border-bottom: 1px solid var(--app-line); color: var(--app-dim2); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.day-sale + .day-sale { border-top: 1px solid var(--app-line-soft); }
.day-sale > summary { cursor: pointer; list-style: none; }
.day-sale > summary::-webkit-details-marker { display: none; }
.day-sale > summary:hover { background: rgba(255,255,255,.025); }
.day-sale[open] > summary { background: var(--app-surface-2); }
.day-sale > summary > span { min-width: 0; }
.day-sale small { display: block; }
.ds-time { color: var(--app-dim); font-variant-numeric: tabular-nums; }
.ds-num { font-weight: 700; }
.ds-num small, .ds-chan small, .ds-what small { color: var(--app-dim2); font-size: .76rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-pill { background: var(--app-surface-2); border-radius: 999px; color: var(--app-dim); display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 9px; }
.ds-pill.source-site { background: rgba(232,100,28,.16); color: var(--app-accent-2); }
.ds-pill.source-ifood { background: rgba(234,29,44,.16); color: #ff7b7b; }
.ds-pill.source-food99 { background: rgba(255,196,0,.14); color: #ffd25c; }
.ds-pill.source-mesa { background: rgba(62,207,142,.12); color: var(--app-good-dim); }
.ds-what b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-pay { color: var(--app-dim); font-size: .86rem; }
.ds-state { background: var(--app-surface-2); border-radius: 999px; color: var(--app-dim); display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 9px; white-space: nowrap; }
.ds-state.is-good { background: rgba(62,207,142,.12); color: var(--app-good); }
.ds-state.is-warn { background: rgba(240,132,47,.14); color: var(--app-accent-2); }
.ds-state.is-bad { background: rgba(255,107,91,.12); color: var(--app-bad); }
.ds-total { font-weight: 800; }
.day-sale .is-num, .day-sales-head .is-num, .ds-items .is-num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.day-sale.is-cancelled .ds-total, .day-sale.is-cancelled .ds-what b { color: var(--app-dim2); text-decoration: line-through; }
.ds-chev { color: var(--app-dim2); font-size: 1.2rem; transition: transform .15s; }
.day-sale[open] .ds-chev { transform: rotate(90deg); }
.ds-body { align-items: start; background: var(--app-surface-2); border-top: 1px dashed var(--app-line); display: grid; gap: 20px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); padding: 14px 16px 18px; }
.ds-items { border-collapse: collapse; font-size: .9rem; width: 100%; }
.ds-items th { border-bottom: 1px solid var(--app-line); color: var(--app-dim2); font-size: .7rem; font-weight: 700; letter-spacing: .06em; padding: 6px 8px; text-align: left; text-transform: uppercase; }
.ds-items td { border-bottom: 1px solid var(--app-line-soft); padding: 8px; vertical-align: top; }
.ds-items tfoot td { border-bottom: 0; font-weight: 800; }
.ds-qty { color: var(--app-accent-2); font-weight: 700; white-space: nowrap; width: 1%; }
.ds-sub { color: var(--app-dim); font-size: .8rem; margin-top: 2px; }
.ds-note { color: var(--app-gold); }
.ds-totals { margin: 0 0 12px; }
.ds-totals > div { display: flex; font-size: .88rem; justify-content: space-between; padding: 3px 0; }
.ds-totals dt { color: var(--app-dim); }
.ds-totals dd { font-variant-numeric: tabular-nums; margin: 0; }
.ds-totals .is-total { border-top: 1px solid var(--app-line); font-size: 1rem; font-weight: 800; margin-top: 4px; padding-top: 8px; }
.ds-totals .is-total dt { color: var(--app-ink); }
.ds-k { color: var(--app-dim2); font-size: .7rem; font-weight: 700; letter-spacing: .08em; margin: 12px 0 4px; text-transform: uppercase; }
.ds-line { font-size: .88rem; margin: 0; }
.ds-payments { font-size: .88rem; list-style: none; margin: 0; padding: 0; }
.ds-payments li { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; padding: 3px 0; }
.ds-payments small { display: inline; }
.ds-cancel { background: rgba(255,107,91,.1); border-radius: 8px; color: var(--app-bad); font-size: .86rem; margin: 8px 0 0; padding: 8px 10px; }
.ds-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ds-actions .ifood-btn { font-size: .82rem; padding: 8px 12px; }
.day-sales-items h2 { margin: 0 0 4px; }
.day-sales-items .muted { font-size: .84rem; margin: 0 0 10px; }
@media (max-width: 900px) {
  .day-sales-kpis { grid-template-columns: repeat(2, 1fr); }
  .day-sales-head { display: none; }
  .day-sale > summary { gap: 4px 10px; grid-template-areas: "time num total chev" "what what what what" "chan pay status status"; grid-template-columns: auto 1fr auto 14px; }
  .ds-time { grid-area: time; } .ds-num { grid-area: num; } .ds-total { grid-area: total; } .ds-chev { grid-area: chev; }
  .ds-what { grid-area: what; } .ds-chan { grid-area: chan; } .ds-pay { grid-area: pay; } .ds-status { grid-area: status; text-align: right; }
  .ds-num small, .ds-chan small { display: inline; margin-left: 6px; }
  .ds-body { grid-template-columns: 1fr; }
}

/* ---- PDV: comanda (cardápio compacto + comanda fixa) ---- */
.po-layout { align-items: start; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) 380px; }
.po-menu { min-width: 0; }
.po-menu-bar { background: var(--app-bg); display: flex; flex-direction: column; gap: 10px; padding: 4px 0 12px; position: sticky; top: 53px; z-index: 4; }
.po-search { background: var(--app-input); border: 1px solid var(--app-line); border-radius: 10px; color: var(--app-ink); font: inherit; padding: 11px 14px; width: 100%; }
.po-search:focus { border-color: var(--app-accent); outline: none; }
.po-cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.po-cat { background: transparent; border: 1px solid var(--app-line); border-radius: 999px; color: var(--app-dim); cursor: pointer; flex: none; font-size: .84rem; font-weight: 600; padding: 7px 14px; white-space: nowrap; }
.po-cat:hover { border-color: var(--app-accent); color: var(--app-ink); }
.po-cat.is-active { background: var(--app-accent); border-color: var(--app-accent); color: #fff; }
.po-category { margin-bottom: 18px; }
.po-category h3 { color: var(--app-dim2); font-size: .72rem; font-weight: 700; letter-spacing: .08em; margin: 0 0 8px; text-transform: uppercase; }
.po-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.po-tile-form { display: contents; }
.po-tile-form[hidden], .po-tile[hidden] { display: none; }
.po-tile { align-items: flex-start; background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 12px; color: var(--app-ink); cursor: pointer; display: flex; flex-direction: column; font: inherit; gap: 4px; min-height: 78px; padding: 12px 38px 12px 12px; position: relative; text-align: left; transition: border-color .1s, transform .1s; width: 100%; }
.po-tile:hover:not(:disabled) { border-color: var(--app-accent); }
.po-tile:active:not(:disabled) { transform: scale(.98); }
.po-tile:disabled { cursor: not-allowed; opacity: .45; }
.po-tile-name { font-size: .92rem; font-weight: 700; line-height: 1.25; }
.po-tile-price { color: var(--app-accent-2); font-size: .84rem; font-variant-numeric: tabular-nums; font-weight: 600; }
.po-tile-add { align-items: center; background: rgba(232,100,28,.14); border-radius: 8px; color: var(--app-accent-2); display: flex; font-size: 1.1rem; font-weight: 700; height: 26px; justify-content: center; position: absolute; right: 8px; top: 8px; width: 26px; }
.po-empty { color: var(--app-dim); padding: 24px; text-align: center; }

.po-ticket { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 16px; display: flex; flex-direction: column; max-height: calc(100vh - 80px); position: sticky; top: 66px; }
.po-ticket-head { border-bottom: 1px solid var(--app-line); padding: 16px 18px 12px; }
.po-ticket-head h2 { font-size: 1.2rem; margin: 0; }
.po-customer { color: var(--app-dim); font-size: .82rem; margin: 4px 0 0; }
.po-note { background: var(--app-surface-2); border-radius: 8px; color: var(--app-dim); font-size: .8rem; margin: 8px 0 0; padding: 7px 9px; }
.po-items { flex: 1; min-height: 80px; overflow-y: auto; padding: 6px 18px; }
.po-items-empty { color: var(--app-dim2); padding: 18px 0; text-align: center; }
.po-round { border-bottom: 1px dashed var(--app-line); padding: 8px 0; }
.po-round:last-child { border-bottom: 0; }
.po-round-title { align-items: center; color: var(--app-dim2); display: flex; font-size: .72rem; font-weight: 700; gap: 8px; letter-spacing: .05em; margin: 0 0 4px; text-transform: uppercase; }
.po-round-state { border-radius: 999px; font-size: .64rem; padding: 1px 7px; }
.po-round-state.is-queued, .po-round-state.is-preparing, .po-round-state.is-new { background: rgba(240,132,47,.14); color: var(--app-accent-2); }
.po-round-state.is-ready { background: rgba(62,207,142,.14); color: var(--app-good); }
.po-round-state.is-delivered { background: var(--app-surface-2); color: var(--app-dim2); }
.po-icon-link { color: var(--app-dim2); display: inline-flex; margin-left: auto; }
.po-icon-link:hover { color: var(--app-ink); }
.pos-order .order-item { align-items: flex-start; border: 0; display: flex; gap: 10px; justify-content: space-between; padding: 7px 0; }
.pos-order .order-item > div:first-child { min-width: 0; }
.pos-order .order-item strong { font-size: .9rem; }
.pos-order .order-item small { color: var(--app-dim); display: block; font-size: .76rem; }
.pos-order .order-item-actions { align-items: center; display: flex; flex: none; gap: 6px; }
.pos-order .order-item-actions > strong { font-variant-numeric: tabular-nums; min-width: 70px; text-align: right; white-space: nowrap; }
.pos-order .order-item-sent-tag { display: none; }
.pos-order .quantity-control, .pos-order .remove-item-button { height: 26px; min-width: 26px; padding: 0 6px; }
/* "Ofereça ao cliente": sugestão de venda na comanda */
.po-upsell { background: rgba(232,100,28,.07); border-top: 1px solid var(--app-line); padding: 10px 18px; }
.po-upsell-ttl { align-items: baseline; color: var(--app-accent-2); display: flex; flex-wrap: wrap; font-size: .72rem; font-weight: 800; gap: 8px; letter-spacing: .05em; margin: 0 0 8px; text-transform: uppercase; }
.po-upsell-ttl span { color: var(--app-good); letter-spacing: 0; text-transform: none; }
.po-upsell-row { display: flex; flex-wrap: wrap; gap: 6px; }
.po-upsell-chip { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 10px; color: var(--app-ink); cursor: pointer; display: grid; font: inherit; gap: 1px; min-width: 0; padding: 6px 10px; text-align: left; }
.po-upsell-chip:hover { border-color: var(--app-accent); }
.po-upsell-chip small { color: var(--app-dim2); font-size: .66rem; text-transform: uppercase; }
.po-upsell-chip span { font-size: .84rem; font-weight: 600; }
.po-upsell-chip b { color: var(--app-good); font-size: .8rem; }
.po-upsell-addon { color: var(--app-dim); font-size: .8rem; margin: 8px 0 0; }
.po-totals { border-top: 1px solid var(--app-line); padding: 12px 18px 4px; }
.po-totals > div { color: var(--app-dim); display: flex; font-size: .86rem; justify-content: space-between; padding: 2px 0; }
.po-totals .po-grand { align-items: baseline; color: var(--app-ink); font-size: 1rem; padding-top: 6px; }
.po-grand strong { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.po-actions { display: flex; flex-direction: column; gap: 10px; padding: 8px 18px 18px; }
.po-actions form { margin: 0; }
.po-cta { align-items: center; background: var(--app-accent); border: 0; border-radius: 12px; color: #fff; cursor: pointer; display: flex; font: inherit; font-size: 1.02rem; font-weight: 800; gap: 8px; justify-content: center; padding: 15px; text-decoration: none; width: 100%; }
.po-cta:hover:not(:disabled) { background: var(--app-accent-2); }
.po-cta:disabled { cursor: not-allowed; opacity: .45; }
.po-cta-secondary { border: 1px solid var(--app-line); border-radius: 12px; color: var(--app-ink); display: flex; font-weight: 700; justify-content: center; padding: 11px; text-decoration: none; }
.po-cta-secondary:hover { border-color: var(--app-accent); }
.po-paid { align-items: center; color: var(--app-good); display: flex; font-weight: 700; gap: 6px; justify-content: center; margin: 0; padding: 12px; }
.po-tools { display: grid; gap: 6px; grid-template-columns: repeat(3, 1fr); }
.po-tool { align-items: center; border: 1px solid var(--app-line); border-radius: 10px; color: var(--app-dim); display: flex; flex-direction: column; font-size: .76rem; font-weight: 600; gap: 4px; padding: 8px 4px; text-align: center; text-decoration: none; }
.po-tool:hover { border-color: var(--app-accent); color: var(--app-ink); }
/* Selo do atalho: ao lado do texto, nunca por cima. */
.pos-order .po-cta .kbd-hint, .pos-order .po-cta-secondary .kbd-hint, .pos-order .po-tool .kbd-hint { margin: 0 0 0 6px; opacity: .7; position: static; }
.pos-order .po-tool .kbd-hint { margin: 0; }

.mm-row { align-items: flex-end; display: flex; gap: 12px; margin-top: 12px; }
.mm-note-wrap { flex: 1; }
.mm-qty { align-items: center; display: flex; gap: 4px; }
.mm-qty button { background: var(--app-surface-2); border: 1px solid var(--app-line); border-radius: 8px; color: var(--app-ink); cursor: pointer; font-size: 1.1rem; height: 38px; width: 38px; }
.mm-qty input { background: var(--app-input); border: 1px solid var(--app-line); border-radius: 8px; color: var(--app-ink); font: inherit; height: 38px; text-align: center; width: 54px; }
.mm-opt.is-out { opacity: .45; }
.mm-opt em { color: var(--app-bad); font-size: .76rem; font-style: normal; margin-left: 4px; }

@media (max-width: 980px) {
  .po-layout { grid-template-columns: 1fr; }
  .po-ticket { max-height: none; position: static; }
}

/* ---- Pedido do cliente: acompanhamento ---- */
.ifood-btn-step { background: rgba(62,207,142,.14); border-color: rgba(62,207,142,.4); color: var(--app-good); }
.ifood-btn-step:hover { background: rgba(62,207,142,.24); }
.open-order-step { margin: 0; }
.track-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.track-status { grid-column: 1 / -1; }
.track-status h2.is-bad { color: var(--app-bad); margin: 0; }
.track-steps { display: grid; gap: 8px; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0 0 18px; padding: 0; position: relative; }
.track-steps li { align-items: center; color: var(--app-dim2); display: flex; flex-direction: column; gap: 4px; text-align: center; }
.track-dot { align-items: center; background: var(--app-surface-2); border: 2px solid var(--app-line); border-radius: 50%; color: #fff; display: flex; height: 28px; justify-content: center; width: 28px; }
.track-steps li.is-done .track-dot { background: var(--app-good); border-color: var(--app-good); }
.track-steps li.is-done strong { color: var(--app-ink); }
.track-steps li.is-current .track-dot { border-color: var(--app-accent); box-shadow: 0 0 0 4px rgba(232,100,28,.2); }
.track-steps li.is-current strong { color: var(--app-accent-2); }
.track-steps small { font-size: .76rem; }
.track-actions { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.track-actions form { margin: 0; }
.track-closed { align-items: center; color: var(--app-good); display: flex; font-weight: 700; gap: 6px; margin: 12px 0 0; }
.track-customer h3, .track-items h3 { color: var(--app-dim2); font-size: .74rem; letter-spacing: .06em; margin: 0 0 8px; text-transform: uppercase; }
.track-customer h3 + p, .track-customer .track-note { margin-top: 0; }
.track-name { font-size: 1.15rem; font-weight: 700; margin: 0; }
.track-contact, .track-address { color: var(--app-dim); margin: 4px 0 12px; }
.track-contact a { color: var(--app-accent-2); }
.track-note { background: var(--app-surface-2); border-radius: 10px; color: var(--app-ink); padding: 10px 12px; }
.track-items ul { list-style: none; margin: 0 0 8px; padding: 0; }
.track-items li { border-bottom: 1px solid var(--app-line); display: flex; gap: 12px; justify-content: space-between; padding: 8px 0; }
.track-items li small { color: var(--app-dim); display: block; font-size: .8rem; }
.track-item-note { color: var(--app-accent-2) !important; }
.track-items .po-totals { border-top: 0; padding: 4px 0 0; }
.track-due { color: var(--app-accent-2) !important; font-weight: 700; }
.track-more { grid-column: 1 / -1; }
.track-more .po-tools { max-width: 480px; }
@media (max-width: 860px) { .track-layout { grid-template-columns: 1fr; } .track-steps { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------------ WhatsApp da loja */
.wa-page { --wa-green: #25d366; --wa-green-soft: rgba(37,211,102,.12); display: flex; flex-direction: column; gap: 18px; }
.wa-page h2 { font-size: 1.25rem; letter-spacing: -.01em; margin: 0; }
.wa-muted { color: var(--app-dim); }
.wa-small { font-size: .82rem; line-height: 1.5; margin: 14px 0 0; }

.wa-head { display: flex; flex-direction: column; gap: 14px; }
.wa-back { align-items: center; align-self: flex-start; border: 1px solid var(--app-line); border-radius: 999px; color: var(--app-dim); display: inline-flex; font-size: .85rem; font-weight: 600; gap: 6px; padding: 6px 14px 6px 10px; text-decoration: none; transition: border-color .15s, color .15s, background .15s; }
.wa-back:hover { background: var(--app-surface); border-color: var(--app-accent); color: var(--app-ink); }
.wa-head-row { align-items: center; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
.wa-head-title { align-items: center; display: flex; gap: 14px; }
.wa-head-title h1 { font-size: 1.9rem; letter-spacing: -.02em; margin: 0; }
.wa-head-title .eyebrow { margin: 0 0 2px; }
.wa-head-icon { align-items: center; background: var(--wa-green-soft); border: 1px solid rgba(37,211,102,.3); border-radius: 14px; color: var(--wa-green); display: inline-flex; height: 52px; justify-content: center; width: 52px; }

.wa-pill { align-items: center; border: 1px solid var(--app-line); border-radius: 999px; color: var(--app-dim); display: inline-flex; font-size: .82rem; font-weight: 700; gap: 8px; padding: 7px 14px; }
.wa-dot { background: currentColor; border-radius: 50%; height: 8px; width: 8px; }
.wa-pill.is-ok { background: var(--wa-green-soft); border-color: rgba(37,211,102,.35); color: var(--wa-green); }
.wa-pill.is-wait { background: rgba(240,132,47,.1); border-color: rgba(240,132,47,.35); color: var(--app-accent-2); }
.wa-pill.is-wait .wa-dot { animation: wa-pulse 1.4s ease-in-out infinite; }
.wa-pill.is-bad { background: rgba(255,107,91,.1); border-color: rgba(255,107,91,.4); color: var(--app-bad); }

.wa-flash { align-items: center; border-radius: 12px; display: flex; font-size: .9rem; gap: 10px; margin: 0; padding: 12px 14px; }
.wa-flash.is-ok { background: rgba(62,207,142,.1); border: 1px solid rgba(62,207,142,.3); color: var(--app-good-dim); }
.wa-flash.is-bad { background: rgba(255,107,91,.08); border: 1px solid rgba(255,107,91,.35); color: #ffd0c7; }
.wa-flash.is-warn { background: rgba(240,132,47,.08); border: 1px solid rgba(240,132,47,.35); color: #ffd9b8; }
.wa-card .wa-flash { margin-top: 16px; }

.wa-card { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 20px; padding: 26px; }
.wa-section-title { font-size: 1.25rem; margin: 8px 0 -4px; }

/* botões */
.wa-btn { align-items: center; border: 1px solid transparent; border-radius: 12px; cursor: pointer; display: inline-flex; font: inherit; font-size: .92rem; font-weight: 700; gap: 8px; justify-content: center; min-height: 44px; padding: 10px 18px; position: relative; transition: background .15s, border-color .15s, opacity .15s, transform .05s; white-space: nowrap; }
.wa-btn:active { transform: translateY(1px); }
.wa-btn-primary { background: var(--app-accent); color: #fff; }
.wa-btn-primary:hover { background: var(--app-accent-2); }
.wa-btn-ghost { background: transparent; border-color: var(--app-line); color: var(--app-ink); }
.wa-btn-ghost:hover { border-color: var(--app-accent); }
.wa-btn-danger { background: transparent; border-color: rgba(255,107,91,.4); color: var(--app-bad); }
.wa-btn-danger:hover { background: rgba(255,107,91,.08); }
.wa-btn.is-loading { color: transparent !important; pointer-events: none; }
.wa-btn.is-loading::after { animation: wa-spin .7s linear infinite; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; content: ""; height: 18px; left: calc(50% - 9px); position: absolute; top: calc(50% - 9px); width: 18px; }
.wa-btn-ghost.is-loading::after, .wa-btn-danger.is-loading::after { border-color: var(--app-line); border-top-color: var(--app-accent); }
form.button_to { margin: 0; }

/* conectado */
.wa-connected { align-items: center; display: flex; flex-wrap: wrap; gap: 18px; }
.wa-connected-info { flex: 1; min-width: 200px; }
.wa-connected-info h2 { color: var(--wa-green); }
.wa-connected-info p { margin: 2px 0 0; }
.wa-number { font-size: 1.3rem; font-variant-numeric: tabular-nums; font-weight: 700; }
.wa-check { align-items: center; background: var(--wa-green-soft); border: 1px solid rgba(37,211,102,.35); border-radius: 50%; color: var(--wa-green); display: inline-flex; flex: none; height: 60px; justify-content: center; width: 60px; }
.wa-check.is-big { animation: wa-pop .45s cubic-bezier(.2,1.4,.4,1); height: 84px; width: 84px; }
.wa-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 22px; }
.wa-stat { background: var(--app-surface-2); border: 1px solid var(--app-line); border-radius: 14px; display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
.wa-stat b { font-size: 1.35rem; }
.wa-stat span { color: var(--app-dim); font-size: .8rem; }

.wa-empty { align-items: center; display: flex; flex-direction: column; gap: 10px; padding: 18px 0; text-align: center; }
.wa-empty p { color: var(--app-dim); margin: 0 auto; max-width: 520px; }
.wa-empty-icon { align-items: center; background: rgba(240,132,47,.1); border-radius: 50%; color: var(--app-accent-2); display: inline-flex; height: 60px; justify-content: center; width: 60px; }
.wa-empty-icon.is-bad { background: rgba(255,107,91,.1); color: var(--app-bad); }

/* pareamento */
.wa-pair-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
.wa-lead { color: var(--app-dim); line-height: 1.55; margin: 8px 0 20px; }
.wa-steps { counter-reset: none; display: flex; flex-direction: column; gap: 14px; list-style: none; margin: 0 0 20px; padding: 0; }
.wa-steps li { align-items: flex-start; display: flex; gap: 12px; line-height: 1.45; }
.wa-steps li > div { padding-top: 2px; }
.wa-steps [hidden] { display: none; }
.wa-steps .wa-step-n { align-items: center; background: var(--app-surface-2); border: 1px solid var(--app-line); border-radius: 50%; color: var(--app-accent-2); display: inline-flex; flex: none; font-size: .8rem; font-weight: 800; height: 26px; justify-content: center; width: 26px; }
.wa-pair-panel { background: var(--app-surface-2); border: 1px solid var(--app-line); border-radius: 18px; display: flex; flex-direction: column; gap: 16px; min-height: 380px; padding: 18px; }
.wa-tabs { background: var(--app-input); border: 1px solid var(--app-line); border-radius: 12px; display: grid; gap: 4px; grid-template-columns: 1fr 1fr; padding: 4px; }
.wa-tab { background: transparent; border: 0; border-radius: 9px; color: var(--app-dim); cursor: pointer; font: inherit; font-size: .88rem; font-weight: 700; padding: 9px 10px; transition: background .15s, color .15s; }
.wa-tab:hover { color: var(--app-ink); }
.wa-tab.is-active { background: var(--app-surface); box-shadow: 0 1px 0 rgba(255,255,255,.04), 0 2px 8px rgba(0,0,0,.3); color: var(--app-ink); }
.wa-pane { display: flex; flex: 1; flex-direction: column; gap: 14px; }
.wa-pane[hidden], .wa-success[hidden], .wa-tabs[hidden] { display: none; }

.wa-form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.wa-form label { color: var(--app-dim2); font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.wa-input-row { display: flex; flex-wrap: wrap; gap: 8px; }
.wa-input { background: var(--app-input); border: 1px solid var(--app-line); border-radius: 12px; color: var(--app-ink); flex: 1; font: inherit; font-size: 1rem; min-height: 44px; min-width: 170px; padding: 10px 14px; }
.wa-input:focus { border-color: var(--app-accent); outline: none; box-shadow: 0 0 0 3px rgba(232,100,28,.2); }

.wa-code-box { align-items: center; background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 14px; display: flex; flex-direction: column; gap: 10px; padding: 18px; text-align: center; }
.wa-code-box p { margin: 0; }
.wa-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 2.1rem; font-weight: 800; letter-spacing: .14em; }
.wa-expired { background: rgba(240,132,47,.08); border: 1px solid rgba(240,132,47,.35); border-radius: 12px; padding: 12px 14px; }
.wa-expired p { margin: 0; }
.wa-timer { background: var(--app-input); border-radius: 999px; height: 4px; overflow: hidden; width: 100%; }
.wa-timer span { background: var(--app-accent); border-radius: 999px; display: block; height: 100%; width: 100%; }
.wa-waiting { align-items: center; color: var(--app-ink); display: flex; flex-wrap: wrap; font-size: .88rem; gap: 8px; justify-content: center; margin: 0; }
.wa-pulse { animation: wa-pulse 1.4s ease-in-out infinite; background: var(--app-accent-2); border-radius: 50%; height: 8px; width: 8px; }

.wa-qr-frame { align-items: center; align-self: center; background: #fff; border-radius: 16px; display: flex; height: 256px; justify-content: center; position: relative; width: 256px; }
.wa-qr { display: block; height: 232px; width: 232px; }
.wa-qr[hidden] { display: none; }
.wa-qr-skeleton, .wa-qr-error { align-items: center; background: linear-gradient(110deg, #ece7e1 30%, #f7f3ef 50%, #ece7e1 70%); background-size: 200% 100%; animation: wa-shimmer 1.3s linear infinite; border-radius: 16px; color: #6b5a4a; display: flex; flex-direction: column; font-size: .85rem; font-weight: 600; gap: 12px; inset: 0; justify-content: center; position: absolute; }
.wa-qr-skeleton[hidden], .wa-qr-error[hidden] { display: none; }
.wa-qr-error { animation: none; background: #fbeeea; color: #8a2f22; padding: 16px; text-align: center; }
.wa-qr-error p { margin: 0; }
.wa-qr-error .wa-btn-ghost { border-color: #e2b5ab; color: #8a2f22; }
.wa-qr-skeleton .wa-spinner { border-color: #d8cfc6; border-top-color: var(--app-accent); }

.wa-spinner { animation: wa-spin .7s linear infinite; border: 2px solid var(--app-line); border-radius: 50%; border-top-color: var(--app-accent); display: inline-block; height: 22px; width: 22px; }
.wa-waiting .wa-spinner { height: 16px; width: 16px; }

.wa-success { align-items: center; display: flex; flex: 1; flex-direction: column; gap: 10px; justify-content: center; text-align: center; }
.wa-success h3 { color: var(--wa-green); font-size: 1.4rem; margin: 6px 0 0; }
.wa-success p { margin: 0; max-width: 300px; }

/* avisos */
.wa-toggle-row { align-items: center; display: flex; gap: 20px; justify-content: space-between; margin: 0; }
.wa-toggle-row p { margin: 6px 0 0; max-width: 620px; }
.wa-switch { align-items: center; cursor: pointer; display: inline-flex; flex: none; gap: 10px; position: relative; }
.wa-switch input[type=checkbox] { height: 1px; opacity: 0; position: absolute; width: 1px; }
.wa-switch-track { background: var(--app-line); border-radius: 999px; display: inline-block; height: 28px; position: relative; transition: background .2s; width: 50px; }
.wa-switch-thumb { background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.4); height: 22px; left: 3px; position: absolute; top: 3px; transition: transform .2s; width: 22px; }
.wa-switch input:checked + .wa-switch-track { background: var(--wa-green); }
.wa-switch input:checked + .wa-switch-track .wa-switch-thumb { transform: translateX(22px); }
.wa-switch input:focus-visible + .wa-switch-track { box-shadow: 0 0 0 3px rgba(37,211,102,.3); }
.wa-switch.is-saving { opacity: .6; pointer-events: none; }
.wa-switch-label { color: var(--app-dim); font-size: .85rem; font-weight: 700; min-width: 70px; }
.wa-flow { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); list-style: none; margin: 20px 0 0; padding: 0; }
.wa-flow li { background: var(--app-surface-2); border: 1px solid var(--app-line); border-radius: 12px; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; position: relative; }
.wa-flow li b { font-size: .92rem; }
.wa-flow li span { color: var(--app-dim); font-size: .78rem; }

/* histórico */
.wa-card > h2 { margin-bottom: 14px; }
.wa-table-wrap { overflow-x: auto; }
.wa-table { border-collapse: collapse; font-size: .88rem; width: 100%; }
.wa-table th { border-bottom: 1px solid var(--app-line); color: var(--app-dim2); font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: 0 12px 10px; text-align: left; text-transform: uppercase; }
.wa-table td { border-bottom: 1px solid var(--app-line-soft); padding: 12px; vertical-align: top; }
.wa-table tr:last-child td { border-bottom: 0; }
.wa-hint { color: var(--app-dim2); display: block; font-size: .76rem; margin-top: 4px; }

@keyframes wa-spin { to { transform: rotate(360deg); } }
@keyframes wa-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
@keyframes wa-shimmer { to { background-position: -200% 0; } }
@keyframes wa-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 820px) {
  .wa-pair-grid { grid-template-columns: 1fr; }
  .wa-pair-panel { min-height: 0; }
}
@media (max-width: 560px) {
  .wa-card { border-radius: 16px; padding: 18px; }
  .wa-head-title h1 { font-size: 1.5rem; }
  .wa-toggle-row { align-items: flex-start; flex-direction: column; }
  .wa-input-row .wa-btn { width: 100%; }
  .wa-code { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-page *, .wa-page *::after { animation: none !important; transition: none !important; }
}

/* ---- KDS: atualização automática ---- */
.kds-live { color: var(--app-good); font-size: .78rem; font-weight: 600; }
.kds-live.is-stale { color: var(--app-bad); }
.kds-sound { background: transparent; border: 1px solid var(--app-line); border-radius: 999px; color: var(--app-dim); cursor: pointer; font-size: .78rem; padding: 5px 12px; }
.kds-sound.is-off { opacity: .6; }
.kds-card-new { animation: kdsNew 1s ease-in-out 4; border-color: var(--app-accent) !important; box-shadow: 0 0 0 3px rgba(232,100,28,.45); }
@keyframes kdsNew { 50% { box-shadow: 0 0 0 7px rgba(232,100,28,.15); } }
.kds-empty { font-size: .86rem; line-height: 1.5; padding: 18px 8px; }

/* ---- Taxas por canal ---- */
.cfee-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cfee-card h2 { font-size: 1.1rem; margin: 0 0 4px; }
.cfee-unit { align-items: center; display: flex; gap: 8px; }
.cfee-unit span { color: var(--app-dim); font-weight: 700; }
.cfee-form > .dash-primary { justify-self: start; }

/* ---- Gerente IA ---- */
.mgr-off h2 { font-size: 1.2rem; margin: 0 0 8px; }
.mgr-chat { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.mgr-toolbar { align-items: flex-start; display: flex; gap: 12px; justify-content: space-between; }
.mgr-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; }
.mgr-chip, .mgr-reset, .mgr-ghost { background: transparent; border: 1px solid var(--app-line); border-radius: 999px; color: var(--app-dim); cursor: pointer; font-size: .82rem; font-weight: 600; padding: 7px 12px; }
.mgr-chip:hover, .mgr-reset:hover, .mgr-ghost:hover { border-color: var(--app-accent); color: var(--app-ink); }
.mgr-reset { flex-shrink: 0; }
.mgr-log { background: var(--app-bg); border: 1px solid var(--app-line-soft); border-radius: 14px; display: flex; flex-direction: column; gap: 10px; max-height: 60vh; min-height: 320px; overflow-y: auto; padding: 14px; }
.mgr-msg { max-width: 82%; }
.mgr-msg p { line-height: 1.5; margin: 0; }
.mgr-msg.is-user, .mgr-msg.is-info-user { align-self: flex-end; background: rgba(232,100,28,.16); border: 1px solid rgba(232,100,28,.35); border-radius: 14px 14px 4px 14px; padding: 10px 12px; }
.mgr-msg.is-info-user { opacity: .8; }
.mgr-msg.is-model, .mgr-msg.is-info { align-self: flex-start; background: var(--app-surface-2); border: 1px solid var(--app-line); border-radius: 14px 14px 14px 4px; padding: 10px 12px; }
.mgr-msg.is-info { color: var(--app-dim); }
.mgr-dots { color: var(--app-dim2); font-style: italic; }
.mgr-card { background: var(--app-surface); border: 1px solid var(--app-accent); border-radius: 12px; margin-top: 10px; padding: 12px; }
.mgr-card-title { font-weight: 700; }
.mgr-card-gain { color: var(--app-good); font-weight: 700; margin-top: 4px !important; }
.mgr-card-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.mgr-card-actions .dash-primary { margin: 0; padding: 9px 18px; }
.mgr-card-status { color: var(--app-dim); font-size: .82rem; font-weight: 700; }
.mgr-card-status.is-ok { color: var(--app-good); }
.mgr-card-error { color: var(--app-bad); font-size: .82rem; margin-top: 6px !important; }
.mgr-form { align-items: flex-end; display: flex; gap: 10px; }
.mgr-form textarea { background: var(--app-input); border: 1px solid #5d3a26; border-radius: 10px; color: var(--app-ink); flex: 1; font: inherit; padding: 10px; resize: vertical; }
.mgr-form .dash-primary { margin: 0; }
.mgr-quota { margin: 0; }
@media (max-width: 640px) {
  .mgr-toolbar { flex-direction: column; }
  .mgr-msg { max-width: 94%; }
  .mgr-form { flex-direction: column; align-items: stretch; }
}
.cash-diff { color: var(--app-dim); font-size: .86rem; margin: 6px 0 10px; }
.cash-diff.is-good { color: var(--app-good); font-weight: 600; }
.cash-diff.is-warn { color: var(--app-accent-2); font-weight: 600; }
.cash-diff.is-bad { color: var(--app-bad); font-weight: 600; }
/* Celular: cabeçalho das telas empilha e os botões quebram linha (Cozinha e
   Estoque passavam da largura da tela). */
@media (max-width: 720px) {
  .pos-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .pos-header-actions { flex-wrap: wrap; gap: 8px; }
}

/* busca de produtos da promoção (vários itens) + margem ao digitar o preço */
.mpp .mpp-search { position: relative; }
.mpp .mpp-search > .icn { color: var(--app-dim2); left: 13px; pointer-events: none; position: absolute; top: 50%; transform: translateY(-50%); }
.mpp .mpp-input { border-radius: 999px; font-size: 1rem; margin: 6px 0 0; padding: 12px 16px 12px 40px; }
.mpp .mpp-input:focus { border-color: var(--app-accent); outline: none; box-shadow: 0 0 0 3px rgba(232,100,28,.25); }
.mpp-results { background: var(--app-surface-2); border: 1px solid var(--app-line); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.45); left: 0; list-style: none; margin: 6px 0 0; max-height: 360px; overflow-y: auto; padding: 6px; position: absolute; right: 0; z-index: 20; }
.mpp-opt { align-items: center; border-radius: 10px; cursor: pointer; display: flex; gap: 12px; justify-content: space-between; padding: 9px 12px; }
.mpp-opt.is-active { background: rgba(232,100,28,.16); }
.mpp-opt.is-on { opacity: .55; }
.mpp-opt small, .mpp-item small { color: var(--app-dim2); display: block; font-size: .76rem; margin-top: 2px; }
.mpp-opt b { font-weight: 600; }
.mpp-opt mark { background: none; color: var(--app-accent-2); font-weight: 800; }
.mpp-opt-main { min-width: 0; }
.mpp-opt-side { flex: none; text-align: right; }
.mpp-none { color: var(--app-dim); padding: 10px 12px; }
.mpp-bulk { align-items: center; color: var(--app-dim); display: flex; flex-wrap: wrap; font-size: .82rem; gap: 6px; margin-top: 12px; }
.mpp-bulk[hidden], .mpp-empty[hidden] { display: none; }
.mpp-chip { background: var(--app-surface-2); border: 1px solid #5d3a26; border-radius: 999px; color: var(--app-ink); cursor: pointer; font-size: .8rem; padding: 5px 11px; }
.mpp-chip:hover { border-color: var(--app-accent); }
.mpp-items { display: grid; gap: 10px; list-style: none; margin: 12px 0 0; padding: 0; }
.mpp-item { background: var(--app-surface-2); border: 1px solid var(--app-line); border-left: 3px solid var(--app-line); border-radius: 12px; padding: 12px 14px; }
.mpp-item.is-good { border-left-color: var(--app-good); }
.mpp-item.is-warn { border-left-color: #f2b33d; }
.mpp-item.is-bad { border-left-color: var(--app-bad); }
.mpp-item-head { align-items: flex-start; display: flex; gap: 10px; justify-content: space-between; }
.mpp-remove { background: none; border: 0; color: var(--app-dim); cursor: pointer; font-size: 1.4rem; line-height: 1; padding: 0 4px; }
.mpp-remove:hover { color: var(--app-bad); }
.mpp-item-row { align-items: center; display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 10px; }
.manage-form .mpp-price { align-items: center; color: var(--app-dim); display: flex !important; flex: none; font-size: .85rem; gap: 8px; letter-spacing: 0; margin: 0 !important; text-transform: none; width: auto !important; }
.manage-form .mpp-price input { margin: 0; width: 110px !important; }
.mpp-impact { align-items: baseline; display: flex; flex: 1 1 260px; flex-wrap: wrap; font-size: .85rem; gap: 4px 14px; }
.mpp-impact s { color: var(--app-dim2); }
.mpp-impact b, .mpp-impact s, .mpp-off { white-space: nowrap; }
.mpp-off { background: rgba(232,100,28,.18); border-radius: 999px; color: var(--app-accent-2); font-weight: 800; padding: 2px 8px; }
.mpp-verdict, .mpp-note { color: var(--app-dim); flex-basis: 100%; }
.mpp-note a { color: var(--app-accent-2); }
.is-good .mpp-margin b, .is-good .mpp-net b { color: var(--app-good); }
.is-warn .mpp-margin b, .is-warn .mpp-net b, .is-warn .mpp-verdict { color: #f2b33d; }
.is-bad .mpp-margin b, .is-bad .mpp-net b, .is-bad .mpp-verdict { color: var(--app-bad); font-weight: 700; }
.mpp-terms { margin-top: 12px; }

/* gestão: avaliações da página pública */
.mtm-title { font-size: 1.05rem; margin: 0 0 6px; }
.mtm-title small { color: var(--app-dim); font-size: .8rem; font-weight: 500; margin-left: 6px; }
.mtm-quote { line-height: 1.5; margin: 6px 0 2px; white-space: normal; }
.mtm-summary { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 10px 0 0; padding: 0; }
.mtm-summary b { color: var(--app-gold); }

/* ---- Relatórios (BI) ---- */
.bi-filters { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: 16px; display: grid; gap: 12px; padding: 14px 16px; }
.bi-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.bi-form { align-items: flex-end; display: flex; flex-wrap: wrap; gap: 10px; }
.bi-form label { display: grid; gap: 4px; min-width: 0; }
.bi-form label span { color: var(--app-dim); font-size: .72rem; font-weight: 600; }
.bi-form input, .bi-form select { max-width: 170px; }
.bi-form .dash-primary { margin-top: 0; padding: 10px 18px; }
.bi-clear { color: var(--app-dim); font-size: .82rem; padding: 10px 4px; }
.bi-active { color: var(--app-dim); font-size: .85rem; margin: 0; }
.bi-active b { color: var(--app-ink); }
.bi-kpis .kpi-val { font-size: 1.6rem; }
.bi-kpis .kpi-val.is-loss { color: var(--app-bad); }
.bi-delta { align-items: center; border-radius: 999px; display: inline-flex; font-size: .74rem; font-weight: 700; gap: 3px; padding: 2px 7px; white-space: nowrap; }
.bi-delta.is-up { background: rgba(62,207,142,.13); color: var(--app-good); }
.bi-delta.is-down { background: rgba(255,107,91,.13); color: var(--app-bad); }
.bi-delta.is-flat { color: var(--app-dim); }
.bi-insights { margin-top: 16px; }
.bi-insights ul { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); list-style: none; margin: 0; padding: 0; }
.bi-insight { align-items: flex-start; background: rgba(255,255,255,.03); border: 1px solid var(--app-line-soft); border-radius: 12px; display: flex; font-size: .86rem; gap: 10px; line-height: 1.45; padding: 10px 12px; }
.bi-insight b { color: var(--app-ink); display: block; }
.bi-insight > span:last-child { color: var(--app-dim); }
.bi-insight-dot { align-items: center; border-radius: 8px; display: flex; flex: none; height: 26px; justify-content: center; width: 26px; background: rgba(214,168,137,.14); color: var(--app-gold); }
.bi-insight.is-good .bi-insight-dot { background: rgba(62,207,142,.13); color: var(--app-good); }
.bi-insight.is-bad .bi-insight-dot { background: rgba(255,107,91,.13); color: var(--app-bad); }
.bi-trend, .bi-table-card { margin-top: 16px; }
.bi-legend { align-items: center; color: var(--app-dim); display: flex; flex-wrap: wrap; font-size: .78rem; gap: 6px 8px; margin: -6px 0 8px; }
.bi-key { border-radius: 3px; display: inline-block; height: 10px; width: 14px; }
.bi-key.is-bar { background: var(--app-accent); }
.bi-key.is-bar-b { background: #8a7a6c; }
.bi-key.is-line { background: none; border-top: 2px dashed var(--app-dim); border-radius: 0; height: 0; margin-left: 8px; }
.bi-chart-wrap { overflow-x: auto; }
.bi-chart { display: block; height: auto; min-width: 560px; width: 100%; }
.bi-grid { stroke: var(--app-line); stroke-width: 1; }
.bi-axis { fill: var(--app-dim); font-size: 12px; }
.bi-bar { fill: var(--app-accent); }
.bi-hit { fill: transparent; }
.bi-bar-link:hover .bi-hit, .bi-bar-link:focus .bi-hit { fill: rgba(255,255,255,.05); }
.bi-bar-link:hover .bi-bar { fill: #f0842f; }
.bi-compare-line { fill: none; pointer-events: none; stroke: var(--app-dim); stroke-dasharray: 6 5; stroke-width: 2; }
.bi-table-scroll { overflow-x: auto; }
.bi-table-tall { max-height: 520px; overflow-y: auto; }
.bi-table { border-collapse: collapse; font-size: .86rem; width: 100%; }
.bi-table th { color: var(--app-dim); font-size: .72rem; font-weight: 600; position: sticky; text-align: left; top: 0; background: var(--app-surface); }
.bi-table th, .bi-table td { border-bottom: 1px solid var(--app-line-soft); padding: 8px 10px; white-space: nowrap; }
.bi-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.bi-table tr.is-empty td { color: var(--app-dim); }
.bi-table tfoot td { border-bottom: 0; border-top: 1px solid var(--app-line); font-weight: 700; }
.bi-table td.is-loss { color: var(--app-bad); }
.bi-table a { color: var(--app-ink); }
.bi-row-actions { text-align: right; }
.bi-row-actions a { color: var(--app-gold); font-size: .8rem; font-weight: 600; margin-left: 10px; }
.bi-compare-links { margin: 12px 0 0; text-align: left; }
.bi-compare-links a { margin: 0 16px 0 0; }
.dash2-grid.bi-g3 { grid-template-columns: repeat(3, 1fr); }
.dash2-grid.bi-g2 { grid-template-columns: 1fr 1fr; }
.card-side a { color: var(--app-gold); }
@media (max-width: 980px) { .dash2-grid.bi-g3, .dash2-grid.bi-g2 { grid-template-columns: 1fr; } }
.bi-brow { align-items: center; border-radius: 8px; color: inherit; display: flex; font-size: .85rem; gap: 10px; margin: 4px -6px; padding: 6px; text-decoration: none; }
a.bi-brow:hover { background: rgba(255,255,255,.04); }
.bi-brow .brow-fill, .bi-fill { background: var(--app-accent); }
.bi-brow-vl { font-size: .82rem; font-weight: 700; text-align: right; width: 104px; flex: none; }
.bi-brow-vl small, .bi-sub { color: var(--app-dim); display: block; font-size: .7rem; font-weight: 500; }
.brow .bi-brow-vl { width: 104px; }
.bi-heat-scroll { overflow-x: auto; }
.bi-heat { border-collapse: separate; border-spacing: 2px; font-size: .68rem; width: 100%; }
.bi-heat th { color: var(--app-dim); font-weight: 600; padding: 0 2px; }
.bi-heat tbody th { text-align: left; }
.bi-heat td { background: rgba(232,100,28, var(--a)); border-radius: 4px; height: 20px; min-width: 18px; outline: 1px solid rgba(255,255,255,.04); }
.bi-note { color: var(--app-dim); font-size: .75rem; margin: 8px 0 0; }
.bi-pairs { align-items: flex-end; display: flex; gap: 4px; height: 170px; overflow-x: auto; }
.bi-pair { display: flex; flex: 1; flex-direction: column; height: 100%; min-width: 22px; }
.bi-pair-bars { align-items: flex-end; display: flex; flex: 1; gap: 2px; justify-content: center; }
.bi-pair-bars span { border-radius: 3px 3px 0 0; display: block; min-height: 1px; width: 8px; }
.bi-pair-a { background: var(--app-accent); }
.bi-pair-b { background: #8a7a6c; }
.bi-diff.is-up { color: var(--app-good); font-weight: 700; }
.bi-diff.is-down { color: var(--app-bad); font-weight: 700; }
@media (max-width: 640px) {
  .bi-form label { flex: 1 1 140px; }
  .bi-form input, .bi-form select { max-width: none; width: 100%; }
  .bi-insights ul { grid-template-columns: 1fr; }
}
.dash2-more { border: 1px solid var(--app-line); color: var(--app-gold); }
.bi .eyebrow a { color: inherit; }
.dash2-grid > * { min-width: 0; }
.hourbars { position: relative; }
.hourbars .empty-state { left: 0; margin: 0; position: absolute; right: 0; text-align: center; top: 40%; }
