:root { --livre: #34434e; --pedindo: #5aa9ff; --aguardando: #f3b73c; --pronto: #fc8b25; --servida: #5bd0c4; --conta: #e8eef2; --paga: #34d58b; }
body { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.barra-topo { display: flex; align-items: center; justify-content: space-between; padding: 22px 40px 10px; gap: 24px; }
.barra-topo .marca { font-size: 22px; }
.barra-topo h1 { margin: 0; font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.resumo { display: flex; gap: 34px; align-items: baseline; }
.resumo div { display: grid; }
.resumo b { font-size: 36px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.resumo small { color: var(--muted); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.resumo .verde b { color: var(--paga); }
.relogio { font-size: 28px; font-weight: 300; color: var(--ink-2); min-width: 90px; text-align: right; }

.layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; padding: 8px 40px 28px; }
.planta-caixa { display: flex; flex-direction: column; min-height: 0; gap: 14px; }
.planta-wrap { flex: 1; min-height: 0; display: grid; place-items: center; }
.planta { container-type: size; position: relative; width: min(100%, calc((100vh - 250px) * 1.8)); aspect-ratio: 18 / 10; border-radius: 32px; background: var(--s1); border: 1px solid var(--linha); background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0); background-size: 28px 28px; }
.marco { position: absolute; display: grid; place-items: center; color: var(--muted); font-size: 1.15cqw; letter-spacing: .14em; text-transform: uppercase; border-radius: 1.4cqw; }
.marco.copa { left: 0; top: 78%; width: 15%; height: 22%; border-top-right-radius: 1.4cqw; background: rgba(255,255,255,.035); border: 1px dashed rgba(255,255,255,.12); border-radius: 0 1.6cqw 0 32px; }
.marco.entrada { right: 0; top: 36%; width: 3.2%; height: 16%; background: rgba(252,139,37,.1); color: var(--accent); writing-mode: vertical-rl; border-radius: 1cqw 0 0 1cqw; }
.marco.janela { left: 6%; right: 6%; top: 0; height: 1.1%; background: rgba(120,170,210,.25); border-radius: 0 0 8px 8px; }

.mesa { position: absolute; transform: translate(-50%, -50%); border: 0; background: none; padding: 0; color: inherit; }
.mesa .corpo { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; border-radius: var(--r); background: var(--s2); border: .22cqw solid var(--cor); color: var(--ink); transition: background .25s, border-color .25s, transform .15s; box-shadow: 0 1.4cqw 2.4cqw -1.6cqw rgba(0,0,0,.8); }
.mesa:hover .corpo { transform: scale(1.03); }
.mesa .num { font-size: 2.2cqw; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.mesa .est { font-size: .85cqw; color: var(--cor); margin-top: .35cqw; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.mesa .valor { font-size: .95cqw; color: var(--ink-2); margin-top: .1cqw; }
.mesa[data-e="livre"] { --cor: var(--livre); } .mesa[data-e="livre"] .est { color: var(--muted); }
.mesa[data-e="pedindo"] { --cor: var(--pedindo); } .mesa[data-e="aguardando"] { --cor: var(--aguardando); }
.mesa[data-e="pronto"] { --cor: var(--pronto); } .mesa[data-e="pronto"] .corpo { animation: pulso 1.3s ease-in-out infinite; background: rgba(252,139,37,.14); }
.mesa[data-e="servida"] { --cor: var(--servida); } .mesa[data-e="conta"] { --cor: var(--conta); }
.mesa[data-e="paga"] { --cor: var(--paga); } .mesa[data-e="paga"] .corpo { background: rgba(52,213,139,.16); }
.mesa[data-e="paga"] .num { display: none; } .mesa .ok { display: none; }
.mesa[data-e="paga"] .ok { display: block; width: 3.2cqw; height: 3.2cqw; stroke-width: 2.6; color: var(--paga); }
@keyframes pulso { 50% { box-shadow: 0 0 0 .5cqw rgba(252,139,37,.35), 0 0 3cqw rgba(252,139,37,.35); } }
.cad { position: absolute; width: 2.5cqw; height: 2.5cqw; border-radius: 99px; background: var(--s3); border: .2cqw solid var(--cc); color: var(--ink-2); display: grid; place-items: center; font-size: .9cqw; font-weight: 500; transform: translate(-50%, -50%); transition: background .25s, border-color .25s; }
.cad[data-e="livre"] { --cc: var(--livre); } .cad[data-e="pedindo"] { --cc: var(--pedindo); background: rgba(90,169,255,.25); } .cad[data-e="aguardando"] { --cc: var(--aguardando); background: rgba(243,183,60,.25); }
.cad[data-e="pronto"] { --cc: var(--pronto); background: var(--pronto); color: #1a0f05; animation: pulso 1.3s infinite; } .cad[data-e="servida"] { --cc: var(--servida); background: rgba(91,208,196,.25); }
.cad[data-e="conta"] { --cc: var(--conta); background: var(--conta); color: #19232b; } .cad[data-e="paga"] { --cc: var(--paga); background: var(--paga); color: #05281a; }

.legenda { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; color: var(--ink-2); font-size: 14px; }
.legenda span { display: inline-flex; align-items: center; gap: 8px; }
.legenda i { width: 12px; height: 12px; border-radius: 99px; background: var(--c); }

.lateral { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.bloco { background: var(--s1); border: 1px solid var(--linha); border-radius: 26px; padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.bloco h2 { margin: 0; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; }
.bloco h2 b { color: var(--ink); font-size: 18px; font-weight: 500; letter-spacing: 0; }
.bloco.levar { flex: 1.3; } .bloco.alertas { flex: 1; }
.rol { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; min-height: 0; }
.vazio { color: var(--muted); font-size: 15px; padding: 14px 4px; opacity: .8; }
.lev { background: var(--s2); border-radius: 18px; padding: 14px 14px 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; border: 1px solid rgba(252,139,37,.25); }
.lev b { font-size: 22px; font-weight: 600; }
.lev small { color: var(--ink-2); font-size: 14px; grid-column: 1; }
.lev .espera { text-align: right; font-weight: 500; font-size: 18px; color: var(--ok); }
.lev[data-n="warn"] .espera { color: var(--warn); } .lev[data-n="bad"] .espera { color: var(--bad); }
.lev button { grid-column: 2; grid-row: 2; height: 38px; padding: 0 14px; border-radius: 99px; background: var(--accent); color: #1a0f05; font-weight: 600; }
.al { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--s2); font-size: 15px; align-items: center; }
.al .ic { color: var(--c); } .al[data-n="bad"] { --c: var(--bad); } .al[data-n="warn"] { --c: var(--warn); } .al[data-n="info"] { --c: var(--pedindo); }
.al small { display: block; color: var(--muted); }
.delivery { border: 1.5px dashed rgba(255,255,255,.16); background: transparent; align-items: center; text-align: center; gap: 6px; padding: 18px; color: var(--muted); }
.delivery .ic { width: 28px; height: 28px; color: var(--ink-2); }
.delivery b { color: var(--ink-2); font-size: 18px; font-weight: 500; }
.delivery span.p { background: rgba(252,139,37,.14); color: var(--accent); }

/* painel da mesa */
.veu { position: fixed; inset: 0; background: rgba(5,9,12,.6); backdrop-filter: blur(6px); display: none; place-items: center; z-index: 60; }
.veu.on { display: grid; }
.painel { width: min(560px, calc(100% - 32px)); max-height: 86vh; overflow: auto; background: var(--s2); border: 1px solid var(--linha); border-radius: 30px; padding: 28px; display: grid; gap: 14px; box-shadow: 0 40px 80px -30px #000; }
.painel h2 { margin: 0; font-size: 34px; letter-spacing: -0.03em; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.painel .sub { color: var(--ink-2); margin: -8px 0 4px; }
.painel .p { background: var(--s3); border-radius: 16px; padding: 12px 16px; display: grid; gap: 4px; }
.painel .p div { display: flex; justify-content: space-between; gap: 12px; }
.painel .p small { color: var(--muted); }
.painel .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.painel .b { height: 46px; padding: 0 20px; border-radius: 99px; background: var(--s3); font-weight: 500; }
.painel .b.pri { background: var(--accent); color: #1a0f05; font-weight: 600; }
.painel .b.ver { background: var(--ok); color: #05281a; font-weight: 600; }
.painel .x { width: 40px; height: 40px; border-radius: 99px; background: var(--s3); display: grid; place-items: center; font-size: 18px; }
