/* LocationsHub app (rs.locationshub.com) additions to the new header/footer.
   Loads after lh-chrome.css and lh-chrome-overrides.css. Every selector is scoped to #lh-header / #lh-footer. */

/* Avatar: my-custom.js appends the user's photo (44px) or an initials circle to .user-info-filler. */
#lh-header .lhc-avatar img,
#lh-header .lhc-avatar .initals-container-header {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50%;
    object-fit: cover;
}
#lh-header .lhc-avatar .initals-container-header {
    line-height: 30px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}
/* my-custom.js appends to every filler, so keep only the first child if it runs twice */
#lh-header .lhc-avatar > * + * {
    display: none;
}

/* The account dropdown lives inside the header, which is dark: keep its text dark on the white panel. */
#lh-header .lhc-account .right-side-dropdown {
    min-width: 220px;
}

/* Lightbox branding: a client logo can be any shape, so give it more height than the 28px wordmark. */
#lh-header.lhc-branded .lhc-logo img {
    height: auto;
    max-height: 48px;
    max-width: 230px;
}

/* Version after the copyright */
#lh-footer .lhc-foot-bot .lhc-version {
    margin-left: 6px;
    opacity: .7;
}

/* Signed-in users get .lhc-admin (avatar menu), which in lh-chrome-overrides.css also switches the side padding
   to the dashboard layout's. Outside the dashboard (.lhc-site) keep the normal site alignment, same as signed out:
   12px below 992px, 80px from 992px up, lined up with the property cards. */
#lh-header.lhc-admin.lhc-site .lhc-wrap,
body:has(#lh-header.lhc-admin.lhc-site) #lh-footer .lhc-wrap {
    padding-left: 12px;
    padding-right: 12px;
}
@media (min-width: 992px) {
    #lh-header.lhc-admin.lhc-site .lhc-wrap,
    body:has(#lh-header.lhc-admin.lhc-site) #lh-footer .lhc-wrap {
        padding-left: 80px;
        padding-right: 80px;
    }
}
