
//_____________________________________________________________________________
// Common

.btn-menuprofile {
    display: block;
    width: 2.333rem;
    height: 2.333rem;

    border: 0;
    border-radius: 3px;

    background-position: center center;
    background-repeat: no-repeat;
    background-size: 1.333rem;
    // background-color: var(--color-menuprofile-btn);

    box-shadow: var(--box-shadow2);

    cursor:pointer;
  	
    &:hover {
        background-color: var(--color-menuprofile-btn-hover);
    }

    &#menu-creation {
        box-shadow: none;
    }
}

@mixin menumenu-user-submenu {
    position: absolute;
    z-index: 20;
    background-color: var(--color-bg-default);
    box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.15);
    
    .menu-list {
        text-align: left;
        >li {
            display: block;
            >a {
                display: flex;
                @extend .link-unstyled;
                
                padding: 10px;
    
                &:hover {
                    background-color: var(--color-menuprofile-hover);
                }
            }
        }
    }

    .arrow {
        width: 0;
        height: 0;
        border: 10px solid transparent;
        border-top: none;
        border-bottom: 10px solid #d9e2ea;
        position: absolute;
        top: -10px;
        right: 27px;
    }
}



#identification_client {
	border-left: solid 1px rgba(151, 151, 151, 0.16);

    > * {
        padding: 2px 0;
    }

    #nomSocieteHeader {
        font-size: var(--fs-14);
        font-weight: bold; 
        color: #5f5f5f;
    }
}

#that-bandeau {width:65%;float:left;}

.img-banner {
    // height: 100%;
    width: auto;
    max-width: 100%;
    height: 60px;
}

ul.menu-list {
    list-style: none;
    >li { 
        display: block;
    }
}

ul.menu-list-border {
    >li {
        border-bottom:1px solid #d9e2ea;
        &:last-of-type {
            border-bottom:none;
        }
    }
}

//_____________________________________________________________________________
// Menu creation

#menu-creation {
    .btn-menuprofile {
        background-color: var(--main-color-blue);
        background-image:url(../IconeV2/Global/add-white.svg) !important;
        background-repeat:no-repeat;
        background-size: 1.16rem;
        background-position: center 0.583rem;
    
        &:hover{
            background-color: #1e4e8a;
        }
    }

    // Open submenu
    position: relative;
    &:not(:hover) #menu-creation-submenu {
        display:none;
    }
    
}
#menu-creation-submenu {
    @include menumenu-user-submenu;
    
    width: 200px;
    right: -23px;
    top: 103.7%;
}

//_____________________________________________________________________________
// Panier

#menu-panier {
    
    .btn-menuprofile {
        background-image: url(../IconeV2/Global/cart.svg);
    }
    
    .compteur {
        border-radius: 2px;
        background-color: var(--error);
        position: absolute;
        right: -7px;
        top: -5px;
        text-align: center;
        padding: 2px 5px;
        color: var(--color-text-light);
        font-size: var(--fs-btn-notif-count);
        font-weight:bold;
        border-radius:10px;
    }

    // Open submenu on hover
    position: relative;
    &:not(:hover) #submenu-panier {
        display: none;
    }  
}

#submenu-panier {
    @include menumenu-user-submenu;
    min-width: 210px;
    right: -27px; top: 100%;

    li {
        position: relative;
    }


    .badge-panier {
        display: inline-block;
        min-width: 1.5rem;
        padding: 1px 4px;
        font-size: var(--fs-11);

        border-radius: 8px;
        font-weight: bold;
        text-align: center;
        vertical-align: middle;

        color: var(--color-text-light) !important;
        background-color: var(--main-color-client1);

        margin-left:5px;
    }

    .affichage_panier_menu {
        /*background-color: #53ad53;*/
        background-color: var(--main-color-client1);
        color: var(--color-bg-default);
        text-align: center;
        font-size: var(--fs-15);
        font-weight: bold;
        padding: var(--space-small);
        
    }

    // .btn-aside {
    //     position: absolute;
    //     right: 10px;
    //     top: calc( 50% - 8px);
    // }
}

//_____________________________________________________________________________
// Menu notifcation


// Sub-menu notification of menu top-right
#menu-notif {

    background-image: url(../IconeV2/Global/notifictaions.svg);

	.compteur {
		border-radius: 2px;
		background-color: var(--error);
		position: absolute;
		right: -2px;
		top: -5px;
		text-align: center;
		padding: 2px 5px;
		color: var(--color-text-light);
		font-size: var(--fs-btn-notif-count);
		font-weight: bold;
        border-radius:10px;
	}

    position: relative;
	&:not(:hover) #menu-notif-submenu {
		display: none;
	}
}

@mixin zone-badge-counter {
    display: inline-block;
    min-width: 1.5rem;
    padding: 1px 4px;
    font-size: var(--fs-11);

    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;

    color: var(--color-text-light) !important;
    background-color: var(--error);
}

#menu-notif-submenu {
    @include menumenu-user-submenu;
    width: 250px;
    right: -23px;
    top: calc(100% - 1px);

    .badge-counter {
        @include zone-badge-counter;
    }
}




//_____________________________________________________________________________
// Button SRM

#link-srm {
    background-image: url(../IconeV2/Misc/logo_srm__16x16.png);
}
#link-srm-disabled {
	background-image:url(../IconeV2/Misc/logo_srmfalse__16x16.png);
	cursor: not-allowed;
}

//_____________________________________________________________________________
// Menu profile

#menu-user {
	.client {
		white-space: nowrap;
		height: 28px;
		border-radius: 5px;
		padding: 5px 10px;
		display: inline-block;
		position: relative;
		min-width: 165px !important;
		text-align: left;
		/* top: -9px; */
		/* margin-left: 17px; */
		box-shadow: var(--box-shadow2);
	}
	
	.nom {
		max-width: 30vh;
		display: inline-block;
		overflow: clip;
		white-space: nowrap;
	}
	
    .initiale{
		width: 18px;
		height: 18px;
		background-position: 0px center;
		background-repeat: no-repeat;
		display: inline-block;
		color: #fff;
		text-align: center;
		margin-right: 5px;
		background-color: var(--main-color-blue);
		border-radius: 5px;
    }

    .btn-menuprofile {
        white-space: nowrap;
        height: 2.333rem;
        border-radius: 2px;
        background-color: var(--main-color-grey3);
        padding: 5px 14px;
        
        min-width: 165px !important;
        text-align: left;
        color: var(--main-color-full);
        box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;

        .nom {
            overflow: clip;
            width: 110px;
        }
    }
    
    
    // Open submenu
    position: relative;
    &:not(:hover) #menu-user-submenu {
        display:none;
    }
}

#menu-user-submenu {
    @include menumenu-user-submenu;
    width: 300px;
    right: 15px; top: 100%;
    
    .icosq-mg-recherche {
        font-size: var(--fs-icon);
    }
    
    .deconnect {
        background-color: var(--error);
        color: var(--color-text-light);
    }
}


//_____________________________________________________________________________
// TODO : clean up
.titre_submenu {
	padding: 22px 10px!important;
    height: 54px!important;
    a {
        min-height:25px!important;
    }
}
.submenu li a.gras {
    font-weight:bold!important;
}
.lien_submenu:hover a ,.titre_submenu:hover a {
    background-color:var(--color-menuprofile-hover)!important;
}
.lien_submenu a{
	height: 100%;
	padding: 12px 10px !important;
	font-weight: normal !important;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
}

