/* Painel — Operação do dia, Pedidos, Novo pedido, Importar e gaveta do pedido.
   Todas as classes começam com op- para não colidir com as outras telas. */

/* ---------- Utilitários ---------- */
.op-m0 { margin: 0; }
.op-muted { color: var(--muted); }
.op-grow { flex: 1; }
.op-nowrap { white-space: nowrap; }
.op-err { margin: 0; color: var(--red); font-size: 13.5px; }
.op-err:empty { display: none; }
.op-up { color: var(--green); }
.op-down { color: var(--bulb); }
.op-cell-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.op-link { background: none; border: 0; padding: 0; font: inherit; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.op-link:hover { color: var(--bulb); }
.op-link.token { text-decoration: none; color: var(--text); border-bottom: 1px dotted var(--muted); }
.op-link.token:hover { color: var(--gold); }
.chip.op-chip-warn { color: var(--bulb); border-color: rgba(255, 211, 107, .4); }
.chip.op-chip-new { color: var(--on-accent); background: var(--bulb); border-color: var(--bulb); font-weight: 600; }
.op-sec-title { margin: 0; font-family: var(--font-cond); font-weight: 700; font-size: 19px; letter-spacing: .01em; }
.op-sub { margin: 0; font-family: var(--font-cond); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.op-date { width: auto; min-width: 0; }

/* Somatório (dl) usado na gaveta, no novo pedido e na importação */
.op-sum { margin: 0; display: grid; gap: 4px; font-size: 14px; }
.op-sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.op-sum dt { color: var(--muted); }
.op-sum dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.op-sum .op-sum-total { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }
.op-sum .op-sum-total dt { color: var(--text); font-weight: 600; }
.op-sum .op-sum-total dd { font-family: var(--font-cond); font-weight: 700; font-size: 21px; }

/* ---------- Operação do dia ---------- */
.op-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.op-daybar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.op-daybar .btn-icon span { font-size: 22px; line-height: 1; }
.op-daylabel { display: grid; min-width: 96px; text-align: center; line-height: 1.15; }
.op-daylabel b { font-family: var(--font-cond); font-weight: 700; font-size: 21px; }
.op-daylabel small { color: var(--muted); font-size: 12px; }
.op-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.op-quick { display: grid; gap: 5px; max-width: 520px; }
.op-quick-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.op-quick-row { display: flex; gap: 8px; }
.op-quick-input { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; }
.op-quick-input::placeholder { text-transform: none; font-family: var(--font-body); }

.op-kpi-area { display: grid; gap: 10px; }
.op-kpis-main .k-value { font-size: 28px; }
.op-kpis-sm { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.op-kpis-sm .kpi { padding: 8px 12px; }
.op-kpis-sm .k-value { font-size: 20px; }
.op-kpis-sm .k-sub { font-size: 11.5px; }
.op-kpi-note { margin: 0; font-size: 12.5px; }

.op-filters .select { width: auto; flex: 1 1 150px; max-width: 220px; min-width: 0; min-height: 34px; padding: 5px 8px; font-size: 14px; }

/* Quadro por status: no celular, abas + uma coluna; no tablet, 3 colunas; no desktop largo, 6 */
.op-board-wrap { display: grid; gap: 10px; }
.op-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.op-tab { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: var(--tap); padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); font-weight: 600; font-size: 13px; line-height: 1.2; cursor: pointer; text-align: left; }
.op-tab .op-tab-name { min-width: 0; overflow-wrap: anywhere; }
.op-tab .op-tab-count { flex: none; min-width: 22px; padding: 0 6px; border-radius: 999px; background: rgba(246, 235, 221, .08); color: var(--text); text-align: center; font-variant-numeric: tabular-nums; }
.op-tab[aria-pressed="true"] { background: var(--surface-2); border-color: currentColor; box-shadow: inset 0 -3px 0 currentColor; }
.op-board { display: grid; gap: 10px; }
.op-col { display: none; align-content: start; gap: 8px; min-width: 0; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.op-col.is-active { display: grid; }
.op-col-head { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.op-col-title { margin: 0; font-family: var(--font-cond); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.op-col-count { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.op-col-sum { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.op-col-list { display: grid; gap: 8px; }
.op-col-empty { margin: 0; padding: 14px 0; text-align: center; color: var(--muted); font-size: 13px; }

@media (min-width: 760px) {
  .op-tabs { display: none; }
  .op-board { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .op-col { display: grid; }
}
@media (min-width: 1360px) {
  .op-board { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Cartão do pedido */
.op-card { display: grid; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--line-strong); border-radius: var(--radius); min-width: 0; }
.op-card-novo { border-left-color: var(--blue); }
.op-card-em_negociacao { border-left-color: var(--violet); }
.op-card-confirmado { border-left-color: var(--gold); }
.op-card-em_preparo { border-left-color: var(--orange); }
.op-card-finalizado { border-left-color: var(--green); }
.op-card-cancelado { border-left-color: var(--red); opacity: .85; }
.op-card-main { display: grid; gap: 4px; width: 100%; padding: 10px 12px; background: none; border: 0; border-radius: var(--radius); color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.op-card-main:hover { background: rgba(246, 235, 221, .03); }
.op-card-main > span { display: block; min-width: 0; }
.op-card-main > .op-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.op-card-top .token { font-size: 12.5px; color: var(--gold); overflow-wrap: anywhere; white-space: normal; }
.op-card-time { color: var(--muted); font-size: 13px; flex: none; }
.op-card-client { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-card-main > .op-card-items { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.op-card-main > .op-card-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 8px; }
.op-card-values { display: inline-flex; align-items: baseline; gap: 6px; }
.op-card-values b { font-family: var(--font-cond); font-weight: 700; font-size: 18px; }
.op-orig-val { color: var(--muted); font-size: 13px; }
.op-card-forma { font-size: 12.5px; color: var(--muted); }
.op-card-main > .op-card-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.op-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 10px; }
.op-wait { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.op-wait.warn { color: var(--bulb); font-weight: 600; }
.op-wait.bad { color: var(--red); font-weight: 600; }
small.op-wait { display: block; }

/* Pedido que acabou de chegar: contorno âmbar (pisca só sem "reduzir movimento") */
.op-fresh { outline: 2px solid var(--bulb); outline-offset: 1px; }
tr.op-fresh { outline-offset: -2px; background: rgba(255, 211, 107, .06); }
@media (prefers-reduced-motion: no-preference) {
  .op-fresh { animation: op-glow 1.4s ease-in-out 4; }
}
@keyframes op-glow {
  50% { box-shadow: 0 0 0 4px rgba(255, 211, 107, .25), 0 0 18px rgba(255, 211, 107, .25); }
}

/* Tabelas */
.op-table td { vertical-align: top; }
.op-td-items { min-width: 160px; max-width: 280px; color: var(--muted); font-size: 13px; }
.op-td-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.op-sort { display: inline-flex; align-items: center; gap: 4px; padding: 0; background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; white-space: nowrap; }
.op-sort:hover { color: var(--text); }
.op-sort-ind { font-size: 9px; color: var(--gold); }

/* ---------- Pedidos (lista por período) ---------- */
.op-filters-card { gap: 12px; }
.op-presets { display: flex; flex-wrap: wrap; max-width: 100%; }
.op-presets button { flex: 1 1 auto; }
.op-range { display: flex; flex-wrap: wrap; gap: 8px; }
.op-range.is-off { opacity: .55; }
.op-inline { display: inline-flex; align-items: center; gap: 6px; }
.op-inline > span { font-size: 12.5px; color: var(--muted); }
.op-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
@media (min-width: 760px) { .op-search-field { grid-column: span 2; } }
.op-list-sum { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13.5px; color: var(--muted); }
.op-list-sum b { color: var(--text); }
.op-list { display: grid; gap: 10px; }
.op-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }

/* ---------- Novo pedido ---------- */
.op-new { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.op-new-main { display: grid; gap: 16px; min-width: 0; }
.op-new-side { min-width: 0; }
.op-new-sum .btn-block { min-height: var(--tap); font-size: 15px; }
.op-new-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(14, 13, 12, .95); border: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.op-new-bar b { font-family: var(--font-cond); font-size: 22px; margin-left: 4px; }
.op-new-bar .btn { min-height: var(--tap); }
@media (min-width: 1100px) {
  .op-new { grid-template-columns: minmax(0, 1fr) 320px; }
  .op-new-side { position: sticky; top: 72px; }
  .op-new-bar { display: none; }
}

/* Botões de opção (origem, modalidade, status) */
.op-radios { border: 0; padding: 0; margin: 0; min-width: 0; }
.op-radios legend { padding: 0; margin-bottom: 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.op-radios-row { display: flex; flex-wrap: wrap; gap: 8px; }
.op-radio { position: relative; display: inline-flex; }
.op-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.op-radio span { display: grid; align-content: center; min-height: var(--tap); padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); font-weight: 600; font-size: 14px; line-height: 1.25; cursor: pointer; }
.op-radio span small { font-weight: 400; font-size: 11.5px; color: var(--muted); }
.op-radio span:hover { border-color: var(--muted); }
.op-radio input:checked + span { border-color: var(--gold); background: rgba(232, 169, 58, .12); box-shadow: inset 0 0 0 1px var(--gold); }
.op-radio input:focus-visible + span { outline: 2px solid var(--bulb); outline-offset: 2px; }

/* ---------- Importar do WhatsApp ---------- */
.op-import-intro p { font-size: 14.5px; max-width: 70ch; }
.op-msg { min-height: 190px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.45; }
.op-token-input { font-family: var(--font-mono); text-transform: uppercase; max-width: 320px; }
.op-token-input::placeholder { text-transform: none; }
.op-token-details { display: grid; gap: 8px; }
.op-token-details summary { cursor: pointer; color: var(--muted); font-size: 13.5px; width: fit-content; }
.op-token-details[open] summary { margin-bottom: 8px; }
.op-import-preview { display: grid; gap: 12px; }
.op-import-card .card-head .token { color: var(--gold); overflow-wrap: anywhere; white-space: normal; }
.op-avisos { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.op-kv { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 16px; }
.op-kv > div { display: grid; gap: 1px; min-width: 0; }
.op-kv dt { font-size: 12px; color: var(--muted); }
.op-kv dd { margin: 0; overflow-wrap: anywhere; }
.op-import-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.op-import-bar .field { flex: 1 1 200px; max-width: 320px; }
.op-import-bar .btn { min-height: var(--tap); }
.op-exists > div { display: grid; gap: 6px; justify-items: start; }
.op-exists-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); }

/* ---------- Gaveta do pedido ---------- */
.op-drawer .drawer-head h2 { overflow-wrap: anywhere; }
.op-drawer .drawer-body { gap: 14px; }
.op-banner:empty { display: none; }
.op-ed-head { display: grid; gap: 10px; }
.op-ed-token { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.op-token-big { font-size: 18px; font-weight: 600; color: var(--gold); overflow-wrap: anywhere; white-space: normal; }
.op-ed-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13.5px; color: var(--muted); }
.op-ed-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.op-ed-status-now { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.op-st-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.op-st-btn { background: transparent; }
.op-st-btn:hover { border-color: currentColor; }

.op-ed-grid { display: grid; gap: 14px; }
.op-ed-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
@media (min-width: 1000px) {
  .op-ed-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
}
.op-sec { gap: 12px; }
.op-sec .op-sec-title { font-size: 18px; }
.op-tel { display: flex; gap: 6px; }
.op-tel .input { flex: 1; min-width: 0; }
.op-wa { flex: none; min-height: 38px; }

/* Editor de itens */
.op-items-editor { display: grid; gap: 10px; }
.op-items { display: grid; gap: 8px; }
.op-items-empty { margin: 0; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); font-size: 13.5px; text-align: center; }
.op-line { display: grid; gap: 8px; padding: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.op-line-main { display: grid; gap: 4px; min-width: 0; }
.op-line-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.op-line-name b { overflow-wrap: anywhere; }
.op-line-chips { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.op-line-opts { font-size: 13px; color: var(--muted); }
.op-line-obs { min-height: 32px; padding: 5px 8px; font-size: 13.5px; }
.op-line-ctrl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.op-qty { display: inline-flex; align-items: center; gap: 4px; }
.op-qty-btn { width: 36px; min-height: 36px; padding: 0; font-size: 18px; line-height: 1; }
.op-qty-input { width: 52px; min-height: 36px; padding: 4px; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.op-qty-input::-webkit-outer-spin-button, .op-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.op-price { color: var(--text); font-weight: 500; gap: 6px; padding: 0 8px; }
.op-price svg { color: var(--muted); }
.op-line-total { margin-left: auto; font-family: var(--font-cond); font-weight: 700; font-size: 17px; }
.op-line-del { width: 36px; min-height: 36px; }
.op-items-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.op-items-sum { font-size: 14px; color: var(--muted); }
.op-items-sum b { color: var(--text); }

/* Modal "adicionar do cardápio" */
.modal:has(.op-pick-groups) { width: min(580px, 100%); }
.op-pick-groups { display: grid; gap: 10px; }
.op-pick-groups:empty { display: none; }
.op-pick-group { margin: 0; padding: 8px 10px 10px; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.op-pick-group legend { padding: 0 4px; font-weight: 600; font-size: 14px; }
.op-pick-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 10px; }
.op-pick-opt { min-height: 36px; font-size: 14px; }
.op-pick-row { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 10px; }
.op-pick-preview { margin: 0; font-family: var(--font-cond); font-weight: 700; font-size: 19px; }
.op-pick-preview:empty { display: none; }

/* Valores */
.op-fechado { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; }
.op-fechado .field { flex: 1 1 220px; }
.op-fechado > .btn { margin-bottom: 1px; }
.op-compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.op-compare > div { display: grid; gap: 1px; align-content: start; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.op-compare > div > span { font-size: 12px; }
.op-compare b { font-family: var(--font-cond); font-weight: 700; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op-compare small { font-size: 11.5px; }
.op-orig summary { cursor: pointer; color: var(--muted); font-size: 13.5px; width: fit-content; }
.op-orig ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.op-orig li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.op-orig p { margin-top: 6px; }

/* Pagamento */
.op-pay-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; }
.op-payments { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.op-payments li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.op-pay-new { display: grid; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line-strong); }

/* Histórico */
.op-note { display: grid; gap: 8px; justify-items: start; }
.op-note .textarea { min-height: 56px; }
.op-timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); display: grid; gap: 12px; }
.op-timeline li { position: relative; display: grid; gap: 2px; font-size: 14px; }
.op-timeline li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); border: 2px solid var(--surface); }
.op-timeline .op-tl-criado::before { background: var(--blue); }
.op-timeline .op-tl-status::before { background: var(--gold); }
.op-timeline .op-tl-itens::before, .op-timeline .op-tl-valores::before { background: var(--orange); }
.op-timeline .op-tl-recebimento::before { background: var(--green); }
.op-timeline .op-tl-nota::before { background: var(--text); }
.op-tl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; color: var(--muted); }
.op-tl-meta time { font-variant-numeric: tabular-nums; }

.op-danger-zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px dashed rgba(255, 90, 78, .35); border-radius: var(--radius-lg); }
.op-danger-zone .hint { flex: 1 1 260px; }

/* Rodapé da gaveta */
.op-ed-foot { align-items: center; }
.op-dirty { color: var(--bulb); font-size: 13px; font-weight: 600; }
.op-foot-spacer { flex: 1; }
@media (max-width: 640px) {
  .op-ed-foot .btn { flex: 1 1 auto; }
  .op-ed-foot .op-dirty { flex-basis: 100%; }
  .op-foot-spacer { display: none; }
  .op-actions .btn { flex: 1 1 auto; }
}

/* Pedido não encontrado */
.op-notfound p { max-width: 46ch; }
.op-empty-icon { width: 34px; height: 34px; color: var(--bulb); }

/* ---------- Venda no balcão ---------- */
.bc { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.bc-menu { display: grid; gap: 12px; min-width: 0; }
.bc-cats { flex-wrap: wrap; align-self: start; justify-self: start; }
.bc-cats button { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.bc-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.bc-prod { display: grid; grid-template-rows: 1fr auto; gap: 4px; min-width: 0; }
.bc-prod-main { display: grid; gap: 2px; align-content: start; text-align: left; min-height: 78px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--text); cursor: pointer; }
.bc-prod-main:hover:not(:disabled) { border-color: var(--gold); }
.bc-prod-main:active:not(:disabled) { transform: translateY(1px); background: var(--surface-2); }
.bc-prod-main b { font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.bc-prod-main .num { font-family: var(--font-cond); font-weight: 700; font-size: 18px; color: var(--gold); }
.bc-prod-main small { color: var(--muted); font-size: 12px; }
.bc-prod-main:disabled { opacity: .45; cursor: not-allowed; }
.bc-prod-opt { min-height: 30px; font-size: 12.5px; justify-content: center; }
.bc-ticket { display: grid; gap: 12px; min-width: 0; }
.bc-ticket .card-head { margin: 0; }
.bc-lines { display: grid; gap: 6px; }
.bc-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 10px; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.bc-line-name { min-width: 0; }
.bc-line-name b { overflow-wrap: anywhere; }
.bc-line-name small { display: block; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.bc-qtd { min-width: 22px; text-align: center; font-weight: 700; }
.bc-line-total { font-family: var(--font-cond); font-weight: 700; font-size: 17px; min-width: 72px; text-align: right; }
.bc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.bc-total span { color: var(--muted); font-weight: 600; }
.bc-total b { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.1; color: var(--gold); letter-spacing: .5px; }
.bc-formas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.bc-formas .btn { min-height: var(--tap); justify-content: center; }
.bc-formas .btn[aria-pressed="true"] { border-color: var(--gold); background: rgba(232, 169, 58, .14); color: var(--text); box-shadow: inset 0 0 0 1px var(--gold); }
.bc-dinheiro { display: grid; gap: 8px; }
.bc-notas { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-troco { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.bc-troco b { font-family: var(--font-cond); font-weight: 700; font-size: 26px; }
.bc-troco.ok { border-color: rgba(61, 220, 132, .45); }
.bc-troco.ok b { color: var(--green); }
.bc-troco.bad { border-color: rgba(255, 90, 78, .45); }
.bc-troco.bad b { color: var(--red); }
.bc-ticket .seg { align-self: start; justify-self: start; flex-wrap: wrap; }
.bc-finalizar { min-height: 52px; font-size: 17px; }
.bc-ultima { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius); background: rgba(61, 220, 132, .08); border: 1px solid rgba(61, 220, 132, .35); }
.bc-ultima > svg { width: 20px; height: 20px; flex: none; color: var(--green); margin-top: 3px; }
.bc-ultima p { margin: 2px 0 0; }
.bc-ultima-troco { font-family: var(--font-cond); font-weight: 700; font-size: 22px; color: var(--green); }
@media (min-width: 1000px) {
  .bc { grid-template-columns: minmax(0, 1fr) 380px; }
  .bc-ticket { position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow: auto; }
  .bc-bar { display: none; }
}
