.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;
}

.file-card {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.file-icon {
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.file-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.file-card>* {
    height: 100%;
}

/*.file-name {
}*/

.file-meta {
    font-size: 12px;
    color: var(--muted)
}

.file-actions {
    margin-left: auto;
    display: flex;
    gap: 8px
}

.file-actions .btn {
    appearance: none;
    border: 1px solid var(--bs-card-bg) !important;
    background: transparent;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.file-actions .btn.mobile {
    padding: 12px 16px !important;
}

.file-actions .btn:hover {
    border-color: color-mix(in lab, #4f46e5 40%, var(--bs-card-bg)) !important;
    background: #babac715;
}

@media (min-width:1201px) {
    .file-actions .btn {
        display: flex !important;
        flex-direction: column;
    }

    .file-actions .btn.mobile {
        display: none !important;
    }
}

@media (min-width:1500px) {
    .file-actions .btn {
        flex-direction: row;
    }
}

@media (max-width:1200px) {
    .file-actions .btn {
        display: none;
    }

    .file-actions .btn.mobile {
        display: flex !important;
    }
}

/*@media (max-width:1060px) {
    .file-name {
        display: none;
    }
}*/

/*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;
}

.f-tahoma {
    font-family: 'Roboto', sans-serif !important;
    font-family: 'Tahoma', sans-serif !important;
}

.op-6 {
    opacity: 0.60;
}

.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;
}

body,
.app-default {
    /*background: linear-gradient(135deg,
            var(--bs-app-bg-color) 50%,
            rgba(10, 20, 60, 0.20) 150%),
        rgba(10, 20, 60, 0.20);*/
    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);
    background-attachment: fixed;
}

.symbol {
    border-radius: 10% !important;
}

.symbol .symbol-label {
    width: 35px !important;
    height: 35px !important;
    border-radius: 4px !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;
}

.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);
}

.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;
}

/* --- Footer crédits Responsive --- */
@media (max-width: 991.98px) {
    .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-color: var(--bs-card-bg);
    color: var(--bs-text-muted) !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;
    }
}