html,
body {
    margin: 0;
    padding: 0;
}

a {
    color: #000 !important;
}

.container {
    width: 100%;
    max-width: 800px;
    /* Limite la largeur pour les grands écrans */
    padding-left: 20px;
    padding-right: 20px;
}

@media only screen and (max-width: 600px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}
.goverlay {
    background: rgba(0, 0, 0, 0.7) !important; /* Fond noir avec 70% d'opacité */
  }

@media only screen and (min-width: 601px) and (max-width: 992px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.alerte2 {
    color: red;
    font-size: 16px;
    margin-bottom: 10px;
}

.header-logo {
    padding: 10px;
    background-color: #f0f0f0;
    height: 100px !important;
    position: relative;
    z-index: 1000;
    width: 100%;
    top: 0;
    min-height: 100px;
}

.header-logo img {
    height: 90px;
    margin-right: 15px;
    padding: 10px;
    float: left;
    position: relative;
    top: -5px;
}

.header-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    float: left;
    width: 100%;
}

.gestion {
    color: #000;
    position: relative;
    float: left;
    margin-top: -35px;
}

.groupe_titre {
    margin-left: 20px;
    float: left;
}

.page-footer {
    background-color: #f0f0f0;
    width: 100%;
    padding: 10px 0;
    text-align: center;
    position: relative;
    float: left;
}

.footer_mod {
    color: #000;
}

.card {
    position: relative;
    margin-top: 20px;
    margin-bottom: 20px;
    clear: both;
    overflow: auto;
    z-index: 1;
}

footer {
    position: absolute;
    bottom: 0px;
    float: left;
    margin-top: 20px;
}

.titre_action {
    position: relative;
    margin-top: 50px;
    margin-bottom: 40px;
    font-size: 30px;
}

.user-name {
    color: #000 !important;
    float: left;
    clear: both;
    position: relative;
    margin-top: 2px;
    font-weight: bold;
    margin-left: 10px;
}

.user-info-banner {
    clear: both;
    background-color: aliceblue;
    padding: 5px;
    padding-right: 10px;
    text-align: right;
    font-size: 1.2em;
}

.logout-icon {
    position: relative;
    color: red !important;
    font-size: 1.2em;
    cursor: pointer;
    text-decoration: none;
    clear: right;
    text-align: right;
    width: 100%;
}

.card-title {
    display: block;
    font-size: 24px;
    color: #000;
}

.sidenav-trigger {
    position: relative;
    z-index: 1000;
}

.logo_sidenav {
    width: 100%;
    padding: 40px;
    margin: auto;
    position: relative;
    float: left;
}

.sidenav li {
    clear: both;
}

.mot_oublie {
    position: relative;
    clear: both;
    top: 20px;
    font-size: .9em;
}

.mot_oublie a {
    color: cadetblue !important;
}

.alert {
    padding: 0px;
    margin: auto;
    margin-top: 5px;
    text-align: center;
    font-weight: bold;
    border: 1px solid transparent;
    position: relative;
    z-index: 1000;
    clear: both;
    width: 100%;
    float: left;
}

.alert-success {
    position: relative;
    background-color: #dff0d8;
    color: #3c763d;
    border-color: #d0e9c6;
    margin-bottom: 20px;
}

.alert-danger {
    position: relative;
    background-color: #f2dede;
    color: #a94442;
    border-color: #ebccd1;
    margin-bottom: 20px;
}

.subheader {
    font-weight: 700;
    padding-left: 20px;
    font-size: 18px !important;
}

/* Style pour la liste des journaliers */
.journalier-list {
    list-style-type: none;
    padding: 0;
}

/* Style pour chaque élément de la liste */
.journalier-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

/* Conteneur pour la photo et les détails */
.journalier-content {
    display: flex;
    align-items: center;
    /* Alignement vertical */
}

/* Style pour la photo du journalier (25% plus grande) */
.journalier-photo {
    width: 60px;
    /* 50px + 50% */
    height: auto;
    /* 50px +50% */
    margin-right: 10px;
    /* Espace entre la photo et les détails */
    border-radius: 0;
    /* Supprime le bord arrondi */
}

/* Style pour les détails du journalier (sur une seule ligne) */
.journalier-details {
    display: flex;
    /* Alignement horizontal */
    align-items: center;
    /* Centrage vertical */
    gap: 10px;
    /* Espace entre les éléments */
    flex-grow: 1;
    /* Prend l'espace restant */
    white-space: nowrap;
    /* Empêche le passage à la ligne */
    overflow-x: auto;
    /* Permet le défilement horizontal si nécessaire */
}

/* Style pour chaque détail (nom, prénom, téléphone, email) */
.journalier-details div {
    flex-shrink: 0;
    /* Empêche la réduction de la taille des éléments */
}

/* Conteneur pour les boutons d'action */
.journalier-actions {
    margin-top: 10px;
    /* Espace entre le contenu et les boutons */
    display: flex;
    /* Alignement horizontal des boutons */
    gap: 5px;
    /* Espace entre les boutons */
}

/* Alignement vertical du texte dans les boutons */
.journalier-actions .btn {
    padding: 8px 10px;
    /* Ajustement du padding pour un meilleur alignement */
    font-size: 14px;
    display: flex;
    /* Utilisation de flex pour aligner le texte */
    align-items: center;
    /* Alignement vertical du texte */
    justify-content: center;
    /* Alignement horizontal du texte */
    flex-shrink: 0;
    /* Empêche la réduction de la taille des boutons */
}

/* Style pour le bouton "Ajouter un journalier" */
.btn {
    margin: 10px 0;
    /* Marge par défaut */
}

.form-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.form-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    height: 42px;
    line-height: 42px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: none;
    border: none;
}

.form-buttons .btn-submit {
    background-color: #26a69a;
    color: #fff;
}

.form-buttons .btn-cancel {
    background-color: #9e9e9e;
    color: #fff;
}

@media (max-width: 820px) {

    /* Marge à gauche pour la photo sur mobile */
    .journalier-photo {
        margin-left: 10px;
        /* Marge à gauche pour aligner avec les boutons */
    }

    /* Marge à gauche pour le bouton "Ajouter un journalier" sur mobile */
    .btn {
        margin-left: 10px;
        /* Marge à gauche */
        margin-right: 10px;
        /* Marge à droite */
    }

    /* Boutons pleine largeur sur mobile */
    .journalier-actions {
        flex-wrap: wrap;
        /* Permet aux boutons de passer à la ligne si nécessaire */
        margin-left: 10px;
        /* Marge de 10px à gauche */
        margin-right: 10px;
        /* Marge de 10px à droite */
    }







    .header-title {
        font-size: 1.2rem;
    }

    .titre_action {
        position: relative;
        margin-top: 30px;
        margin-bottom: 20px;
        margin-left: 10px;
        font-size: 30px;
    }
}

/* Styles spécifiques pour les écrans mobiles */
@media (max-width: 600px) {

    /* Marge à gauche pour la photo sur mobile */
    .journalier-photo {
        margin-left: 10px;
        /* Marge à gauche pour aligner avec les boutons */
    }

    /* Marge à gauche pour le bouton "Ajouter un journalier" sur mobile */
    .btn {
        margin-left: 10px;
        /* Marge à gauche */
        margin-right: 10px;
        /* Marge à droite */
    }

    /* Boutons pleine largeur sur mobile */
    .journalier-actions {
        flex-wrap: wrap;
        /* Permet aux boutons de passer à la ligne si nécessaire */
        margin-left: 10px;
        /* Marge de 10px à gauche */
        margin-right: 10px;
        /* Marge de 10px à droite */
    }

    .journalier-actions .btn {
        width: 100%;
        /* Boutons pleine largeur */
        margin: 5px 0;
        /* Espace vertical entre les boutons */
        box-sizing: border-box;
        /* Inclut le padding dans la largeur */
    }

    /* Assurer que le bouton "Supprimer" prend toute la largeur */
    .journalier-actions form {
        width: 100%;
    }

    .journalier-actions form .btn {
        width: 100%;
        /* Bouton "Supprimer" pleine largeur */
    }

    .header-title {
        font-size: 1.2rem;
    }

    .titre_action {
        position: relative;
        margin-top: 30px;
        margin-bottom: 20px;
        margin-left: 10px;
        font-size: 30px;
    }
}

@media (max-width: 516px) {

    .user-info-banner {
        position: relative;
        top: 10px;

    }

    .gestion {
        color: #000;
        position: relative;
        float: left;
        margin-top: -32px;
        margin-bottom: 0px;
    }

    .groupe_titre {
        margin-left: 20px;
        float: left;
        margin-bottom: -40px;
    }
}

/* Ajoute ceci à ton fichier CSS */
.green-background {
    background-color: #4CAF50 !important;
    /* Vert */
    color: white !important;
}

.red-background {
    background-color: #f44336 !important;
    /* Rouge */
    color: white !important;
}

.actions-list-table tr.red-background td,
.actions-list-table tr.green-background td {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.actions-list-table td .row {
    margin-bottom: 0;
}

.custom-select {
    display: block !important;
    width: 100% !important;
    height: 2.5em !important;
    padding: 0.5em 2em 0.5em 0.75em !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    font-size: 1em !important;
    color: #333 !important;
    position: relative !important;
    z-index: 100 !important;
    /* Supprimer les apparences natives */
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    /* Ajouter une flèche personnalisée */
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="10"><polygon points="0,0 14,0 7,10" fill="%23999"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75em center !important;
    background-size: 10px !important;
    /* Assurez-vous que le texte reste à gauche */
    text-align: left !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  
  .custom-select option {
    display: block;
    padding: 8px;
    color: #333;
    background-color: #fff;
  }
  
  .custom-select + label.active {
    top: -14px;      /* Ajustez selon vos besoins */
    font-size: 12px;  /* Par exemple, une taille réduite pour indiquer l'état actif */
    color: #9e9e9e;   /* Une couleur discrète pour le label actif */
  }
  
  /* Masquer la superposition Materialize pour les custom-select */
  .custom-select ~ .dropdown-content {
    display: none !important;
  }
  
  /* S'assurer que les selects custom ne sont pas affectés par les styles Materialize */
  select.custom-select:not(.browser-default) {
    display: block !important;
    z-index: 100 !important;
  }

/* Styles pour la pagination légère personnalisée (simple_light) */
nav.pagination-simple-light {
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: #fff; /* Ajout du fond blanc demandé */
}

nav.pagination-simple-light ul.pagination {
    display: inline-block;
    padding-left: 0;
    list-style: none;
    margin: 0;
    box-shadow: none !important;
    border-radius: 0 !important;
}

nav.pagination-simple-light ul.pagination > li {
    display: inline-block;
    background-color: transparent !important;
    margin: 0 2px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    vertical-align: middle;
}

/* Style commun pour les liens et les spans (y compris .current-page et disabled) */
nav.pagination-simple-light ul.pagination > li > a,
nav.pagination-simple-light ul.pagination > li > span {
    display: inline-block;
    padding: 0.5rem 0.75rem !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    background-color: transparent !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Style spécifique pour les liens normaux */
nav.pagination-simple-light ul.pagination > li > a {
    color: #007bff !important; /* Couleur bleue pour les liens */
    cursor: pointer;
}

/* Style au survol des liens normaux */
nav.pagination-simple-light ul.pagination > li > a:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

/* Style spécifique pour la page courante (span.current-page) */
nav.pagination-simple-light ul.pagination > li > span.current-page {
    color: #495057 !important; /* Couleur grise foncée/noire pour la page active */
    font-weight: bold !important; /* Mettre en gras */
    cursor: default;
}

/* Style spécifique pour les éléments désactivés (li.disabled > span) */
nav.pagination-simple-light ul.pagination > li.disabled > span {
    color: #6c757d !important; /* Couleur grise pour désactivé */
    pointer-events: none !important;
    cursor: default;
}
