/**
 * AiDocHealth — logo horizontal dentro del menú (sin desbordar)
 */

/* ── Landing / frontend navbar (genérico; landing usa landing.css) ── */
#navbar-responsive:not(.landing-nav) {
    align-items: center;
    min-height: 64px;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

#navbar-responsive:not(.landing-nav) .navbar-brand {
    display: inline-flex;
    align-items: center;
    max-width: min(170px, 38vw);
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

#navbar-responsive:not(.landing-nav) .navbar-brand img,
#navbar-responsive:not(.landing-nav) #brand-img,
.register-logo img {
    display: block;
    max-height: 38px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    #navbar-responsive:not(.landing-nav) .navbar-brand {
        max-width: min(145px, 45vw);
    }

    #navbar-responsive:not(.landing-nav) .navbar-brand img,
    #navbar-responsive:not(.landing-nav) #brand-img {
        max-height: 34px;
    }
}

@media (max-width: 575.98px) {
    #navbar-responsive:not(.landing-nav) .navbar-brand {
        max-width: min(120px, 52vw);
    }

    #navbar-responsive:not(.landing-nav) .navbar-brand img,
    #navbar-responsive:not(.landing-nav) #brand-img {
        max-height: 30px;
    }
}

/* ── Footer ── */
footer .navbar-brand img,
footer img[alt="Brand Logo"] {
    max-height: 42px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ── Dashboard sidebar ── */
.app-sidebar__logo .header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    line-height: 1;
}

.app-sidebar__logo .header-brand-img.desktop-lgo {
    max-height: 42px;
    max-width: 210px;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    margin-top: 0 !important;
}

.app-sidebar__logo .header-brand-img.mobile-logo {
    max-height: 36px;
    max-width: 44px;
    width: auto !important;
    object-fit: contain;
}

.sidenav-toggled .app-sidebar__logo .header-brand-img.mobile-logo {
    max-height: 34px;
    max-width: 40px;
}

/* ── Dashboard top bar (smart header) ── */
.smart-header .header-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0 !important;
}

.smart-header .header-brand-img.desktop-lgo {
    max-height: 36px;
    max-width: 160px;
    width: auto !important;
    object-fit: contain;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ── Fallback general (emails, auth, etc.) ── */
.header-brand-img {
    max-height: 2.5rem;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.header-brand-img.desktop-lgo {
    margin-top: 0 !important;
}
