/*
 * 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; } }

/* 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; }
.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-item-new { background: rgba(240,163,94,.1); border-radius: 6px; padding: 4px 6px; }
.kds-new-tag { background: #b56a2a; border-radius: 999px; color: #fff; font-size: .58rem; font-weight: 700; margin-left: 6px; padding: 2px 6px; 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; }
.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; }
.connection-status.is-offline { background: rgba(240,132,47,.1); border-color: rgba(240,132,47,.4); color: #f0a35e; }
.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: 16px; text-align: center; }
.table-card-head { align-items: center; display: flex; justify-content: space-between; margin-bottom: 12px; }
.table-card-head strong { font-size: 1.05rem; }
.table-del { align-items: center; background: transparent; border: 1px solid #4a3728; border-radius: 8px; color: #d6a889; cursor: pointer; display: flex; padding: 6px; }
.table-del:hover { border-color: #c0392b; color: #ff7a6b; }
.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; }
@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-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-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-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-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); }
