/* body {
    font-size: 2em;
    background-color: rgb(231, 229, 229);
} */
a {
    text-decoration: none;
}

a:visited, a:active {
    text-decoration: none;
}

/* Personnaliser le style de la liste déroulante */
.ui-autocomplete {
    background-color: #f0f0f0;  /* Couleur de fond de la liste */
    border: 1px solid #ccc;  /* Bordure de la liste */
    border-radius: 4px;  /* Bordures arrondies */
    max-height: 200px;  /* Hauteur maximale de la liste */
    overflow-y: auto;  /* Ajouter un défilement vertical */
    font-size: 25px;  /* Taille de la police */
    position: absolute; /* Pour qu'on puisse centrer la liste */
    left: 50%; /* Placer la liste au centre */
    transform: translateX(-50%); /* Centrer précisément la liste */
    width: auto; /* La largeur s'adapte au contenu */
    max-width: 50%; /* La largeur de la liste ne dépassera pas 90% de l'écran */
    z-index: 9999; /* S'assurer que la liste soit au-dessus des autres éléments */
}

/* Personnaliser le style des éléments de la liste */
.ui-autocomplete .ui-menu-item {
    padding: 8px 10px;  /* Espacement intérieur des éléments */
    cursor: pointer;  /* Changer le curseur pour montrer que c'est cliquable */
    text-align: center;  /* Centrer le texte des éléments */
}

/* Changer la couleur de fond lors du survol de l'élément */
.ui-autocomplete .ui-menu-item:hover {
    background-color: #007bff;  /* Couleur de fond au survol */
    color: white;  /* Couleur du texte au survol */
}

/* Style de l'élément sélectionné */
.ui-autocomplete .ui-menu-item.ui-state-focus {
    background-color: #0056b3;  /* Couleur de fond de l'élément sélectionné */
    color: white;  /* Couleur du texte de l'élément sélectionné */
}

/* Ajouter une flèche à droite du champ d'autocomplétion */
.ui-autocomplete {
    position: relative;
}

.ui-autocomplete:after {
    content: '▼';  /* Le caractère de flèche vers le bas */
    font-size: 18px;
    color: #007bff;  /* Couleur de la flèche */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

#container {
    padding: 10px;
}

#div-logo {
    width: fit-content;
    margin: 0 auto;
}

#menu-principal {
    display: grid;
    grid-template-columns: 2fr 1fr;
    margin-bottom: 30px;
}

#menu-principal>div {
    justify-content: center;
}

#choix-camion {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    margin-bottom: 30px;
}

#choix-camion a {
    border-color: darkslategrey !important;
    color: darkslategrey !important;
}

#btns-photocom {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    margin-bottom: 30px;
    color: rgb(163, 60, 60);
}

#btns-photocom a {
    border-color: rgb(163, 60, 60) !important;
    color: rgb(163, 60, 60) !important;
}

#div-btn-prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    font-size: 80% !important;
    /* border: 1px dotted green; */
}

#div-btn-prev-next>div {
    margin: 0;
    /* border: 1px dotted red; */
}

#div-btn-prev-next>div>a {
    margin: 0;
}

#div-visites {
    margin: 0;
    margin-bottom: 30px;
    width: 100%;
    background-color: black;
    color: white;
}

#tech-form {
    font-size: 55px;
}

#tech-form button {
    font-size: smaller;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 12px;

    font-size: 60px;
    font-weight: bold;
    color: #666;

    cursor: pointer;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    transition: all 0.2s ease;
}

.section {
    border: 1px solid lightgrey;
    border-radius: 6px;
    padding: 10px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 15px;
    box-shadow: 5px 5px 12px 0px lightgrey
}

.select-image {
    background-color: #ff1010;
    color: white;
    padding: 10px 15px;
    text-align: center;
    display: inline-block;
    size: 160%;
}

#valider {
    background-color: #189200;
    color: white;
    padding: 10px 15px;
    text-align: center;
    display: inline-block;
    size: 160%;
}

.dz-remove {
    font-size: 60;
}

.dz-message {
    text-align: center;
    padding: 30px;
}

.select-image,
.dz-button {
    background-color: white;
    color: darkred;
    border: 6px solid darkred;
    border-radius: 24px;
    font-size: 200%;
}

#div-btn-valider,
#div-btn-annuler {
    width: 100%;
    text-align: center;
    margin: 15px;
}

#btn-valider,
#btn-annuler,
.btn-val {
    background-color: white;
    color: darkgreen;
    border: 6px solid darkgreen;
    border-radius: 24px;
    font-size: 150%;
    padding: 12px;
}

#btn-annuler {
    color: darkred;
    border-color: darkred;
}

#photo-existante {
    /* height:80%;  */
    width: 80%;
    margin-bottom: 0.8em;
}

#name-photo {
    font-size: .7em;
    text-align: center;
}

#commentaire_categorie {
    width: 50%;
    height: fit-content;
    margin-top: 15px;
    margin-bottom: 15px;
}

#commentaire_description {
    height: 400px;
    width: 90%;
    margin-left: 5%;
}

.table {
    font-size: larger;
}

#header-visites {
    padding: 0.5em 0 0.3em 0;
}

#btn-rapport {
    margin: 0 auto;
    text-align: center;
}

#redirect-rapport,
#send-rapport {
    font-size: 200%;
    margin: 0.3em;
    border: 0.1em solid;
    padding: 10px;
    border-radius: 24px;
    background-color: white;
}

#send-rapport {
    color: darkslategrey;
    border-color: darkslategrey;
}

#redirect-rapport:hover {
    cursor: pointer;
}

.next-rapport {
    float: right;
}

.change-page {
    font-size: 120%;
}

#save-geoloc {
    font-size: 200%;
    margin: 0.3em;
    border: 0.1em solid;
    padding: 10px;
    border-radius: 24px;
    background-color: white;
    color: crimson;
}

#update-geoloc {
    font-size: 130%;
    margin: 0.3em;
    border: 0.1em solid;
    padding: 10px;
    border-radius: 24px;
    background-color: white;
    color: crimson;
}

#btn-geoloc {
    margin: 0 auto;
    text-align: center;
}

input.chbx-camion {
    width: 120px;
    height: 120px;
}

input.chbx-amorcage {
    width: 90px;
    height: 90px;
}

fieldset {
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 5px;
}

#form-camion {
    display: flex;
    flex-direction: column;
    font-size: 150%;
}

#label-camion {
    margin: 10px 0;
}

.label-amorcage {
    margin: 10px 0;
}

.chbx-camion {
    margin-right: 10px;
}

.preference {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem;
}

.change-camion {
    border: 4px solid rgb(0, 110, 255);
    border-radius: 12px;
    padding: 10px;
    color: rgb(0, 110, 255);
    background-color: white;
}

#table-pdf {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

#table-pdf th,
#table-pdf td {
    border: 1px solid #000;
    padding: 8px;
    text-align: center;
}

#table-pdf th {
    background-color: #ccc;
    font-weight: bold;
    font-size: 140%;
    text-align: left;
}

#table-pdf td.article {
    background-color: #fff;
    font-weight: bold;
}


.sous-table {
    width: 25%;
    margin-bottom: 0.2cm;
}

.camion-table {
    display: inline;
    width: 50%;
}

.img-pdf {
    height: 9cm;
    width: 7.5cm;
}

/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    font-size: smaller;
}

/* Modal Content/Box */
.modal-content {
    position: relative;
    background-color: #b4b4b4;
    margin: 0% auto;
    /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #000000;
    width: 80%;
    /* Could be more or less, depending on screen size */
    max-height: 100vh; /* limite à 80% de la hauteur de l'écran */
    overflow-y: auto; /* active le scroll vertical */
    overflow-x: hidden; /* évite le scroll horizontal */
}

.modal-content form {
    max-height: 75vh;
    overflow-y: auto;
}

.mod-box {
    display: flex;
    flex-direction: column;
    margin-bottom: 0%;
}

/**
**
** CSS Christophe
**
**/

.table td {
    padding: .25rem;
}

#notes-contenu {
    font-weight: normal;
}


.today {
    background-color: rgb(255, 255, 153) !important;
    color: black;
    font-weight: bold;
}

.change-page,
.next-rapport {
    border: 4px solid orange;
    border-radius: 12px;
    padding: 10px;
    color: darkorange;
    background-color: white;
    margin: 15px 0px 0px 15px;

}

.next-rapport {
    border: 4px solid blueviolet;
    color: blueviolet;
}

.num-tel {
    padding: 15px;
    border: 4px;
    border: 4px solid darkgreen;
    color: dark;
    background-color: white;
    border-radius: 24px;
}

.num-tel img {
    margin-top: -50px;
    margin-left: -30px;
    margin-right: 15px;
}

a .num-tel {
    color: dark;
}

#header-visites {
    font-size: 1.5em;
    font-weight: bold;
    width: fit-content;
    margin: 0 auto;
    margin-bottom: 30px;
}

#liste-visites {
    color: black;
    font-size: 1em;
}

#liste-visites a {
    color: black;
}

.visite {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    column-gap: 10px;
    border: 1px solid lightgrey;
    height: fit-content;
    width: 95%;
    border-radius: 24px;
    margin: 0 auto;
    margin-bottom: 30px;
    padding: 10px;
    background-color: white;
    box-shadow: 8px 13px 30px -2px;
}

.visite:hover {
    background-color: lightgrey;
}

.visite>DIV {
    height: fit-content;
}

.nb-photos {
    float: right;
    position: relative;
    top: -5vh;
    background-color: lightgreen;
    font-size: 100%;
}

.nb-photos.danger {
    background-color: darkred;
    color: white;
}

#liste-articles {
    padding: 15px;
    margin: 0 auto;
}

.ligne-article {
    display: grid;
    grid-template-columns: 2fr 4fr 1fr;
    text-align: left;
}

.ligne-article .quantite {
    text-align: center;
}

/**
** Catégories
**/
.categ-1 {
    background-color: grey !important;
    color: white;
}

.categ-2 {
    background-color: yellow !important;
    color: black;
}

.categ-3 {
    background-color: darkgrey !important;
    color: white;
}

.categ-4 {
    background-color: lightgreen !important;
    color: white;
}

.categ-5 {
    background-color: red !important;
    color: white;
}

.categ-6 {
    background-color: orange !important;
    color: white;
}

/**
* ADRESSE
**/

#container-adresse {
    width: 100%;
    padding: 30px;
}

.title {
    font-size: 150%;
    padding: 30px;
    margin: 0 auto;
    margin-bottom: 30px;
    border: 1px solid lightgrey;
    border-radius: 12px;
    width: fit-content;
}

.div-adresse {
    display: grid;
    grid-template-columns: 1fr 3fr;
    margin-bottom: 30px;
}

.div-adresse INPUT {
    margin-left: 15px;
}

#div-ville {
    display: grid;
    grid-template-columns: 1fr 3fr;
}

#adresse1,
#adresse2 {
    width: 100%;
}

#cp {
    width: 200px;
}

#ville {
    width: 100%;
}

.update-num {
    padding: 12px;
    border: 4px;
    border: 4px solid rgb(100, 0, 0);
    color: dark;
    background-color: white;
    border-radius: 24px;
}

#nb-tech {
    width: 35%;
}

#autor_station option {
    width: 35%;
}

@media screen and (max-width:768px) {
    body {
        font-size: x-large;
    }

    .police-taille-tel {
        font-size: smaller;
    }

    #commentaire {
        resize: none;
    }

    #headerVisites {
        padding: 20px 0 10px 0 !important;
    }
}

@media screen and (max-width: 1000px) {
    .modal {
        display: none;
        /* Hidden by default */
    }

    .modal-content {
        background-color: #b4b4b4;
        margin: 0% auto;
        /* 15% from the top and centered */
        padding: 30px;
        border: 1px solid #000000;
        width: 80%;
        display: flex;
    }

    .mod-box {
        display: flex;
        flex-direction: row; 
        align-items: center; 
        gap: 15px;           
        margin-bottom: 20px;
    }

    .label-amorcage {
        margin: 0;           
        flex: 1;            
    }
}