@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');
body{
    font-family: 'Open Sans', sans-serif;
    color: rgb(16, 74, 106);
    margin: 0;
    width: 100vw;
}
a{
    color:auto;
    text-decoration: none;
}
header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items:center;
    padding: 15px;
}
header #menu{
    /* flex-basis: 50%; */
}

header #previousMonth{
    color: white;
    cursor: pointer;
}
header #nextMonth{
    color: white;
    cursor: pointer;
}
.logo{
    width: 235px;
    height: 70px;
}
.logged{
    height: 40px;
}
header h1{
    display: inline-block;
/*     margin: 0;
    margin-left: 50px; */
    /* flex-grow: 5; */
}
.boutonPlanning{
    background-color: rgb(16, 74, 106);
    color: white;
    border-radius : 50vh;
    padding: 5px 0px 5px 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 5px;
    cursor: pointer;
}
.boutonPlanning img{
    height: 20px;
    margin: 0 10px 0 10px;
}
section{
    margin-bottom: 50px;
}
section header{
    background-color: rgb(219, 228, 233);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}
#calendrier header #previousMonth{
    background-color: rgb(16, 74, 106);
    border-radius : 50vh;
    padding: 5px 20px 5px 0;
    display: flex;
    flex-direction: row;
    align-items:center;
}
#calendrier header #previousMonth img{
    height: 20px;
    margin: 0 10px 0 10px;
}
#calendrier header a #previousMonth{
    color: white;
}
#calendrier header #currentMonth{
    font-weight:900;
}
#calendrier header #nextMonth{
    background-color: rgb(16, 74, 106);
    color: white;
    border-radius : 50vh;
    padding: 5px 0px 5px 20px;
    display: flex;
    flex-direction: row;
    align-items:center;
}
#calendrier header #nextMonth img{
    height: 20px;
    margin: 0 10px 0 10px;
}
#calendrier header a #nextMonth{
    color: white;
}
table {
    display: block;
    border-collapse: collapse;
    width: auto;
    overflow-x:scroll;
    white-space: nowrap;
    padding-bottom: 30px;
}
.col_head_1{
    position:absolute;
    width: 220px;
    line-height:100px ;
    height: 100px;
    background-color: rgb(16, 74, 106);
    }
.col_head_2{
    position:absolute;
    margin-left:40px;
    padding-left:2px;
    width: 180px;
    border:none !important;
}
.col_head_3{

    }
.col_1{
    position:absolute;
    width: 0px;
    background-color: white;
    height: 30px;
    z-index: 100;
    
    }
.col_2{
    position:absolute;
    margin-left:0px;
    padding-left:2px;
    width: 220px;
    background-color: white;
    z-index: 100;
    height: 30px;
    border-right: solid 1px silver;
}
.col_3{
    padding-left:220px;
    /* background-color: rgba(0, 0, 0, 0.4); */
    width: 1px;
    height: 30px;

    }
.col_2 td{
    width: 55px;
    min-width: 0;
    height: 15px;
    border:none;
    text-align: center;
}
.col_2 table td{
    background-color: none;
}
tr:first-of-type{
    background-color: rgb(16, 74, 106);
}
.ligneCalendrier:hover{
    background-color: rgba(225, 255, 0, 0.216);
}
.ligneCalendrier table{
    overflow:hidden ;
}
tr:first-of-type .jourNonChome{
    background-color:rgb(6, 160, 243);
}
tr:first-child th{
    color:white;
    font-weight: 500;
    border: 1px solid white;
}
tr:first-child th .date{
    display: inline-block;
    border-radius: 25px;
    padding: 0 10px;
    width: 70px;
    margin-bottom: 5px;
    margin-top: 5px;
}
tr:first-child th .dateActive{
    background-color: white;
    color: rgb(16, 74, 106);
    
}
tr:first-child th .dateNumero{
    font-size: 20px;
    font-weight: 800;
}
tr:first-child th .competence span{
    display: inline-block;
    background-color: rgb(88,128,151);
    border-radius: 10px 10px 0 0;
    /* height: 20px; */
    padding: 4px;
    font-size: 10px;
}
tr:first-child th span .orange{
    background-color: orange;
}
tr:first-child th span .rouge{
    background-color: red;
}
tr:first-child th span .vert{
    background-color: lime;
    color: black;
}
td {
    width: 150px;
    min-width: 150px;
    border: solid 1px silver;
    height: 30px;
    vertical-align: top;
}
.nomSalarie{
    font-size: 10px;
    font-weight: 400;
    text-align: left;
    /* padding: 2px 5px 2px 5px; */
    /* border-bottom: 1px solid silver; */
}
.pictoCompetence{
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    margin-left: 10px;
    text-align: center;
}


.colorRed{
    color:red;
}

.lightBox{
    width: 500px;
    margin: auto;
    box-shadow: 5px 5px 11px 4px rgba(0,0,0,0.2);
    margin-bottom: 15px;
}
.lightBox img{
    width: 20px;
}
.lightBox h2{
    font-size: 12px;
    font-weight: 400;
    padding: 5px 30px;
    background-color: rgb(243,246,248);
    margin-top: 0;
}
.lightBox header{
    padding: 10px !important;
}
.listeCreneauType{
    text-align: left;
    /* display: flex;
    flex-wrap: wrap;*/
    padding: 10px;
}
.listeCreneauType h3{
    margin-bottom: 0px;
    margin-top:10px;
}
.creneauType{
    display: inline-block;
    background-color: rgb(219, 228, 233);
    height: 20px;
    border-radius: 12px;
    padding: 2px 10px;
    margin: 2px;
}
.lightBox form{
    text-align: center;
    padding-bottom: 1px;
}
.lightBox input{
    background-color: rgb(219, 228, 233);
    height: 20px;
    border-radius: 12px;
    padding: 2px 10px;
    margin: 2px;
    border:none;
}
.lightbox select{
    background-color: rgb(219, 228, 233);
    height: 25px;
    border-radius: 12px;
    padding: 2px 10px;
    border:none;
}
.lightBox input[type=submit]{
    background-color: rgb(16,74,106);
    color:white;
    height: 24px;
    font-size: 16px;
}
#nouveauCreneau{
    position: fixed;
    width: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    background-color: white;
    z-index: 500;
}
#editCreneau{
    position: fixed;
    width: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    background-color: white;
    z-index: 500;
}
#editCreneauTable {
    margin: 10px;
    margin: auto;
    width: 100%;
}
#editCreneauTable tr:first-of-type{
    background-color: white;
    
}
#editCreneauTable td{
    border: none;
    width: 50%;
}
#editCreneauTable td:first-child{
    text-align: right;
}
#masqueLightBox{
    position: fixed;
    top:0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 200;
    backdrop-filter: blur(5px);
}
.box {
    
    border-radius: 16px;
    height: 18px;
    padding: 2px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    justify-content: space-between;
    cursor: grab;
    margin-top: 5px;
    /* box-shadow: 1px 1px 3px 0px rgba(0,0,0,0.5); */
}

.box span {
    display: inline-block;
    min-width: 14px;
    height: 14px;
    /* background-color: rgba(255, 255, 255, 0.6);
    border-radius: 16px; */
    font-size: 10px;
    text-align: center;
    line-height: 150%;
    padding: 1px;
}

.box2 {
    background-color: lightgreen;
    border-radius: 8px;
    padding: 5px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    justify-content: space-between;
    cursor: grab;
    opacity: 1;

}

.td2 {
    border: 3px dotted #666;
}

.td {
    border: solid 1px silver;
}

.salarieDispo {
    width: 100%;
    border: solid 2px lime;
}

.salarieDispoInconnu {
    width: 100%;
    border: solid 2px white;
}

.salarieNonDispo {
    width: 95%;
    border: solid 2px red;
    margin: auto;
}
.desideratat{
    height: 3px;
    position: absolute;
    bottom: 0px;
}

#listeCrenaux {
    background-color: silver;
    width: 50%;
    position: fixed;
    left: 25%;
    top: 0;
}

#listeCrenaux .box {
    width: 100px !important;
    left: 0 !important;
    margin: 10px;
}
#creneauLightBox{
    background-color: white;
    border-radius: 20px;

}
.masqueLightBox{
    background-color: white;
}
.backgroundGreen{
    background-color: rgb(140,198,63);
    color: white;
}
.backgroundPurple{
    background-color: rgb(102,45,145);
    color: white;
}
.backgroundAqua{
    background-color:aqua;
    color: black;
}
.backgroundBleuFonce{
    background-color:rgb(16, 74, 106);
    color: white;
}
.desactive{
    opacity: 40%;
    background-color: gray;
    color:black;
}
.hachures{
    background-image: repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255,255,255,0.5) 12px, rgba(255,255,255,.5) 20px);
}
.heureSup{
    border : solid 3px rgba(0,0,0, 0.25);
}






#connexion{
    width: 500px;
    margin: auto;
    box-shadow: 5px 5px 11px 4px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    margin-top: 50px;
    background-color: white;
    z-index: 500;
}
#connexion img{
    width: 20px;
}
#connexion h2{
    font-size: 12px;
    font-weight: 400;
    padding: 5px 30px;
    background-color: rgb(243,246,248);
    margin-top: 0;
}
#connexion header{
    padding: 10px !important;
    display: flex;
    justify-content: flex-start;
    text-align: left;
    gap: 10px;
}

.creneauType{
    display: inline-block;
    background-color: rgb(219, 228, 233);
    height: 20px;
    border-radius: 12px;
    padding: 2px 10px;
    margin: 2px;
}
#connexion form{
    text-align: center;
    padding-bottom: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 20px;
    padding: 20px;
}
#connexion input{
    background-color: rgb(219, 228, 233);
    height: 20px;
    border-radius: 12px;
    padding: 2px 10px;
    border:none;
    width: 200px;
}
#connexion input[type=submit]{
    background-color: rgb(16,74,106);
    color:white;
    height: 24px;
    font-size: 16px;
}

#listeSalaries{
    display:flex; 
    flex-direction:row; 
    justify-content:space-around;
    gap: 20px;
    flex-wrap: wrap;
}
#listeSalaries div{
    margin: 20px;
}
#listeSalaries div p{
    cursor: pointer;
    transition-duration: 0.5s;
    transition-delay:0s;
    margin: 0;
    padding: 10px;
}
#listeSalaries div p:hover{
    background-color: rgb(219, 228, 233);
    font-weight: 600;
    transition-duration: 0.1s;
    transition-delay:0s;
}
#listeSalaries div p form{
    display: none;
}
#utilisateur{
    display:flex; 
    flex-direction:row; 
    justify-content:space-around;
    gap: 20px;
    flex-wrap: wrap;
}
#utilisateur form{
    text-align: center;
    padding-bottom: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 20px;
    padding: 20px;
}
#utilisateur input{
    background-color: rgb(219, 228, 233);
    height: 20px;
    border-radius: 12px;
    padding: 2px 10px;
    border:none;
    width: 200px;
}
#utilisateur select{
    background-color: rgb(219, 228, 233);
    height: 25px;
    border-radius: 12px;
    padding: 2px 10px;
    border:none;
    width: 220px;
}
#utilisateur input[type=submit]{
    background-color: rgb(16,74,106);
    color:white;
    height: 24px;
    font-size: 16px;
}
#utilisateur td{
    border:none;
}
#utilisateur tr:first-child td{
    background-color:white;
    color: rgb(16, 74, 106);
}
#utilisateur hr{
    width: 50%;
    border: solid 1px rgb(16, 74, 106,0.5);
}
#contrats td{
    min-width: 0px;
    width : fit-content;
    padding: 10px;
}
.alerte48h{
    background-color: rgba(255,0,0,0.6);
}
.alerte11h{
    background-color: rgba(255,100,0,0.6);
    /* background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.5) 12px, rgba(255,255,255,.5) 20px); */
}
footer{
    position: absolute;
    bottom: 0;
    right: 10px;
}



#calendrierCompact {
    border-spacing: 2px;
    width: 98% important;
    table-layout: fixed;
}
#calendrierCompact td{
    width:  auto important;
    min-width: 25px;
    height: auto;
    height: 18px;
    margin: 0;
    padding: 0;
    padding-top: 1px;
    padding-bottom: 1px;
}
#calendrierCompact .box{
    margin: 0;
    /* height: 20px; */
    padding: 0;
    overflow: hidden;
    border-radius: 5px;
}
#calendrierCompact .box span{
    min-width: 0;
    overflow: hidden;
}
#calendrierCompact tr:first-child th .dateNumero{
    font-size: 10px;
    margin:0;
    padding: 0;
}
#calendrierCompact tr:first-child th .dateJour{
    font-size: 11px;
    margin:0;
    padding: 0;
}
#calendrierCompact tr:first-child th .date{
    width: auto;
    padding: 0;
    margin:0;
    padding: 0;
}
#calendrierCompact .col_2{
    width: 150px;
}
#calendrierCompact .col_3{
    padding-left: 150px;
    height: auto;
}
#calendrierCompact .col_head_1{
    width: 150px;
}
#calendrierCompact .heureSup{
    border: 0px;
}


@media print{
    #previousMonth, #nextMonth, #menu, .logged, .noPrint{display: none !important;}
    #calendrierCompact{
        overflow: hidden;
    }
    h1{
        font-size: 1em;
    }
    header img{
        max-height: 30px;
    }
    #calendrier header{
        padding: 5px;
        justify-content: center;
    }
}