.ld_header {
    color: var(--coloricona);
    background-color: var(--avanza-neutral-white);
    height: var(--alt-header);
    margin: 0 auto;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2;
}

.nav_header {
    display: flex;
    height: var(--alt-header);
    align-items: center;
}

.nav_header_avanza {
    background-color: var(--avanza-primary-red-100) !important;
}


/* Elements separadors */

.nav_header>div.separa+div.separa {
    border-left: 2px solid white;
}

@media screen and (max-width: 480px) {
    .nav_header>div.separa+div.separa {
        height: 52px;
        border-left: 1px solid white;
        /*padding-left: 20px;
        padding-right: 20px;*/
    }
}

@media screen and (max-width: 480px) {
    #menusNavegacio {
        display: flex;
        justify-content: center;
    }
}

.nav_header #divLogo,
.nav_header #titol {
    flex-grow: 1;
    line-height: var(--alt-header);
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav_header #divLogo>svg {
    width: 194px;
    height: 35px;
}

/*@media screen and (max-width: 425px) {
    .nav_header #divLogo>svg {
         width: 90px;
        height: 18px;
    }
} */

.nav_header #divBack {
    flex-grow: 0;
    flex-shrink: 0;
    width: var(--alt-header);
    height: var(--alt-header);
    justify-content: center;
    border-right: 2px solid #FFF;
}

@media screen and (max-width: 425px) {
    .nav_header #divBack {
        /*flex-grow:1;*/
        justify-content: start;
        margin-left: 13px;
        height: 52px;
        border-right: 1px solid white;
        width: 52px;
    }
}

.nav_header #divBack>svg {
    width: 22px;
    height: 40px;
}

.nav_header #divCredits {
    flex-grow: 0;
    flex-shrink: 0;
    width: var(--alt-header);
    height: var(--alt-header);
    justify-content: center;
}

@media screen and (max-width: 425px) {
    .nav_header #divCredits {
        /*flex-grow:1;*/
        justify-content: start;
        margin-left: 13px;
        height: 52px;
        width: 52px;
    }
}

/* @media screen and (max-width: 5760px) {
    .nav_header #divBack>svg {
        width: 30px;
        height: 30px;
    }
} */

.nav_header .user_icon {
    width: 50px;
}

@media screen and (max-width: 480px) {
    .nav_header .user_icon {
        width: 63px;
    }
}

.nav_header #titol {
    justify-content: left;
    padding-left: 10px;
}

@media screen and (min-width: 480px) {
    .nav_header #titol {
        height: var(--alt-header);
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 426px) {
    .nav_header #titol {
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        visibility: hidden;
    }
}

.nav_header #titol:empty {
    border-left: 0px;
}

#headerTitolUnitat {
    line-height: var(--alt-header);
    cursor: auto;
    display: inline;
    flex-grow: 1;
    font-size: var(--font-size-big);
}

@media screen and (max-width: 480px) {
    #headerTitolUnitat {
        height: 45px;
        vertical-align: middle;
    }
}

@media screen and (max-width: 380px) {
    /* #headerTitolUnitat{
        visibility: hidden;
    } */
}

#headerTitolUnitat:hover {
    background-color: var(--color1);
}

.menu_header_item_no_link {
    display: flex;
    flex-grow: 1;
    line-height: var(--alt-header);
}

@media screen and (min-width: 426px) {
    .menu_header_item_no_link {
        display: flex;
        height: var(--alt-header);
    }
}

@media screen and (max-width: 425px) {
    .menu_header_item_no_link {
        /*display: none;*/
    }
}

.menu_header_item {
    cursor: pointer;
    white-space: nowrap;
    align-self: center;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 2px;
    height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
}

.menu_header_item:hover {
    background-color: var(--color2);
    /* (CHme) */
}

.menu_header_item_link {
    /* Element clicable */
    width: 170px;
    text-align: center;
    text-transform: uppercase;
    line-height: var(--alt-header);
    flex-grow: 0;
    vertical-align: middle;
}

@media screen and (max-width: 576px) {
    .menu_header_item_link {
        width: 60px;
    }
}

.menu_header_item_icon {
    flex-grow: 0;
    flex-shrink: 0;
}


/* Per als submenús que es despleguen clicant algun element del header */

.menu_header_submenu {
    text-align: center;
    color: var(--colortext3);
    background-color: var(--color3);
    padding-top: 15px;
    padding-bottom: 10px;
}

.submenu_item {
    padding: 5px;
    cursor: pointer;
}

.submenu_item:hover {
    color: var(--colortext1);
    background-color: var(--color2);
    opacity: 0.5;
}

.submenu_titol {
    font-family: "Circular Std Bold";
    text-transform: uppercase;
}

.submenu_separador_items {
    border-color: var(--colortext1);
    width: 90%;
    margin: 10px auto;
}

#navMenu {
    /* No es pot considerar submenu, ja que visualment és diferent*/
    z-index: 999;
    position: relative;
    background-color: white;
    color: var(--colornegre);
    width: 100%;
    border: 2px solid var(--color1);
    border-top: 0px;
}

@media screen and ( min-width: 1190px) {
    #navMenu {
        max-width: 1190px;
        right: 0px;
        position: absolute;
    }
}

.div_menu_general {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    justify-items: center;
    font-size: var(--font-size-small);
    font-family: "Circular Std Bold";
}

.div_menu_general>div {
    cursor: pointer;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

.div_menu_general>div:hover {
    background-color: var(--color3);
}

.div_menu_general img {
    width: 70px;
    height: 70px;
}

#menuUsuari {
    z-index: 1000;
    position: absolute;
    width: 260px;
    right: 50px;
}


/*@media screen and (max-width: 768px){
    #menuUsuari {
        right: 50px;
        width: 260px;
    }
}*/

@media screen and (max-width: 576px) {
    #menuUsuari {
        width: 260px;
        right: 50px;
    }
}

@media screen and (max-width: 425px) {
    #menuUsuari {
        /* right: 95px; */
        width: 375px;
        right: 25px;
    }
}

@media screen and (max-width: 380px) {
    #menuUsuari {
        /* right: 75px; */
        width: 325px;
        right: 25px;
    }
}

.center #menuUsuari {
    z-index: 1000;
    position: absolute;
    width: 260px;
    right: 80px;
}


/* @media screen and (max-width: 768px){
    .center #menuUsuari {
        right: 80px;
        width: 347px;
    }
}*/

@media screen and (max-width: 576px) {
    .center #menuUsuari {
        width: 260px;
        right: 75px;
    }
}

@media screen and (max-width: 425px) {
    .center #menuUsuari {
        /* right: 95px; */
        width: 375px;
        right: 25px;
    }
}

@media screen and (max-width: 380px) {
    .center #menuUsuari {
        /* right: 75px; */
        width: 325px;
        right: 25px;
    }
}

#menuGrups {
    z-index: 1000;
    position: absolute;
    width: 260px;
    right: 222px;
}

@media screen and (max-width: 576px) {
    #menuGrups {
        width: 260px;
        right: 50px;
    }
}

@media screen and (max-width: 425px) {
    #menuGrups {
        width: 375px;
        right: 25px;
    }
}

@media screen and (max-width: 380px) {
    #menuGrups {
        /* right: 75px; */
        width: 325px;
        right: 25px;
    }
}

.center #menuGrups {
    z-index: 1000;
    position: absolute;
    width: 260px;
    right: 252px;
}

@media screen and (max-width: 576px) {
    .center #menuGrups {
        width: 260px;
        right: 125px;
    }
}

@media screen and (max-width: 425px) {
    .center #menuGrups {
        width: 375px;
        right: 25px;
    }
}

@media screen and (max-width: 380px) {
    .center #menuGrups {
        /* right: 75px; */
        width: 325px;
        right: 25px;
    }
}

.alinear-dreta {
    right: 0;
    position: relative;
}

@media screen and (max-width: 380px) {
    .nav_header #buttonMenuGeneral {
        padding-right: 10px;
    }
    .menu_header_item:hover {
        background-color: unset;
    }
}

.grups_arxivats {
    display: none;
}

#iconaafegirgrup svg {
    margin-top: 5px;
}

@media screen and (max-width: 480px) {
    #headerRegistreButton svg,
    #headerLoginButton svg {
        width: 40px;
        margin-top: -20px;
    }
}

.menu_header_item_no_link {
    border-left: 0px;
}

.notificacions_seleccio_grup {
    display: flex;
    justify-content: space-between;
}

.notificacions_seleccio_grup .nom_grup {
    display: flex;
    flex-grow: 1;
    justify-content: center;
}

.avis-notificacions-contenidor-grup {
    position: unset;
}

.avis-notificacions-grup {
    border-radius: 50%;
    background-color: red;
    color: white;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    margin-left: 15px;
    font-family: "Circular Std Bold";
}

#boxCreditos {
    --bs-border-color: var(--avanza-primary-red-100);
}