/* //////RESET/////*/
html {
    box-sizing: border-box;
    font-size: 13px;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

ol, ul {
    list-style: none;
}

a, a:hover {
    color: var(--main-color);
}


/* //// VARIABLES */

:root {
    --main-color: #00B3DF;
}

#pastilleAction {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ff0000;
}
.no-wrapping {
    white-space: nowrap;
}
.btn-sm{
    margin: 3px;
}
.tab-content {
    border: 1px solid rgba(0,0,0,.125);
    padding: 15px;
}
.tab-content>.active {
    padding: 1rem;
}
.badge{
    font-size: 11px;
}

@media screen and (max-width: 991px) {
    .navbar-brand {
        /* margin-right: auto; */
        margin-left: 12px;
        margin-top: -6px;
    }
    .mt-2-mobile {
        margin-top: 5px;
    }

    .d-inline-mobile{
        display: inline-block !important;
    }


    /*Grossissement des boutons*/
    .fas, .far, .fa{
        font-size: 2em;
        vertical-align: middle;
    }

    .btn-sm, .btn-group-sm>.btn {
        padding:.35rem .65rem;
        font-size:.875rem;
        line-height:1.5;
        border-radius:.2rem
    }

    /*Alignement des icones dans les btn
    button.btn > i {
        margin-right: 5px;
    }*/
    /*Text en "bold" dans les btn*/
    .btn{
        font-weight: bold;
    }

    .add_image_label {
        font-weight: bold;
    }

    /*Taille de la 1ere ligne 1ere colonne*/
    div.card-view>span.card-view-title:nth-child(1) {
        max-width: 5px;
    }
    span.card-view-value > div.no-wrapping{
        margin-left: -30px;
    }

    #pills-devis > div:nth-child(1) > div:nth-child(1) > div:nth-child(1), #pills-factures > div:nth-child(1) > div:nth-child(1) > div:nth-child(1){
        display: none;
    }

    #collapseGestionClient, #collapseGestionVentes{
        margin-left: 65px;
    }

    #collapseGestionInterventions, #collapseGestionPrestation, #collapseGestionOutils{
        margin-left: 65px;
    }

    /*Taille minimale les labels des prestations (Interventions>Nouvelle intervention)*/
    div.prestation-group>div>label {
        min-height: 40px;
    }

    /*Placement bouton annuler dans les prestations (Interventions>Nouvelle intervention)*/
    div.card-body>div.prestation-group.row>div.d-flex.align-items-center {
        padding-left: 0px;
    }

    #changeAgenceBtn, #logoutBtnDesktop{
        display: none !important;
    }

    #logoutBtnMobile{
        display: block !important;
    }

    .noicon-mobile {
        display: none !important;
    }
       
}

@media screen and (min-width: 991px) {
    #logoutBtnMobile{
        display: none !important;
    }
}

.he-50{
    height: 50px;
    line-height: 50px;
}

.he-30{
    height: 30vh;
}

.hrcustom{
    margin-top: .5rem;
    margin-bottom: .5rem;
}

button.btn2>i.fa-2x {
    margin-right: 1rem;
}

div.col-lg-4>button.btn-warning {
    color: #ffffff;
}


.navbar-light .navbar-toggler-icon {
    background-image:url("/img/curved-green-arrow-icon-13.jpg");
}

.navbar-light .navbar-toggler {
    color:rgba(0,0,0,.5);
    border-color:#000;
}

button.d-block.signer.signer-fiche-etat.mx-auto.btn.btn-secondary.align-middle.signer-fiche-etat {
    height: 31px;
}

.jSignature {
    height: 29.5vh !important;
}

/* .nojustify{
    justify-content: start !important;
} */

.bb-valide{
    border-bottom: .3rem solid #25aa6a;
    /* border-right: .3rem solid #25aa6a; */
}

.bb-encours{
    border-bottom: .3rem solid #f4b942;
    /* border-right: .3rem solid #f4b942; */
}

.sidebar a{
    text-decoration: none;
}

.sidebar-logo-text{
    font-weight: 400 !important;
}

.sidebar-logo-text>span{
    font-weight: 900 !important;
    color: white !important;
}

.agenceLabel{
    font-size: 10px !important;
    color: #FFFFFF !important;
    margin-bottom: -3px !important;
}

.green-validate{
    border: 1px solid green;
    background: rgb(30, 139, 86, 0.1);
}

.align-super{
    vertical-align: super;
}

.fa-black{
    color: black;
}

.fa-white{
    color: white !important;
}

a.btn.btn-outline-light:hover > i{
    color: black;
}

/*margin footer*/
.sidebar, .content{
    padding-bottom: 5rem;
    background-color: white;
}
.sidebar{
    z-index: 100001;
}
a.delete_ficheEtat {
    /* margin-left: 11px; */
    left: 6px;
    position: relative;
}
.vehicule-details-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto; /* Permettre le défilement si le contenu est trop grand */
}

.vehicule-details-content {
    background-color: #fff;
    padding: 15px; /* Réduire le padding */
    border-radius: 10px;
    width: 80%;
    max-width: 900px;
    position: relative;
    margin: 20px 0; /* Marge pour éviter que le bloc soit trop haut */
    font-size: 14px; /* Réduire la taille de la police */
    max-height: 90vh; /* Limite la hauteur de la modale à 90% de la hauteur de l'écran */
    overflow-y: auto; /* Permet le défilement vertical si le contenu dépasse la hauteur */
}

.vehicule-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes */
    gap: 15px; /* Réduire l'espacement */
}

.comment-section {
    grid-column: span 3; /* Étendre sur les trois colonnes */
    margin-top: 15px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 20px; /* Réduire la taille de la croix */
    cursor: pointer;
    color: #333;
}

.close-btn:hover {
    color: red;
}
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 6px;
    /* margin-bottom: 10px; */
    /* margin-top: 0; */
    margin: 0 0 5px 0px;
    /*border-bottom: 1px dashed;*/
    border-bottom: none !important;
}
.firstdata {
    border-top: 1px dashed #ddd;
    text-align: center;
}
/* Ajustements pour les petits écrans */
@media (max-width: 768px) {
    .vehicule-details-content {
        width: 90%;
        font-size: 12px; /* Réduire la police sur petits écrans */
        max-height: 80vh; /* Réduire la hauteur maximale à 80% de l'écran pour les petits écrans */
    }

    .vehicule-details-grid {
		display: grid; 
		grid-template-columns: repeat(2, 1fr); 
		gap: 20px;
    }

    .comment-section {
        grid-column: span 1; /* Commentaire s'étend sur toute la largeur */
    }

    img {
        width: 80px; /* Réduire la taille de l'image sur petits écrans */
        cursor: pointer; /* Ajouter un pointeur pour indiquer que l'image est cliquable */
    }
    .modal-buttons {
        justify-content: center; /* Centrer les boutons */
        flex-wrap: wrap; /* Permet d'ajuster les boutons si la place manque */
    }
}

.image-modal {
    display: flex; /* Utiliser flexbox pour centrer l'image */
    justify-content: center; /* Centrer horizontalement */
    align-items: center; /* Centrer verticalement */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fond semi-transparent pour l'arrière-plan */
    z-index: 1001; /* Au-dessus du reste */
}

.image-modal img {
    max-width: 90%; /* S'assurer que l'image ne dépasse pas de l'écran */
    max-height: 90%; /* Limiter la hauteur de l'image */
    object-fit: contain; /* Maintenir les proportions de l'image */
    background-color: #fff; /* Fond blanc pour l'image */
    padding: 10px; /* Ajouter un léger padding pour démarquer l'image du fond */
    border-radius: 8px; /* Ajouter un léger arrondi aux coins pour un meilleur rendu */
}
