/* ============================================================
   SSO Panel - Shared Topbar Layout Stylesheet
   ============================================================ */

#page-topbar {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e3ebf2;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

#page-topbar .navbar-header {
    min-height: 58px;
    padding: 0.5rem 1rem;
    gap: 0.7rem;
    background: transparent;
    justify-content: flex-end;
}

.ovn-topbar-left {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.ovn-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.72rem;
}

.ovn-topbar-right {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.ovn-topbar-menu-btn {
    display: none !important;
}

.ovn-topbar-pill {
    min-height: auto;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: #375970 !important;
    box-shadow: none;
    display: inline-flex !important;
    align-items: center;
    gap: 0.42rem;
    transition: opacity 0.18s ease;
}

.ovn-topbar-pill:hover,
.ovn-topbar-pill:focus {
    opacity: 0.84;
}

.ovn-topbar-pill__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #416882;
    flex-shrink: 0;
    background: transparent;
    width: auto;
    height: auto;
    border-radius: 0;
    font-size: 0.95rem;
}

.ovn-topbar-pill--saldo .ovn-topbar-pill__icon {
    color: #b66c07;
}

.ovn-topbar-pill__text {
    display: flex;
    align-items: center;
    min-width: 0;
    line-height: 1;
}

.ovn-topbar-pill__label {
    display: none;
}

.ovn-topbar-pill__value {
    color: #36566d;
    font-size: 0.83rem;
    font-weight: 800;
    white-space: nowrap;
}

.ovn-topbar-icon-btn {
    width: auto;
    min-width: 0;
    height: auto;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: #51667a !important;
    box-shadow: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: opacity 0.18s ease;
    font-size: 1.06rem;
}

.ovn-topbar-icon-btn:hover,
.ovn-topbar-icon-btn:focus {
    opacity: 0.84;
}

.ovn-topbar-profile {
    min-height: auto;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    color: #314f64 !important;
    box-shadow: none;
    display: inline-flex !important;
    align-items: center;
    gap: 0.46rem;
    transition: opacity 0.18s ease;
}

.ovn-topbar-profile:hover,
.ovn-topbar-profile:focus {
    opacity: 0.84;
}

.ovn-topbar-profile__avatar-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    flex-shrink: 0;
}

.ovn-topbar-profile .header-profile-user {
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    object-fit: contain;
}

.ovn-topbar-profile__text {
    display: flex;
    align-items: center;
    line-height: 1;
    min-width: 0;
}

.ovn-topbar-profile__role {
    display: none;
}

.ovn-topbar-profile__name {
    color: #304f64;
    font-size: 0.86rem;
    font-weight: 800;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ovn-topbar-profile__caret {
    color: #6f8498;
    font-size: 0.88rem;
}

.ovn-topbar-dropdown {
    margin-top: 0.55rem !important;
    border: 1px solid #d8e3ec;
    border-radius: 14px;
    padding: 0.45rem;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.ovn-topbar-dropdown .dropdown-item {
    border-radius: 10px;
    padding: 0.55rem 0.72rem;
}

.ovn-topbar-dropdown .dropdown-item:hover,
.ovn-topbar-dropdown .dropdown-item:focus {
    background: #f3f8fc;
}

.ovn-topbar-dropdown__uid {
    color: #60798f;
    font-size: 0.76rem;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    #page-topbar .navbar-header {
        padding: 0.46rem 0.8rem;
        justify-content: space-between;
    }

    .ovn-topbar-left {
        display: flex;
        flex: 0 0 auto;
    }

    .ovn-topbar-right {
        flex: 1 1 auto;
        gap: 0.56rem;
    }

    .ovn-topbar-menu-btn {
        display: inline-flex !important;
        width: 36px;
        min-width: 36px;
        height: 36px;
        padding: 0 !important;
        align-items: center;
        justify-content: center;
        border: none !important;
        background: transparent !important;
        color: #36566d !important;
        box-shadow: none !important;
    }

    .ovn-topbar-menu-btn__icon {
        width: auto;
        height: auto;
        border-radius: 0;
        background: transparent;
        color: #36566d;
        font-size: 1rem;
    }

    .ovn-topbar-menu-btn__label {
        display: none !important;
    }

    .ovn-topbar-pill__value {
        font-size: 0.78rem;
    }
}

@media (max-width: 767.98px) {
    #page-topbar .navbar-header {
        min-height: 54px;
        padding: 0.42rem 0.68rem;
    }

    .ovn-topbar-left,
    .ovn-topbar-right {
        gap: 0.5rem;
    }

    .ovn-topbar-pill__icon {
        font-size: 0.9rem;
    }

    .ovn-topbar-profile__name {
        max-width: 88px;
        font-size: 0.8rem;
    }

    .ovn-topbar-icon-btn {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    #page-topbar .navbar-header {
        padding: 0.4rem 0.56rem;
    }

    .ovn-topbar-right {
        gap: 0.42rem;
    }

    .ovn-topbar-pill__text {
        display: flex;
    }

    .ovn-topbar-pill__value {
        font-size: 0.74rem;
    }

    .ovn-topbar-profile__text {
        display: none;
    }

    .ovn-topbar-icon-btn {
        display: none !important;
    }

    .ovn-topbar-profile {
        gap: 0.32rem;
    }

    .ovn-topbar-profile__caret {
        font-size: 0.82rem;
    }
}
