@CHARSET "UTF8";
body, html {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.header_TH-bar {
    /*position: fixed;*/
    width: 100%; /* Pleine largeur */
    height: 1cm; /* Hauteur de la barre */
    background-color: #00390C; /* Couleur de fond */
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
	/* margin-top: -20px;*/
}

.header_TH-bar a {
    color: white; /* Couleur des liens */
    text-decoration: none; /* Pas de soulignement */
    font-size: 1em;
    margin: 0 10px; /* Espacement entre les liens */
}

.header_TH-bar a:not(:last-child):after {
    content: "|"; /* Séparateur */
    margin-left: 20px; /* Espace avant le séparateur, correspond à l'espace de gauche */
    margin-right: 0px; /* Espace après le séparateur, maintenant égal à l'espace de gauche */
    color: white; /* Couleur du séparateur */
}

.header_TH-bar + h1 {
    padding-top: 1cm; /* Hauteur de votre header fixe */
}

.content-wrapper {
    text-align: center; /* Centrer le contenu horizontalement */
}

.info-icon-container {
    display: inline-block; /* Pour permettre le centrage via text-align sur le parent */
    position: relative; /* Nécessaire pour le positionnement de l'info-bulle */
    cursor: pointer;
}

.icon-info {
    font-size: 20px; /* Ajustez la taille de l'icône */
    color: #000; /* Couleur de l'icône */
}

.info-tooltip {
    display: none; /* Caché par défaut */
    position: absolute;
    left: 100%;
    transform: translateX(10px) translateY(10px); /* Ajustement pour positionner sous l'icône */
    background-color: black;
    color: black;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    z-index: 100;
    white-space: nowrap;
    text-align: left; /* Aligner le texte à gauche */
    font-family: Verdana, sans-serif; /* Définir la police à Verdana */
    font-size: 12px; /* Taille de la police à 10px */
}

.info-icon-container:hover .info-tooltip {
    display: block; /* Affiché au survol */
}

.info-resultMessage {
    color: #1976d2;
    padding: 10px;
    border: 1px solid #1976d2;
    background-color: #e3f2fd;
    border-radius: 5px;
    margin: 10px 0;
}

#resultMessage ul {
    list-style: none;
    padding: 0;
}

#resultMessage li {
    margin: 5px 0;
    padding: 5px 10px;
    border-radius: 3px;
}

.footer_TH-bar {
    position: fixed;
    width: 100%; /* Pleine largeur */
    height: 1cm; /* Hauteur de la barre */
    background-color: #00390C; /* Couleur de fond */
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    bottom: 0; /* Alignement en bas */
    text-align: center; /* Centre le texte */
}

.footer_TH-bar p {
    color: white; /* Couleur du texte */
    font-size: 1em; /* Taille du texte */
    margin: 0; /* Supprime les marges par défaut */
}

/* Ajoutez cette règle CSS pour une marge en bas de tableau */
.dataTable.no-footer.fixedHeader-floating {
    margin-bottom: 60px !important;
    margin-top: 20px !important; 
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 0px solid #ddd;
}

th, td {

    padding: 8px;
}

th {
    background-color: #f2f2f2;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

.selectors select {
    padding: 5px;
    margin: 10px;
}

.msg_select {
    text-align: center !important;
    font-size: 20px !important;       /* Taille de la police */
    font-family: Verdana, Arial, sans-serif !important; /* Police à utiliser */
    color: red; /* Texte en rouge */
    font-weight: bold; /* Police en gras */
    /* Vous pouvez également spécifier une police spécifique ici si vous le souhaitez */
}

.red-row td {
    background-color: red !important;
    text-align: center;
    font-size: 10px;       /* Taille de la police */
    font-style: normal;    /* Style de la police (normal, italic, etc.) */
    font-family: Verdana, Arial, sans-serif; /* Police à utiliser */
    color: white;
}

.violet-row td {
    background-color: #FF33F6 !important;
    text-align: center;
    font-size: 10px;       /* Taille de la police */
    font-style: normal;    /* Style de la police (normal, italic, etc.) */
    font-family: Verdana, Arial, sans-serif; /* Police à utiliser */
    color: white;
}

.violet_clair-row td {
    background-color: #FFC0E9 !important;
    text-align: center;
    font-size: 10px;       /* Taille de la police */
    font-style: normal;    /* Style de la police (normal, italic, etc.) */
    font-family: Verdana, Arial, sans-serif; /* Police à utiliser */
    color: white;
}

.orange-row td {
    background-color: orange !important;
    text-align: center;
    font-size: 10px;       /* Taille de la police */
    font-style: normal;    /* Style de la police (normal, italic, etc.) */
    font-family: Verdana, Arial, sans-serif; /* Police à utiliser */
    color: white;
}
.yellow-row td {
    background-color: yellow !important;
}

#facturesTable td {
    text-align: center;
    font-size: 10px;       /* Taille de la police */
    font-style: normal;    /* Style de la police (normal, italic, etc.) */
    font-family: Verdana, Arial, sans-serif; /* Police à utiliser */
}

#facturesTable tr.odd {
    background-color: #d0f0c0; /* Couleur pour les lignes impaires */
}

#facturesTable tr.even {
    background-color: #ffffff; /* Couleur pour les lignes paires */
}

#facturesTable {
    width: 1400px !important; 
    margin-left: auto;
    margin-right: auto;
	margin-top: 20px !important; 
	margin-bottom: 20px !important; 
}

#facturesTable_wrapper {
    width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

#facturesTable th.status-column {
    width: 80px; 
}

#facturesTable th.emetteur-column {
    width: 100px; 
}

#facturesTable {
    border-collapse: separate; /* Gère les bordures arrondies */
    border-spacing: 5px 0; /* Ajoute un espacement horizontal entre les cellules, aucun espacement vertical */
    width: 100%; /* Ajustez si nécessaire */
}

#facturesTable th {
    background-color: #4CAF50; /* Couleur de fond pour les en-têtes */
    color: white; /* Couleur de texte pour les en-têtes */
    padding: 5px; /* Réduit l'espacement interne pour diminuer la hauteur des en-têtes */
    border-radius: 5px; /* Angles arrondis pour les en-têtes */
    cursor: pointer; /* Style du curseur pour indiquer que les en-têtes sont cliquables */
    border: none; /* Supprime les bordures des en-têtes */
}

#facturesTable td {
    border: 1px solid #ddd; /* Restaure les bordures uniquement pour les cellules de données */
    padding: 8px; /* Ajustez le padding selon vos préférences */
    text-align: center; /* Centrage du texte dans les cellules */
}

#relancesTable td {
    text-align: center;
    font-size: 10px;       /* Taille de la police */
    font-style: normal;    /* Style de la police (normal, italic, etc.) */
    font-family: Verdana, Arial, sans-serif; /* Police à utiliser */
}

#relancesTable tr.odd {
    background-color: #d0f0c0; /* Couleur pour les lignes impaires */
}

#relancesTable tr.even {
    background-color: #ffffff; /* Couleur pour les lignes paires */
}

#relancesTable {
    width: 1400px !important; 
    margin-left: auto;
    margin-right: auto;
	margin-top: 20px !important; 
	margin-bottom: 20px !important; 
}

#relancesTable_wrapper {
    width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

#relancesTable th.status-column {
    width: 80px; 
}

#relancesTable th.emetteur-column {
    width: 100px; 
}

#relancesTable th.relance-index-column {
    width: 80px; 
}

#relancesTable {
    border-collapse: separate; /* Gère les bordures arrondies */
    border-spacing: 5px 0; /* Ajoute un espacement horizontal entre les cellules, aucun espacement vertical */
    width: 100%; /* Ajustez si nécessaire */
}

#relancesTable th {
    background-color: #4CAF50; /* Couleur de fond pour les en-têtes */
    color: white; /* Couleur de texte pour les en-têtes */
    padding: 5px; /* Réduit l'espacement interne pour diminuer la hauteur des en-têtes */
    border-radius: 5px; /* Angles arrondis pour les en-têtes */
    cursor: pointer; /* Style du curseur pour indiquer que les en-têtes sont cliquables */
    border: none; /* Supprime les bordures des en-têtes */
}

#relancesTable td {
    border: 1px solid #ddd; /* Restaure les bordures uniquement pour les cellules de données */
    padding: 8px; /* Ajustez le padding selon vos préférences */
    text-align: center; /* Centrage du texte dans les cellules */
}

table.dataTable.no-footer {
    border-bottom: none !important; /* Supprime la bordure inférieure */
}

.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length {
    margin-bottom: 20px; /* Ajustez cette valeur selon vos besoins */
}

/* Styles spécifiques pour le tableau delais relance*/
#delaisTable {
    width: 1400px !important; 
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px !important; 
    margin-bottom: 20px !important;
    border-collapse: separate;
    border-spacing: 5px 5px;
}

#delaisTable_wrapper {
    width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

#delaisTable th {
    background-color: #4CAF50;
    color: white;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
}

#delaisTable td {
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
}

#delaisTable tr.odd {
    background-color: #d0f0c0;
}

#delaisTable tr.even {
    background-color: #ffffff;
}

table.dataTable.no-footer {
    border-bottom: none !important; /* Supprime la bordure inférieure */
}

/* Style pour les boutons dans le tableau */
#delaisTable button {
    margin: 0 5px;
    padding: 5px 10px;
    border-radius: 3px;
    border: 1px solid #ddd;
    background-color: #f8f9fa;
    cursor: pointer;
}

#delaisTable button:hover {
    background-color: #e9ecef;
}

#exclusionsTable {
    width: 1400px !important; 
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px !important; 
    margin-bottom: 20px !important;
    border-collapse: separate;
    border-spacing: 5px 5px;
}

#exclusionsTable_wrapper {
    width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

#exclusionsTable th {
    background-color: #4CAF50;
    color: white;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
}

#exclusionsTable td {
    border: 1px solid #ddd;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
}

#exclusionsTable tr.odd {
    background-color: #d0f0c0;
}

#exclusionsTable tr.even {
    background-color: #ffffff;
}

/* Style pour les boutons avec icônes */
.icon-button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    margin: 0 3px;
}

.action-icon {
    cursor: pointer;
    margin: 0 3px;
    width: 16px;
    height: 16px;
}

.action-icon:hover {
    opacity: 0.7;
}

/* Modale */
.modal {
    position: fixed; /* Positionnement fixe par rapport à la fenêtre */
    z-index: 1; /* Au-dessus des autres éléments */
    left: 0;
    top: 0;
    width: 100%; /* Pleine largeur */
    height: 100%; /* Pleine hauteur */
    overflow: auto; /* Permettre le défilement si nécessaire */
    background-color: rgba(0,0,0,0.4); /* Fond semi-transparent */
    display: none; /* Caché par défaut */
}

.modal-content {
    position: relative; /* Positionnement relatif */
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #ddd;
    width: 60%;
    height: 300px; /* Hauteur fixe */
    overflow-y: auto; /* Défilement interne */
    border-radius: 10px;
    font-family: 'Verdana', sans-serif;
    font-size: 10px;
}

.modal-content-exclusions {
    position: relative;
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #ddd;
    width: 300px; /* Réduit de 60% à une largeur fixe */
    height: auto; /* Hauteur automatique au lieu de 300px */
    min-height: 150px; /* Hauteur minimum */
    overflow-y: auto;
    border-radius: 10px;
    font-family: 'Verdana', sans-serif;
    font-size: 10px;
}

.close-button {
    position: absolute; /* Changez fixed par absolute */
    top: 10px;
    right: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: black;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.btne {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 4px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    margin-right: 5px;
    background: #e0e0e0;
    color: #333;
    transition: background 0.2s, color 0.2s;
}
.btne:hover {
    background: #bcbcbc;
}
/* Bouton supprimer en rouge */
.btne-supprimer {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 4px;
    border: none !important;	
    font-size: 15px;
    cursor: pointer;
    margin-right: 5px;
    background: #c9302c !important;
    color: #fff !important;
    transition: background 0.2s, color 0.2s;
    background: #c9302c !important;
}
.btne-supprimer:hover {
    background: #a6201a !important;
}

.custom-download-btn {
    background-color: #007bff; /* Bleu */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s; /* Transition douce pour le survol */
}

.custom-relancer-btn {
    background-color: #1b571a; /* Vert */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s; /* Transition douce pour le survol */
    display: inline-block;
    margin-left: 10px;
}

.custom-relancer-btn:hover {
    background-color: #43c741; /* Vert plus foncé au survol */
}

.custom-download-btn:hover {
    background-color: #0056b3; /* Bleu plus foncé au survol */
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

#message {
    position: fixed;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 9999;
    font-weight: bold;
    display: none;
}

.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* ============================================================
   STYLE DATATABLES - Design moderne avec colonnes séparées
   ============================================================ */

/* Structure générale du tableau */
table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0 5px !important;
    width: 100% !important;
    margin: 15px 0 !important;
    background-color: transparent !important;
}

/* En-têtes de colonnes - tous les angles arrondis + bordure transparente pour espacement */
table.dataTable thead th,
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc,
table.dataTable thead th.sorting_asc_disabled,
table.dataTable thead th.sorting_desc_disabled {
    background: #4a6fa5 !important;
    background-color: #4a6fa5 !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 10px 15px !important;
    border-radius: 6px !important;
    border: 2px solid transparent !important;
    border-top: none !important;
    border-bottom: none !important;
    text-align: center !important;
    position: relative;
    white-space: nowrap;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    vertical-align: middle;
    background-clip: padding-box !important;
}

table.dataTable thead th:hover,
table.dataTable thead th.sorting:hover,
table.dataTable thead th.sorting_asc:hover,
table.dataTable thead th.sorting_desc:hover {
    background: #5a7fb5 !important;
    background-color: #5a7fb5 !important;
}

/* Icônes de tri avec Font Awesome - centrées verticalement */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
    cursor: pointer;
    padding-right: 25px !important;
}

table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::after {
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
    font-size: 10px;
    color: white;
    line-height: 1;
    height: auto;
}

table.dataTable thead .sorting::after {
    content: '\f0dc';
    opacity: 0.5;
}

table.dataTable thead .sorting_asc::after {
    content: '\f0de';
    opacity: 1;
}

table.dataTable thead .sorting_desc::after {
    content: '\f0dd';
    opacity: 1;
}

/* Lignes du tableau - pas de background sur TR pour voir les gaps */
table.dataTable tbody tr {
    background-color: transparent !important;
}

/* Cellules du corps - bordure transparente pour espacement entre colonnes */
table.dataTable tbody td {
    padding: 8px 12px !important;
    border: 4px solid transparent !important;
    border-top: none !important;
    border-bottom: none !important;
    vertical-align: middle !important;
    font-size: 13px;
    color: #333;
    transition: background-color 0.2s ease;
    border-radius: 4px !important;
    background-clip: padding-box !important;
}

/* Lignes impaires - couleur sur les cellules */
table.dataTable tbody tr.odd td,
table.dataTable tbody tr:nth-child(odd) td {
    background-color: #e8f4fc !important;
}

/* Lignes paires - couleur sur les cellules */
table.dataTable tbody tr.even td,
table.dataTable tbody tr:nth-child(even) td {
    background-color: #f3faff !important;
}

/* Hover - couleur sur les cellules */
table.dataTable tbody tr:hover td {
    background-color: #d4e9f7 !important;
}

/* Supprimer bordure inférieure */
table.dataTable.no-footer {
    border-bottom: none !important;
}

/* Style du wrapper DataTables */
.dataTables_wrapper {
    padding: 15px 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_length select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0 5px;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-left: 5px;
    width: 200px;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #4a6fa5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.15);
}

/* Info et pagination */
.dataTables_wrapper .dataTables_info {
    color: #4a6fa5;
    font-size: 13px;
    padding-top: 10px;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 6px 12px !important;
    margin: 0 2px !important;
    border-radius: 4px !important;
    border: 1px solid #ddd !important;
    background: white !important;
    color: #333 !important;
    font-size: 13px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #4a6fa5 !important;
    color: white !important;
    border-color: #4a6fa5 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #4a6fa5 !important;
    color: white !important;
    border-color: #4a6fa5 !important;
    font-weight: bold;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #999 !important;
    background: #f5f5f5 !important;
    cursor: not-allowed;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: #f5f5f5 !important;
    color: #999 !important;
    border-color: #ddd !important;
}

/* ============================================================
   STYLES POUR LE SELECTEUR DE SOURCES DE TABLES
   ============================================================ */

.field-values-container {
    min-width: 280px;
}

.source-options-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin: 5px 0;
}

.source-options-container input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #4a6fa5;
}

.source-options-container label {
    font-size: 12px;
    color: #495057;
    cursor: pointer;
    transition: color 0.2s;
}

.source-options-container label:hover {
    color: #4a6fa5;
}

.source-options-container label i {
    margin-right: 4px;
    color: #6c757d;
}

.manual-values-div,
.table-source-div {
    margin-top: 5px;
}

.manual-values-div input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.manual-values-div input:focus {
    border-color: #4a6fa5;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.15);
    outline: none;
}

.select_table_source {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 13px;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.select_table_source:focus {
    border-color: #4a6fa5;
    outline: none;
}

.select_table_source option {
    padding: 8px;
}

.table-source-div a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #4a6fa5;
    text-decoration: none;
    margin-top: 6px;
    padding: 4px 8px;
    background: rgba(74, 111, 165, 0.1);
    border-radius: 4px;
    transition: all 0.2s;
}

.table-source-div a:hover {
    background: rgba(74, 111, 165, 0.2);
    color: #3d5a80;
}