/* Header-only rules: page layouts and general Bootstrap menus are untouched. */
.navbarHead {
    --utility-header-height: 60px;
    height: var(--utility-header-height);
    padding-block: 0 !important;
    overflow: visible;
}
.navbarHead > .container-fluid {
    height: 100%;
    flex-wrap: nowrap;
    gap: .5rem;
}
.navbarHead .navbar-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    text-align: left;
}
.navbarHead .navbar-brand img {
    max-height: 44px;
    object-fit: contain;
}
.navbarHead .SpnSiteName {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: .75rem;
}
.navbarHead .nav-utility-list {
    gap: .25rem;
    min-width: 0;
}
.navbarHead .nav-utility-link,
.navbarHead .nav-menu-row {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr) auto;
    align-items: center;
    column-gap: .6rem;
    min-height: 40px;
    padding: .45rem .65rem;
    border: 0;
    border-radius: .5rem;
    background: transparent;
    color: #475569;
    font: inherit;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    width: 100%;
}
.navbarHead .nav-utility-link:hover,
.navbarHead .nav-utility-link[aria-expanded="true"],
.navbarHead .nav-menu-row:hover,
.navbarHead .nav-language-options button:hover {
    background: #e9eef5;
    color: #1e3a5f;
}
.navbarHead .nav-utility-link:focus-visible,
.navbarHead .nav-menu-row:focus-visible,
.navbarHead .nav-language-options button:focus-visible {
    outline: 2px solid #258cfb;
    outline-offset: -2px;
}
.navbarHead .nav-action-icon {
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.navbarHead .nav-action-icon i {
    width: 100%;
    text-align: center;
}
.navbarHead .nav-profile-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    min-width: 0;
    width: 100%;
}
.navbarHead .nav-profile-name {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .875rem;
    font-weight: 600;
    line-height: 16px;
}
.navbarHead .nav-profile-label {
    display: block;
    font-size: .6875rem;
    line-height: 12px;
    color: #64748b;
}
.navbarHead .dropdown-toggle::after {
    margin-left: 0;
    justify-self: end;
}
.navbarHead .nav-account-menu {
    width: 18rem;
    padding: .4rem;
    border: 1px solid #dbe4ee;
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 .65rem 1.75rem #1e293b26;
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
}
.navbarHead .nav-account-identity {
    padding: .6rem .65rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: .3rem;
    color: #64748b;
    font-size: .8rem;
    overflow-wrap: anywhere;
}
.navbarHead .nav-account-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .4rem;
    margin-block: .25rem .4rem;
}
.navbarHead .nav-account-shortcut {
    grid-template-columns: 1.5rem minmax(0, 1fr);
    white-space: normal;
    overflow-wrap: anywhere;
}
.navbarHead .nav-language-section > summary {
    list-style: none;
}
.navbarHead .nav-language-section > summary::-webkit-details-marker {
    display: none;
}
.navbarHead .nav-language-section[open] .nav-language-chevron {
    transform: rotate(180deg);
}
.navbarHead .nav-language-options {
    list-style: none;
    padding: .15rem 0 .25rem 2.75rem;
    margin: 0;
}
.navbarHead .nav-language-options button {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    font: inherit;
    display: block;
    padding: .5rem .4rem;
    border-radius: .35rem;
    color: #475569;
    text-decoration: none;
}
.navbarHead [data-language-form][aria-busy="true"] {
    opacity: .65;
    cursor: wait;
}
.navbarHead .intra-msg-unread-badge {
    top: -.4rem;
    right: -.5rem;
    font-size: .6rem;
}
@media (min-width: 992px) {
    .navbarHead #navbarSupportedContent {
        flex: 0 0 auto;
    }
    .navbarHead .nav-utility-list {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
    }
    .navbarHead .nav-icon-button {
        display: flex;
        justify-content: center;
        width: 40px;
        padding: .45rem;
    }
    .navbarHead .nav-profile-link {
        grid-template-columns: 1.5rem minmax(0, 8rem) auto;
        width: 12rem;
    }
    .navbarHead .nav-account-menu {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: auto;
    }
}
@media (max-width: 991.98px) {
    /* Out of flow: opening the panel never changes the header's height. */
    .navbarHead #navbarSupportedContent {
        position: absolute;
        top: 100%;
        right: .5rem;
        width: min(22rem, calc(100vw - 1rem));
        max-height: calc(100dvh - var(--utility-header-height) - .75rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: .5rem;
        border: 1px solid #dbe4ee;
        border-radius: 0 0 .75rem .75rem;
        background: #fff;
        box-shadow: 0 .75rem 1.75rem #1e293b26;
    }
    .navbarHead .nav-utility-list > .nav-item {
        width: 100%;
    }
    .navbarHead .nav-utility-link,
    .navbarHead .nav-menu-row {
        min-height: 44px;
    }
    .navbarHead .nav-account-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        max-height: none;
        padding: .25rem 0;
        margin: .2rem 0 0;
        border: 0;
        border-top: 1px solid #e2e8f0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }
}
