/* Barra de topo única para todas as telas, no molde da "Central de atendimento":
   cartão claro, título com subtítulo à esquerda, ações à direita e linha de destaque embaixo. */
.tela > .tela-header,
#telaInicial > .tela-header-admin {
    display: flex !important; align-items: center !important; flex-wrap: wrap; gap: 12px 16px !important;
    margin: 0 0 18px !important; padding: 16px 20px !important;
    background: var(--card, #fff) !important; background-image: none !important;
    border: 1px solid rgb(15 23 42 / 9%) !important; border-bottom: 3px solid var(--primaria, #244fd1) !important;
    border-radius: 14px !important; box-shadow: 0 1px 2px rgb(15 23 42 / 5%) !important;
}
.tela > .tela-header > .cabecalho-titulo,
#telaInicial > .tela-header-admin > .inicio-apresentacao { flex: 1 1 260px; min-width: 0; }
.tela > .tela-header h2,
#telaInicial > .tela-header-admin h2 {
    margin: 0 !important; font-size: 1.35rem !important; line-height: 1.25; letter-spacing: -.01em;
    color: var(--tinta, #0f172a) !important; text-shadow: none !important;
}
.tela > .tela-header .tela-subtitulo,
#telaInicial > .tela-header-admin p {
    margin: 3px 0 0 !important; font-size: .9rem; color: var(--texto-suave, #64748b) !important; text-shadow: none !important;
}
.tela > .tela-header .tela-header-botoes,
#telaInicial > .tela-header-admin .tela-header-botoes { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.tela > .tela-header .btn-voltar { flex: none; }
html.tema-escuro .tela > .tela-header,
html.tema-escuro #telaInicial > .tela-header-admin {
    background: #16213a !important; border-color: rgb(255 255 255 / 9%) !important; border-bottom-color: #4f7cff !important;
}
html.tema-escuro .tela > .tela-header h2,
html.tema-escuro #telaInicial > .tela-header-admin h2 { color: #f1f5fb !important; }
html.tema-escuro .tela > .tela-header .tela-subtitulo,
html.tema-escuro #telaInicial > .tela-header-admin p { color: #a9b6cf !important; }
@media (max-width: 600px) {
    .tela > .tela-header, #telaInicial > .tela-header-admin { padding: 14px 16px !important; }
    .tela > .tela-header .tela-header-botoes { margin-left: 0; width: 100%; }
}

/* Escala única de títulos dentro das telas (fora do login):
   título da tela 1.35rem · seção 1.15rem · subseção 1rem — todos na mesma cor e peso. */
.tela:not(#telaLogin) :is(h2, h3):not(.tela-header h2, .tela-header-admin h2) {
    font-size: 1.15rem !important; font-weight: 700 !important; line-height: 1.3;
    color: var(--tinta, #1b2b42) !important; letter-spacing: -.005em;
}
.tela:not(#telaLogin) h4 {
    font-size: 1rem !important; font-weight: 700 !important; line-height: 1.3;
    color: var(--tinta, #1b2b42) !important;
}
/* Título de cartão (pedido, avaliação) fica um degrau abaixo, para não competir com a seção. */
.tela:not(#telaLogin) .pedido-cabecalho h3.pedido-cabecalho-titulo, .tela:not(#telaLogin) .pedido-cabecalho h3:is(h3, h3), .tela:not(#telaLogin) #listaAvaliacoesDelivery h4 { font-size: 1rem !important; }
/* Área de risco mantém o vermelho de alerta. */
.tela:not(#telaLogin) #areaRestaurar h4#areaRestaurar, .tela:not(#telaLogin) #areaRestaurar h4:is(h4) { color: #c62828 !important; }
html.tema-escuro .tela:not(#telaLogin) :is(h2, h3, h4):not(#areaRestaurar h4) { color: #f1f5fb !important; }
