/* Gaveta do menu no topo das telas em tela cheia (TelaCheiaLayout).
   Comportamento em wwwroot/js/tela-cheia-menu.js. A gaveta desce POR CIMA da tela
   (não empurra o conteúdo), para não alterar a altura calculada da Agenda/Fechamento. */

.tela-cheia-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1045;
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform .2s ease, visibility 0s linear .2s, box-shadow .2s ease;
}

.tela-cheia-menu.aberto {
    transform: translateY(0);
    visibility: visible;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
    transition: transform .2s ease, visibility 0s, box-shadow .2s ease;
}

/* Dentro da gaveta a topbar não é mais "sticky" no fluxo da página. */
.tela-cheia-menu .app-topbar {
    position: static;
}

/* Faixa invisível na borda superior: parar o mouse aqui abre a gaveta. */
.tela-cheia-menu-zona {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 1044;
}

/* Puxador: mesmo desenho do puxador da gaveta lateral da Agenda, girado para o topo. */
.tela-cheia-menu-puxador {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 1044;
    width: 64px;
    height: 14px;
    margin-left: -32px;
    padding: 0;
    border: 1px solid #cfd6df;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #fff;
    color: #495366;
    font-size: 0.8rem;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
    transition: height .15s ease, background-color .15s ease, color .15s ease;
}

.tela-cheia-menu-puxador:hover,
.tela-cheia-menu-puxador:focus-visible {
    height: 18px;
    background: #eef3f9;
    color: #1f6feb;
}

@media (prefers-reduced-motion: reduce) {
    .tela-cheia-menu,
    .tela-cheia-menu.aberto,
    .tela-cheia-menu-puxador {
        transition: none;
    }
}
