/* ===========================================
   STYLES ANNUAIREV2 - AMÉLIORATIONS VISUELLES 
   =========================================== */

/* Accordéons améliorés */
.annuaireV2-accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    border-radius: 10px !important;
    overflow: hidden;
}

.annuaireV2-accordion-button {
    transition: all 0.3s ease;
    border-radius: 10px 10px 0 0 !important;
}

.annuaireV2-accordion-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.annuaireV2-accordion-button:not(.collapsed) {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Cartes d'information dans l'accordéon */
.annuaireV2-accordion-body .card {
    transition: all 0.3s ease;
}

.annuaireV2-accordion-body .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Contact info amélioration */
.annuaireV2-accordion-body .bg-light.rounded {
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.annuaireV2-accordion-body .bg-light.rounded:hover {
    background-color: #f8f9fa !important;
    border-left-color: #007bff;
    transform: translateX(5px);
}

/* Badges avec animation */
.annuaireV2-badge {
    transition: all 0.2s ease;
}

.annuaireV2-badge:hover {
    transform: scale(1.1);
}

/* Tables améliorées */
.annuaireV2-table-hover tbody tr {
    transition: all 0.2s ease;
}

.annuaireV2-table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05) !important;
    transform: scale(1.01);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Cards avec gradients */
.annuaireV2-bg-gradient {
    background: linear-gradient(135deg, var(--bs-bg-opacity, 1) 0%, rgba(255, 255, 255, 0.1) 100%);
}

/* Animations pour les cartes */
.annuaireV2-card {
    transition: all 0.3s ease;
}

.annuaireV2-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Amélioration du champ de recherche */
#searchAnnuaireV2 {
    transition: all 0.3s ease;
}

#searchAnnuaireV2:focus {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.2) !important;
}

/* Boutons avec effet */
.annuaireV2-btn {
    transition: all 0.2s ease;
}

.annuaireV2-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Icônes avec rotation au hover */
.annuaireV2-fas,
.annuaireV2-fa {
    transition: all 0.2s ease;
}

.annuaireV2-accordion-button:hover .annuaireV2-fas,
.annuaireV2-card-header:hover .annuaireV2-fas {
    transform: rotate(5deg) scale(1.1);
}

/* Responsive améliorations */
@media (max-width: 768px) {
    .annuaireV2-accordion-button {
        font-size: 1rem !important;
    }

    .annuaireV2-card-title h2 {
        font-size: 1.2rem !important;
    }

    .annuaireV2-table-responsive {
        border-radius: 10px;
        overflow: hidden;
    }
}

/* Animation de fade-in pour les éléments */
@keyframes annuaireV2-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.annuaireV2-card,
.annuaireV2-accordion-item {
    animation: annuaireV2-fadeInUp 0.6s ease-out forwards;
}

/* Délai d'animation pour créer un effet en cascade */
.annuaireV2-card:nth-child(1) {
    animation-delay: 0.1s;
}

.annuaireV2-card:nth-child(2) {
    animation-delay: 0.2s;
}

.annuaireV2-card:nth-child(3) {
    animation-delay: 0.3s;
}

.annuaireV2-card:nth-child(4) {
    animation-delay: 0.4s;
}

.annuaireV2-card:nth-child(5) {
    animation-delay: 0.5s;
}

.annuaireV2-filtreColumn {
    color: #f1416c !important;
    text-decoration: none;
}


/* .filtreColumn:after {
    opacity: 1;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16 ' fill='%23009EF7'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l- 6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
} */

.filterColumn {
    cursor: zoom-in;
}


/* loader */

#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

#loader {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #3498db;

    -webkit-animation: spin 2s linear infinite;
    /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 2s linear infinite;
    /* Chrome, Firefox 16+, IE 10+, Opera */
    z-index: 1001;
}

#loader:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #e74c3c;

    -webkit-animation: spin 3s linear infinite;
    /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 3s linear infinite;
    /* Chrome, Firefox 16+, IE 10+, Opera */
}

#loader:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #f9c922;

    -webkit-animation: spin 1.5s linear infinite;
    /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 1.5s linear infinite;
    /* Chrome, Firefox 16+, IE 10+, Opera */
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(0deg);
        /* IE 9 */
        transform: rotate(0deg);
        /* Firefox 16+, IE 10+, Opera */
    }

    100% {
        -webkit-transform: rotate(360deg);
        /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(360deg);
        /* IE 9 */
        transform: rotate(360deg);
        /* Firefox 16+, IE 10+, Opera */
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(0deg);
        /* IE 9 */
        transform: rotate(0deg);
        /* Firefox 16+, IE 10+, Opera */
    }

    100% {
        -webkit-transform: rotate(360deg);
        /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(360deg);
        /* IE 9 */
        transform: rotate(360deg);
        /* Firefox 16+, IE 10+, Opera */
    }
}

#loader-wrapper .loader-section {
    position: fixed;
    top: 0;
    width: 51%;
    height: 100%;
    background: #222;
    z-index: 1000;
}

#loader-wrapper .loader-section.section-left {
    left: 0;
}

#loader-wrapper .loader-section.section-right {
    right: 0;
}

/* Loaded styles */
.loaded #loader-wrapper .loader-section.section-left {
    -webkit-transform: translateX(-100%);
    /* Chrome, Opera 15+, Safari 3.1+ */
    -ms-transform: translateX(-100%);
    /* IE 9 */
    transform: translateX(-100%);
    /* Firefox 16+, IE 10+, Opera */

    -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
    /* Android 2.1+, Chrome 1-25, iOS 3.2-6.1, Safari 3.2-6  */
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
    /* Chrome 26, Firefox 16+, iOS 7+, IE 10+, Opera, Safari 6.1+  */
}

.loaded #loader-wrapper .loader-section.section-right {
    -webkit-transform: translateX(100%);
    /* Chrome, Opera 15+, Safari 3.1+ */
    -ms-transform: translateX(100%);
    /* IE 9 */
    transform: translateX(100%);
    /* Firefox 16+, IE 10+, Opera */

    -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
    /* Android 2.1+, Chrome 1-25, iOS 3.2-6.1, Safari 3.2-6  */
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
    /* Chrome 26, Firefox 16+, iOS 7+, IE 10+, Opera, Safari 6.1+  */
}

.loaded #loader {
    opacity: 0;

    -webkit-transition: all 0.3s ease-out;
    /* Android 2.1+, Chrome 1-25, iOS 3.2-6.1, Safari 3.2-6  */
    transition: all 0.3s ease-out;
    /* Chrome 26, Firefox 16+, iOS 7+, IE 10+, Opera, Safari 6.1+  */

}

.loaded #loader-wrapper {
    visibility: hidden;

    -webkit-transform: translateY(-100%);
    /* Chrome, Opera 15+, Safari 3.1+ */
    -ms-transform: translateY(-100%);
    /* IE 9 */
    transform: translateY(-100%);
    /* Firefox 16+, IE 10+, Opera */

    -webkit-transition: all 0.3s 1s ease-out;
    /* Android 2.1+, Chrome 1-25, iOS 3.2-6.1, Safari 3.2-6  */
    transition: all 0.3s 1s ease-out;
    /* Chrome 26, Firefox 16+, iOS 7+, IE 10+, Opera, Safari 6.1+  */
}

.loader-wrapper #content {
    margin: 0 auto;
    padding-bottom: 50px;
    width: 80%;
    max-width: 978px;
}


.logoobjet {
    vertical-align: unset !important;
    border-style: none;
}


.kt-badge.kt-badge--inline {
    letter-spacing: 0.6px;
    padding: 1px 10px;
    border-radius: 0.75rem;
    height: unset;
    width: unset;
}

.kt-badge.kt-badge--success {
    color: #ffffff;
    background: #0abb87;
}

.kt-badge.kt-badge--warning {
    color: #111111;
    background: #ffb822;
}

.kt-badge.kt-badge--danger {
    color: #ffffff;
    background: #fd397a;
}


.kt-badge {
    background: #eaeaea;
    color: #444;
    font-size: 0.8rem;
    line-height: 20px;
    min-height: 20px;
    min-width: 20px;
    vertical-align: middle;
    text-align: center;
    display: inline-block;
    padding: 0px 3px;
    border-radius: 0.75rem;
}

.kt-badge {
    padding: 0;
    margin: 0;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    font-size: 0.8rem;
}


@media print {
    .visible-print {
        display: inherit !important;
    }

    .hidden-print {
        display: none !important;
    }

    .fc-unthemed .fc-event.fc-not-start.fc-end.fc-event-solid-danger,
    .fc-unthemed .fc-event.fc-not-start.fc-not-end.fc-event-solid-danger,
    .fc-unthemed .fc-event.fc-start.fc-event-solid-danger,
    .fc-unthemed .fc-event-dot.fc-not-start.fc-end.fc-event-solid-danger,
    .fc-unthemed .fc-event-dot.fc-not-start.fc-not-end.fc-event-solid-danger,
    .fc-unthemed .fc-event-dot.fc-start.fc-event-solid-danger {
        background-color: #fd397a !important;
        color-adjust: exact !important;
        -webkit-print-color-adjust: exact !important;
    }

    .fc-unthemed .fc-event.fc-not-start.fc-end.fc-event-solid-success,
    .fc-unthemed .fc-event.fc-not-start.fc-not-end.fc-event-solid-success,
    .fc-unthemed .fc-event.fc-start.fc-event-solid-success,
    .fc-unthemed .fc-event-dot.fc-not-start.fc-end.fc-event-solid-success,
    .fc-unthemed .fc-event-dot.fc-not-start.fc-not-end.fc-event-solid-success,
    .fc-unthemed .fc-event-dot.fc-start.fc-event-solid-success {
        background-color: #0abb87 !important;
        color-adjust: exact !important;
        -webkit-print-color-adjust: exact !important;
    }

    .fc-unthemed .fc-event.fc-not-start.fc-end.fc-event-solid-warning,
    .fc-unthemed .fc-event.fc-not-start.fc-not-end.fc-event-solid-warning,
    .fc-unthemed .fc-event.fc-start.fc-event-solid-warning,
    .fc-unthemed .fc-event-dot.fc-not-start.fc-end.fc-event-solid-warning,
    .fc-unthemed .fc-event-dot.fc-not-start.fc-not-end.fc-event-solid-warning,
    .fc-unthemed .fc-event-dot.fc-start.fc-event-solid-warning {
        background-color: #ffb822 !important;
        color-adjust: exact !important;
        -webkit-print-color-adjust: exact !important;
    }
}

.fc-unthemed .fc-event.fc-start.fc-event-light .fc-content.blackIcon:before {
    background: black !important;
}

.fc-event-solid-conge {
    background: #5d78ff !important;
    color: #ffffff !important;
}


.fc-event-solid-conge .fc-content .fc-title {
    color: #ffffff !important;
}

.fc-event-solid-conge .fc-content .fc-time {
    color: #ffffff !important;
    font-weight: bold;
}

.fc-event-solid-ferier {
    background-color: #a2a5b9 !important;
    color: #ffffff !important;
}


.fc-event-solid-ferier .fc-content .fc-title {
    color: #ffffff !important;
}

.fc-event-solid-ferier .fc-content .fc-time {
    color: #ffffff !important;
    font-weight: bold;
}

.fc-v-event.fc-event-solid-danger {
    background: #fd397a;
    border: unset;
}

.fc-v-event.fc-event-solid-warning {
    background: #ffb822;
    border: unset;
}

.fc-v-event.fc-event-solid-success {
    background: #0abb87;
    border: unset;
}

.fc-timeline-event.fc-h-event.fc-event.fc-event-draggable.fc-event-today.fc-event-solid-danger.fc-event-light {
    background: #fd397a;
    border: unset;
}

.fc-timegrid-event.fc-v-event.fc-event.fc-event-start.fc-event-end.fc-event-past.fc-event-solid-danger.fc-event-light {
    background: #fd397a;
    border: unset;
}

.fc-timegrid-event.fc-v-event.fc-event.fc-event-draggable.fc-event-resizable.fc-event-start.fc-event-end.fc-event-solid-virtuel.fc-event-light {
    background: #14151d;
    border: unset;
}

.fc-timegrid-event.fc-v-event.fc-event.fc-event-draggable.fc-event-resizable.fc-event-end.fc-event-future.fc-event-solid-virtuel.fc-event-light {
    background: #14151d;
    border: unset;
}

.fc-daygrid-event.fc-daygrid-dot-event.fc-event.fc-event-start.fc-event-end.fc-event-past.fc-event-solid-danger.fc-event-light {
    background: #fd397a;
    border: unset;
}

.fc-daygrid-event.fc-daygrid-dot-event.fc-event.fc-event-draggable.fc-event-resizable.fc-event-start.fc-event-end.fc-event-solid-virtuel.fc-event-light {
    background: #14151d;
    border: unset;
}

.fc-daygrid-event.fc-daygrid-dot-event.fc-event.fc-event-draggable.fc-event-resizable.fc-event-start.fc-event-end.fc-event-solid-virtuel.fc-event-light .fc-event-title {
    color: white;
}

.fc-daygrid-event.fc-daygrid-dot-event.fc-event.fc-event-draggable.fc-event-resizable.fc-event-start.fc-event-end.fc-event-solid-virtuel.fc-event-light .fc-event-time {
    color: white;
}

.fc-daygrid-event.fc-daygrid-dot-event.fc-event.fc-event-start.fc-event-end.fc-event-past.fc-event-solid-danger.fc-event-light .fc-event-title {
    color: white;
}

.fc-daygrid-event.fc-daygrid-dot-event.fc-event.fc-event-start.fc-event-end.fc-event-past.fc-event-solid-danger.fc-event-light .fc-event-time {
    color: white;
}


.fc-timeline-event.fc-h-event.fc-event.fc-event-draggable.fc-event-solid-warning.fc-event-light {
    background: #ffb822;
    border: unset;
}


.fc-timegrid-event.fc-v-event.fc-event.fc-event-start.fc-event-end.fc-event-past.fc-event-solid-virtuel.fc-event-light {
    background: #14151d;
    border: unset;
}

.fc-timegrid-event.fc-v-event.fc-event.fc-event-draggable.fc-event-start.fc-event-solid-virtuel.fc-event-light {
    background: #14151d;
    border: unset;
}


.fc-timegrid-event.fc-v-event.fc-event.fc-event-draggable.fc-event-solid-virtuel.fc-event-light {
    background: #14151d;
    border: unset;
}


.fc-timegrid-event.fc-v-event.fc-event.fc-event-start.fc-event-end.fc-event-past.fc-event-solid-warning.fc-event-light {
    background: #ffb822;
    border: unset;
}

.fc-daygrid-event.fc-daygrid-dot-event.fc-event.fc-event-start.fc-event-end.fc-event-solid-warning.fc-event-light {
    background: #ffb822;
    border: unset;
}


.fc-daygrid-event.fc-daygrid-dot-event.fc-event.fc-event-start.fc-event-end.fc-event-past.fc-event-solid-warning.fc-event-light {
    background: #ffb822;
    border: unset;
}

.fc-timegrid-event.fc-v-event.fc-event.fc-event-start.fc-event-end.fc-event-past.fc-event-solid-warning.fc-event-light .fc-event-title {
    color: #111111;
}

.fc-timegrid-event.fc-v-event.fc-event.fc-event-start.fc-event-end.fc-event-past.fc-event-solid-warning.fc-event-light .fc-event-time {
    color: #111111;
}

.fc-timegrid-event.fc-v-event.fc-event.fc-event-start.fc-event-end.fc-event-past.fc-event-solid-success.fc-event-light {
    background: #0abb87;
    border: unset;
}

.fc-timeline-event.fc-h-event.fc-event.fc-event-draggable.fc-event-today.fc-event-solid-success.fc-event-light {
    background: #0abb87;
    border: unset;
}

.fc-timegrid-event.fc-v-event.fc-event.fc-event-start.fc-event-end.fc-event-past.fc-event-solid-success.fc-event-light {
    background: #0abb87;
    border: unset;
}

.fc-timeline-event.fc-h-event.fc-event.fc-event-draggable.fc-event-start.fc-event-today.fc-event-solid-success.fc-event-light {
    background: #0abb87;
    border: unset;
}


.fc-daygrid-event.fc-daygrid-dot-event.fc-event.fc-event-start.fc-event-end.fc-event-past.fc-event-solid-success.fc-event-light {
    background: #0abb87;
    border: unset;
}

.fc-daygrid-event.fc-daygrid-block-event.fc-h-event.fc-event.fc-event-start.fc-event-end.fc-event-past.fc-event-solid-success.fc-event-light {
    background: #0abb87;
    border: unset;
}

.fc-daygrid-event.fc-daygrid-block-event.fc-h-event.fc-event.fc-event-draggable.fc-event-start.fc-event-end.fc-event-solid-virtuel.fc-event-light {
    background: #14151d;
    border: unset;
}


.fc-daygrid-event.fc-daygrid-dot-event.fc-event.fc-event-start.fc-event-end.fc-event-past.fc-event-solid-success.fc-event-light .fc-event-title {
    color: white;
}

.fc-daygrid-event.fc-daygrid-dot-event.fc-event.fc-event-start.fc-event-end.fc-event-past.fc-event-solid-success.fc-event-light .fc-event-time {
    color: white;
}


.notSend .fc-event-time:before {
    background: #282a3c !important;
}


.fc-timegrid-event .fc-event-time:before {
    display: block;
    content: " ";
    position: absolute;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    top: 0.4rem;
    left: 6rem;
    background: #ffffff;
}

.fc-list-event.fc-event.fc-event-start.fc-event-end.fc-event-past.fc-event-solid-danger.fc-event-light .fc-list-event-dot {
    border: 5px solid #fd397a;
}

.fc-list-event.fc-event.fc-event-start.fc-event-end.fc-event-future.fc-event-solid-virtuel.fc-event-light .fc-list-event-dot {
    border: 5px solid #14151d;
}

.fc-list-event.fc-event.fc-event-start.fc-event-solid-virtuel.fc-event-light .fc-list-event-dot {
    border: 5px solid #14151d;
}

.fc-list-event.fc-event.fc-event-solid-virtuel.fc-event-light .fc-list-event-dot {
    border: 5px solid #14151d;
}

.fc-list-event.fc-event.fc-event-start.fc-event-end.fc-event-past.fc-event-solid-success.fc-event-light .fc-list-event-dot {
    border: 5px solid #0abb87;
}

.fc-list-event.fc-event.fc-event-start.fc-event-end.fc-event-past.fc-event-solid-warning.fc-event-light .fc-list-event-dot {
    border: 5px solid #ffb822;
}

.fc-list-event.fc-event.fc-event-start.fc-event-end.fc-event-solid-warning.fc-event-light .fc-list-event-dot {
    border: 5px solid #ffb822;
}

.fc-list-event.fc-event.fc-event-start.fc-event-end.fc-event-solid-danger.fc-event-light .fc-list-event-dot {
    border: 5px solid #fd397a;
}

.fc-list-event.fc-event.fc-event-start.fc-event-end.fc-event-solid-success.fc-event-light .fc-list-event-dot {
    border: 5px solid #0abb87;
}


.marginTableImg {
    margin-top: -10px;
}

.sidebar.collapsed {
    height: 30% !important;
}


.fullMap {
    padding: 0px 0;
}

.leaflet-popup-content {
    min-width: 500px !important;
}


.fc-timegrid-event.fc-v-event {
    font-size: 10px !important;
}

.fc-direction-ltr .fc-timegrid-col-events {
    margin: 0 !important;
}

.smallTitle {
    font-size: 14px !important;
    font-weight: bold !important;
}


.container,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl {
    max-width: unset !important;
}

.dtrg-group {
    background-color: #e0e0e0 !important;
}



.table.smallTable td:first-child,
.table.smallTable th:first-child {
    padding-left: 1.75rem;
}

.table.smallTable>:not(caption)>*>* {
    padding: 0.25rem 0.75rem;
    background-color: var(--bs-table-bg);
    border-bottom-width: 1px;
    box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
}


table.notMargin.dataTable>thead>tr>td:not(.sorting_disabled),
table.notMargin.dataTable>thead>tr>th:not(.sorting_disabled) {
    padding-right: 0px;
}

.cegidIcon {
    background-color: #43abf7 !important;
}

.cegidIcon i {
    color: #ffffff;
}

table.floatThead-table {
    border-top: none !important;
    border-bottom: none !important;
    background-color: #FFF !important;
}


table.dataTable tbody>tr.selected,
table.dataTable tbody>tr>.selected {
    background-color: #0d6efd;
    --bs-table-accent-bg: unset;
}

.hidden {
    display: none;
}


.amexport {
    left: 30px;
}

.uppercase {
    text-transform: uppercase;
}

.header-fixed .header {
    position: absolute !important;
}

.toolbar-fixed .toolbar {
    position: absolute !important;
}


.width110px {
    width: 100px !important;
}

.largeCircle {
    width: 2.5rem !important;
}

.filtreMultiple {
    width: 100%;
}

.form-control {
    background-color: whitesmoke !important;
}

.select2-container--bootstrap5 .select2-dropdown {
    background-color: ghostwhite !important;
}

.wizard.wizard-6 .wizard-content .wizard-nav {
    padding: 0;
}

.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step {
    padding: 0.75rem 0;
    -webkit-transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, -webkit-box-shadow 0.15s ease;
    margin-bottom: 1.5rem;
}

.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step .wizard-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step .wizard-icon {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, -webkit-box-shadow 0.15s ease;
    min-width: 46px;
    height: 46px;
    border-radius: 12px;
    background-color: #F3F6F9;
    margin-right: 1rem;
}

.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step .wizard-icon .wizard-check {
    display: none;
    font-size: 1.4rem;
}

.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step .wizard-icon .wizard-number {
    font-weight: 600;
    color: #3F4254;
    font-size: 1.35rem;
}

.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step .wizard-label {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step .wizard-label .wizard-title {
    color: #181C32;
    font-weight: 600;
    font-size: 1.24rem;
}

.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step .wizard-label .wizard-desc {
    color: #B5B5C3;
    font-size: 0.925rem;
}

.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step[data-wizard-state=current] {
    -webkit-transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, -webkit-box-shadow 0.15s ease;
}

.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step[data-wizard-state=current] .wizard-icon {
    -webkit-transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, -webkit-box-shadow 0.15s ease;
    background-color: #C9F7F5;
}

.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step[data-wizard-state=current] .wizard-icon .wizard-check {
    color: #1BC5BD;
    display: none;
}

.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step[data-wizard-state=current] .wizard-icon .wizard-number {
    color: #1BC5BD;
}

.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step[data-wizard-state=current] .wizard-label .wizard-title {
    color: #181C32;
}

.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step[data-wizard-state=current] .wizard-label .wizard-desc {
    color: #B5B5C3;
}

.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step[data-wizard-state=current]:last-child .wizard-icon,
.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step[data-wizard-state=done] .wizard-icon {
    -webkit-transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, -webkit-box-shadow 0.15s ease;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, -webkit-box-shadow 0.15s ease;
    background-color: #C9F7F5;
}

.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step[data-wizard-state=current]:last-child .wizard-icon .wizard-check,
.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step[data-wizard-state=done] .wizard-icon .wizard-check {
    color: #1BC5BD;
    display: inline-block;
}

.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step[data-wizard-state=current]:last-child .wizard-icon .wizard-number,
.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step[data-wizard-state=done] .wizard-icon .wizard-number {
    display: none;
}

.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step[data-wizard-state=current]:last-child .wizard-label .wizard-title,
.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step[data-wizard-state=done] .wizard-label .wizard-title {
    color: #B5B5C3;
}

.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step[data-wizard-state=current]:last-child .wizard-label .wizard-desc,
.wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step[data-wizard-state=done] .wizard-label .wizard-desc {
    color: #D1D3E0;
}

@media (max-width: 767.98px) {
    .wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step {
        width: 100%;
    }

    .wizard.wizard-6 .wizard-content .wizard-nav .wizard-steps .wizard-step .wizard-wrapper .svg-icon {
        display: none;
    }
}


@media (min-width: 992px) {
    [data-kt-app-header-fixed=true] .app-header {
        position: absolute !important;
    }
}


.megaMenuFocus {
    background-color: white !important;
}

.megaMenuFocus a:hover span {
    transition: color 0.2s ease !important;
    background-color: aliceblue !important;
    color: var(--bs-primary) !important;
    padding-top: 0.775rem;
    padding-bottom: 0.775rem;
    font-weight: 500;
    border-radius: 0.475rem
}

table.dataTable>tbody>tr.selected>* a:not([class=btn]) {
    color: var(--bs-gray-600) !important;
}


.actions-cell {
    overflow: visible !important;
    position: relative;
}

.table-warning {
    background-color: #fff3cd !important;
}

.table-success {
    background-color: #d1e7dd !important;
}

.table-info {
    background-color: #cff4fc !important;
}

.table-primary {
    background-color: #cfe2ff !important;
}

.outbound {
    background-color: #f8d7da !important;
}

.cellule-invalide {
    background-color: #ffcccc !important;
    /* Rouge plus prononcé */
    font-weight: bold;
    border: 1px solid red !important;
    /* Ajoute une bordure pour bien la voir */
}



/* Réduction des images dans AG Grid */
.objet-icon {
    width: 16px;
    /* ↓ réduit à 16px */
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    /* ombre plus discrète */
}

/* Badges plus compacts */
.badge.badge-light {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
    padding: 4px 8px;
    /* ↓ réduit */
    border-radius: 4px;
    font-size: 0.75rem;
    /* ↓ réduit */
    white-space: nowrap;
}

/* Hover badge */
.badge.badge-light:hover {
    background-color: #e2e6ea;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Colonnes AG-Grid avec contenu flex → ligne plus compacte */
.ag-cell .d-flex {
    min-height: 28px;
    /* ↓ réduit depuis 40px */
    align-items: center;
    gap: 4px;
    /* ajout optionnel si nécessaire */
}

/* Responsive pour petits écrans */
@media (max-width: 768px) {
    .objet-icon {
        width: 14px;
        height: 14px;
    }

    .badge.badge-light {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}


.ag-cell {
    padding: 6px 10px !important;
    /* ↑ plus d’espace interne */
    display: flex;
    align-items: center;
    font-size: 13px;
    line-height: 1.6;
    /* ↑ meilleure lisibilité */
    white-space: normal !important;
    word-break: break-word;
}

.ag-row {
    border-bottom: 1px solid #e3e3e3;
    /* ↑ séparation plus visible */
}

.ag-header-cell-label {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.ag-theme-alpine .ag-header {
    background-color: #f9f9f9;
}


.card-flush {
    box-shadow: 0 0 20px 0 rgba(76, 87, 125, 0.05);
    border: 1px solid #eff2f5;
}

.form-control-solid:focus {
    border-color: #009ef7;
    box-shadow: 0 0 0 0.2rem rgba(0, 158, 247, 0.1);
}

.input-group-text {
    border-color: #e4e6ea;
    background-color: #f8f9fa;
}

.image-input-wrapper.rounded {
    border-radius: 0.475rem;
}

.badge-light-success {
    background-color: rgba(80, 205, 137, 0.1);
    color: #50cd89;
}

.form-check-input:checked {
    background-color: #009ef7;
    border-color: #009ef7;
}

.symbol-label {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.475rem;
}

.indicator-progress {
    display: none;
}

[data-kt-indicator="on"] .indicator-label {
    display: none;
}

[data-kt-indicator="on"] .indicator-progress {
    display: inline-flex;
}

/* Responsive improvements */
@media (max-width: 767.98px) {
    .col-md-6 {
        margin-bottom: 1rem;
    }

    .d-flex.flex-stack {
        flex-direction: column;
        gap: 1rem;
    }

    .d-flex.flex-stack>div:first-child {
        order: 2;
    }

    .d-flex.flex-stack>div:last-child {
        order: 1;
        align-self: stretch;
    }
}

/* Animation pour les champs auto-remplis */
.auto-filled {
    animation: highlight 1.5s ease-in-out;
}

.auto-filled+.select2-container .select2-selection {
    animation: highlight 1.5s ease-in-out;
}

@keyframes highlight {
    0% {
        background-color: rgba(0, 158, 247, 0.1);
    }

    50% {
        background-color: rgba(0, 158, 247, 0.2);
    }

    100% {
        background-color: transparent;
    }
}

/* Styles pour les erreurs de validation */
.is-invalid {
    border-color: #f1416c !important;
    box-shadow: 0 0 0 0.2rem rgba(241, 65, 108, 0.1) !important;
}

.select2-container.is-invalid .select2-selection {
    border-color: #f1416c !important;
    box-shadow: 0 0 0 0.2rem rgba(241, 65, 108, 0.1) !important;
}

.invalid-feedback {
    display: block !important;
    color: #f1416c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.invalid-feedback:before {
    content: "⚠ ";
    margin-right: 0.25rem;
}

/* Animation pour l'erreur */
.is-invalid {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-2px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(2px);
    }
}

/* Style pour le message d'erreur général */
#messages .alert-danger {
    border-left: 4px solid #f1416c;
    background-color: rgba(241, 65, 108, 0.05);
}

#messages .alert-danger .alert-heading {
    color: #f1416c;
    font-weight: 600;
}

.card-flush {
    box-shadow: 0 0 20px 0 rgba(76, 87, 125, 0.05);
    border: 1px solid #eff2f5;
}

.form-control-solid:focus {
    border-color: #009ef7;
    box-shadow: 0 0 0 0.2rem rgba(0, 158, 247, 0.1);
}

.input-group-text {
    border-color: #e4e6ea;
    background-color: #f8f9fa;
}

.image-input-wrapper.rounded {
    border-radius: 0.475rem;
}

.badge-light-success {
    background-color: rgba(80, 205, 137, 0.1);
    color: #50cd89;
}

.form-check-input:checked {
    background-color: #009ef7;
    border-color: #009ef7;
}

.symbol-label {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.475rem;
}

.indicator-progress {
    display: none;
}

[data-kt-indicator="on"] .indicator-label {
    display: none;
}

[data-kt-indicator="on"] .indicator-progress {
    display: inline-flex;
}

/* Responsive improvements */
@media (max-width: 767.98px) {
    .col-md-6 {
        margin-bottom: 1rem;
    }

    .d-flex.flex-stack {
        flex-direction: column;
        gap: 1rem;
    }

    .d-flex.flex-stack>div:first-child {
        order: 2;
    }

    .d-flex.flex-stack>div:last-child {
        order: 1;
        align-self: stretch;
    }
}

/* Animation pour les champs auto-remplis */
.auto-filled {
    animation: highlight 1.5s ease-in-out;
}

.auto-filled+.select2-container .select2-selection {
    animation: highlight 1.5s ease-in-out;
}

@keyframes highlight {
    0% {
        background-color: rgba(0, 158, 247, 0.1);
    }

    50% {
        background-color: rgba(0, 158, 247, 0.2);
    }

    100% {
        background-color: transparent;
    }
}

/* Styles pour les erreurs de validation */
.is-invalid {
    border-color: #f1416c !important;
    box-shadow: 0 0 0 0.2rem rgba(241, 65, 108, 0.1) !important;
}

.select2-container.is-invalid .select2-selection {
    border-color: #f1416c !important;
    box-shadow: 0 0 0 0.2rem rgba(241, 65, 108, 0.1) !important;
}

.invalid-feedback {
    display: block !important;
    color: #f1416c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.invalid-feedback:before {
    content: "⚠ ";
    margin-right: 0.25rem;
}

/* Animation pour l'erreur */
.is-invalid {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-2px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(2px);
    }
}

/* Style pour le message d'erreur général */
#messages .alert-danger {
    border-left: 4px solid #f1416c;
    background-color: rgba(241, 65, 108, 0.05);
}

#messages .alert-danger .alert-heading {
    color: #f1416c;
    font-weight: 600;
}

/* Styles pour les view des pieces */
.invoice-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.invoice-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.invoice-header .form-label {
    font-weight: 600;
    color: #495057;
}

.invoice-header .form-control {
    border-radius: 10px;
    background-color: #ffffff !important;
    border: 1px solid #ced4da;
}

.invoice-header .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.invoice-header .form-select {
    border-radius: 10px;
    background-color: #ffffff !important;
    border: 1px solid #ced4da;
}

.invoice-header .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.invoice-header .badge {
    border-radius: 10px;
    padding: 0.5rem 1rem;
}

.viewDetailPiece .status-badge {

    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}


.dropdown-item .highlight {
    background-color: transparent;
    /* Un jaune doux */
    font-weight: bold;
    color: #333;
}

.custom-header {
    white-space: normal !important;
    text-overflow: ellipsis;
    overflow: hidden;
    line-height: 1.2;
    padding: 4px 8px;
    font-size: 12px;
}

.ag-header-cell-text {
    white-space: normal !important;
    word-wrap: break-word;
    line-height: 1.2;
}


.searching {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTggMTVDMTEuODY2IDE1IDE1IDExLjg2NiAxNSA4QzE1IDQuMTM0IDExLjg2NiAxIDggMUM0LjEzNCAxIDEgNC4xMzQgMSA4QzEgMTEuODY2IDQuMTM0IDE1IDggMTVaIiBzdHJva2U9IiM5OTk5OTkiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtZGFzaGFycmF5PSIyIDIiLz4KPC9zdmc+');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { background-position: right 10px center; }
    to { background-position: right 10px center; }
}


  .ag-cell {
      overflow: hidden !important;
  }

  /* Troncature avec "..." et prise en compte de la largeur de la cellule */
  .ag-cell .cell-ellipsis {
      display: block;
      width: 100%;
      box-sizing: border-box;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
  }

  /* Ne pas gêner l'édition (l'éditeur prend le relais) */
  .ag-cell-editing .cell-ellipsis {
      pointer-events: none;
  }

  .highlighted {
    background-color: #e6f3ff;
}

.font-weight-bold {
    font-weight: bold !important;
}

.floating-buttons-container {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transform: translateY(-50%);
}

.floating-buttons-container .btn {
    min-width: 120px; /* Augmenté pour le texte */
    margin: 0;
    white-space: nowrap; /* Empêche le texte de se couper */
    writing-mode: vertical-rl; /* Pour la rotation du texte */
    text-orientation: mixed;
    transform: rotate(-90deg); /* Rotation du bouton */
    transform-origin: center center;
    height: 60px; /* Hauteur fixe pour éviter le chevauchement */
}


#pdfViewerModal.modal {
    padding: 0 !important;
}

#pdfViewerModal .modal-dialog.modal-side {
    position: fixed;
    margin: 0;
    width: 50%;
    max-width: none;
    height: 100vh;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

#pdfViewerModal.show .modal-dialog.modal-side {
    transform: translateX(0);
}

#pdfViewerModal .modal-content {
    height: 100vh;
    border-radius: 0;
    border: none;
}

#pdfViewerModal .modal-backdrop {
    background-color: transparent;
}

/* Mise en évidence des lignes avec observation IA */
.ag-row.row-has-ia-observation {
    background-color: #fffbeb !important; /* Jaune très clair */
}

.ag-row.row-has-ia-observation:hover {
    background-color: #fef3c7 !important; /* Jaune un peu plus foncé au survol */
}

/* Ligne principale avec groupe de pièces */
.ag-row.row-with-group {
    border-left: 3px solid #007bff !important;
    background-color: #f0f8ff !important;
}

/* Pièce détachée */
.ag-row.row-piece-detachee {
    border-left: 3px solid #6c757d !important;
    background-color: #f8f9fa !important;
    padding-left: 20px !important;
}