/* Tema único do sistema: neutros + um azul de ação. Carregado por último em todas as páginas. */
:root {
    --fonte: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --primaria: #1d4ed8;
    --primaria-escura: #1e40af;
    --fundo: #f1f5f9;
    --superficie: #ffffff;
    --borda: #e2e8f0;
    --texto: #0f172a;
    --texto-suave: #64748b;
    --sucesso: #15803d;
    --perigo: #b91c1c;
    --alerta: #b45309;
    --raio: 8px;
    --sombra: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
}

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--fonte);
    color: var(--texto);
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; }

/* Sem efeito vidro nem animações decorativas */
* { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* Foco visível e consistente (acessibilidade) */
:focus-visible { outline: 2px solid var(--primaria); outline-offset: 2px; }
input:focus, select:focus, textarea:focus {
    border-color: var(--primaria) !important;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .15) !important;
    outline: none;
}

/* Barras de rolagem discretas */
* { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }

/* Impressão de recibos: sem fundo nem sombra */
@media print {
    body { background: #fff !important; }
    * { box-shadow: none !important; }
}

/* Mesas: botões secundários neutros, destrutivo só com contorno; ícone de excluir no tamanho certo */
.btn-lote-mesa, .btn-imprimir-qrcodes {
    background: #fff !important; color: #334155 !important; border: 1px solid #cbd5e1 !important;
}
.btn-lote-mesa:hover, .btn-imprimir-qrcodes:hover { background: #f1f5f9 !important; }
.btn-excluir-lote {
    background: #fff !important; color: #b91c1c !important; border: 1px solid #fca5a5 !important;
}
.btn-excluir-lote:hover { background: #fef2f2 !important; }
.btn-excluir-mesa i { font-size: 1rem !important; color: inherit !important; margin: 0 !important; }

/* Cabeçalhos de página/cartão: grafite sóbrio, ícone simples (sem círculo translúcido) */
.fechar-header, .editar-header, .recibo-header, .perfis-header, .abrir-header, .caixa-header {
    background: #1e293b !important;
    color: #fff !important;
}
.fechar-header i, .editar-header i, .recibo-header i, .abrir-header i, .perfis-header h2 i {
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 1.6rem !important;
    margin-bottom: 8px !important;
    border-radius: 0 !important;
}

/* Etiquetas "mais vendido": plana, sem fita diagonal */
.badge-popular {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    transform: none !important;
    background: #1d4ed8 !important;
    color: #fff !important;
    padding: 3px 10px !important;
    border-radius: 4px !important;
    font-size: .7rem !important;
    letter-spacing: .04em;
    box-shadow: none !important;
}

/* Sem formas decorativas de fundo */
.upgrade-card::before, .upgrade-card::after { display: none !important; }
