﻿#headerNav {
    background: #F9F9F9;
    box-sizing: border-box;
    font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
    font-style: normal;
    font-size: 18px;
    line-height: 24px;
    font-weight: 400;
    color: #4D4D4D;
}

#headerNav *, #headerNav *::before, #headerNav *::after {
    box-sizing: inherit;
}

#headerNav {
    position: relative;
    border-bottom: 1px solid #E7E6E6;
    height: 63px;
    display:grid;
    grid-template-columns: auto auto auto;
    grid-column-gap: 32px;
}

#headerLeftPanel {
    float: left;
}

#headerLeftPanel .header__left-panel-content {
    display: flex;
}

#headerMiddlePanel {
    height: 100%;
}

#headerRightPanel {
    float: right;
    height: 100%;
}

#headerNavList {
    display: flex;
    height: 100%;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
}

#headerNavList a.header__nav-link {
    display: flex;
    height: 40px;
    padding: 9px 16px 9px 16px;
    margin: 0 3px;
    border-radius: 24px;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #4D4D4D;
    align-items: center;
    position: relative;
}

/* Icon tooltip — shown when the text label is not visible (see hover rules below) */
#headerNavList a.header__nav-link[aria-label]::after {
    content: attr(aria-label);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 6px;
    padding: 4px 8px;
    background: #8A8A8A;
    color: #fff;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease;
    z-index: 9999;
}

/* An icon-only item — settings, help — has no label to read, so its tooltip always shows */
#headerNavList .header__nav-item.only-icon a.header__nav-link:hover::after {
    opacity: 1;
    visibility: visible;
}

#headerNavList .header__nav-item.only-icon .header__nav-icon {
    margin-right: 0;
}

#headerNavList a.header__nav-link:hover {
    text-decoration: none;
}

#headerNavList .header__nav-icon {
    margin-right: 10px;
    height: 20px;
}

#headerNavList .header__nav-item.active:not(.only-icon) a.header__nav-link {
    background: #56549f;
    color: white;
}

#headerNavList .header__nav-item.active:not(.only-icon) a.header__nav-link:hover {
    cursor: pointer;
    opacity: 0.6;
}

#headerNavList .header__nav-item.active:not(.only-icon) a.header__nav-link .header__nav-icon {
    filter: brightness(0) invert(1);
}

#headerNavList .header__nav-item:not(.active) a.header__nav-link:hover .header__nav-icon {
    filter: invert(46%) sepia(5%) saturate(5748%) hue-rotate(203deg) brightness(73%) contrast(90%);
}

#headerNavList .header__nav-item.active.only-icon a.header__nav-link .header__nav-icon {
    filter: invert(46%) sepia(5%) saturate(5748%) hue-rotate(203deg) brightness(73%) contrast(90%);
}

#headerNavList .header__nav-item:not(.active) a.header__nav-link:hover {
    color: #56549F;
    opacity: 1;
}

#headerLogo {
    display: inline-block;
    padding: 19px 24px;
    border-right: 1px solid #E7E6E6;
    height: 100%;
}

#headerLogoLink {
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: #56549F;
    text-decoration: none;
}

#headerLogoLink:hover {
    opacity: 0.6;
}

.header__logo-img {
    display: block;
    height: 24px;
    width: auto;
    /* Align the wordmark's baseline with the nav menu text
       (compensates for the descender space at the bottom of the logo's viewBox) */
    position: relative;
    top: 5px;
}

#headerCatalogSwitcher {
    display: inline-block;
}

#headerCurrentCatalog {
    display: inline-block;
    max-width: 250px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: #56549F;
    padding: 19px 43px 19px 20px;
    background: url(../Images/catalog-arrow-down-ico.svg) no-repeat right 24px center;
}

#headerCurrentCatalog:hover, #headerCurrentCatalog:focus {
    opacity: 0.8;
    cursor: pointer;
}

.header__catalog-dropdown-list {
    display: none;
}

#header .dropdown-list {
    display: none;
    position: absolute;
    background-color: white;
    z-index: 111;
    padding: 10px 0;
    box-shadow: 4px 2px 24px #000000;
    box-shadow: 4px 2px 24px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
}

#header .show {
    display: block;
}

#header .dropdown-item {
    display: block;
    padding: 6px 20px;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #4D4D4D;
}

#header .dropdown-button {
    cursor: pointer;
}

#header .dropdown-content {
    position: relative;
    display: inline-block;
}

#header .dropdown-item:not(a):hover { /* Overwrite bootstrap */
    background-color: transparent;
}

#header a.dropdown-item:hover {
    background-color: #E9E9F8;
    opacity: 1;
}

#headerCatalogDropdownList {
    margin-top: -16px;
}

#headerProfileDropdownList {
    right: 0;
    margin-top: -10px;
    margin-right: 14px;
}

#headerProfileDropdownList .header__profile-dropdown-item {
    white-space: nowrap;
}

#headerProfile {
    height: 100%;
}

#headerProfileAvatar {
    display: flex;
    padding: 0 23px 0 23px;
    height: 100%;
    margin-right: 23px;
    background: url(../Images/big-info-arrow-down-ico.svg) no-repeat right 1px center;
    align-items: center;
    justify-content: center;
}

#headerProfileAvatar:hover, #headerProfileAvatar:focus {
    opacity: 0.8;
    cursor: pointer;
}

#headerProfileAvatar .avatar-initials {
    font-size: 16px;
    line-height: 18px;
}

#headerProfileAvatar .avatar-initials-holder {
    display: flex;
    align-items: center;
    position: initial;
    top: 50%;
}

#headerRightPanel .header__right-panel-content {
    display: flex;
    height: 100%;
    justify-content: flex-end;
}

#headerRightPanel .button-holder {
    padding: 10px;
}

#headerCurrentCurrency {
    display: flex;
    align-items: center;
    height: 100%;
    color: #AAAAAA;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    padding: 0 34px 0 20px;
    background: url(../Images/medium-info-arrow-down-ico.svg) no-repeat right 15px center;
}

#headerCurrencyDropdownList {
    right: 0;
    margin-top: -10px;
    margin-right: 4px;
}

#header .search-wrapper, #sideMenu .search-wrapper {
    white-space: nowrap;
    display: flex;
    align-items: center;
}

#sideMenu .search-wrapper form{
    width: 100%;
}

#header .search-field, #sideMenu .search-field {
    height: 40px;
    width: 100%;
    border: 1px solid #D8D8D8;
    border-radius: 24px;
    padding: 10px 48px 10px 24px;
    font-family: inherit;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #4D4D4D;
    background-color: #fff;
    background-image: none;
}

#header .search-button, #sideMenu .search-button {
    vertical-align: top;
    top: 3px;
    position: relative;
    margin-left: -42px;
    width: 34px;
    height: 34px;
    color: #FFFFFF;
    border-radius: 24px;
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    line-height: 20px;
    border: 1px solid transparent;
    display: inline-block;
    background: #56549F url(../Images/magnifying-glass-white-ico.svg) no-repeat 5px center;
}

#header .search-button:hover, #sideMenu .search-button:hover {
    opacity: 0.6;
}

#sideMenu {
    display: none;
    padding: 23px;
    display: block;
    z-index: 10;
    position: absolute;
    top: 63px;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f9f9f9;
}

#sideMenu #headerNavList .header__nav-icon {
    height: 20px;
    width: 20px;
}

#sideMenu #headerCurrentCatalog {
    max-width: 250px;
}

#sideMenu #headerCurrentCatalog {
    padding-left: 0;
}

#sideMenu .show {
    display: block;
}

#sideMenu #headerNavList{
    display: block;
}

#sideMenu #headerNavList a.header__nav-link{
    margin-left: 0;
}

.demo-banner, .trial-period-banner {
    background: lightyellow !important;
    padding: 5px 24px !important;
    font-size: small !important;
    border-bottom: 1px solid lightgray !important;
    text-align: center !important;
}

.demo-banner a, .trial-period-banner a{
    color: blue !important;
}


@media (max-width: 1500px) {
    #headerCurrentCatalog {
        max-width: 205px;
    }

    #header .search-field{
        max-width: 200px;
    }
}

@media (max-width: 1400px) {
    #headerCurrentCatalog {
        max-width: 180px;
    }

    /* Collapse the wordmark logo to just the "/" mark to free space — keeps nav labels visible longer */
    #header .header__logo-img {
        content: url(../Home/img/logo_catalog_app_slash.svg);
        width: 13px;
    }
}

@media (max-width: 1280px) {
    #header .header__nav-text{
        display: none;
    }

    /* Labels are hidden here — center the icons and reveal tooltips on hover */
    #headerNavList .header__nav-icon {
        margin-right: 0;
    }

    #headerNavList a.header__nav-link:hover::after {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 1300px) {
    #headerCurrentCatalog {
        max-width: 160px;
    }
    
    #header .search-field{
        width: 200px
    }
}

@media (max-width: 1100px) {
    #headerCurrentCatalog {
        max-width: 120px;
    }
    
    #header .search-field{
        width: 140px
    }
}

/*
    The language switch is a control standing in a list of links, and it is set the way the table
    format switch is set in its own menu: the same inset as an item's text, and under it the rule
    a grouped kebab menu draws between its groups. The space above the switch (the list's 10px
    plus the row's 6px) and the space below it (16px) match, and what follows the rule keeps the
    12px the menu leaves around an item. The id is required: #header .dropdown-item sets this
    row's padding with a selector that outranks two classes.
*/
#headerProfileDropdownList .header__profile-culture-row {
    padding: 6px 20px 16px;
    margin-bottom: 6px;
    border-bottom: 1px solid #E9E9E9;
}
