/* ==========================================================================
   UX — Topbar responsiva (Hangar / Torre / AM)
   ========================================================================== */

.topbar {
    height: auto;
    min-height: 64px;
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.topbar-left {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 10px;
    row-gap: 3px;
    min-width: 0;
}

.topbar-context .topbar-context-meta {
    flex-basis: 100%;
}

.topbar-context-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.topbar-right {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px !important;
}

.topbar-route {
    min-width: 0;
    font-size: 12px;
    letter-spacing: 0.14em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-meta {
    margin-left: 0 !important;
    border-left: none !important;
    padding-left: 0 !important;
    font-size: 10px;
    letter-spacing: 0.1em;
    white-space: nowrap;
    opacity: 0.9;
}

.topbar-meta:empty {
    display: none;
}

.topbar-meta + .topbar-meta:not(:empty)::before {
    content: '·';
    margin-right: 10px;
    opacity: 0.45;
}

.topbar #flightMood.flight-mood-container {
    margin-left: 0 !important;
    border-left: none !important;
    padding-left: 0 !important;
    max-width: min(260px, 30vw);
    flex-shrink: 1;
    min-width: 0;
}

.topbar #flightMood .fm-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 18vw;
}

.btn-topbar {
    padding: 7px 12px;
    font-size: 11px;
    white-space: nowrap;
}

body.profile-piloto .topbar #msgCalendarioDash {
    display: none;
}

@media (max-width: 1360px) {
    .topbar #flightMood .fm-text {
        max-width: 13vw;
    }
}

@media (max-width: 1180px) {
    .topbar-right .btn-topbar[onclick*="Context.openCurrent"] {
        display: none;
    }
}

@media (max-width: 1100px) {
    body.profile-piloto .topbar #textoCicloAtual {
        display: none;
    }
}

@media (max-width: 980px) {
    .topbar #flightMood .fm-text {
        display: none;
    }

    .topbar #flightMood {
        max-width: none;
        padding: 8px 10px !important;
    }
}

@media (max-width: 640px) {
    .topbar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .topbar-brand-text {
        display: none;
    }

    .topbar-right .btn-topbar {
        padding: 7px 10px;
    }

    .topbar-meta-cycle {
        display: none;
    }

    .topbar #flightMood .fm-text {
        display: none;
    }

    .topbar #flightMood {
        max-width: none;
        padding: 8px 10px !important;
    }
}

/* Overlays bloqueados — esconder chips até a fila liberar */
body.voe-overlay-blocked .ialtum-proactive-chip.is-active,
body.voe-overlay-blocked .wow-moment-overlay.is-active {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}
