/* Good Garçom: complementa o pdv-app.css (mesmos componentes do Good PDV). */
.cmds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cmd { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: var(--radius); padding: 12px; cursor: pointer; }
.cmd.minha { border-left-color: var(--brand); }
.cmd.conta { border-left-color: #2563eb; }
.cmd.pendente-envio { border-style: dashed; }
.cmd .num { font-size: 20px; font-weight: 800; text-align: left; }
.cmd .onde { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd .valor { font-size: 18px; font-weight: 700; margin-top: 6px; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.chip { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--bg); color: var(--muted); }
.chip.verde { background: var(--brand-soft); color: var(--brand-dark); }
.chip.azul { background: #e1effe; color: #1d4ed8; }
.chip.amarelo { background: var(--warn-soft); color: var(--warn); }
.chip.vermelho { background: var(--danger-soft); color: var(--danger); }
.mesas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.mesas button { height: 56px; border-radius: 12px; border: 2px solid var(--line); background: var(--card); font-weight: 700; cursor: pointer; }
.mesas button.ocupada { background: var(--warn-soft); border-color: #f3d9a4; }
.mesas button.sel { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.voltar { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--brand-dark); font-weight: 600; font-size: 15px; padding: 0 0 10px; cursor: pointer; }
.cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cab h2 { font-size: 22px; }
.cab .total { text-align: right; font-size: 22px; font-weight: 800; }
.cab .total small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.linha-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.linha-item:last-child { border-bottom: 0; }
.linha-item .q { font-weight: 800; min-width: 34px; }
.linha-item .d { flex: 1; min-width: 0; }
.linha-item .d .obs { font-size: 13px; color: var(--warn); font-weight: 600; }
.linha-item .v { font-weight: 600; white-space: nowrap; }
.linha-item.cancelado .d, .linha-item.cancelado .v, .linha-item.cancelado .q { text-decoration: line-through; color: var(--muted); }
.barra-acoes { position: fixed; left: 0; right: 0; bottom: calc(var(--menu) + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); padding: 10px 14px; display: flex; gap: 10px; z-index: 15; }
.barra-acoes .btn { flex: 1; }
.cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.cats button { flex: none; height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-weight: 600; cursor: pointer; }
.cats button.sel { background: var(--navy); color: #fff; border-color: var(--navy); }
.cardapio .prod { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cardapio .prod .d { flex: 1; min-width: 0; }
.cardapio .prod .d small { display: block; color: var(--muted); font-size: 12.5px; }
.cardapio .prod .p { font-weight: 700; white-space: nowrap; }
.cardapio .prod .add { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--brand); color: #fff; font-size: 24px; font-weight: 700; cursor: pointer; }
.cardapio .prod .qtd-tag { min-width: 26px; height: 26px; border-radius: 13px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.rascunho { position: sticky; bottom: 0; background: var(--card); padding-top: 10px; margin-top: 8px; }
.folha.cheia { max-height: 96vh; min-height: 80vh; }
.obs-input { margin-top: 6px; height: 40px !important; font-size: 14px; }
@media (min-width: 640px) { .cmds { grid-template-columns: repeat(3, 1fr); } .mesas { grid-template-columns: repeat(5, 1fr); } }
/* Mapa de mesas */
.menu { grid-template-columns: repeat(4, 1fr); }
.mapa-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-size: 14px; }
.legenda { display: flex; gap: 10px; font-size: 12px; color: var(--muted); }
.legenda span { display: inline-flex; align-items: center; gap: 4px; }
.legenda i { width: 12px; height: 12px; border-radius: 3px; border: 2px solid var(--line); background: var(--card); }
.legenda i.ocupada { background: var(--warn-soft); border-color: #f3c46b; }
.legenda i.conta { background: #e1effe; border-color: #93b4f5; }
.mapa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mapa .mesa { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 96px; padding: 10px; text-align: left; border: 2px solid var(--line);
  border-radius: 14px; background: var(--card); font: inherit; color: inherit; cursor: pointer; }
.mapa .mesa:active { transform: scale(.97); }
.mapa .mesa .nome { font-weight: 800; font-size: 16px; }
.mapa .mesa .valor { font-weight: 700; font-size: 15px; }
.mapa .mesa .info { font-size: 12px; color: var(--muted); }
.mapa .mesa .chip { margin-top: auto; }
.mapa .mesa.livre { border-style: dashed; }
.mapa .mesa.ocupada { background: var(--warn-soft); border-color: #f3c46b; }
.mapa .mesa.conta { background: #e1effe; border-color: #93b4f5; }
.mapa .mesa.pronto { box-shadow: 0 0 0 3px var(--brand-soft), inset 0 0 0 1px var(--brand); }
.mapa .mesa.minha .nome::after { content: ' •'; color: var(--brand); }
@media (min-width: 640px) { .mapa { grid-template-columns: repeat(5, 1fr); } }
/* Desenho da mesa (mesa-svg.js) */
.mapa .mesa { min-height: 0; }
.mesa-svg { display: block; width: 100%; height: 58px; margin-bottom: 4px; }
.mesa-svg .tampo { fill: #e9eef4; stroke: #b6c1ce; stroke-width: 2; }
.mesa-svg .cadeira { fill: #cdd5df; }
.mesa-svg .rotulo { font: 800 17px "Segoe UI", system-ui, sans-serif; fill: #475569; }
.mapa .mesa.ocupada .tampo { fill: #fcd34d; stroke: #d97706; }
.mapa .mesa.ocupada .cadeira { fill: #f59e0b; }
.mapa .mesa.ocupada .rotulo { fill: #78350f; }
.mapa .mesa.conta .tampo { fill: #93c5fd; stroke: #2563eb; }
.mapa .mesa.conta .cadeira { fill: #60a5fa; }
.mapa .mesa.conta .rotulo { fill: #1e3a8a; }
.mapa .mesa.pronto .cadeira { fill: var(--brand); }
