﻿body {
    /*padding-top: 50px;*/
    padding-bottom: 20px;
}

#btnMenuMobile {
    background: transparent;
    border: 0;
    color: white;
    float: right;
    font-size: 30px;
    height: 50px;
    width: 50px;
}

#menuMobile {
    background: #182f4e;
    list-style: none;
    position: absolute;
    top: 50px;
    transform: scale(0);
    transform-origin: top;
    width: 100%;
}

    #menuMobile.active {
        transform: scale(1);
        transition: transform 200ms ease-in-out;
    }

    #menuMobile li {
        padding-top: 15px;
        padding-bottom: 15px;
    }

a.navbar-brand-mobile {
    color: #9d9d9d;
    font-size: 18px;
    line-height: 20px;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-top: 50px;
    padding-left: 15px;
    padding-right: 15px;
}
@media (min-width: 1200px) {
    .body-affichage {
        margin: auto;
        width: 1000px;
    }
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
/*
input,
select,
textarea {
    max-width: 280px;
}
*/
h1.titre{
    margin-bottom: 30px;
}

label.delete {
    background-color: red;
    width: 100%;
    text-align: center;
    border: 10px;
    color: antiquewhite;
}

.validation{
    width:100%;
    height:40px;
    margin-top:20px;
}

.cloture {
    width: 100%;
    height: 40px;
    margin-top: 20px;
    background-color: #33b743;
    border-color: #0a7a0d;
}

.cloture:hover {
    background-color: #2d8337;
    border-color: #1da720;
}

.table-data{
    width:100%;
    margin-bottom:14px;
}

tr.ligne{
    height:50px;
}

th.main_date {
    padding: 2px;
    width:10%;
}

th.main_gauche{
    padding:2px;
}

th.main_centre{
    padding:2px;
    width:10%
}

th.main_droite{
    padding:2px;
    width:25%;
}

td.main_date {
    padding:1px;
    width:11%;
    text-align:center;
}

td.main_gauche {
    padding: 1px;
}

td.main_centre {
    padding: 1px;
    width: 10%
}

td.main_droite {
    padding: 1px;
    width: 25%;
}

main_gauche button.infos {
    border: hidden;
    text-align: left;
}

td.col-Gauche{
    width: 40%;
}

td.col-Droite{
    width: 60%;
}

button.ajout {
    width: 40px; 
    height: 40px; 
    border-radius: 20px; 
    font-size: 30px; 
    line-height: 0;
}

button.clot{
    width:100%;
    height:50px;
}

button.admin {
    width: 100%;
    height: 90px;
    padding: 0;
    border: 0;
}

table.gallery {
    width:100%;table-layout:fixed;
    margin-bottom:10px;
    margin-top:10px
}

tr.gallery-ligne {
    text-align: center;
}

th.gallery-col{
    width: 33%;
}

div.cadre {
    margin: 0 auto;
    position: relative;
}

input[type=checkbox]{
    width: 25px;
    height: 25px;
    vertical-align: middle;
    margin: 0;
}

input.croix {
    visibility:hidden;
    width: 20px;
    height: 20px;
    border-radius: 20px;
    font-size: 10px;
    line-height: 0;
    background-color:orangered;
    color:white;
    position:absolute;
    top:0;
    right:0;
}

img.photo {
    width: 100%;
    height: 20px;
    visibility: hidden;
}

/*#region Ajout*/
/*#endregion*/

/*#region Cloture*/
.action {
    width: 100%;
    height: 40px;
    margin-top: 20px;
    color: #fff;
    background-color: #bf2c2ce6;
    border-color: #ff4343e6;
    border-radius: 4px;
}

input.scan {
    height: 40px;
    width: 40%;
    display: inline;
}

input.signature {
    width: 100%;
    height: 40px;
    margin-bottom: 10px;
}

.signature-pad {
    background-color: aliceblue;
    width: 100%;
    height: 200px;
}
/*#endregion*/

/*#region Gestionnaire*/
.menuRep {
    display: block;
    position: sticky;
    top: 50px;
    width: 26px;
}

.table-Rep {
    width: 100%;
    border: 0px solid black;
    margin-top: 5px;
    visibility: collapse;
}

.btn-Representants {
    width: 100%;
    height: 40px;
    border: 2px solid black;
    border-radius: 2px;
    font-size: 14px;
    margin: 2px;
    background: linear-gradient(45deg, rgba(200,200,200,1) 50%, rgba(224,224,224,1) 100%);
    color: black;
    text-align: center;
    margin-left: -1px;
    margin-top: 1px;
    font-weight: normal;
}

.btn-Rep {
    cursor: default;
    background: aliceblue;
    font-size: 12px;
    color: black;
    border-radius: 10px;
    width: 100%;
    border: 1px solid black;
    margin: 2px;
    margin-left: -2px;
    height: 30px;
}

.btn-AffichageRep {
    width: 25px;
    height: 40px;
    word-break: break-word;
    visibility: visible;
}

.ligne-HeaderRep {
    z-index: 11;
    position: sticky;
    top: 50px;
    border: 1px solid black;
    height: 40px;
}

.headerRep {
    font-size: 12px;
    background: #182f4e;
    color: white;
    text-align: center;
}

button.headerRep {
    cursor: default;
    width: 100%;
    border: 0;
    height: 30px;
}

.data {
    background: white;
    color: white;
    text-align: center;
    padding: 2px;
}

.data-Rep {
    width: 100%;
    height: 90px;
    padding: 0;
    font-size: 12px;
    color: black;
    border-radius: 10px;
    border: 2px solid black;
}

.prestaGestionnaire {
    position: relative;
}

.prestaGestionnaire .prestaGestionnaireInfos {
    visibility: hidden;
    /*opacity: 96%;*/
    width: 100%;
    /*background-color: slategrey;*/
    background-color: darkgray;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 5px 0;
    min-height: 95px;
    position: absolute;
    z-index: 1;
    top: 100%;
    /* Changement des bordures */
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-right-color: black !important;
    border-right-style: solid !important;
    border-right-width: 2px !important;
    border-bottom-color: black !important;
    border-bottom-style: solid !important;
    border-bottom-width: 2px !important;
    border-left-color: black !important;
    border-left-style: solid !important;
    border-left-width: 2px !important;
    /*
    left: 50%;
    margin-left: -60px;
    */
}

.duplique {
    background: lightgreen !important;
}

.prestaGestionnaire:hover .data-Rep {
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
    /* border */
    border-top-color: black !important;
    border-top-style: solid !important;
    border-top-width: 2px !important;
    border-right-color: black !important;
    border-right-style: solid !important;
    border-right-width: 2px !important;
    border-bottom-color: black !important;
    border-bottom-style: dotted !important;
    border-bottom-width: 0px !important;
    border-left-color: black !important;
    border-left-style: solid !important;
    border-left-width: 2px !important;
}

.prestaGestionnaire:hover .prestaGestionnaireInfos {
    visibility: visible;
}

.data-Vide {
    cursor: default;
    background: white;
    font-size: 12px;
    color: white;
    width: 100%;
    border: 0;
    height: 90px;
}
/*#endregion*/

/*#region horaire*/
.grid-containerJour {
    display: grid;
    grid-template-columns: 3% 97%;
    background-color: #2196F3;
    /*padding: 2px;*/
}

.grid-mobileJourAdmin {
    grid-template-columns: 55px 215% !important;
}

.grid-mobileJourClassic {
    grid-template-columns: 55px 95% !important;
    margin-right: 24px;
}

.grid-container7 {
    display: grid;
    grid-template-columns: 3% 13.9% 13.9% 13.9% 13.9% 13.9% 13.75% 13.75%;
    background-color: #2196F3;
    /*padding: 2px;*/
}

.grid-mobile7 {
    grid-template-columns: 55px 110px 110px 110px 110px 110px 110px 110px !important;
}

.grid-container6 {
    display: grid;
    grid-template-columns: 3% 16.2% 16.2% 16.2% 16.2% 16.2% 16%;
    background-color: #2196F3;
    /*padding: 2px;*/
}

.grid-mobile6 {
    grid-template-columns: 55px 129px 129px 129px 129px 129px 128px !important;
}

.grid-container5 {
    display: grid;
    grid-template-columns: 3% 19.4% 19.4% 19.4% 19.4% 19.4%;
    background-color: #2196F3;
    /*padding: 2px;*/
}

.grid-mobile5 {
    grid-template-columns: 55px 154px 154px 154px 154px 154px !important;
}

.grid-header {
    background: lightgrey;
    grid-column: 1/ span 8;
    height: 40px;
    padding: 6px;
}

.grid-col-J {
    background: lightgreen;
    border: 1px solid;
}

.grid-col-J-Horaire {
    padding-left: 5px;
    background: linear-gradient(0deg, rgba(38,105,157,1) 0%, rgba(46,144,181,0.9) 5%, rgba(20,176,198,0.8) 20%);
}

.grid-col-preta {
    /*width: 100%;*/
    display: grid;
    grid-template-columns: 0px;
}

.btn-hor {
    width: 100%;
    min-height: 17px;
    text-align: center;
    background: #fff;
    /*word-break: break-word;*/
    font-size: 12px;
    contain: strict;
}

.pair-pair {
    background: lightgrey;
    border-top: 1px solid black;
}

.pair-impair {
    background: lightgrey;
    border-top: 1px dotted black;
}

.impair-pair {
    background: lightcyan;
    border-top: 1px solid black;
}

.impair-impair {
    background: lightcyan;
    border-top: 1px dotted black;
}

/*#endregion*/

/*#region Agenda*/
.tbl-agenda {
    width: 100%;
}

    .tbl-agenda .JSemaine7 {
        width: 14.3%;
        background: gainsboro;
        border: 1px solid black;
    }

    .tbl-agenda .JWeekend7 {
        width: 14.25%;
        background: gainsboro;
        border: 1px solid black;
    }

    .tbl-agenda .JSemaine6 {
        width: 16.7%;
        background: gainsboro;
        border: 1px solid black;
    }

    .tbl-agenda .JWeekend6 {
        width: 16.5%;
        background: gainsboro;
        border: 1px solid black;
    }

    .tbl-agenda .JSemaine5 {
        width: 20%;
        background: gainsboro;
        border: 1px solid black;
    }

    .tbl-agenda .semaine6 .Jour {
        height: 122px;
        background: aliceblue;
        border: 1px solid black;
        z-index: 10;
        position: relative;
    }

    .tbl-agenda .semaine5 .Jour {
        height: 146px;
        background: aliceblue;
        border: 1px solid black;
        z-index: 10;
        position: relative;
    }

    .tbl-agenda .semaine4 .Jour {
        height: 182px;
        background: aliceblue;
        border: 1px solid black;
        z-index: 10;
        position: relative;
    }

.btn-MorePresta {
    float: right;
    border: 0px;
    background: transparent;
    /*
    position: relative;
    top: -20px;
    */
    padding-top: 0px;
    padding-bottom: 0px;
}

.JourPresta {
    cursor: pointer;
    word-break: break-word;
    contain: strict;
    min-height: 20px;
    z-index: 2;
    position: relative;
}

#btnMoisPre {
    border: 0px;
    background: transparent;
}

    #btnMoisPre :hover {
        background: aliceblue;
    }

#btnMoisSui {
    border: 0px;
    background: transparent;
}

#btnMoisPre :hover {
    background: aliceblue;
}
/*#endregion*/

#loader {
    position: fixed;
    top: 50%;
    left: 50%;
    margin-top: -50px;
    width: 100px;
    margin-left: -50px;
    visibility: hidden;
    z-index: 1;
}

#IdClient {
    max-width: 150px;
}

#Commentaires{
    width:100%;
    height:150px;
    resize:none;
}

#Commentaires_int {
    width: 100%;
    height: 150px;
    resize: none;
}

#AppPhoto {
    visibility:hidden;
    position:fixed;
}

#lblAppPhoto {
    width: 100%; 
    margin:0;
}

.field-validation-error{
    color: red;
}

#Connect{
    font-weight: bold;
}

#Deconnect{
    font-style: italic;
}

/* Scan */
button {
    /*font-size: 3rem;*/
}

span.scan {
    position: relative;
    display: inline-block;
}

video {
    left: 0;
    top: 0;
    display: block;
    width: 100%;
}

div.laser {
    position: absolute;
    background: red;
    opacity: 0.5;
}

    div.laser.horizontal {
        left: 0;
        width: 100%;
    }

    div.laser.vertical {
        top: 0;
        height: 100%;
    }

    div.laser.found {
        background: lime;
    }

div.canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    pointer-events: none;
}

canvas.horizontal {
    width: 1280px;
    height: 10px;
}

canvas.vertical {
    width: 10px;
    height: 1280px;
}

label.code {
    font-size: 3.6em;
    font-family: monospace;
    white-space: pre-line;
}

input[type=number] {
    width: 3rem;
}

/* Message box */
.popup_box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
    width: 20%;
    min-width: 300px;
    background: #f2f2f2;
    text-align: center;
    align-items: center;
    padding: 25px;
    border: 1px solid #b3b3b3;
    box-shadow: 0px 5px 10px rgba(0,0,0,.2);
    z-index: 9999;
    display: none;
}

    .popup_box i {
        font-style: normal;
        font-size: 60px;
        color: #eb9447;
        border: 6px solid #eb9447;
        padding: 8px 30px;
        border-radius: 50%;
        margin: -10px 0 20px 0;
    }

#KM{
    width: fit-content;
}

#Valide {
    font-style: normal;
    font-size: 60px;
    color: green;
    border: 6px solid green;
    padding: 8px 30px;
    border-radius: 50%;
    margin: -10px 0 20px 0;
}

.btns {
    margin: 20px 0 0 0;
}

.btn_popup {
    background: #999999;
    color: white;
    font-size: 18px;
    border-radius: 5px;
    border: 1px solid #808080;
    padding: 10px 13px;
}

/* Menu */
#context-menu {
    width: 140px;
    border-radius: 5px;
    padding: 5px;
    position: fixed;
    z-index: 1000;
    background: lightcyan;
    transform: scale(0);
    transform-origin: top left;
    box-shadow: 2px 2px rgb(0 0 0/ 0.1);
}

    #context-menu.active {
        transform: scale(1);
        transition: transform 200ms ease-in-out;
    }

    #context-menu .list-item {
        padding: 0px;
        margin-bottom: 0;
    }

        #context-menu .list-item .item {
            height: 30px;
            display: flex;
            align-items: center;
            padding: 0 5px 0 5px;
            cursor: pointer;
        }

.list-item .item:hover {
    background: lightgray;
}

.i-text {
    margin-left: 5px;
    font-size: 14px;
}

.items {
    position: relative;
    justify-content: space-between;
}

    .items span {
        margin: 0;
    }

    .items:hover .item-reps {
        opacity: 1;
        pointer-events: auto;
    }

    .items:hover .item-colors {
        opacity: 1;
        pointer-events: auto;
    }

.item-menu:hover {
    opacity: 80%;
}

.item-menu button {
    border: 0;
    height: 30px;
}

.items .item-colors {
    display: grid;
    grid-template-columns: 33px 33px 33px;
    gap: 5px;
    padding: 6px;
    position: absolute;
    margin-top: 116px;
    margin-left: 125px;
    z-index: 1000;
    background: lightcyan;
    transform: scale(1);
    transform-origin: top left;
    border-radius: 5px;
    box-shadow: 2px 2px rgb(0 0 0/ 0.1);
    opacity: 0;
    pointer-events: none;
    transition: 200ms ease-in-out;
}

.items .item-reps {
    position: absolute;
    margin-left: 125px;
    z-index: 1000;
    background: lightcyan;
    transform: scale(1);
    transform-origin: top left;
    border-radius: 5px;
    box-shadow: 2px 2px rgb(0 0 0/ 0.1);
    opacity: 0;
    pointer-events: none;
    transition: 200ms ease-in-out;
}

.item-reps select {
    height: 25px;
    width: 111px;
    margin: 5px;
}

#btnRep:hover {
    opacity: 75%;
}

#RepAffichage:hover {
    opacity: 75%;
}

.chckB-Rep {
    visibility: hidden;
    float: right;
}

.btn-Rep:has(.chckB-Rep:not(:checked)) {
    background: grey !important;
}

#rechercheClient {
    overflow-y: auto;
    width: 220px;
    min-height: 60px;
    max-height: 600px;
    border-radius: 5px;
    display: none;
    position: absolute;
    z-index: 100;
    top: 120px;
    left: 500px;
}

.btn-CloseCli {
    position: absolute;
    left: 180px;
    background: transparent;
    border: 0px;
    font-size: large;
    font-family: cursive;
    color: darkgreen;
}

.search {
    background: lightgrey;
    border: 1px solid black;
    /*border-style: outset;*/
    cursor: pointer;
    height: 60px;
    text-align: center;
}

    .search :hover {
        background: cadetblue;
    }

.checkbox-Valid:hover:disabled ~ .Valide {
    display: block !important;
}

.RepNom:hover .Creation {
    display: block !important;
}

.prestaHor {
    z-index: 10;
    cursor: pointer;
    border: 1px outset;
}

.btn-hor:hover + .infosSupp {
    display: block !important;
}

.infosSupp {
    z-index: 50;
    width: 200px;
    height: auto;
    padding: 3px;
    background: lightsteelblue;
    position: fixed;
    border-radius: 3px;
    display: none;
}

.infosSupp:hover {
    display: block !important;
}