* {
    font-family: "Open Sans", serif ;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 18px;
}

/* Écran de tablette ou plus petit */
@media (max-width: 768px) {
    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 16px;
    }
}

/* Écran de mobile */
@media (max-width: 480px) {
    h2 {
        font-size: 18px;
    }

    h3 {
        font-size: 14px;
    }
}

.connexion-box {
    display: grid;
    justify-content: center;  /* Centre horizontalement */
    align-items: center;  /* Centre verticalement */
}

.logo-connexion {
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.connexion-container {
    background: #ffffff;
    display: grid;
    place-items: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 450px;
    margin: 0;
}

.connexion-container h2 {
    color: #2f6a70;
    margin-bottom: 20px;
    font-size: 24px;
}

/* Champs du formulaire */
.connexion-container label {
    display: grid;
    text-align: left;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.connexion-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Bouton de connexion */
.connexion-container button {
    width: 100%;
    background-color: #2f6a70;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.connexion-container button:hover {
    background-color: #2f6a70;
}

.header_site {
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: #2f6a70;
}

header{
    color: white;
}
.site_title{
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 10px;
    position: relative;
}

/* Nouveaux styles pour le menu utilisateur */
.user-menu-container {
    margin-left: auto; /* Pousse le menu à droite */
    display: flex;
    align-items: center;
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.user-btn:hover {
    color: #541313;
}

.dropdown-icon {
    font-size: 12px;
    margin-left: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    z-index: 100;
    border-radius: 4px;
    border: 1px solid #eee;
}

.dropdown-content a {
    color: #333;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #0066cc;
}

.user-menu:hover .dropdown-content {
    display: block;
}

/* Version mobile */
@media (max-width: 768px) {
    .user-btn {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .user-btn span {
        display: none; /* Cache le "Bonjour" sur mobile */
    }
    
    .dropdown-content {
        min-width: 120px;
    }
}

.page_content {
    display: flex;
    align-items: flex-start;
    gap: 20px; /* Espacement entre les éléments */
}

.menu-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px;
    list-style: none;
    text-decoration: none;
    color: inherit;
}

.menu-link.active {
    background-color: #e8def8;
    text-align: left;
    color: #49454f;
    font-weight: bold;
    border-radius: 25px;
}

ul li { 
    padding-left: 0;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

ul {
    padding-left: 0;
}

#sidebar {
    position: fixed;
    background-color: #f7f2fa;
    color:#333;
    transition: width 0.3s ease;
    width: 15%;
    margin-top: 50px;
    margin-left: 15px;
    padding: 30px;
    top: 60px;
    bottom: 0; /* Définit la hauteur automatiquement */
    border-radius: 10px;
    overflow-y: auto;
}

/* Tablettes ou petits laptops */
@media (max-width: 1024px) {
    #sidebar {
        width: 10%;
    }
}

.crm {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
    width: 200px;
}

.rapport {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
    width: 200px;
}

/* style pour la barre de recherche*/

.search-container {
    margin: 15px 0;
    display: flex;
    gap: 10px;
}

.search-input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex-grow: 1;
    max-width: 400px;
}

.search-btn, .reset-search {
    padding: 8px 15px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.search-btn:hover, .reset-search:hover {
    background-color: #e8e8e8;
}

.search-column {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
}

/* fin style pour la barre de recherche*/


/* style pour content, table */

#rightSide_content {
    width: 85%;
    margin-left: 20%;
    padding: 5px;
    top: 60px;
    margin-top: 90px;
    overflow-y: auto;
    height: calc(100vh - 60px);
}

#content {
    padding: 10px;
}

#content .menu-link {
    border: 1px solid #ddd; /* Applique la bordure */
    padding: 10px;
}

#content .menu-link.no-border {
    border: none; /* Bordure pour tous les menu-link sauf ceux avec la classe no-border */
}

@media screen and (max-width: 768px) {
    .page_content {
        flex-direction: column; /* Placer les éléments l'un sous l'autre */
    }

    #container, #content {
        width: 100%; /* Les éléments prennent toute la largeur */
    }
}

img, .logo {
    width: 70px;
    height: 70px;
    padding: 10px ;
}

.crm, li {
    list-style: none;
    color: #333;
}

i {
    padding: 5px;
}

.en_teteTab {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;

}

.table_content{
    margin-top: 5px;
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    overflow-y: auto;
    overflow-x: auto;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f7f2fa;
    color: #333;
}
.supprimer {
    background-color: white;
    color: #333;
    padding: 10px 20px;
    border: none;
    margin-right: 20px;
    cursor: pointer;
    border-radius: 5px;

}

.exporter {
    background-color: white;
    color: #2f6a70;
    border: 1px solid black;
    padding: 10px 20px;
    margin-right: 20px;
    cursor: pointer;
    border-radius: 5px
}

.open-popup {
    background-color: #2f6a70;
    color: white;
    padding: 10px 20px;
    border: none;
    margin-right: 20px;
    cursor: pointer;
    border-radius: 5px;

}

/* Style pour la popup */
.popup-overlay {
    display: none;  /* Cacher le popup par défaut */
    position: fixed; /* Position fixe pour qu'il soit toujours visible */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrer exactement au milieu */
    width: 60%; /* Largeur du popup */
    height: 80%; /* Hauteur du popup */
    background-color: #fff; /* Fond blanc */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Ombre pour l'effet de profondeur */
    z-index: 1000;
    border-radius: 10px; /* Coins arrondis */
    overflow-y: auto; /* Ajout du scroll vertical si nécessaire */
    padding: 20px;
}

/* Overlay pour assombrir l'arrière-plan */
.overlay {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
    
}


/* Style du conteneur de la popup */
.popup-container {
    background-color: white; /* Fond blanc pour la popup */
    padding: 20px;
    margin-top: auto;
    border-radius: 10px; /* Coins arrondis */
    max-width: 500px; /* Largeur maximale */
    width: 100%; /* Largeur flexible */
    box-sizing: border-box; /* Inclure les bordures et le padding dans la largeur totale */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre pour un effet flottant */
}

/* Style pour le formulaire dans la popup */
.popup-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.popup-form input {
    padding: 10px;
    margin: 5px 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.message {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 5px;
}


select {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    border: 2px solid #2f6a70;
    border-radius: 5px;
    background-color: #F5F5F5;
    color: #000;
    cursor: pointer;
}

.select-search {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px; /* Espace entre le label et le champ */
    margin-bottom: 15px;
}

textarea {
    width: 100%;
    height: 250px;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    resize: vertical; /* Permet de redimensionner seulement en hauteur */
    overflow-y: auto;
}

.save-button {
    padding: 10px;
    background-color: #2f6a70;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.save-button:hover {
    background-color: #2f6a70;
}

.close-button button {
    margin-top: 10px;
}

.close-popup {
    padding: 10px;
    margin-top: 15px;
    background-color: white;
    color:#333;
    border: 1px solid black;
    border-radius: 5px;
    cursor: pointer;
}

/* Style des select-search */

.selected-vehicules {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.selected-vehicle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.delete-vehicle {
    background: red;
    color: white;
    border: none;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
}

/* Style du tableau de bord */


.partie1 {
    display: flex; /* Active Flexbox */
    justify-content: space-between; /* Répartit l'espace entre les div */
    align-items: left; /* Centre verticalement */
    gap: 10px; /* Espacement entre les div */
    padding-bottom: 10px;
}

.partie1 h3 {
    font-size: 18px;
    font-weight: normal;
}

.partie1 p {
    font-size: 24px;
    font-weight: bold;
}

.total_data {
    width: 50%;
}

.totalCVL{
    display: flex; /* Active Flexbox */
    justify-content: space-between; /* Répartit l'espace entre les div */
    align-items: left; /* Centre verticalement */
    gap: 10px; /* Espacement entre les div */
    padding-bottom: 10px;
}

.total {
    display: grid;
    width: 220px;
    height: 130px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.totalsl {
    display: grid;
    height: 130px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.totalS_rapportL {
    display: flex; /* Active Flexbox */
    justify-content: space-between; /* Répartit l'espace entre les div */
    align-items: left;
    width: 100%;
    gap: 10px; /* Espacement entre les div */
}

.totalS_rapportL .totalsl {
    display: grid; /* Active Flexbox */
}

.totalsl:first-child {
    width: 30%;
}

.totalsl:last-child {
    width: 70%;
}


.services_vedettes {
    width: 50%;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}



/* Style pour la vue globale */
/* Style pour le fond de la fenêtre modale */
.vue-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fond sombre */
    display: none; /* Caché par défaut */
    justify-content: center;
    align-items: center;
}

/* Style pour le contenu de la modale */
.vueForm {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button {
    margin-top: 10px;
}

/* Style du modal*/

.modal {
    display: none; /* Cacher par défaut */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0); /* Fond noir */
    background-color: rgba(0,0,0,0.4); /* Opacité */
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid #888;
    animation: modalopen 0.3s;
    width: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Style du formulaire */
#updateForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

#updateForm label {
    font-weight: 600;
    color: #444;
}


#updateForm input, 
#updateForm select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border 0.3s;
}

#updateForm input:focus, 
#updateForm select:focus {
    border-color: #2f6a70;
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

#updateForm button {
    background-color: #2f6a70;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.non-editable-field {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    margin: 2px 0;
    min-width: 200px;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px; /* Espace entre le label et le champ */
    margin-bottom: 15px;
}  
    
.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
} 

/* Pour les selects multiples */
.form-group .select2-container {
    width: 100%;
    margin-top: 3px; /* Ajustement précis pour l'alignement */
}

#updateForm button:hover {
    background-color: #2f6a70;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 10% auto;
    }
}

/* Conteneur principal */
.services-select-container {
    position: relative;
}


/* Correction pour Select2 dans les popups */
.select2-container {
    position: relative;
    z-index: auto; /* Valeur raisonnable par défaut */
}

.select2-container--open {
    z-index: 1003 !important; /* Seulement quand ouvert */
}

/* Conteneur du dropdown */
.select2-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1003; /* Doit être supérieur à celui du modal */
}


/* Style pour checkbox */

.checkbox-list {
    background-color: #f9f9f9;
    margin-top: 5px;
}

.checkbox-item:hover {
    background-color: #f0f0f0;
}

.checkbox-item label {
    padding: 5px;
    transition: background-color 0.2s;
}

.services-checkbox-container {
    margin-bottom: 15px;
}


/* Top services */

.services_vedettes h3 {
    color: #333;
    margin-bottom: 15px;
}

.services_vedettes ol {
    list-style-type: none;
    padding: 0;
}

.services_vedettes li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.service-row {
    margin-bottom: 15px;
}

.service-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.service-name {
    font-weight: 600;
    color: #333;
}

.service-stats {
    color: #666;
}

.progress-bar {
    width: 100%;
}

.progress-bar-full {
    height: 12px;
    width: 100%;
    background-color: #e0e0e0; /* Couleur pâle pour la partie inactive */
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-bar-active {
    height: 100%;
    background-color: #4e73df; /* Couleur foncée pour la partie active */
    border-radius: 6px 0 0 6px;
    transition: width 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}


.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2f6a70, #2f6a70);
    border-radius: 5px;
    transition: width 0.5s ease;
}

/* Animation au chargement */
@keyframes grow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.progress-bar-active {
    transform-origin: left center;
    animation: slideIn 1.2s ease-out forwards;
}


/* Grille des lavages */

.services-grid-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.services-grid {
    display: flex;
    margin-top: 20px;
}

.y-axis {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    width: 30px;
    margin-right: 10px;
    text-align: right;
    font-size: 12px;
    color: #666;
}

.chart-area {
    flex: 1;
    position: relative;
    height: 300px;
    border-left: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.grid-line {
    position: absolute;
    width: 100%;
    border-top: 1px dashed #eee;
    left: 0;
}

.bars-container {
    display: flex;
    height: 100%;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 15px;
}

.month-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 8%;
}

.month-bar {
    width: 60%;
    background: linear-gradient(to top, #4e73df, #224abe);
    border-radius: 3px 3px 0 0;
    transition: height 0.8s ease;
}

.month-label {
    margin-top: 5px;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}

.month-value {
    font-size: 10px;
    color: #333;
    font-weight: bold;
    margin-top: 3px;
}

.no-data {
    text-align: center;
    color: #999;
    font-style: italic;
    width: 100%;
}

/* Animation */
@keyframes growBar {
    from { height: 0; }
    to { height: var(--final-height); }
}

.month-bar {
    --final-height: 0%;
    animation: growBar 1s ease-out forwards;
    animation-delay: 0.3s;
}

/* style pour la pagination des tables */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 5px;
}

.pagination button {
    padding: 5px 10px;
    border: 1px solid #ddd;
    background-color: #f8f8f8;
    cursor: pointer;
    border-radius: 4px;
}

.pagination button:hover:not(:disabled) {
    background-color: #e8e8e8;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.page-info {
    margin: 0 15px;
}






