@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;
    overflow-x: auto;
    overflow-y: auto;
}

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%; */
    display: flex;
    align-items: center;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: relative;
    display: inline-block;
    isolation: isolate;
}

.dropdown-content {
    display: none;
    position: fixed;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 9999;
    border-radius: 5px;
    overflow: hidden;
    isolation: isolate;
}

.dropdown-content a {
    color: rgb(16, 74, 106);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: rgb(219, 228, 233);
}

.dropdown-content.show {
    display: block;
}

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;
}

#container-masque-sticky {
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: -10;
}

section {
    width: 100%;
}

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;
}

/* #calendrier-table{
    display: block;
    border-collapse: collapse;
    width: auto;
    overflow-x:scroll;
    white-space: nowrap;
    padding-bottom: 30px;
}
#calendrier-table thead{
    position:sticky;
    top: 0;
    z-index: 100;
    background-color: rgb(16, 74, 106);
} */
/* .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{ 

    }*/

.calendrier-table-container {
    overflow: auto;
    max-height: calc(100vh - 80px);
    max-width: 100%;
    /* border: 2px solid #333; */
}

#calendrier-table {
    margin-top: 190px;
    border-collapse: collapse;
    width: auto;
    background-color: white;
}

/* #calendrier-table tbody td:first-of-type {
    background-color: rgb(16, 74, 106);
    color: white;

} */

th,
td {
    min-width: 100px;
    border: 5px solid #ffffff;
    text-align: center;

    height: auto;
}

td:last-of-type {
    overflow: hidden;
}

tbody tr:hover th {
    filter: brightness(90%);
}

tbody tr:hover td {
    background-color: rgb(235, 235, 235);
}

thead th {
    position: sticky;
    top: 0;
    background-color: rgb(16, 74, 106);
    color: white;
    z-index: 10;
    font-weight: 500;
    border: 1px solid white;
}

/* Cellule coin supérieur gauche (fixe en haut ET à gauche) */
thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 15;
    width: auto;
}

tbody th {
    position: sticky;
    left: 0;
    font-weight: bold;
    z-index: 5;

    padding: 0;
    background-color: rgb(219, 228, 233);

}

.ligneCalendrier table {
    overflow: hidden;
}

thead .jourNonChome {
    background-color: rgb(6, 160, 243);
}

thead .jourFerie {
    background-color: hsl(293, 95%, 49%);
    /* color: black; */
}



thead th .date {
    display: inline-block;
    border-radius: 25px;
    padding: 0 10px;
    width: 70px;
    margin-bottom: 5px;
    margin-top: 5px;
}

thead th .dateActive {
    background-color: white;
    color: rgb(16, 74, 106);

}

thead th .dateNumero {
    font-size: 20px;
    font-weight: 800;
}

thead th .competence {
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: repeat(1, 1fr);
    gap: 3px;
    padding: 3px;
    padding-bottom: 0;

}

thead 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;
    grid-row: 1;
}

thead th span .orange {
    background-color: orange;
}

thead th span .rouge {
    background-color: red;
}

thead th span .vert {
    background-color: lime;
    color: black;
}

/* Grid dans la cellule */
tbody th .grid-container {
    display: grid;
    grid-template-columns: auto 70px 40px;
    grid-template-rows: repeat(2, 1fr);
    gap: 3px;
    padding: 3px;
    width: 220px;
}

/* Items de la grid */
tbody th .grid-container>* {
    display: flex;
    align-items: center;
    justify-content: start;
    font-size: 10px;
    padding: 2px;
}

tbody th .grid-container .nom {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    font-weight: bold;
    justify-content: flex-start;
    padding-left: 5px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

tbody th .grid-container .compteur-mensuel {
    grid-column: 2;
    grid-row: 1;
}

tbody th .grid-container .compteur-annuel {
    grid-column: 2;
    grid-row: 2;
}

tbody th .grid-container .cp {
    grid-column: 3;
    grid-row: 1;
}

tbody th .grid-container .rc {
    grid-column: 3;
    grid-row: 2;
}

td {
    width: 150px;
    min-width: 150px;
    border: solid 1px silver;
    height: 30px;
    vertical-align: top;
    background-color: white;
}

.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;
    z-index: 100;
}

.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;
    overflow: auto;
    max-height: 90vh;
}

#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 tr:hover td{
    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 {
    margin-top: 190px;
    border-collapse: collapse;
    width: 100%;
    background-color: white;
}

#calendrierCompact thead th {
    position: sticky;
    top: 0;
    width: auto;
}

#calendrierCompact th,
#calendrierCompact td {
    min-width: 10px;
}

#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;
    }
}