/* ===== Salão — mapa de mesas (lista) ===== */

.salao {
    --salao-bg: #f4f6f9;
    --salao-ink: #0f172a;
    --salao-muted: #64748b;
    --livre: #94a3b8;
    --aberta: #16a34a;
    --fechando: #7c3aed;
    --alerta: #d97706;
    --critico: #dc2626;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-height: calc(100vh - 100px);
}

.salao-topo {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    flex-wrap: wrap;
}
.salao-topo-esq { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.salao-titulo { margin: 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: var(--salao-ink); }
.salao-sub { margin: 0; font-size: .8rem; color: var(--salao-muted); }
.salao-live {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    padding: .28rem .55rem; border-radius: 999px; background: #e2e8f0; color: #475569;
}
.salao-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: block; }
.salao-live.on { background: #dcfce7; color: #15803d; }
.salao-live.on i { box-shadow: 0 0 0 3px rgba(22,163,74,.25); }
.salao-live.off { background: #ffedd5; color: #c2410c; }

.salao-topo-acoes { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.salao-busca input {
    border: 1px solid #dbe3ee; border-radius: 10px; padding: .5rem .7rem;
    min-width: 9rem; font-size: .9rem; background: #fff;
}
.salao-dens {
    display: flex; background: #fff; border: 1px solid #dbe3ee; border-radius: 10px; overflow: hidden;
}
.salao-dens button {
    border: none; background: transparent; width: 2.4rem; height: 2.4rem; cursor: pointer; color: #64748b;
}
.salao-dens button.ativo { background: #0f172a; color: #fff; }
.salao-btn-ghost, .salao-btn-prim {
    border-radius: 10px; font-weight: 700; font-size: .85rem; padding: .5rem .85rem;
    min-height: 2.4rem; border: none; cursor: pointer;
}
.salao-btn-ghost { background: #fff; border: 1px solid #dbe3ee; color: #334155; }
.salao-btn-ghost:hover { border-color: #94a3b8; }
.salao-btn-prim { background: #0f172a; color: #fff; }
.salao-btn-prim:hover { background: #1e293b; }

.salao-stats {
    display: flex; gap: .45rem; flex-wrap: wrap;
}
.salao-stats .st {
    display: flex; flex-direction: column; align-items: flex-start; gap: .05rem;
    border: 1px solid #e2e8f0; background: #fff; border-radius: 12px;
    padding: .45rem .7rem; min-width: 5.5rem; cursor: pointer; text-align: left;
    transition: border-color .12s, box-shadow .12s;
}
.salao-stats .st b { font-size: 1.15rem; font-weight: 800; color: var(--salao-ink); line-height: 1.1; }
.salao-stats .st span { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--salao-muted); }
.salao-stats .st em { font-style: normal; font-size: .72rem; font-weight: 600; color: #334155; }
.salao-stats .st.ativo { box-shadow: 0 0 0 2px #0f172a; border-color: #0f172a; }
.salao-stats .st.livre b { color: #64748b; }
.salao-stats .st.aberta b { color: var(--aberta); }
.salao-stats .st.fechando b { color: var(--fechando); }
.salao-stats .st.fechada b { color: #64748b; }
.salao-stats .st.todas b { color: #0f172a; }
.salao-stats .st.total { cursor: default; margin-left: auto; background: #0f172a; border-color: #0f172a; }
.salao-stats .st.total b, .salao-stats .st.total span { color: #fff; }
.salao-stats .st.total span { opacity: .7; }

.salao-corpo {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 420px);
    gap: .85rem;
    flex: 1;
    min-height: 0;
    align-items: start;
}
@media (max-width: 991px) {
    .salao-corpo { grid-template-columns: 1fr; }
    .salao-painel.vazio { display: none; }
    .salao-mapa.com-painel { display: none; }
}

.salao-mapa {
    background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 40%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: .85rem;
    min-height: 420px;
}

.salao-grid {
    display: grid;
    gap: .55rem;
}
.salao.denso .salao-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.salao.medio .salao-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.salao.grande .salao-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }

.mesa-tile {
    appearance: none;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #fff;
    padding: .55rem .5rem .5rem;
    text-align: left;
    cursor: pointer;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    gap: .12rem;
    transition: transform .1s ease, box-shadow .12s ease, border-color .12s;
    touch-action: manipulation;
    position: relative;
    overflow: hidden;
}
.mesa-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(15,23,42,.08); }
.mesa-tile.sel { box-shadow: 0 0 0 3px rgba(15,23,42,.35); transform: translateY(-2px); }

.mesa-tile .mt-head {
    display: flex;
    align-items: baseline;
    gap: .35rem;
    min-width: 0;
    width: 100%;
}
.mesa-tile .mt-num {
    font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; color: var(--salao-ink); line-height: 1;
    flex: 0 0 auto;
}
.mesa-tile .mt-apelido {
    flex: 1 1 auto;
    min-width: 0;
    font-size: .78rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mesa-tile .mt-status {
    font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--salao-muted);
}
.mesa-tile .mt-total { font-size: 1rem; font-weight: 800; color: var(--salao-ink); margin-top: .15rem; }
.mesa-tile .mt-meta {
    display: flex; justify-content: space-between; gap: .25rem;
    font-size: .68rem; font-weight: 600; color: var(--salao-muted); margin-top: auto;
}
.mesa-tile .mt-garcom {
    font-size: .72rem;
    font-weight: 700;
    color: #2563eb;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: .15rem;
}
.mesa-tile .mt-credito, .mesa-tile .mt-pago {
    font-size: .62rem; font-weight: 800; text-transform: uppercase;
}
.mesa-tile .mt-credito { color: #b45309; }
.mesa-tile .mt-pago { color: #0369a1; }
.mesa-tile .mt-abrir {
    margin-top: auto; font-size: .72rem; font-weight: 800; color: #0f172a; opacity: .55;
}

.mesa-tile.livre {
    border-style: dashed;
    background: repeating-linear-gradient(-45deg, #fff, #fff 8px, #f8fafc 8px, #f8fafc 16px);
}
.mesa-tile.livre .mt-num { color: #64748b; }
.mesa-tile.livre:hover { border-color: #0f172a; background: #fff; }
.mesa-tile.livre:hover .mt-abrir { opacity: 1; }

.mesa-tile.ocupada { border-top: 4px solid var(--mc, var(--aberta)); }
.mesa-tile.status-aberta { --mc: var(--aberta); }
.mesa-tile.status-fechando { --mc: var(--fechando); background: #faf5ff; }
.mesa-tile.status-aberta .mt-status { color: var(--aberta); }
.mesa-tile.status-fechando .mt-status { color: var(--fechando); }

.mesa-tile.tempo-alerta { background: #fffbeb; }
.mesa-tile.tempo-alerta .mt-meta { color: var(--alerta); font-weight: 800; }
.mesa-tile.tempo-critico {
    background: #fef2f2;
    animation: salao-pulse 1.8s ease infinite;
}
.mesa-tile.tempo-critico .mt-meta { color: var(--critico); font-weight: 800; }
@keyframes salao-pulse {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 0 2px rgba(220,38,38,.25); }
}

.salao.denso .mesa-tile { min-height: 78px; padding: .4rem; border-radius: 12px; }
.salao.denso .mesa-tile .mt-num { font-size: 1.1rem; }
.salao.denso .mesa-tile .mt-apelido { font-size: .68rem; }
.salao.denso .mesa-tile .mt-total { font-size: .88rem; }
.salao.denso .mesa-tile .mt-credito, .salao.denso .mesa-tile .mt-pago { display: none; }
.salao.denso .mesa-tile .mt-garcom { font-size: .65rem; }
.salao.grande .mesa-tile { min-height: 120px; padding: .7rem; }
.salao.grande .mesa-tile .mt-num { font-size: 1.6rem; }
.salao.grande .mesa-tile .mt-apelido { font-size: .88rem; }
.salao.grande .mesa-tile .mt-total { font-size: 1.15rem; }

.salao-avulsas { margin-top: 1rem; padding-top: .75rem; border-top: 1px dashed #cbd5e1; }
.salao-avulsas-tit {
    font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
    color: var(--salao-muted); margin-bottom: .45rem;
}
.salao-vazio { text-align: center; color: var(--salao-muted); padding: 2.5rem 1rem; }

.salao-painel {
    position: sticky; top: .75rem;
    max-height: calc(100vh - 110px); overflow: auto;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: .85rem;
}
.salao-painel-hint {
    text-align: center; color: var(--salao-muted); padding: 2.5rem 1rem;
}
.salao-painel-hint .hint-icone { font-size: 2rem; margin-bottom: .35rem; }
.salao-painel-hint h3 { color: var(--salao-ink); font-size: 1.05rem; margin: .25rem 0; }
.salao-painel-hint p { font-size: .88rem; margin: 0; }

.mesa-tile.status-fechada {
    --mc: #64748b;
    background: #f1f5f9;
    opacity: .92;
}
.mesa-tile.status-fechada .mt-status { color: #64748b; }

.md-fiscal { margin: .75rem 0 1rem; }
.md-fiscal h6 { font-weight: 800; margin-bottom: .5rem; }
.md-fiscal-rodada { margin-bottom: .65rem; }
.md-fiscal-rodada .card { margin-bottom: 0 !important; }

.salao-config-txt { color: var(--salao-muted); font-size: .9rem; margin-bottom: .75rem; }
.salao-qtd-presets {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem;
}
.salao-qtd-presets button {
    border: 1px solid #dbe3ee; background: #fff; border-radius: 10px;
    padding: .65rem; font-weight: 800; cursor: pointer;
}
.salao-qtd-presets button.ativo { background: #0f172a; color: #fff; border-color: #0f172a; }

.salao-pax {
    display: flex; align-items: center; gap: .35rem;
}
.salao-pax button {
    width: 2.4rem; height: 2.4rem; border: 1px solid #dbe3ee; border-radius: 10px;
    background: #fff; font-size: 1.1rem; font-weight: 700; cursor: pointer;
}
.salao-pax input {
    flex: 1; text-align: center; font-weight: 800; font-size: 1.1rem;
    border: 1px solid #dbe3ee; border-radius: 10px; height: 2.4rem;
}

@media (pointer: coarse) {
    .mesa-tile { min-height: 104px; }
    .salao-dens button, .salao-btn-ghost, .salao-btn-prim { min-height: 2.75rem; }
}

.mesas-topo { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.5rem; }
.mesas-topo-acoes { display:flex; align-items:center; gap:.5rem; }
.mesa-painel { position:sticky; top:1rem; max-height:calc(100vh - 120px); overflow:auto; padding-right:2px; }

/* ===== Detalhe da mesa ===== */
.md-header { display:flex; justify-content:space-between; align-items:center; gap:1rem;
    border-radius:12px; padding:1rem 1.25rem; color:#fff; background:#16a34a; flex-wrap:wrap; }
.md-header.status-fechando { background:#7c3aed; }
.md-header.status-fechada, .md-header.status-cancelada { background:#64748b; }
.md-nome { font-size:1.3rem; font-weight:700; }
.md-sub { font-size:.85rem; opacity:.92; }
.md-totais { text-align:right; }
.md-total { font-size:1.7rem; font-weight:800; }
.md-pago { font-size:.82rem; opacity:.92; }

.md-edit-btn { border:none; background:rgba(255,255,255,.25); color:#fff; border-radius:6px; padding:0 .35rem; cursor:pointer; font-size:.8rem; line-height:1.4; }
.md-edit-btn:hover { background:rgba(255,255,255,.4); }

.md-acoes { display:flex; gap:.5rem; flex-wrap:wrap; margin:1rem 0; }

.pag-dividir { margin-top:.75rem; padding:.6rem .75rem; background:#f8fafc; border:1px solid #e5e9f0; border-radius:8px; }

.md-consumo { margin-bottom:1rem; }
.md-rodada { border:1px solid #e5e9f0; border-radius:10px; margin-bottom:.75rem; overflow:hidden; }
.md-rodada-head { display:flex; justify-content:space-between; background:#f8fafc; padding:.4rem .75rem; font-size:.82rem; color:#475569; font-weight:600; }
.md-rodada-itens { padding:.5rem; }

.md-pagamentos { background:#f8fafc; border-radius:10px; padding:.75rem 1rem; }
.md-rateio { background:#eef2ff; border-radius:8px; padding:.4rem .6rem; font-size:.85rem; margin-bottom:.5rem; }
.md-pag { display:flex; align-items:center; justify-content:space-between; gap:.5rem; padding:.3rem 0; border-bottom:1px dashed #e2e8f0; font-size:.88rem; }
.md-pag-x { border:none; background:transparent; color:#dc2626; cursor:pointer; font-size:.8rem; padding:0 .2rem; line-height:1; }
.md-pag-x:hover { color:#991b1b; }
.md-pag-hora { color:#94a3b8; font-size:.78rem; }
.md-pag.estorno { color:#b45309; font-weight:600; }
.md-breakdown { border-bottom:1px solid #e2e8f0; padding-bottom:.5rem; margin-bottom:.5rem; }
.md-breakdown > div { display:flex; justify-content:space-between; font-size:.86rem; color:#475569; padding:.15rem 0; }
.md-breakdown .md-breakdown-total { font-weight:700; color:#0f172a; border-top:1px dashed #cbd5e1; margin-top:.25rem; padding-top:.35rem; }
.md-pag-total { display:flex; justify-content:space-between; font-weight:700; margin-top:.5rem; color:#0f172a; }
.md-pag-credito { color:#b45309; }
.md-credito-txt { color:#fde68a; }
.md-credito-alert { border-left:4px solid #f59e0b; font-size:.9rem; }

/* Modais compartilhados */
.mesa-modal-backdrop { position:fixed; inset:0; background:rgba(15,23,42,.45); z-index:1050; }
.mesa-modal { position:fixed; z-index:1060; top:50%; left:50%; transform:translate(-50%,-50%);
    width:min(480px,94vw); max-height:90vh; overflow:auto; background:#fff; border-radius:14px;
    box-shadow:0 20px 60px rgba(0,0,0,.28); }
.mesa-modal.seletor { width:min(900px,96vw); }
.mesa-modal.comp { z-index:1070; }
.mesa-modal-head { display:flex; justify-content:space-between; align-items:center; padding:1rem 1.25rem; border-bottom:1px solid #eef2f7; }
.mesa-modal-head h5 { margin:0; }
.mesa-modal-corpo { padding:1.25rem; }
.mesa-modal-foot { display:flex; justify-content:flex-end; gap:.5rem; padding:1rem 1.25rem; border-top:1px solid #eef2f7; }

/* Seletor de produtos */
.seletor-corpo { display:grid; grid-template-columns:1fr 300px; gap:0; }
@media (max-width:720px){ .seletor-corpo { grid-template-columns:1fr; } }
.seletor-catalogo { padding:1rem; max-height:70vh; overflow:auto; border-right:1px solid #eef2f7; }
.seletor-cat { font-weight:700; color:#334155; margin:.75rem 0 .35rem; font-size:.85rem; text-transform:uppercase; letter-spacing:.02em; }
.seletor-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(148px,1fr)); gap:.6rem; }
.seletor-prod { display:flex; flex-direction:column; align-items:stretch; border:1px solid #e2e8f0; border-radius:10px; padding:.5rem; background:#fff; cursor:pointer; text-align:left; transition:box-shadow .12s, border-color .12s, transform .08s; }
.seletor-prod:hover { border-color:#94a3b8; box-shadow:0 4px 12px rgba(0,0,0,.08); transform:translateY(-1px); }
.sp-foto { position:relative; width:100%; aspect-ratio:4/3; border-radius:8px; overflow:hidden; background:#f1f5f9; display:flex; align-items:center; justify-content:center; margin-bottom:.4rem; }
.sp-foto img { width:100%; height:100%; object-fit:cover; }
.sp-emoji { font-size:2.2rem; line-height:1; }
.sp-esgotado { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(15,23,42,.55); color:#fff; font-size:.8rem; font-weight:700; }
.sp-nome { font-weight:600; font-size:.85rem; line-height:1.2; }
.sp-preco { font-size:.78rem; color:#16a34a; margin-top:.1rem; }

.sp-head-foto { width:64px; height:64px; flex:0 0 64px; border-radius:10px; overflow:hidden; background:#f1f5f9; display:flex; align-items:center; justify-content:center; }
.sp-head-foto img { width:100%; height:100%; object-fit:cover; }
.seletor-prod-head { display:flex; gap:.75rem; align-items:center; }
.seletor-prod.esgotado { opacity:.5; cursor:not-allowed; }
.seletor-prod-head { margin:.25rem 0 .5rem; }
.seletor-prod-head h5 { margin:0; }
.seletor-add-bar { display:flex; gap:.6rem; align-items:center; position:sticky; bottom:0; background:#fff; padding-top:.6rem; margin-top:.5rem; border-top:1px solid #eef2f7; }
.sc-qtd-txt { font-weight:700; color:#0f172a; }
.seletor-carrinho { padding:1rem; max-height:70vh; overflow:auto; background:#f8fafc; }

.mesa-modal.seletor.balcao-modal { width:min(1060px,97vw); }
.balcao-cat-wrap { display:flex; gap:.75rem; align-items:flex-start; }
.balcao-cats { flex:0 0 96px; display:flex; flex-direction:column; gap:.35rem; position:sticky; top:0; }
.balcao-produtos { flex:1 1 auto; min-width:0; }
.balcao-cat { display:flex; flex-direction:column; align-items:center; gap:.25rem; border:1px solid #e2e8f0; border-radius:10px; padding:.4rem .3rem; background:#fff; cursor:pointer; text-align:center; transition:border-color .12s, box-shadow .12s; }
.balcao-cat:hover { border-color:#94a3b8; }
.balcao-cat.ativo { border-color:#111827; box-shadow:0 0 0 2px rgba(17,24,39,.16); }
.balcao-cat-thumb { width:56px; height:56px; border-radius:8px; overflow:hidden; background:#f1f5f9; display:flex; align-items:center; justify-content:center; }
.balcao-cat-thumb img { width:100%; height:100%; object-fit:cover; }
.balcao-cat-thumb .sp-emoji { font-size:1.5rem; }
.balcao-cat-nome { font-size:.72rem; font-weight:600; color:#334155; line-height:1.1; word-break:break-word; }

/* ===== Histórico do cliente (dialog sobre o balcão) ===== */
.npb-hist-toggle {
    display:flex; align-items:center; gap:.65rem; width:100%;
    margin:0 0 .55rem; padding:.55rem .7rem;
    border:1px solid var(--dd-border, #e4e7ec); border-radius:10px;
    background:#fff; color:var(--dd-texto, #1d2939); text-align:left; cursor:pointer;
    transition:border-color .15s, box-shadow .15s;
}
.npb-hist-toggle:hover:not(:disabled) { border-color:#98a2b3; box-shadow:var(--dd-sombra, 0 1px 3px rgba(16,24,40,.07)); }
.npb-hist-toggle:disabled { opacity:.65; cursor:wait; }
.npb-hist-toggle-ico {
    flex:0 0 28px; height:28px; border-radius:8px;
    display:inline-flex; align-items:center; justify-content:center;
    background:#111827; color:#fff; font-size:.95rem; font-weight:600;
}
.npb-hist-toggle-txt { flex:1; min-width:0; display:flex; flex-direction:column; line-height:1.2; }
.npb-hist-toggle-txt strong { font-size:.82rem; font-weight:700; }
.npb-hist-toggle-txt small { font-size:.7rem; color:#667085; margin-top:.1rem; }
.npb-hist-toggle-chev { color:#98a2b3; font-size:.85rem; font-weight:600; }

.npb-hist-dlg-backdrop {
    position:fixed; inset:0; z-index:1080;
    background:rgba(15,23,42,.55); backdrop-filter:blur(2px);
}
.npb-hist-dlg {
    position:fixed; z-index:1090; top:50%; left:50%; transform:translate(-50%,-50%);
    width:min(920px, 96vw); max-height:min(88vh, 720px);
    display:flex; flex-direction:column;
    background:#fff; border-radius:16px;
    box-shadow:0 24px 64px -12px rgba(15,23,42,.45);
    overflow:hidden;
}
.npb-hist-dlg-head {
    display:flex; justify-content:space-between; align-items:flex-start; gap:1rem;
    padding:1.1rem 1.25rem; border-bottom:1px solid #eef2f6; flex:0 0 auto;
}
.npb-hist-dlg-titulo h5 { margin:0; font-size:1.1rem; font-weight:800; letter-spacing:-.02em; color:#101828; }
.npb-hist-dlg-titulo p { margin:.25rem 0 0; font-size:.82rem; color:#667085; display:flex; flex-wrap:wrap; gap:.25rem; align-items:center; }
.npb-hist-dot { opacity:.45; }

.npb-hist-dlg-corpo {
    flex:1 1 auto; min-height:0; display:grid;
    grid-template-columns:minmax(220px, 280px) 1fr;
    background:#f8fafc;
}
.npb-hist-dlg-lista {
    overflow:auto; border-right:1px solid #eef2f6; background:#fff;
    padding:.65rem .55rem; display:flex; flex-direction:column; gap:.35rem;
}
.npb-hist-dlg-lista-label {
    font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em;
    color:#98a2b3; padding:.15rem .4rem .35rem;
}
.npb-hist-dlg-item {
    display:flex; flex-direction:column; gap:.22rem; width:100%;
    padding:.65rem .7rem; border:1px solid transparent; border-radius:10px;
    background:#f8fafc; text-align:left; cursor:pointer; color:inherit;
    transition:border-color .12s, background .12s, box-shadow .12s;
}
.npb-hist-dlg-item:hover { background:#f1f5f9; border-color:#e4e7ec; }
.npb-hist-dlg-item.sel {
    background:#fff; border-color:#111827;
    box-shadow:0 0 0 1px #111827, 0 4px 12px -6px rgba(15,23,42,.2);
}
.npb-hist-dlg-item-top { display:flex; align-items:center; justify-content:space-between; gap:.4rem; }
.npb-hist-pedido { font-size:.84rem; font-weight:750; color:#101828; letter-spacing:-.01em; }
.npb-hist-badge {
    display:inline-flex; align-items:center; padding:.12rem .45rem;
    border-radius:999px; font-size:.62rem; font-weight:700; line-height:1.2; color:#fff;
}
.npb-hist-badge.bg-warning { color:#92400e; }
.npb-hist-badge.bg-light { color:#475467; border:1px solid #e4e7ec; }
.npb-hist-dlg-item-meta { font-size:.72rem; color:#667085; }
.npb-hist-dlg-item-foot {
    display:flex; justify-content:space-between; align-items:baseline; gap:.4rem;
    font-size:.72rem; color:#98a2b3; margin-top:.1rem;
}
.npb-hist-dlg-item-foot strong { font-size:.88rem; font-weight:800; color:#101828; }

.npb-hist-dlg-detalhe {
    overflow:auto; padding:1rem 1.15rem 1.15rem;
    display:flex; flex-direction:column; gap:.7rem;
}
.npb-hist-dlg-det-head {
    display:flex; justify-content:space-between; align-items:flex-start; gap:.75rem;
}
.npb-hist-dlg-det-head h6 { margin:0; font-size:1rem; font-weight:800; color:#101828; letter-spacing:-.02em; }
.npb-hist-dlg-produtos-label {
    font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#98a2b3;
}

.npb-hist-empty {
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.4rem;
    padding:1.5rem 1rem; text-align:center; color:#667085; font-size:.85rem;
}
.npb-hist-empty.dlg { flex:1; min-height:220px; }
.npb-hist-empty.compact { padding:.75rem; flex-direction:row; gap:.5rem; }
.npb-hist-empty strong { color:#344054; font-size:.95rem; }

.npb-hist-endereco, .npb-hist-obs {
    display:flex; flex-direction:column; gap:.2rem;
    padding:.6rem .7rem; border-radius:10px; background:#fff; border:1px solid #eef2f6;
    font-size:.8rem; color:#475467; line-height:1.4;
}
.npb-hist-endereco-label {
    font-size:.65rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:#98a2b3;
}

.npb-hist-itens { display:flex; flex-direction:column; gap:.4rem; }
.npb-hist-itens .pd-item { background:#fff; }

.npb-hist-dlg-foot {
    margin-top:auto; padding-top:.85rem; border-top:1px solid #e4e7ec;
    display:flex; flex-direction:column; gap:.65rem;
}
.npb-hist-resumo-valores {
    display:flex; flex-direction:column; gap:.3rem; font-size:.8rem; color:#667085;
}
.npb-hist-resumo-valores > div { display:flex; justify-content:space-between; gap:1rem; }
.npb-hist-resumo-valores .total { margin-top:.15rem; padding-top:.4rem; border-top:1px dashed #e4e7ec; color:#101828; }
.npb-hist-resumo-valores .total strong { font-size:1rem; font-weight:800; }

.npb-hist-btn-repetir {
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.15rem;
    width:100%; padding:.75rem 1rem; border:0; border-radius:11px; cursor:pointer;
    background:#111827; color:#fff; font-weight:700; font-size:.92rem;
    transition:background .15s;
}
.npb-hist-btn-repetir small { font-size:.7rem; font-weight:500; opacity:.75; }
.npb-hist-btn-repetir:hover:not(:disabled) { background:#000; }
.npb-hist-btn-repetir:disabled { opacity:.7; cursor:wait; }

@media (max-width:720px){
    .balcao-cat-wrap { flex-direction:column; }
    .balcao-cats { flex-direction:row; flex-wrap:nowrap; overflow-x:auto; position:static; width:100%; padding-bottom:.25rem; }
    .balcao-cat { flex:0 0 auto; width:78px; }
    .npb-hist-dlg { width:96vw; max-height:92vh; top:auto; bottom:0; left:50%; transform:translateX(-50%); border-radius:16px 16px 0 0; }
    .npb-hist-dlg-corpo { grid-template-columns:1fr; grid-template-rows:auto 1fr; }
    .npb-hist-dlg-lista {
        border-right:0; border-bottom:1px solid #eef2f6;
        flex-direction:row; overflow-x:auto; overflow-y:hidden; max-height:none;
        padding:.55rem; gap:.4rem;
    }
    .npb-hist-dlg-lista-label { display:none; }
    .npb-hist-dlg-item { min-width:168px; flex:0 0 auto; }
}
.sc-titulo { font-weight:700; margin-bottom:.5rem; }
.sc-item { border-bottom:1px solid #e2e8f0; padding:.4rem 0; }
.sc-item-top { display:flex; align-items:center; gap:.4rem; }
.sc-qtd { display:inline-flex; align-items:center; gap:.3rem; }
.sc-qtd button { border:none; background:#e2e8f0; border-radius:6px; width:22px; height:22px; cursor:pointer; }
.sc-nome { flex:1; font-size:.85rem; }
.sc-preco { font-size:.82rem; font-weight:600; }
.sc-remover { border:none; background:transparent; cursor:pointer; }
.sc-comp { font-size:.75rem; color:#64748b; padding-left:1.5rem; }
.sc-total { display:flex; justify-content:space-between; font-weight:700; margin-top:.5rem; padding-top:.5rem; border-top:2px solid #e2e8f0; }

.comp-corpo { padding:1.25rem; max-height:70vh; overflow:auto; }
.comp-grupo { margin-bottom:1rem; }
.comp-grupo-titulo { font-weight:700; margin-bottom:.4rem; }
.comp-obrig { font-size:.7rem; background:#fee2e2; color:#b91c1c; border-radius:6px; padding:.05rem .4rem; margin-left:.4rem; }
.comp-opcao { display:flex; align-items:center; gap:.5rem; padding:.3rem 0; cursor:pointer; }
.comp-opcao .comp-preco { margin-left:auto; color:#16a34a; font-size:.82rem; }
.comp-obs { margin-top:.75rem; }
