﻿@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.header {
    display: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 65px;
    border-bottom: 1px solid #F3F4F6;
}

.environment-dev + header > div {
    /*background-image: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)), url("/img/environments/dev.png");
    background-size: contain;*/
}

.environment-ci + header > div {
    /*background-image: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)), url("/img/environments/ci.png");
    background-size: contain;*/
}

.environment-qualif + header > div {
    /*background-image: linear-gradient(rgba(255,255,255,0.5), rgba(255,255,255,0.5)), url("/img/environments/qualif.png");
    background-size: contain;*/
}

.header-container {
    position: relative; /* Needed to display impersonation */
    display: flex;
    height: 100%;
    justify-content: space-between;
    padding: 0px 10px;
    background-color: white;
    font-size: 16px;
}

    .header-container > div {
        display: flex;
        align-items: center;
        width: 100%;
    }

.header-tenant-logo {
    height: 25px;
}

.header-site-logo {
    height: 15px;
    margin: 0px 5px;
}

.header-brand {
    display: flex;
    align-items: center;
}

    .header-brand > div {
        margin-left: 15px;
    }

        .header-brand > div > span {
            font-family: 'Inter', sans-serif;
            color: #6B7280;
            font-size: 10px;
        }

.header-center {
    display: none;
    justify-content: center;
}

.header-right {
    justify-content: flex-end;
    gap: 8px;
    padding-left: 15px;
}

.header-nav {
    display: none;
    list-style: none;
    white-space: nowrap;
    gap: 40px;
    margin: 0px;
    padding: 0px;
    height: 100%;
}

.header-nav-item {
    height: 100%;
}

.header-nav-link {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 8px;
    text-decoration: none !important;
    color: #6B7280;
    font-size: 16px;
    line-height: 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-style: normal;
    border-style: solid;
    border-width: 0 0 3px 0;
    border-color: transparent;
}

    .header-nav-link > svg {
        fill: #6B7280;
    }

    .header-nav-link:hover, .header-nav-link:hover > svg {
        color: #111827;
        fill: #111827;
        transition: 0.3s;
    }

    .header-nav-link:is(.active), .header-nav-link:is(.active) > svg {
        color: #10B981;
        border-color: #10B981;
        fill: #10B981;
    }

.header-cart {
    background-color: #10B981;
    outline: none !important;
    border-width: 0;
    border-radius: 8px;
    padding: 8px 4px 8px 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: white;
    fill: white;
}

    .header-cart > div {
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .header-cart > div > div {
            margin: 0px 6px;
            font-size: 10px;
            color: #059669;
            height: 16px;
            width: 16px;
            min-height: 16px;
            min-width: 16px;
            background-color: white;
            border-radius: 100%;
            position: relative;
        }

            .header-cart > div > div > span {
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                display: flex;
                align-items: center;
                justify-content: center;
            }

/************** Header options **************/

.header-options {
    display: flex;
    margin: 0px;
    padding: 0px;
}

    .header-options > li {
        height: 32px;
        width: 32px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

        .header-options > li > a > svg, .header-options > li > div > svg {
            fill: #6B7280;
        }

            .header-options > li > a > svg:hover, .header-options > li > div > svg:hover {
                fill: #111827;
                transition: 0.3s;
            }

.header-mobile-menu {
    display: flex;
}

.impersonate {
    display: flex;
    align-items: center;
    position: absolute;
    right: 0;
    bottom: -20px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 8px;
    padding: 0px 10px;
    font-size: 14px;
    line-height: 20px;
    background-color: #10B981;
    display: flex;
    gap: 8px;
    color: white;
    fill: white;
    z-index: 1;
}

.impersonate > a {
    cursor: pointer;
    fill: white;
}

/************** Header Sites Dropdown **************/

.header-sites-dropdown {
    position: relative;
    width: fit-content;
    height: 100%;
}

    .header-sites-dropdown .custom-dropdown {
        height: 100%;
        border: none;
        padding-left: 0px;
        padding-right: 0px;
    }

    .header-sites-dropdown .custom-dropdown-menu {
        left: 0;
    }

        .header-sites-dropdown .custom-dropdown-menu.open {
            transform: translate(0, 0.5rem);
        }

/************** Header Options Dropdown **************/

.header-options-dropdown {
    position: relative;
    width: fit-content;
    height: 100%;
}

    .header-options-dropdown .custom-dropdown {
        height: 100%;
        border: none;
        padding-left: 0px;
        padding-right: 0px;
    }

    .header-options-dropdown .custom-dropdown-menu {
        right: 0;
    }

        .header-options-dropdown .custom-dropdown-menu.open {
            transform: translate(0, 0.5rem);
        }

.header-settings-menu {
    display: block;
}

@media (min-width: 321px) {}

@media (min-width: 641px) {
    .header-container {
        padding: 0px 20px;
    }
}

@media (min-width: 769px) {
    .header-container {
        padding: 0px 30px;
    }

    .header-nav, .header-center {
        display: flex;
    }

    .header-mobile-menu {
        display: none;
    }

    .header-settings-menu.hidden {
        display: none;
    }
}

@media (min-width: 1025px) {
    .header-container {
        padding: 0px 40px;
    }
}

@media (min-width: 1281px) {
    .header-container {
        padding: 0px 50px;
    }
}

@media (min-width: 1537px) {
    .header-container {
        padding: 0px 60px;
    }
}

