/**
 * DocAiHealth — logo horizontal PNG sin fondo (menú, auth, dashboard)
 */

.side-menu__item--soon {
    color: #98a2b3 !important;
    cursor: default;
    pointer-events: none;
}
.side-menu__item--soon .side-menu__icon,
.side-menu__item--soon .side-menu__label {
    color: #98a2b3 !important;
}
.side-menu__item--soon-child {
    padding-left: 1.35rem;
}

#lab_results.side-menu__item {
    height: auto;
    min-height: 52px;
    padding-top: 7px;
    padding-bottom: 7px;
}

#lab_results .side-menu__label--lines {
    display: flex;
    flex-direction: column;
    white-space: normal;
    line-height: 1.15;
    gap: 1px;
}

#brand-img,
.header-brand-img,
.landing-footer__logo,
.auth-brand-logo img {
    background: transparent;
}

.auth-brand-logo {
    gap: 10px;
    flex-wrap: wrap;
}

.landing-footer__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 991.98px) {
    #navbar-responsive.landing-nav .landing-nav__col--logo .navbar-brand img,
    #navbar-responsive.landing-nav .landing-nav__col--logo #brand-img,
    #main #navbar-responsive.landing-nav .landing-nav__col--logo .navbar-brand img,
    #main #navbar-responsive.landing-nav .landing-nav__col--logo #brand-img {
        max-width: min(148px, 40vw) !important;
    }
}

/* ── 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(280px, 72vw);
    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;
}

.auth-brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-brand-logo img {
    display: block;
    max-height: 92px;
    max-width: min(340px, 88vw);
    width: auto;
    height: auto;
    object-fit: contain;
}

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

    #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(200px, 82vw);
    }

    #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;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    line-height: 1;
}

.app-sidebar__logo .header-brand-img.desktop-lgo {
    max-height: 52px;
    max-width: 230px;
    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: 100%;
    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;
}

/* ── Login: flush to viewport, no page scroll ── */
html:has(.login-page-wrap),
body:has(.login-page-wrap) {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

body:has(.login-page-wrap) .page,
body:has(.login-page-wrap) .page-main,
body:has(.login-page-wrap) .main-content,
body:has(.login-page-wrap) .side-app {
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    justify-content: flex-start !important;
}

.login-page-wrap,
.login-page-wrap > .login-background {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

#login-responsive {
    height: 100dvh;
    overflow: hidden !important;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    #login-background {
        width: 50% !important;
        max-width: 50% !important;
        height: 100dvh !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

#login-background .login-bg {
    background: #ffffff !important;
    animation: none !important;
    overflow: hidden;
    height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

#login-background .login-bg img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center top;
    display: block;
}

@media (max-width: 767.98px) {
    html:has(.login-page-wrap),
    body:has(.login-page-wrap) {
        height: auto;
        max-height: none;
        overflow: auto !important;
    }

    body:has(.login-page-wrap) .page,
    body:has(.login-page-wrap) .page-main,
    body:has(.login-page-wrap) .main-content,
    body:has(.login-page-wrap) .side-app,
    .login-page-wrap,
    .login-page-wrap > .login-background,
    #login-responsive {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}
