/* Banner de staging (includes/banner_staging.php).
   Fica fixo no topo de todas as páginas do ambiente de teste. Não existe em produção. */

body { padding-top: 30px !important; }

.bstag {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    background: #1b1b1f;
    border-bottom: 2px solid #f59e0b;
    color: #d7d7dd;
    font: 500 11.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.bstag-selo {
    flex: 0 0 auto;
    background: #f59e0b;
    color: #1b1b1f;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
}

.bstag-frase { color: #9a9aa4; }

/* Empurra o resto para a direita: o aviso é o que importa à esquerda, os dados
   técnicos ficam do lado oposto e só são lidos quando se procura por eles. */
.bstag-dir {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.bstag-item {
    padding: 2px 7px;
    border: 1px solid #34343c;
    border-radius: 4px;
    white-space: nowrap;
}
.bstag-sha { color: #fff; font-weight: 700; }

/* Estado das migrations: cor E palavra, nunca só cor — quem não distingue as duas
   precisa continuar entendendo o aviso. */
.bstag-ok     { color: #4ade80; border-color: #266b3e; }
.bstag-alerta { color: #fbbf24; border-color: #7c5410; font-weight: 700; }
.bstag-neutro { color: #9a9aa4; }

.bstag-link { color: #f59e0b; text-decoration: underline; white-space: nowrap; }
.bstag-link:hover { color: #fbbf24; }

/* Botão flutuante de deploy */
.bstag-deploy {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
    cursor: grab;
    user-select: none;
    transition: box-shadow .2s, transform .2s;
}
.bstag-deploy:hover { box-shadow: 0 6px 24px rgba(16, 185, 129, .5); }

/* Tela estreita: os dados técnicos saem e fica só o aviso, que é o essencial. */
@media (max-width: 720px) {
    .bstag-frase, .bstag-item { display: none; }
    .bstag-dir { gap: 8px; }
}

/* Telas de altura cheia (100vh) somavam os 30px da faixa e passavam da tela:
   o rodapé do PDV Pro (botão Cancelar/Voltar) ficava escondido embaixo.
   Só desktop — no mobile esses layouts já usam height: auto. */
@media (min-width: 641px) and (min-height: 501px) {
    body .pdv-pro-layout,
    body .totem-layout,
    body .comanda-open-screen,
    body .expedicao-fullpage-wrap {
        height: calc(100vh - 30px);
    }
}
