/* Variables pour le style de Select2 */
:root {
    --form-select-padding-y: .375rem;  /* Adjusted for Bootstrap 5.3.3 */
    --form-select-padding-x: 0.25rem;  /* Adjusted for Bootstrap 5.3.3 */
    --form-select-font-family: Arial, sans-serif; /* Remplacez par $input-font-family */
    --form-select-font-size: 0.9rem; /* Adjusted for Bootstrap 5.3.3 */
    --form-select-font-weight: 400; /* Remplacez par $input-font-weight */
    --form-select-line-height: 1.5; /* Adjusted line-height */
    --form-select-color: #0f1115;
    --form-select-bg: #ffffff;
    --form-select-disabled-bg: #f0f1f4;
    --form-select-border-color: #cdd6dc;
    --form-select-focus-border-color: #88b5f7;
    --form-select-border-width: 1px; /* Remplacez par $input-border-width */
    --form-select-border-radius: .25rem; /* Remplacez par $input-border-radius */
    --form-select-focus-width: .25rem;
    --form-select-box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
    --form-select-bg-position: right calc(var(--form-select-padding-x) + 2px) center; /* Slightly moved right */
    --form-select-bg-size: 16px 12px;
    --form-select-indicator-color: #333333;
    --form-select-indicator: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2331373d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    --form-select-transition: 0.15s ease-in-out;
}

.select2-container {
    width: 100% !important;  /* Ensure Select2 matches container width */
}

/* Style pour la sélection principale de Select2 */
.select2-container .select2-selection--single {
    height: auto !important;  /* Ensure dropdown adjusts with content */
    padding: 0.375rem 0.75rem; /* Match default Bootstrap 5 input padding */
    display: block;
    width: 100%;
    font-family: var(--form-select-font-family);
    font-size: var(--form-select-font-size);
    font-weight: var(--form-select-font-weight);
    line-height: var(--form-select-line-height);
    color: var(--form-select-color);
    background-color: var(--form-select-bg);
    background-image: var(--form-select-indicator);
    background-repeat: no-repeat;
    background-position: var(--form-select-bg-position);
    background-size: var(--form-select-bg-size);
    border: var(--form-select-border-width) solid var(--form-select-border-color);
    border-radius: var(--form-select-border-radius);
    transition: var(--form-select-transition);
    vertical-align: middle;  /* Ensures the text aligns vertically */
}

/* Ajuster la hauteur de Select2 pour correspondre à celle de Bootstrap 5.3.3 */
.select2-container .select2-selection--single {
    height: 2.25rem; /* Height from Bootstrap 5.3.3 */
    min-height: 2.25rem;
    line-height: 1.5; /* Adjusted to match the line height */
    padding-left: var(--form-select-padding-x);  /* Ensures padding inside the input box */
}

/* Ajuster le texte à l'intérieur de la zone de sélection */
.select2-container .select2-selection--single .select2-selection__rendered {
    display: flex;
    align-items: center;  /* Centers text vertically */
    justify-content: start; /* Ensures text aligns to the left */
    font-size: var(--form-select-font-size);
    line-height: var(--form-select-line-height);
    color: var(--form-select-color);
}

/* Ajustements des tailles de Select2 */
.select2-container .select2-selection--single.select2-selection--sm {
    padding-top: .25rem;
    padding-bottom: .25rem;
    padding-left: .75rem;
    font-size: .875rem;
    border-radius: .25rem;
}

.select2-container .select2-selection--single.select2-selection--lg {
    padding-top: .5rem;
    padding-bottom: .5rem;
    padding-left: 1.25rem;
    font-size: 1.125rem;
    border-radius: .375rem;
}

/* Focus z-index pour Select2 */
.select2-container .select2-selection--single:focus {
    z-index: 5;
}

/* Survol des éléments de la dropdown (hover effect) */
.select2-container .select2-results__option:hover {
    background-color: #1967d2;  /* Blue background on hover */
    color: #ffffff;  /* White text color on hover */
}

/* Option sélectionnée au survol */
.select2-container .select2-results__option[aria-selected='true'] {
    background-color: #1967d2;  /* Darker blue background for selected option */
    color: #ffffff;  /* White text color */
}
.select2-container .select2-results__options {
    max-height: 200px; /* Ajustez la hauteur selon votre besoin */
    overflow-y: auto;
}






/*debut animation appel d'urgence*/
@keyframes flash-background {
    0% {
        background-color: red;
    }

    50% {
        background-color: transparent;
    }

    100% {
        background-color: red;
    }
}

.sidebar-contact {
    animation: flash-background 1s infinite;
}
/*fin animation appel d'urgence*/

/*debut chargement donnees*/
/*#preloader_ch {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffff;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner_preloader_ch {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin_ch 1s linear infinite;
}

@keyframes spin_ch {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}*/

#preloader_ch {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner_preloader_ch {
  font-size: 7px;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  position: relative;
  text-indent: -9999em;
  animation: mulShdSpin 1.1s infinite ease;
  transform: translateZ(0);
}
@keyframes mulShdSpin {
  0%,
  100% {
    box-shadow: 0em -2.6em 0em 0em #ffffff, 1.8em -1.8em 0 0em rgba(255,255,255, 0.2), 2.5em 0em 0 0em rgba(255,255,255, 0.2), 1.75em 1.75em 0 0em rgba(255,255,255, 0.2), 0em 2.5em 0 0em rgba(255,255,255, 0.2), -1.8em 1.8em 0 0em rgba(255,255,255, 0.2), -2.6em 0em 0 0em rgba(255,255,255, 0.5), -1.8em -1.8em 0 0em rgba(255,255,255, 0.7);
  }
  12.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(255,255,255, 0.7), 1.8em -1.8em 0 0em #ffffff, 2.5em 0em 0 0em rgba(255,255,255, 0.2), 1.75em 1.75em 0 0em rgba(255,255,255, 0.2), 0em 2.5em 0 0em rgba(255,255,255, 0.2), -1.8em 1.8em 0 0em rgba(255,255,255, 0.2), -2.6em 0em 0 0em rgba(255,255,255, 0.2), -1.8em -1.8em 0 0em rgba(255,255,255, 0.5);
  }
  25% {
    box-shadow: 0em -2.6em 0em 0em rgba(255,255,255, 0.5), 1.8em -1.8em 0 0em rgba(255,255,255, 0.7), 2.5em 0em 0 0em #ffffff, 1.75em 1.75em 0 0em rgba(255,255,255, 0.2), 0em 2.5em 0 0em rgba(255,255,255, 0.2), -1.8em 1.8em 0 0em rgba(255,255,255, 0.2), -2.6em 0em 0 0em rgba(255,255,255, 0.2), -1.8em -1.8em 0 0em rgba(255,255,255, 0.2);
  }
  37.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(255,255,255, 0.2), 1.8em -1.8em 0 0em rgba(255,255,255, 0.5), 2.5em 0em 0 0em rgba(255,255,255, 0.7), 1.75em 1.75em 0 0em #ffffff, 0em 2.5em 0 0em rgba(255,255,255, 0.2), -1.8em 1.8em 0 0em rgba(255,255,255, 0.2), -2.6em 0em 0 0em rgba(255,255,255, 0.2), -1.8em -1.8em 0 0em rgba(255,255,255, 0.2);
  }
  50% {
    box-shadow: 0em -2.6em 0em 0em rgba(255,255,255, 0.2), 1.8em -1.8em 0 0em rgba(255,255,255, 0.2), 2.5em 0em 0 0em rgba(255,255,255, 0.5), 1.75em 1.75em 0 0em rgba(255,255,255, 0.7), 0em 2.5em 0 0em #ffffff, -1.8em 1.8em 0 0em rgba(255,255,255, 0.2), -2.6em 0em 0 0em rgba(255,255,255, 0.2), -1.8em -1.8em 0 0em rgba(255,255,255, 0.2);
  }
  62.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(255,255,255, 0.2), 1.8em -1.8em 0 0em rgba(255,255,255, 0.2), 2.5em 0em 0 0em rgba(255,255,255, 0.2), 1.75em 1.75em 0 0em rgba(255,255,255, 0.5), 0em 2.5em 0 0em rgba(255,255,255, 0.7), -1.8em 1.8em 0 0em #ffffff, -2.6em 0em 0 0em rgba(255,255,255, 0.2), -1.8em -1.8em 0 0em rgba(255,255,255, 0.2);
  }
  75% {
    box-shadow: 0em -2.6em 0em 0em rgba(255,255,255, 0.2), 1.8em -1.8em 0 0em rgba(255,255,255, 0.2), 2.5em 0em 0 0em rgba(255,255,255, 0.2), 1.75em 1.75em 0 0em rgba(255,255,255, 0.2), 0em 2.5em 0 0em rgba(255,255,255, 0.5), -1.8em 1.8em 0 0em rgba(255,255,255, 0.7), -2.6em 0em 0 0em #ffffff, -1.8em -1.8em 0 0em rgba(255,255,255, 0.2);
  }
  87.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(255,255,255, 0.2), 1.8em -1.8em 0 0em rgba(255,255,255, 0.2), 2.5em 0em 0 0em rgba(255,255,255, 0.2), 1.75em 1.75em 0 0em rgba(255,255,255, 0.2), 0em 2.5em 0 0em rgba(255,255,255, 0.2), -1.8em 1.8em 0 0em rgba(255,255,255, 0.5), -2.6em 0em 0 0em rgba(255,255,255, 0.7), -1.8em -1.8em 0 0em #ffffff;
  }
}


/*fin chargement donnees*/

/*debut pargination*/
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    justify-content: center;
    margin-top: 20px;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    display: block;
    padding: 10px 15px;
    color: #007bff;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.page-item.active .page-link {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.page-item.disabled .page-link {
    color: #ccc;
    pointer-events: none;
}

.page-item:hover .page-link {
    background-color: #f2f2f2;
}
/*fin pargination*/

/*debut div suggestion*/
.suggestions {
    border: 1px solid #ccc;
    max-height: 180px;
    overflow-y: auto;
    position: absolute;
    background-color: #fff;
    z-index: 1;
    width: 300px;
}

.suggestions div {
    padding: 8px;
    cursor: pointer;
}

.suggestions div:hover {
    background-color: #f0f0f0;
}
/*fin div suggestion*/





#Table_day {
    border-collapse: collapse;
}

#Table_day th {
    background-color: #007bff;
    color: #fff;
    text-align: center;
    font-weight: bold;
    padding: 12px 15px;
}

#Table_day td {
    padding: 10px 15px;
    text-align: center;
    vertical-align: middle;
}

#Table_day tbody tr:hover {
    background-color: #f8f9fa;
}

#Table_day tbody tr:nth-child(odd) {
    background-color: #f2f2f2;
}

#Table_day .btn-outline-info {
    color: #0d6efd;
    border-color: #0d6efd;
}

#Table_day .btn-outline-info:hover {
    background-color: #0d6efd;
    color: white;
}

#Table_day {
    font-size: 12px;
}

#Table_day td,
#Table_day th {
    padding: 4px 8px;
}

#Table_day .btn {
    font-size: 12px;
    padding: 4px 6px;
}

#Table_day th.sorting:before,
#Table_day th.sorting:after,
#Table_day th.sorting_asc:before,
#Table_day th.sorting_asc:after,
#Table_day th.sorting_desc:before,
#Table_day th.sorting_desc:after {
    display: none;
}

#Table_day td {
    position: relative; /* Assurez que chaque cellule peut contenir des éléments positionnés */
    overflow: visible;  /* Permet à la liste déroulante de dépasser les limites de la cellule */
    z-index: auto;      /* S'assurer que le z-index est correctement configuré */
}

#Table_day .dropdown-menu {
    position: absolute; /* Affiche correctement le menu déroulant au-dessus de la cellule */
    z-index: 1055;      /* Plus élevé que les autres éléments dans le tableau */
    top: 100%;          /* Positionne sous le bouton */
    left: 0;
}

#Table_day .dropdown-menu::before,
#Table_day .dropdown-menu::after {
    content: none; /* Supprime la flèche */
}



/*#Table_day .d-inline-flex {
    gap: 2px;
}*/

/*.dataTables_wrapper {
    width: 100%;
}

.dataTables_scrollBody {
    width: 100% !important;
    overflow-x: auto;
}*/


/*zoom div*/
@keyframes fadeInOut {
    0%, 100% {
        opacity: 1; /* Invisible au début et à la fin */
        transform: scale(0.95); /* Optionnel : léger rétrécissement */
    }
    50% {
        opacity: 1; /* Complètement visible au milieu */
        transform: scale(1); /* Taille normale */
    }
}

/* Appliquer l'animation */
.fade-in-out {
    animation: fadeInOut 2s infinite; /* 4s pour un cycle complet */
    transition: opacity 0.5s ease, transform 0.5s ease;
}