
div#filter-bar-export {
    display: none;
}




    /* Style pour la barre noire */
    #black-bar {
        width: 100%;
        height: 50px;
        background-color:#fff;
        display: flex;
        align-items: center;
        justify-content: center;
        color:black;
    }

    /* Conteneur interne pour organiser le contenu */
    .black-bar-content {
        width: 95%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Filtres à gauche */
    .filters {
    display: flex;
    align-items: center;
    margin-left: -1.5rem;
}

    /* Icônes à droite */
    .icons {
    display: flex
;
    align-items: center;
    margin-top:0rem;
    gap: 1rem;
    margin-right: -1.5rem;
}
    .filters label {
    color: #000;
    font-size: 12px;
    width: 60px;
    margin-top: 60px;
    font-weight: 600;
}






    /* Style pour réduire les calendriers */
    .flatpickr-calendar {
        transform: scale(0.5); /* Réduction de taille */
        transform-origin: center;
        background-color: white;
        border: none;
    }

    /* Bande noire */
    #date-filter-container {
        display: none;
        background-color:#808080;
        color: white;
        height: 80px;
    }

    /* Centrage des calendriers */
    #calendars-container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 180px;
        background-color:#808080;
    }

    /* Ajustement du padding pour un affichage compact */
    #calendars-container div {
        padding: 5px;
    }
    #calendars-container div {
    padding: 0px;
}

.flatpickr-day {
    background: none;
    border: 1px solid transparent;
    border-radius: 150px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: black;
    font-weight: 900 !important;
    cursor: pointer;
    font-weight: 400;
    font-size: 12px;
    width: 14.2857143%;
    -webkit-flex-basis: 14.2857143%;
    -ms-flex-preferred-size: 14.2857143%;
    flex-basis: 14.2857143%;
    max-width: 39px;
    height: 39px;
    line-height: 39px;
    margin: 0;
    display: inline-block;
    position: relative;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
}

label {
    width: 10px;
}



/* Icône de la pastille */
.clearer-status {
    width: 8px;
    height: 8px;
    border: 1px solid black; /* Bordure noire */
    border-radius: 50%; /* Cercle parfait */
    margin-right: 8px; /* Espace entre la pastille et le texte */
}

/* Couleurs des pastilles */
.text-success {
    color: green; /* Vert pour les statuts validés */
}

.text-danger {
    color: red; /* Rouge pour les statuts refusés */
}

.text-secondary {
    color: gray; /* Gris pour les statuts indéterminés ou par défaut */
}

    button#add-photo-btn {
    background: transparent;
    border: 1px solid;
    padding: 2.1rem;
    width: 8rem;
    margin-left: -20px;
}

div#clearer-container {
    margin-left: 10px;
}

div#sequence-container {
    margin-left: 12px;
}
    
  /* Style pour les cercles "Oui" et "Non" */
  .clearer-circle {
    width: 20px;
    height: 20px;
    border: 2px solid black;
    border-radius: 50%;
    background-color: transparent;
    margin-right: 5px;
}
    
    
    /* Appliquer une couleur de fond à une colonne sur deux */
    table tbody tr td:nth-child(odd),
    table thead tr th:nth-child(odd) {
        background-color: #fff;
    }

    table tbody tr td:nth-child(even),
    table thead tr th:nth-child(even) {
        background-color:#cecece33;
    }

    /* Pour assurer une bonne lisibilité */
    table tbody tr td {
        color: black;
        padding: 8px;
        text-align: center;
    }
   

       /* Style pour le conteneur du filtre */
       #date-filter-container {
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Transition douce pour la rotation */
    .chevron-icon {
        transition: transform 0.3s ease;
    }
   
   
   
   
   /* Conteneur du filtre */
    #date-filter-container {
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Chevron */
    .chevron-icon {
        transition: transform 0.3s ease;
    }

    /* Style des boutons */
    button {
        font-size: 12px;
    }

    #sequence-filter-container input {
    width: 150px;
    text-align: center;
}
#sequence-filter-container button {
    margin: 0 10px;
}



/* 🟢 Style pour la Pop-up */
.notification-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #82887f;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px;
    width: 300px;
    z-index: 9999;
    display: none;
    font-family: Arial, sans-serif;
    color: #333;
}

.notification-popup .notification-content {
    font-size: 14px;
}

.notification-popup button {
    margin-top: 10px;
    background: #0078D7;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.notification-popup button:hover {
    background: #005ea6;
}



.form-buttons {
text-align: center;
margin-top: 20px;
}

.form-buttons button {
background-color: #1976D2;
color: white;
border: none;
padding: 10px 20px;
border-radius: 6px;
font-size: 14px;
cursor: pointer;
transition: background-color 0.3s;
}

.form-buttons button:hover {
background-color: #004ba0;
}



/* 🟢 Style du tableau : taille complète */
table {
    width: 100%; /* Largeur pleine */
    
    margin-top: 30px;
    border-collapse: collapse;
    background-color: white;
    border-radius: 10px;
    
}

th, td {
    padding: 20px;
    text-align: center;
    font-size: 12px;
}

th {
    background-color:#fff;
    color: white;
    font-size: 12px;
}

td {
    background-color: #ffff;
    color: #333;
}

td a {
    text-decoration: none;
    color: #0078D7;
    margin: 0 10px;
}

td a:hover {
    color: #005bb5;
}

/* 🟢 Style du tableau pour les rangées impaires */


/* 🟢 Effet sur la ligne au survol */
tr:hover {
    background-color: #d1e4f4;
}

/* 🟢 Style du formulaire de message */
.message-form {
    display: none;
    background-color: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.form-buttons button {
    background-color: #4A90E2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.form-buttons button:hover {
    background-color: #1976D2;
}

.form-buttons button.btn-close {
    background-color: #82887f;
    margin-left: 10px;
}

.form-buttons button.btn-close:hover {
    background-color: #999;
}
table {
width: 100%;
border-collapse: collapse; /* Supprime les espaces entre les cellules */
}

table thead th {
color: black;
padding: 10px;
text-align: center;
border-top: 1px solid #000;
}

table tbody tr td {
border-bottom: 1px solid #ddd; /* Ajoute la ligne de séparation */
padding: 10px;
}

table tbody tr:last-child td {
border-bottom: none; /* Pas de bordure pour la dernière ligne */
}

/* Conteneur principal */
/* Cacher la pop-up par défaut */
#popup-modal,#popup-modal-edit{
display: none; /* Cachée par défaut */
position: fixed;
top: 0;
left: 20px;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
justify-content: center;
align-items: center;
z-index: 1000;
}


.popup-content {
background:#326784;


max-height: 90%;
display: flex;
flex-direction: column;
border-radius: 8px;

box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Header */
.popup-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
background-color:#326784;
border-bottom: 1px solid #fff;
color:#fff;
}



/* Conteneur en colonnes */
.columns-container {
display: flex;
flex-wrap: wrap; /* Permet de créer une nouvelle ligne si le nombre de colonnes dépasse 10 */
gap: 3.px; /* Espacement entre les colonnes */
padding: 20px;
justify-content: flex-start; /* Aligne les colonnes au début */
color:#fff;

}

/* Colonne générique */
.column {
overflow-x: hidden;
width: 10%; /* Chaque colonne occupe exactement 10% de la largeur */
display: flex;
flex-direction: column;
gap: 10px;

border: 1px solid #ddd;


box-sizing: border-box; /* Inclut les bordures et le padding dans la largeur */

overflow-y: auto; /* Scroll activé si le contenu dépasse la hauteur */
}

/* Titres des colonnes */
.column h3 {
font-size: 12px;
text-align: center;
margin-bottom: 10px;
color: #333;
font-weight: bold;
}

/* Miniatures des photos */
.thumbnail-container img {
width: 100%; /* Largeur adaptée à la colonne */


cursor: pointer;
transition: transform 0.3s;
}

.thumbnail-container img:hover {
transform: scale(1.1); /* Zoom au survol */
}


/* Champ input */
input {
padding: 4px;
border: 1px solid #82887f;
border-radius: 24px;
font-size: 10px;
width: 60%;
margin-top: 0;

}
label {
font-size: 9px;
}
/* Footer */
.popup-footer {
display: flex;

padding: 15px 20px;


gap: 10px;
}

.popup-footer button {
padding: 10px 20px;
border: none;
border-radius: 5px;
background-color: #007bff;
color: #fff;
cursor: pointer;
font-size: 14px;
}

.popup-footer button:hover {
background-color: #0056b3;
}

.column.decor-column{
width: 20%;
background-color: #6f94a8;
}

#decor-select {
overflow-y: auto;
max-height: 200px; /* Fixe une hauteur maximale */
border: none;
outline: none;
}

.thumbnail-item{
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: center;
}
.column.sequence-column {
width: 8%;

border: none;
}

span {
font-size: 9px;
}

i {
font-size: 10px;
}

.space {
height: 7px;
}

i.fas.fa-envelope {
font-size: 30px;
}

#source-tags div {
padding: 5px 10px;
border: 1px solid rgb(76, 175, 80);
border-radius: 5px;
background-color: rgb(234, 255, 234);
color: rgb(76, 175, 80);
margin-right: 10px;
display: flex;
align-items: center;
}

/* Style des calendriers */
.calendar {
max-width: 250px; /* Limite la largeur des calendriers */
border: 1px solid #ddd; /* Ajoute une bordure légère */
border-radius: 8px; /* Coins arrondis */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ajoute une ombre légère */
overflow: hidden; /* Évite le dépassement des contenus */
}

/* Ajuste la taille des polices à l'intérieur des calendriers */
.flatpickr-calendar {
font-size: 14px;
}




.urgent-indicator {
display: inline-block;
width: 9px;
height: 9px;
border-radius: 50%;
border: 1px solid black; /* Bordure par défaut */
margin-right: 8px;
}

.urgent-indicator.urgent {
background-color: red;
}

.urgent-indicator.non-urgent {
background-color: white;
}

.urgent-label {
font-size: 14px;
vertical-align: middle;
}


/* Amélioration de la barre */
#filter-bar {
transition: all 0.3s ease; /* Ajoute une animation fluide */
border-top: 2px solid #ddd;
}

/* Espacement entre les icônes */
#filter-bar div {
padding: 0 10px;
}

/* Couleur au survol */
#filter-bar div:hover i {
color: #000; /* Change la couleur à noir */
}

.filter-icon {

top: 10px; /* Ajustez selon votre mise en page */
left: 10px; /* Ajustez selon votre mise en page */
z-index: 1100; /* Toujours au-dessus de la barre des filtres */
transition: transform 0.3s ease; /* Animation pour la rotation */
}

/* Rotation lors de l'activation */
.filter-icon.active {
transform: rotate(180deg); /* Tourne l'icône */
}

/* Barre des filtres */
#filter-bar {
transition: all 0.3s ease; /* Animation pour afficher ou masquer la barre */
}






/* Styles globaux */
body {
    font-family: Arial, sans-serif;
    background-color: #ffff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Header global avec largeur de 100% */
header {
    width: 100%;
    background-color:#808080;
    color: white;
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Contenu du header centré */
.header-content {
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Titre du header */
.header-content h1 {
    margin: 0;
    font-size: 1.5em;
}

/* Icônes dans le header */
.header-content nav a {
    color: white;
    font-size: 1.2em;
    margin-left: 15px;
    text-decoration: none;
}

/* Icône de notification rouge */
.notification-icon {
    color: red;
}

/* Formulaire de message (caché par défaut) */
.message-form {
    display: none;
    background: white;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    width: 400px;
}

.message-form h3 {
    margin-bottom: 10px;
}

.message-form label {
    display: block;
    margin: 5px 0;
}

.message-form input,
.message-form textarea,
.message-form select {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.message-form button {
    background: #0078D7;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}


/* Espacement pour éviter que le header couvre le contenu */
main {
    margin-top: 70px; /* Ajuste selon la hauteur du header */
    padding: 20px;
}



/* Conteneur des formulaires */
.form-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 20px;
}

/* Chaque formulaire individuel */
form {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    flex: 1;
}

/* Titres des formulaires */
form h2 {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 15px;
}

/* Champs de formulaire */
form input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Boutons des formulaires */
form button {
    width: 100%;
    padding: 10px;
    background-color: #0078D7;
    color: white;
    font-size: 1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background-color: #005EA6;
}

/* Liste des erreurs */
.errorlist {
    color: red;
    font-size: 0.9em;
    list-style-type: none;
    padding: 0;
}


/* Responsivité pour les écrans plus petits */
@media (max-width: 768px) {
    .form-container {
        flex-direction: column;
        gap: 10px;
    }

    form {
        width: 90%;
    }
}



/* Lien discret sous les formulaires */
.small-link {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9em;
}

.small-link a {
    color: #0078D7;
    text-decoration: none;
}

.small-link a:hover {
    text-decoration: underline;
}


.message-form {
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.message-form h3 {
    margin-bottom: 10px;
}

.message-form label {
    display: block;
    margin-top: 10px;
}

.message-form input,
.message-form textarea,
.message-form select {
    width: 100%;
    margin-top: 5px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.message-form button {
    margin-top: 15px;
    background-color: #0078D7;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

/* Wrapper pour l'icône de notification */
.notification-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 15px;
}

/* Icône de cloche */
.notification-icon {
    color: #333;
    font-size: 1.5em;
    position: relative;
}

/* Badge de notification */
.notification-count {
    position: absolute;
    top: -8px; /* Ajuste la position verticale */
    right: -10px; /* Ajuste la position horizontale */
    background-color: red;
    color: white;
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 6px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 🟢 Notifications - Style Gmail amélioré */


/* ==============================
   🟢 Notifications Gmail-Like
================================= */
.notifications-container {
    
    margin: 30px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    width: 1200px;
}

.notifications-header {
    background: #1a73e8;
    color: white;
    padding: 15px 20px;
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
}

.notifications-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notifications-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    background: #fff;
    transition: background 0.3s ease-in-out;
}

.notifications-list li:hover {
    background: #f7fafd;
}

.notification-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #1a73e8;
}

.notification-details {
    flex-grow: 1;
}

.notification-details strong {
    font-size: 1rem;
    color: #333;
}

.notification-details p {
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0;
}

.notification-status i {
    font-size: 1.2rem;
    margin-right: 10px;
}

.notification-status.unread {
    color: #e53935; /* Rouge pour non lu */
}

.notification-status.read {
    color: #43a047; /* Vert pour lu */
}

.notification-actions {
    display: flex;
    gap: 10px;
}

.notification-actions a {
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 5px;
    color: white;
}

.notification-actions .btn-reply {
    background: #4caf50;
}

.notification-actions .btn-delete {
    background: #f44336;
}

.notification-actions .btn-reply:hover {
    background: #388e3c;
}

.notification-actions .btn-delete:hover {
    background: #d32f2f;
}

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

.notification-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.notification-actions {
    margin-top: 10px;
}

.notification-actions .btn-view,
.notification-actions .btn-delete,
.notification-actions .btn-mark-read {
    margin-right: 10px;
    cursor: pointer;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
}

.message-details {
    margin-top: 10px;
    padding: 10px;
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    border-radius: 5px;
}

.text-success {
    color: green;
}

.text-danger {
    color: red;
}

/* ======= PAGE VOIR MESSAGE ======= */

.message-details-container {
    margin: 50px auto;
    max-width: 700px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

.message-details-container h2 {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.message-meta {
    margin-bottom: 20px;
    font-size: 0.95em;
    color: #666;
}

.message-meta p {
    margin: 5px 0;
}

.message-content {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    line-height: 1.6;
    color: #444;
}

.message-actions {
    margin-top: 30px;
    text-align: center;
}

.message-actions .btn-reply,
.message-actions .btn-back {
    display: inline-block;
    margin: 5px;
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn-reply {
    background-color: #4CAF50;
    color: #fff;
}

.btn-reply:hover {
    background-color: #388E3C;
}

.btn-back {
    background-color: #2196F3;
    color: #fff;
}

.btn-back:hover {
    background-color: #1976D2;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .message-details-container {
        padding: 15px;
    }

    .message-details-container h2 {
        font-size: 1.5em;
    }

    .message-meta {
        font-size: 0.85em;
    }

    .message-actions .btn-reply,
    .message-actions .btn-back {
        font-size: 0.85em;
        padding: 6px 12px;
    }
}


.popup-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fefefe;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    animation: fadeIn 0.5s ease-in-out;
}

.popup-content h3 {
    margin: 0 0 10px;
    font-size: 1.2em;
}

.popup-content p {
    margin: 5px 0;
}

.popup-content button {
    margin-top: 10px;
    padding: 5px 10px;
    background: #4d564a;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.popup-content button:hover {
    background: #0056b3;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Pop-up de Notification */
.notification-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px;
    width: 300px;
    z-index: 9999;
    display: none;
}

.notification-popup .notification-content {
    font-family: Arial, sans-serif;
    color: #333;
}

.notification-popup button {
    margin-top: 10px;
    background: #0078D7;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.notification-popup button:hover {
    background: #005ea6;
}

/* 🟢 DESIGN MODERNE POUR DRAG ZONE */
.drag-zone {
    border: 3px dashed #4A90E2;
    border-radius: 12px;
    background-color: #f9fafc;
    padding: 50px;
    text-align: center;
    max-width: 600px;
    margin: 30px auto;
    transition: background-color 0.3s, border-color 0.3s;
}

.drag-zone.drag-over {
    background-color: #e3f2fd;
    border-color: #1976D2;
}

.drag-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.drag-icon {
    font-size: 50px;
    color: #4A90E2;
    margin-bottom: 15px;
}

.drag-zone p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.drag-text {
    font-size: 16px;
    color: #888;
    margin: 10px 0;
}

#browse-btn {
    background-color: #4A90E2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#browse-btn:hover {
    background-color: #1976D2;
}

#file-name {
    margin-top: 15px;
    font-size: 14px;
    color: #333;
    text-align: center;
}

.form-buttons {
    text-align: center;
    margin-top: 20px;
}

.form-buttons button {
    background-color: #1976D2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-buttons button:hover {
    background-color: #004ba0;
}


/* 🟢 MODALE STYLE */
.popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
   
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.popup-header h2 {
    font-size: 18px;
    margin: 0;
}

.close-btn {
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

.thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.thumbnail-container img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: transform 0.3s;
}

.thumbnail-container img:hover {
    transform: scale(1.1);
}


/* 🟢 POP-UP PLEIN ÉCRAN */
.popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    width: 90%;
    height: 90%;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    overflow-y: auto;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.popup-header h2 {
    font-size: 20px;
    color:#ffff;
    margin: 0;
}

.close-btn {
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

/* 🟢 THUMBNAILS */
.thumbnail-container {
    
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
     
}

.thumbnail-container img {
    
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: transform 0.3s;
}

.thumbnail-container img:hover {
    transform: scale(1.1);
}

/* 🟢 IMAGE EN PLEIN ÉCRAN */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.fullscreen-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}





.popup-footer {
    
    padding: 15px;
    height: 6px;
    background: #4d564a;
    text-align: right;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#save-photos-btn {
    background: #00ff00;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    width: 9%;
    margin-top: 5rem; 
    
}



.clearer-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.clearer-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid black; /* Bordure par défaut */
}

.status-green {
    background-color: green;
}

.status-red {
    background-color: red;
}

.status-white {
    background-color: white;
}

.clearer-status {
    width: 8px;
    height: 8px;
    border: 1px solid black;
    border-radius: 50%;
    margin-right: 8px;
}

.red-status {
    background-color: red;
}

.green-status {
    background-color: green;
}

.white-status {
    background-color: white;
}


  /* 🟢 Style pour la Pop-up */
  .notification-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #fff;
    border: 1px solid #82887f;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 15px;
    width: 300px;
    z-index: 9999;
    display: none;
    font-family: Arial, sans-serif;
    color: #333;
}

.notification-popup .notification-content {
    font-size: 14px;
}

.notification-popup button {
    margin-top: 10px;
    background: #0078D7;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.notification-popup button:hover {
    background: #005ea6;
}

/* 🟢 DESIGN MODERNE POUR DRAG ZONE */
.drag-zone {
border: 3px dashed #cecece33;
border-radius: 12px;
background-color: #f9fafc;
padding: 50px;
text-align: center;
max-width: 200px;
margin: 30px auto;
transition: background-color 0.3s, border-color 0.3s;
}

.drag-zone.drag-over {
background-color: #e3f2fd;
border-color: #1976D2;
}

.drag-content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.drag-icon {
font-size: 50px;
color:#4d564a;
margin-bottom: 15px;
}

.drag-zone p {
margin: 5px 0;
font-size: 14px;
color: #555;
}

.drag-text {
font-size: 16px;
color: #888;
margin: 10px 0;
}

#browse-btn {
background-color:#808080;
color: white;
border: none;
padding: 10px 20px;
border-radius: 6px;
font-size: 14px;
cursor: pointer;
transition: background-color 0.3s;
}

#browse-btn:hover {
background-color: #1976D2;
}

#file-name {
margin-top: 15px;
font-size: 14px;
color: #333;
text-align: center;
}

.form-buttons {
text-align: center;
margin-top: 20px;
}

.form-buttons button {
background-color: #1976D2;
color: white;
border: none;
padding: 10px 20px;
border-radius: 6px;
font-size: 14px;
cursor: pointer;
transition: background-color 0.3s;
}

.form-buttons button:hover {
background-color: #004ba0;
}



/* 🟢 Style du tableau : taille complète */
table {
    width: 100%; /* Largeur pleine */
    
    margin-top: 30px;
    border-collapse: collapse;
    background-color: white;
    border-radius: 10px;
    
}

th, td {
    padding: 20px;
    text-align: center;
    font-size: 12px;
}

th {
    background-color:#fff;
    color: white;
    font-size: 12px;
}

td {
    background-color: #ffff;
    color: #333;
}

td a {
    text-decoration: none;
    color: #0078D7;
    margin: 0 10px;
}

td a:hover {
    color: #005bb5;
}

/* 🟢 Style du tableau pour les rangées impaires */


/* 🟢 Effet sur la ligne au survol */
tr:hover {
    background-color: #d1e4f4;
}

/* 🟢 Style du formulaire de message */
.message-form {
    display: none;
    background-color: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.form-buttons button {
    background-color: #4A90E2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.form-buttons button:hover {
    background-color: #1976D2;
}

.form-buttons button.btn-close {
    background-color: #82887f;
    margin-left: 10px;
}

.form-buttons button.btn-close:hover {
    background-color: #999;
}
table {
width: 100%;
border-collapse: collapse; /* Supprime les espaces entre les cellules */
}

table thead th {
color: black;
padding: 10px;
text-align: center;
border-top: 1px solid #000;
}

table tbody tr td {
border-bottom: 1px solid #ddd; /* Ajoute la ligne de séparation */
padding: 10px;
}

table tbody tr:last-child td {
border-bottom: none; /* Pas de bordure pour la dernière ligne */
}

/* Conteneur principal */
/* Cacher la pop-up par défaut */
#popup-modal,#popup-modal-edit {
display: none; /* Cachée par défaut */
position: fixed;
top: 0;
left: 20px;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
justify-content: center;
align-items: center;
z-index: 1000;
}


.popup-content {
background:#326784;


max-height: 90%;
display: flex;
flex-direction: column;
border-radius: 8px;

box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Header */
.popup-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
background-color:#326784;
border-bottom: 1px solid #fff;
color:#fff;
}



/* Conteneur en colonnes */
.columns-container {
display: flex;
flex-wrap: wrap; /* Permet de créer une nouvelle ligne si le nombre de colonnes dépasse 10 */
gap: 3.px; /* Espacement entre les colonnes */
padding: 20px;
justify-content: flex-start; /* Aligne les colonnes au début */
color:#fff;

}

/* Colonne générique */
.column {
overflow-x: hidden;
width: 10%; /* Chaque colonne occupe exactement 10% de la largeur */
display: flex;
flex-direction: column;
gap: 10px;

border: 1px solid #ddd;


box-sizing: border-box; /* Inclut les bordures et le padding dans la largeur */

overflow-y: auto; /* Scroll activé si le contenu dépasse la hauteur */
}

/* Titres des colonnes */
.column h3 {
font-size: 12px;
text-align: center;
margin-bottom: 10px;
color: #333;
font-weight: bold;
}

/* Miniatures des photos */
.thumbnail-container img {
width: 100%; /* Largeur adaptée à la colonne */


cursor: pointer;
transition: transform 0.3s;
}

.thumbnail-container img:hover {
transform: scale(1.1); /* Zoom au survol */
}


/* Champ input */
input {
padding: 4px;
border: 1px solid #82887f;
border-radius: 24px;
font-size: 10px;
width: 60%;
margin-top: 0;

}
label {
font-size: 9px;
}
/* Footer */
.popup-footer {
display: flex;

padding: 15px 20px;


gap: 10px;
}

.popup-footer button {
padding: 10px 20px;
border: none;
border-radius: 5px;
background-color: #007bff;
color: #fff;
cursor: pointer;
font-size: 14px;
}

.popup-footer button:hover {
background-color: #0056b3;
}

.column.decor-column{
width: 20%;
background-color: #6f94a8;
}

#decor-select {
overflow-y: auto;
max-height: 200px; /* Fixe une hauteur maximale */
border: none;
outline: none;
}

.thumbnail-item{
display: flex;
align-items: center;
flex-wrap: wrap;
justify-content: center;
}
.column.sequence-column {
width: 8%;

border: none;
}

span {
font-size: 9px;
}

i {
font-size: 10px;
}

.space {
height: 7px;
}

i.fas.fa-envelope {
font-size: 30px;
}

#source-tags div {
padding: 5px 10px;
border: 1px solid rgb(76, 175, 80);
border-radius: 5px;
background-color: rgb(234, 255, 234);
color: rgb(76, 175, 80);
margin-right: 10px;
display: flex;
align-items: center;
}

/* Style des calendriers */
.calendar {
max-width: 250px; /* Limite la largeur des calendriers */
border: 1px solid #ddd; /* Ajoute une bordure légère */
border-radius: 8px; /* Coins arrondis */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Ajoute une ombre légère */
overflow: hidden; /* Évite le dépassement des contenus */
}

/* Ajuste la taille des polices à l'intérieur des calendriers */
.flatpickr-calendar {
font-size: 14px;
}




.urgent-indicator {
display: inline-block;
width: 9px;
height: 9px;
border-radius: 50%;
border: 1px solid black; /* Bordure par défaut */
margin-right: 8px;
}

.urgent-indicator.urgent {
background-color: red;
}

.urgent-indicator.non-urgent {
background-color: white;
}

.urgent-label {
font-size: 14px;
vertical-align: middle;
}


/* Amélioration de la barre */
#filter-bar {
transition: all 0.3s ease; /* Ajoute une animation fluide */
border-top: 2px solid #ddd;
}

/* Espacement entre les icônes */
#filter-bar div {
padding: 0 10px;
}

/* Couleur au survol */
#filter-bar div:hover i {
color: #000; /* Change la couleur à noir */
}

.filter-icon {

top: 10px; /* Ajustez selon votre mise en page */
left: 10px; /* Ajustez selon votre mise en page */
z-index: 1100; /* Toujours au-dessus de la barre des filtres */
transition: transform 0.3s ease; /* Animation pour la rotation */
}

/* Rotation lors de l'activation */
.filter-icon.active {
transform: rotate(180deg); /* Tourne l'icône */
}

/* Barre des filtres */
#filter-bar {
transition: all 0.3s ease; /* Animation pour afficher ou masquer la barre */
}

/* Appliquer une couleur de fond à une colonne sur deux */
table tbody tr td:nth-child(odd),
table thead tr th:nth-child(odd) {
background-color: #fff;
}

table tbody tr td:nth-child(even),
table thead tr th:nth-child(even) {
background-color:#cecece33;
}

/* Pour assurer une bonne lisibilité */
table tbody tr td {
color: black;
padding: 8px;
text-align: center;
}
  /* Style pour le conteneur du filtre */
  #date-filter-container {
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Transition douce pour la rotation */
.chevron-icon {
    transition: transform 0.3s ease;
}


 /* Conteneur du filtre */
 #date-filter-container {
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Chevron */
.chevron-icon {
    transition: transform 0.3s ease;
}

/* Style des boutons */
button {
    font-size: 12px;
}

#sequence-filter-container input {
width: 150px;
text-align: center;
}
#sequence-filter-container button {
margin: 0 10px;
}

   /* Transition fluide pour le chevron */
   #chevron {
    transition: transform 0.3s ease; /* Animation fluide pour la rotation */
  }
  
  /* Rotation du chevron */
  #chevron.rotated {
    transform: rotate(180deg); /* Rotation de 180 degrés */
  }
  
  /* Apparence de la fenêtre blanche */
  #filter-container-source {
    width: 100px; /* Largeur de la fenêtre */
    height: auto; /* S'adapte au contenu */
    background: white; /* Fond blanc */
    border: 1px solid #82887f; /* Bordure grise */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre pour un meilleur contraste */
    border-radius: 5px; /* Coins arrondis */
    z-index: 99999; /* Priorité maximale pour être au-dessus des autres éléments */
  }
  
  #filter-container-source div {
    display: flex;
    align-items: center;
    width: 10%;
  }
  
  #filter-container-source input[type="radio"] {
    margin-right: 8px;
  }
  
  .green-status {
      width: 8px;
      height: 8px;
      border: 1px solid black;
      border-radius: 50%;
      margin-right: 8px;
      background-color: green;
  }
  
  .red-status {
      width: 8px;
      height: 8px;
      border: 1px solid black;
      border-radius: 50%;
      margin-right: 8px;
      background-color: red;
  }
  
  .white-status {
      width: 8px;
      height: 8px;
      border: 1px solid black;
      border-radius: 50%;
      margin-right: 8px;
      background-color: white;
  }

  #filter-container-deco {
    cursor: grab;
}

#filter-container-deco:active {
    cursor: grabbing;
}


/* Bande noire */
#date-filter-container {
    display: none;
    background-color:#808080;
    color: white;
    height: 80px;
}

/* Centrage des calendriers */
#calendars-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
    background-color:#808080;
}

/* Ajustement du padding pour un affichage compact */
#calendars-container div {
    padding: 5px;
}
#calendars-container div {
padding: 0px;
}

.flatpickr-day {
background: none;
border: 1px solid transparent;
border-radius: 150px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
color: black;
font-weight: 900 !important;
cursor: pointer;
font-weight: 400;
font-size: 12px;
width: 14.2857143%;
-webkit-flex-basis: 14.2857143%;
-ms-flex-preferred-size: 14.2857143%;
flex-basis: 14.2857143%;
max-width: 39px;
height: 39px;
line-height: 39px;
margin: 0;
display: inline-block;
position: relative;
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
text-align: center;
}

label {
width: 10px;
}

   /* Style pour réduire les calendriers */
   .flatpickr-calendar {
    transform: scale(0.5); /* Réduction de taille */
    transform-origin: center;
    background-color: white;
    border: none;
}

    /* Container de la colonne des pastilles */


/* Icône de la pastille */
.clearer-status {
    width: 8px;
    height: 8px;
    border: 1px solid black; /* Bordure noire */
    border-radius: 50%; /* Cercle parfait */
    margin-right: 8px; /* Espace entre la pastille et le texte */
}

/* Couleurs des pastilles */
.text-success {
    color: green; /* Vert pour les statuts validés */
}

.text-danger {
    color: red; /* Rouge pour les statuts refusés */
}

.text-secondary {
    color: gray; /* Gris pour les statuts indéterminés ou par défaut */
}

    button#add-photo-btn {
    background: transparent;
    border: 1px solid;
    padding: 2.1rem;
    width: 8rem;
    margin-left: -20px;
}

div#clearer-container {
    margin-left: 10px;
}

div#sequence-container {
    margin-left: 12px;
} 


  /* Appliquer une couleur de fond à une colonne sur deux */
  table tbody tr td:nth-child(odd),
  table thead tr th:nth-child(odd) {
      background-color: #fff;
  }

  table tbody tr td:nth-child(even),
  table thead tr th:nth-child(even) {
      background-color:#cecece33;
  }

  /* Pour assurer une bonne lisibilité */
  table tbody tr td {
      color: black;
      padding: 8px;
      text-align: center;
  }


  
    /* Transition fluide pour le chevron */
#chevron {
  transition: transform 0.3s ease!important; /* Animation fluide pour la rotation */
}

/* Rotation du chevron */
#chevron.rotated {
  transform: rotate(180deg)!important; /* Rotation de 180 degrés */
}

/* Apparence de la fenêtre blanche */
#filter-container-source {
  width: 100px; /* Largeur de la fenêtre */
  height: auto; /* S'adapte au contenu */
  background: white; /* Fond blanc */
  border: 1px solid #82887f; /* Bordure grise */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre pour un meilleur contraste */
  border-radius: 5px; /* Coins arrondis */
  z-index: 99999; /* Priorité maximale pour être au-dessus des autres éléments */
}

#filter-container-source div {
  display: flex;
  align-items: center;
  width: 10%;
}

#filter-container-source input[type="radio"] {
  margin-right: 8px;
}



    #filter-container-deco {
        cursor: grab;
    }

    #filter-container-deco:active {
        cursor: grabbing;
    }

    button#add-photo-btn {
        background: transparent;
        border: 1px solid;
        padding: 2.1rem;
        width: 8rem;
        margin-left: -20px;
    }
    
    div#clearer-container {
        margin-left: 10px;
    }
    
    div#sequence-container {
        margin-left: 12px;
    }

        /* Style pour les cercles "Oui" et "Non" */
        .clearer-circle {
            width: 20px;
            height: 20px;
            border: 2px solid black;
            border-radius: 50%;
            background-color: transparent;
            margin-right: 5px;
        }



       /* ✅ Centrer la modale au milieu de l'écran */
#modal-decor,#modal-cat,#modal-source,#modal-delete-decor,#popup-truncate,#popup-commentaire-truncate,#modal-category,#modal-delete-category,#modal-category-cat,#modal-delete-category-cat,#modal-delete-source-2,#modal-delete-source {
    display: none; /* Cachée par défaut */
    position: fixed; /* Position fixe pour rester visible */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centre parfaitement */
    width: 400px; /* Largeur de la modale */ 
    background: white;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    z-index: 1000; /* Assure que la modale est au premier plan */
}

/* ✅ Fond assombri derrière la modale */
#modal-decor-overlay {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5); /* Effet de flou derrière */
    z-index: 999;
}

.clearer-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 10px;
}

.clearer-row {
    display: flex
;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    width: 100%;
    margin-left: -1rem;
   
}

.clearer-name {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
   
}

.clearer-choices {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    justify-content: flex-end;
}

.choice-label {
    font-size: 8px;
    color: white;
}

.choice-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid white;
    display: inline-block;
    cursor: pointer;
}

.clearer-header {
    display: flex;
    justify-content: space-between; /* ✅ Aligne les colonnes proprement */
    font-size: 12px;
    color: white;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-left {
    text-align: left;
    flex: 1; /* ✅ Prend tout l'espace disponible à gauche */
}

.header-right {
    text-align: right;
    flex: 1; /* ✅ Prend tout l'espace à droite */
}

.clearer-content { 
    margin-top: 5px;
    font-size: 10px;
    color: white;
    padding-left: 10px;
}


.truncate-text {
    max-width: 150px; /* Ajuste selon la largeur souhaitée */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.image-container img {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.image-container img:active {
    transform: scale(3); /* Agrandit l'image */
    position: absolute;
    z-index: 9999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(3);
    box-shadow: 0px 0px 15px rgba(0,0,0,0.5);
    background: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
}

/* Style pour la modale d'affichage de l'image */
.fullscreen-image {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* L'image agrandie */
.fullscreen-image img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

/* Zone cliquable pour fermer */
.fullscreen-image .close-area {
    position: absolute;
    width: 100%;
    height: 100%;
}


/* Texte tronqué */
.truncate-text {
    display: inline-block;
    max-width: 150px; /* Ajuste selon ton besoin */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    cursor: pointer;
}



tr {
    border: 1px solid #dddddd;
}


tr:hover {
    background: none !important; /* Désactive tout effet de hover */
    cursor: default !important;  /* Remet le curseur normal */
}







