.w-60 {
    width: 60% !important;
}


@media (max-width:768px) {
    .w-60 {
        width: 100% !important;
    }
}

.card.bg-custom-dark.accueil_BG {
    background: linear-gradient(315deg,
            #152E4A 0%,
            #264F7D 100%) !important;
}

div#conversation_body::-webkit-scrollbar {
    display: none;
}

div#conversation_messages_list::-webkit-scrollbar {
    display: none;
}

.delMsgBtn {
    height: 25px;
}

@media (min-width: 992px) {
    div#conversation_body {
        scrollbar-width: none;
    }

    div#conversation_messages_list {
        scrollbar-width: none;
    }
}

div#conversation_messages_list {
    height: auto !important;
}

.discussionHeader {
    min-height: 75.75px !important;
}

/*Affichage des images dans les messages*/

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .88);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: grid;
    place-items: center;
    z-index: 2000;
    transition:
        opacity 0.35s ease-in-out,
        visibility 0s linear 0.35s,
        backdrop-filter 0.35s ease-in-out;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.lightbox:target {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity 0.35s ease-in-out,
        backdrop-filter 0.35s ease-in-out;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lightbox img {
    max-width: min(96vw, 1440px);
    max-height: 86vh;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .6);
    transform: scale(0.98);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.lightbox:target img {
    transform: scale(1);
    opacity: 1;
}

/* === Loader animé dans la lightbox === */
.lightbox .loader {
    position: absolute;
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--bs-primary, #4f46e5);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    z-index: 61;
}

.footer {
    padding-left: calc(50px + 1rem) !important;
    margin-left: calc(var(--bs-app-sidebar-width) + var(--bs-app-sidebar-gap-start, 0px) + var(--bs-app-sidebar-gap-end, 0px)) !important;
}

.fc .fc-col-header-cell {
    padding-left: 0;
    padding-right: 0;
}

.fc .fc-scrollgrid-section-sticky>* {
    background: rgba(0, 0, 0, 0) !important;
}

.fc .fc-scrollgrid tbody>tr:last-child td:last-child {
    border-bottom-right-radius: 0px !important;
}

.fc .fc-scrollgrid tbody>tr:last-child td:first-child {
    border-bottom-left-radius: 0px !important;
}

.fc-theme-standard th {
    border-right: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Par défaut : loader visible, image invisible */
.lightbox img {
    opacity: 0;
    transform: scale(0.98);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Quand chargée → loader masqué, image visible */
.lightbox img.loaded {
    opacity: 1;
    transform: scale(1);
}

.lightbox img.loaded~.loader {
    display: none;
    animation: none;
}


.lightbox a.close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 1;
    color: #fff !important;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #fff !important;
}

.conversation_card .badge.badge-lg.badge-circle {
    min-width: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.8rem;
}

.messagerie_card .badge.badge-lg.badge-circle {
    min-width: 2rem;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    padding-bottom: 0.2rem !important
}

img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img.lazy.loaded {
    opacity: 1;
}

.op-6 {
    opacity: 0.60!important;
}

.w-fc {
    width: fit-content !important;
}

.h-fc {
    height: fit-content !important;
}

.app-header {
    height: fit-content !important;
}

.card .card-header {
    align-items: center !important;
}

.card .card-body {
    border-top: 0 !important;
}

#kt_app_root {
    background-attachment: fixed;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='1' fill='%23000000' opacity='.3'/%3E%3C/svg%3E");
    background-size: 16px 16px;
}

html[data-bs-theme="dark"] #kt_app_root {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='1' fill='%23e5d8f0' opacity='.2'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Gabarito, "Gabarito Fallback: BlinkMacSystemFont", "Gabarito Fallback: Segoe UI", "Gabarito Fallback: Helvetica Neue", "Gabarito Fallback: Arial", "Gabarito Fallback: Noto Sans", sans-serif;
}

body {
    font-family: Inter, "Inter Fallback: BlinkMacSystemFont", "Inter Fallback: Segoe UI", "Inter Fallback: Helvetica Neue", "Inter Fallback: Arial", "Inter Fallback: Noto Sans", sans-serif;
    font-size: var(--size-text-regular);
}

body,
.app-default {
    background-attachment: fixed;
}

html[data-bs-theme="dark"] body,
html[data-bs-theme="dark"] .app-default {
    background: linear-gradient(135deg,
            var(--bs-app-bg-color) 50%,
            rgba(10, 20, 60, 0.40) 100%),
        rgba(10, 20, 60, 0.40);
}

.app-icon {
    background-size: contain;
    width: 1em;
    height: 1em;
}

.module-group hr {
    flex: 1;
}

.symbol {
    border-radius: 10% !important;
}

.symbol .symbol-label {
    width: 35px !important;
    height: 35px !important;
    border-radius: 8px !important;
}

.symbol img.symbol-label {
    border-radius: 2px !important;
}

.symbol.symbol-circle .symbol-label {
    border-radius: 50% !important;
}

.symbol.symbol-lg .symbol-label {
    width: 45px !important;
    height: 45px !important;
    border-radius: 4px;
}

.symbol.symbol-50px>* {
    width: 50px;
    height: 50px;
}

.symbol.symbol-xl .symbol-label {
    width: 75px !important;
    height: 75px !important;
    border-radius: 4px;
}

.cornered-badge {
    border-radius: 0 10px !important;
}

.Icone-Placeholder {
    background-size: 60% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.text-inherit {
    color: inherit !important;
}

img.drawer_img {
    max-height: 200px;
    max-width: 100%;
    border-radius: .85rem;
}

.badge.badge-circle {
    line-height: 1;
}

.accordion-button:not(.collapsed) {
    box-shadow: none !important;
}

.custom-Logo {
    height: 100% !important;
    width: 100% !important;
    max-height: 256px;
    max-width: 256px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 10%;
    /*background-size: 90% auto;*/
    background-image: url("/node_modules/assets/media/logos/willimobile_logo_black.svg");
    box-shadow: inset -15px 15px 25px -5px rgba(43, 43, 64, 0.75);
    background-color: white;
}

.logo-sm {
    height: 60px !important;
    width: 60px !important;
    min-height: 60px !important;
    min-width: 60px !important;
    max-height: 60px !important;
    max-width: 60px !important;
    box-shadow: inset -7px 7px 10px -5px rgba(43, 43, 64, 0.75);
}

.flatpickr-time-separator {
    color: inherit !important;
}

.alert-info {
    border-style: dashed;
    border-width: 2px;
}

html[data-bs-theme="dark"] .alert-info {
    color: #7e50e0;
}

html[data-bs-theme="light"] .btn.btn-active {
    border: 1px solid rgba(0, 0, 0, 0.3) !important;
}

.btn.btn-active {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50%;
}

.driver-popover-footer {
    margin-top: 5px !important;
}

/* ===== Tutoriel : popover mobile ===== */
.tutorial-popover-mobile {
    position: fixed !important;
    inset: auto 12px 12px 12px !important;
    max-width: none !important;
    width: auto !important;
    transform: none !important;
    margin: 0 !important;
    border-radius: 12px;
    height: fit-content;
}

.tutorial-popover-mobile.side-top {
    top: 12px !important;
}

/* Supprimer la flèche */
.tutorial-popover-mobile .driver-popover-arrow {
    display: none !important;
}

.tutorial-modal {
    position: fixed;
    inset: 0;
    margin: auto;
    width: 420px;
    max-width: calc(100% - 32px);
    background: var(--bs-body-bg);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
    padding: 20px;
    z-index: 9999;
    height: fit-content;
}

/* Désactiver les animations sur l’en-tête */
.app-header.d-flex {
    transition: none !important;
    transform: none !important;
}

#kt_app_aside_navbar_buttons {
    border-right: 1px solid var(--bs-prismjs-border) !important;
}

#kt_app_content {
    padding-top: 0.25rem !important
}

.rounded-0 {
    border-radius: 0 !important;
}

.rounded-1 {
    border-radius: 4px !important;
}

.rounded-2 {
    border-radius: 8px !important;
}

.rounded-3 {
    border-radius: 12px !important;
}

.form-control.value-holder {
    background-color: var(--bs-gray-200) !important;
    border: 1px dashed var(--bs-gray-400) !important;
    font-size: 0.95rem !important;
    padding: .5rem 1rem !important;
}

.value-holder.gradient-bg {
    border: 1px solid rgba(180, 210, 240, 0.10) !important;
}

.form-check-input {
    width: 1.5rem !important;
    height: 1.5rem !important;
    margin-top: 0 !important;
}

.form-check-input:not(:checked) {
    background-color: var(--bs-card-bg) !important;
}

input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #793AFF 0%, #9D6FFF 100%);
    background-size: 12px;
    background-image: var(--bs-form-check-bg-image);
    background-color: #793AFF;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

/* Bannière de notification */
#push-banner {
    max-width: 750px;
    width: max(75%, 300px);
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;

    background: var(--bs-body-bg);

    padding: 12px 20px;
    border-radius: 10px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);

    margin: 20px;
}

.push-banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: space-between;
}

.push-banner-actions {
    min-width: 120px;
    margin-left: 5px;
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.form-control {
    font-weight: normal !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* --- Footer crédits Responsive --- */
@media (max-width: 991.98px) {
    #push-banner {
        left: 0;
        transform: translateX(0);
        width: calc(100% - 40px);
        max-width: 100%;
        justify-content: space-between;
    }

    .push-banner-actions {
        flex-direction: column;
    }

    .footer {
        max-width: none;
        padding-left: calc(10px + 1rem) !important;
        padding-right: calc(10px + 1rem) !important;
        margin: 0 !important;
    }

    .custom-Logo:not(.logo-sm) {
        height: 80px !important;
        width: 80px !important;
        box-shadow: inset -7px 7px 10px -5px rgba(43, 43, 64, 0.75);
    }
}

@media (max-height: 790px) {
    .footer {
        position: static !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
    }
}

@media (max-width: 575px) {
    .footer {
        position: static !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.toolbar-toggle {
    display: flex;
    align-items: center;
}

.toolbar-toggle .btn {
    border-right: 1px solid var(--bs-border-color) !important;
    border-radius: 0 !important;
}

.toolbar-toggle .btn:nth-child(2) {
    border-radius: 10px 0 0 10px !important;
}

.toolbar-toggle .btn:nth-last-child(1) {
    border-right: 1px solid var(--bs-border-color) !important;
    border-radius: 0 10px 10px 0 !important;
}

.btn-check+.btn.btn-active-custom {
    background:
        linear-gradient(135deg,
            hsla(220, 50%, 47%, 0.05) 0%,
            /* bleu discret clair, 15% opa */
            rgba(10, 20, 60, 0.10) 100%
            /* bleu sombre, mais transparent, 20% opa */
        ),
        var(--bs-card-bg);
    color: var(--bs-text-muted) !important;
    border: 1px solid var(--bs-border-color) !important;
}

.btn-check:checked+.btn.btn-active-custom {
    background:
        linear-gradient(135deg,
            hsla(220, 50%, 47%, 0.15) 0%,
            /* bleu discret clair, 15% opa */
            rgba(10, 20, 60, 0.20) 100%
            /* bleu sombre, mais transparent, 20% opa */
        ),
        var(--bs-card-bg);
    color: inherit !important;
}

.btn-check:checked+.btn.btn-active-custom span {
    border-color: var(--bs-text-primary) !important;
}

/* --- action div Responsive --- */

@media (max-width: 350px) {
    #toolbar-container {
        flex-direction: column !important;
        padding: 16px 0 !important;
        align-items: start !important;
    }

    #toolbar-container #toolbar-actions {
        flex-direction: column !important;
        align-items: start !important;
        margin-top: 0 !important;
        gap: .75rem !important;
    }

    #toolbar-container #titre_date {
        margin-left: 0 !important;
    }

    #toolbar-container button {
        height: fit-content;
        width: fit-content;
    }

    .toolbar-toggle {
        flex-direction: column !important;
        width: 100% !important;
    }

    .btn-check+.btn.btn-active-custom {
        width: 100% !important;
        justify-content: center !important;
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
        font-size: 0.85rem !important;
    }

    .toolbar-toggle .btn:nth-child(2) {
        border-radius: 10px 10px 0 0 !important;
    }

    .toolbar-toggle .btn:nth-last-child(1) {
        border-top: 1px solid var(--bs-border-color) !important;
        border-radius: 0 0 10px 10px !important;
    }
}

::view-transition-group(root) {
    animation-duration: 1s;
    animation-timing-function: ease;
}

::view-transition-old(root) {
    animation-name: slide-out;
}

::view-transition-new(root) {
    animation-name: slide-in;
}

@keyframes slide-out {
    to {
        translate: -100vw;
    }
}

@keyframes slide-in {
    from {
        translate: 100vw;
    }
}