.text-gray-blue {
    color: #92b3c3 !important;
}

.text-orange {
    color: #ff9800 !important;
}

.doc-url {
    max-width: 180px !important;
    transition: all 0.3s ease-in-out;

    &:hover {
        color: var(--secondary-color);
    }
}

.custom-badge {
    &.deep-blue {
        color: #5b6eee;
        background-color: #e9edf8;
    }

    &.dark-green {
        color: #147967;
        background-color: #dfeae7;
    }
}

.userList-wraper {
    padding-top: 10px !important;
}

#toast-container > div {
    opacity: .9 !important;
}

.content-part {
    .media {
        height: 79px !important;
        border: 1px solid var(--border-color) !important;
    }

    .category-part {
        margin-top: 6px !important;
        margin-bottom: 10px !important;
    }
}

.btn_disabled {
    opacity: 0.6 !important;
}

.swal2-styled.swal2-confirm {
    background-color: var(--secondary-color) !important;
    color: var(--white) !important;
    border: 1px solid transparent !important;
    transition: all 0.3s ease-in-out !important;

    &:hover {
        color: var(--secondary-color) !important;
        background-color: transparent !important;
        border-color: var(--secondary-color) !important;
    }
}

.swal2-actions:not(.swal2-loading) .swal2-styled:hover {
    background-image: none !important;
    transition: all 0.3s ease-in-out !important;
}

.swal2-styled.swal2-default-outline:focus, .swal2-styled.swal2-confirm:focus {
    box-shadow: none !important;
}

.alert {
    padding: 0 !important;

    ul {
        padding-left: 1rem !important;
    }
}

.custom-checkbox:checked {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

.select2-selection__clear {
    color: #9e9e9d !important;
}

.notification-count, .menu-notification-count {
    position: absolute;
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    z-index: 1;
    opacity: 0 !important;
    transition: all 0.3s ease-in-out !important;

    &.visible {
        opacity: 1 !important;
    }
}

.notification-btn-wraper {
    position: relative;

    .action-btn {
        background-color: #efefef !important;
        transition: all 0.3s ease-in-out !important;

        &:hover {
            background-color: var(--secondary-color) !important;
            color: var(--white) !important;
        }
    }

    .notification-count {
        top: -7px !important;
        right: -7px !important;
    }
}

.white-btn {
    background-color: transparent;
    border-color: var(--secondary-color) !important;
    color: var(--secondary-color);

    &:hover {
        background-color: var(--secondary-color) !important;
        color: var(--white);
    }
}

.sidebar-menu-link {
    position: relative;

    .notification-count, .menu-notification-count {
        top: 25% !important;
        right: 8px !important;
    }
}

.chatbot-wraper {
    border: none !important;

    .chatbot-header .content-part .img {
        /*background-color: inherit !important;*/

        img {
            max-height: inherit !important;
            max-width: inherit !important;
            height: 100%;
            width: 100%;
            object-fit: cover;
        }
    }
}

.chatbot-message-content {
    padding: 12px 14px !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 5px 1px rgba(0, 0, 0, 0.1) !important;
    cursor: default !important;
    pointer-events: auto !important;

    .chatbot-logo {
        margin-bottom: 10px !important;

        .img {
            width: 20px !important;
            height: 20px !important;

            img {
                max-height: inherit !important;
                max-width: inherit !important;
                height: 100%;
                width: 100%;
                object-fit: cover;
            }
        }
    }

    .text {
        line-height: 1.4 !important;
    }
}

.chatbot-widget-wraper {
    .chatbot-body {
        margin-bottom: 24px !important;

        .chatbot-message-wraper {
            max-width: 90% !important;
            cursor: default !important;

            .chat-msg-time {
                text-align: right !important;
                margin-left: 0 !important;
                margin-right: 8px !important;
                font-size: 12px !important;
                font-weight: 500;
                color: #6C7278 !important;
            }

            .chat-msg-text {
                a {
                    color: #111827 !important;
                    font-weight: 600 !important;
                }

                p:not(:last-child) {
                    margin-bottom: 16px !important;
                }
            }

            &:has(.chatbot-contact-form) {
                width: 100% !important;
            }

            &.user {
                max-width: 75% !important;

                .chat-msg-time {
                    text-align: right !important;
                    margin-left: 0 !important;
                    margin-right: 8px !important;
                    font-size: 12px !important;
                    font-weight: 500;
                    color: #6C7278 !important;
                }
            }
        }
    }

    .chatbot-footer-wraper .chatbot-footer {
        .input-wraper {
            padding: 12px !important;
        }

        .send-btn {
            transition: all 0.3s ease-in-out !important;
        }
    }
}

.custom-scroll-bar {
    &::-webkit-scrollbar-thumb {
        cursor: pointer !important;
        background-color: #ececec !important;
    }

    &::-webkit-scrollbar-thumb:hover {
        background-color: #bebebe !important;
    }
}

.scroll-to-bottom-btn-wrapper .scroll-to-bottom {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease-in-out;
}

.flex-center {
    display: flex !important;
}

.installation-code-container-wraper .code-container {
    padding: 0 !important;
}

.custom-switch {
    background-color: #a3aab1;

    &:checked {
        background-color: var(--secondary-color);
    }
}

.alert {
    padding: 1rem !important;

    ul {
        margin-bottom: 0 !important;
    }
}

.dropzone .dz-preview:hover .dz-details {
    color: var(--sc-light-gray) !important;
}

.custom-image-input-wrapper {
    border: 1px dashed var(--primary-color);
    border-radius: 6px;
    background-color: #586bf11a;
    padding: 16px;
    min-height: 130px;
    text-align: center;

    .uplod-image {
        height: 150px;
        width: 150px;
        border-radius: 6px;
        overflow: hidden;
        position: relative;

        .cancel-btn {
            position: absolute;
            top: 4px;
            right: 4px;
            height: 20px !important;
            width: 20px !important;
            padding: 0 !important;
            border-radius: 50%;
            background-color: #dc3545d9;
            color: var(--white);
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s ease-in-out;
            z-index: 99;
        }

        .uploaded-image-wraper {
            height: 100%;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 6px;
            border: 1px dashed var(--primary-color);
            overflow: hidden;
        }

        img {
            height: 100%;
            width: 100%;
            object-fit: contain;
        }

        &:hover {
            .cancel-btn {
                opacity: 1;
                visibility: visible;
            }
        }
    }

    .csutom-image-input-btn {
        padding: 6px 8px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        border-radius: 4px;
        border: 1px solid transparent;
        color: var(--secondary-color);
        background-color: var(--white);
        cursor: pointer;
        transition: all 0.3s ease-in-out;

        &:hover {
            background-color: var(--primary-color);
            color: var(--white);
        }

        button {
            all: unset;
        }
    }

    .attachment-preview .thumbnail .centered {
        all: unset;

        img {
            transform: none !important;
        }
    }

    .img-inner-wrap {
        margin: 0 !important;
    }

}

.media-upload-btn-wrapper .img-wrap .rmv-span {
    right: 19px !important;
    top: 37px !important;
    transition: all 0.3s ease-in-out !important;

    &:hover {
        background-color: #a63333 !important;
    }
}

.custom-select + .select2 {
    & .select2-selection--single {
        .select2-selection__rendered {
            color: #000 !important;
        }
    }
}

.notification-card:hover {
    background-color: var(--sc-light-gray);
    cursor: pointer !important;
}

.ticket-description-box {
    max-height: 850px;
    overflow-y: auto;
    padding: 0 14px;
}

.open-ticket-container {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 20px;


    .company-logo {
        max-width: 120px;
        max-height: 80px;
        object-fit: cover;
        border-radius: 8px;
    }

    .company-name {
        font-size: 16px;
        font-weight: 600;
        margin: 0;
    }

    .company-header p {
        font-size: 20px;
        font-weight: 600;
        color: var(--bs-body-color);
    }

    .credit-text a {
        font-weight: 600;
    }
}

.loading-indicator {
    transition: all 0.3s ease-in-out;
    opacity: 0.2;
    pointer-events: none;
    cursor: not-allowed;
    position: relative;
}

.loading-indicator:before {
    content: '';
    position: absolute;
    top: 25%;
    left: 50%;
    width: 30px;
    height: 30px;
    z-index: 99999999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid;
    border-right: 0;
    border-bottom: 0;
    border-radius: 50%;
    opacity: 1 !important;
    animation: spin 1.2s linear infinite;
}

.ticket-title {
    width: 200px;
}

.cmn-btn.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

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

    }

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

.red-btn-outline {
    border-color: var(--sc-red);
    color: var(--sc-red);

    &:hover {
        color: var(--white);
        background-color: var(--sc-red);
    }
}

.cmn-btn.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.cmn-btn.black-btn {
    align-self: stretch;
}

.bulk-action-search {
    padding-left: 17px;
}

.content {
    padding-left: 35px !important;
}

.logout-menu {
    .sidebar-menu-list {
        list-style: none;
        gap: 8px;
        padding: 0;
        padding-right: 8px;
        margin: 0;
        overflow-y: auto;
        overflow-x: clip;
    }

    .sidebar-menu-link {
        display: flex;
        gap: 8px;
        padding: 8px;
        border-radius: 6px;
        font-weight: 500;
        color: var(--secondary-color);
        transition: all 0.3s ease-in-out;

        &:hover,
        &.active {
            background-color: var(--white);
        }
    }

    .sidebar-menu-text {
        opacity: 1;
        visibility: visible;
        max-width: fit-content;
        transition: max-width 0.3s ease, opacity 0.2s linear 0.3s, visibility 0s linear 0.3s;
    }
}

.profile-menu-email {
    max-width: 150px;
    overflow: hidden;
}
.add-chatbot-option-wraper {
    display: grid;
    grid-template-columns: 1fr 30%;
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip{
    background: #FFFFFF !important;
    border: 1px solid #586BF1 !important;
    border-radius: 8px !important;

}
.leaflet-popup-content{
    font-family: var(--inter-font) !important;
}
.page-visits-container{
    max-height: 400px;
    overflow-y: auto;
}


/* ======================================================================
   WAVIZE — CLEAN PACK (FINAL / DEDUPED WITHOUT BREAKING MOBILE)
   ✅ 1 seule source de vérité (desktop + mobile)
   ✅ Mobile: topbar + pagebar + offcanvas + fix "zone vide"
   ✅ Sidebar: one scroll + bottom fixed
======================================================================== */

/* ------------------------------
   0) Vars (ONE SINGLE :root)
   -> On garde les 2 jeux de variables pour compat
------------------------------ */
:root{
  --wz-primary:#011d3c;
  --wz-accent:#ce024b;

  /* legacy gradient */
  --wz-bg-top:#f8fbff;
  --wz-bg-mid:#f4f8ff;

  /* mobile-fix gradient */
  --wz-bg:#f6f9ff;
  --wz-bg2:#f2f7ff;

  --wz-card:#ffffff;
  --wz-text:#0b1220;
  --wz-muted:rgba(11,18,32,.62);

  --wz-border:rgba(1,29,60,.10);
  --wz-shadow-soft:0 12px 26px rgba(1,29,60,.08);
  --wz-shadow:0 18px 45px rgba(1,29,60,.18);

  --wz-radius:14px;
  --wz-radius-lg:18px;
}

/* ------------------------------
   1) Global (ONE SINGLE body/html)
------------------------------ */
html, body{ height:100%; }

*{ box-sizing:border-box; }
img{ max-width:100%; height:auto; }

body{
  color: var(--wz-text);
  /* on garde le gradient "mobile fix" (celui qui était en dernier chez toi) */
  background: linear-gradient(180deg, var(--wz-bg2) 0%, var(--wz-bg) 70%, var(--wz-bg) 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important; /* ✅ essentiel (anti page coupée / zone vide) */
}

/* panel right must not paint over background */
.panel-right,
.wz-panel-right{
  background: transparent !important;
  overflow-x: hidden !important;
}

/* content spacing */
.wz-content{ padding-top: 14px; }

/* ------------------------------
   2) Cards / Tables / Inputs / Buttons (ONE SINGLE)
------------------------------ */
.dashboard_border,
.card,
.custom-table,
.knowledge-card,
.userCard,
.open-ticket-container,
.info-wraper-card,
.contact-info-card,
.ticketCard,
.support-ticket-card,
.profile-card,
.settings-card{
  background: var(--wz-card) !important;
  border: 1px solid var(--wz-border) !important;
  border-radius: var(--wz-radius-lg) !important;
  box-shadow: var(--wz-shadow-soft) !important;
}

.dashboard_border .card-body,
.card .card-body{
  padding: 18px !important;
}

.custom-table table,
.table,
table{
  background: transparent !important;
}
.table thead th,
.custom-table thead th{
  font-weight: 700 !important;
  color: rgba(11,18,32,.70) !important;
  border-bottom: 1px solid rgba(1,29,60,.08) !important;
}
.table td,
.table th,
.custom-table td,
.custom-table th{
  border-color: rgba(1,29,60,.06) !important;
}

.custom-input,
.custom-select,
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea{
  background: #fff !important;
  border: 1px solid rgba(1,29,60,.14) !important;
  border-radius: 12px !important;
}
.custom-input:focus,
.custom-select:focus,
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: inherit !important;
  box-shadow: none !important;
}

.cmn-btn.primary-btn{
  background: var(--wz-accent) !important;
  border-color: transparent !important;
  border-radius: 12px !important;
}
.cmn-btn.black-btn{
  background: #ce024b !important;
  border-color: transparent !important;
  border-radius: 12px !important;
}

.cmn-btn.black-btn:hover {
  background: var(--wz-primary) !important;
  color: white !important;
  border-color: transparent !important;
  border-radius: 12px !important;
}
.cmn-btn.gray-btn-outline{
  border-radius: 12px !important;
}

/* ------------------------------
   3) SIDEBAR (desktop base) + menu visuals (ONE SINGLE)
------------------------------ */
.panel-left{
  background: var(--wz-primary) !important;
  border-right: 1px solid rgba(255,255,255,.10) !important;
  box-shadow: var(--wz-shadow) !important;
  padding: 12px !important;

  height: 100vh !important;
  overflow: hidden !important;

  position: sticky !important;
  top: 0 !important;
}

.panel-left .sidebar{
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-bottom: 190px !important; /* reserve for bottom fixed */
}

/* desktop hide */
.wz-mobile-sidebar-head{ display:none; }

/* Logo row */
.sidebar-logo{
  padding: 6px 6px 10px 6px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap: 10px !important;
}
.wz-brand img{
  height: 28px !important;
  width: auto !important;
  display:block;
}

/* Toggle button base */
.sidebar-toggleler{
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.06) !important;

  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;

  text-decoration:none !important;
}
.sidebar-toggleler i{ color:#fff !important; }

/* ✅ si le thème force un bg blanc => icône foncée */
.sidebar-toggleler[style*="background:#fff"] i,
.sidebar-toggleler[style*="background: #fff"] i,
.sidebar-toggleler[style*="background-color:#fff"] i,
.sidebar-toggleler[style*="background-color: #fff"] i{
  color: #0b1220 !important;
}

/* Sections */
.wz-sidebar-section{
  margin: 10px 10px 6px !important;
  font-size: 9px !important;
  text-transform: uppercase !important;
  letter-spacing: .12em !important;
  color: rgba(255,255,255,.55) !important;
}

/* Links */
.sidebar-menu-link{
  border-radius: 12px !important;
  padding: 9px 10px !important;
  margin: 0 4px !important;
  min-height: 38px !important;
  gap: 10px !important;
  font-size: 14px !important;
  color: rgba(255,255,255,.90) !important;
  transition: background .14s ease, transform .14s ease;
}
.sidebar-menu-icon,
.sidebar-menu-icon i{ color: rgba(255,255,255,.92) !important; }

.sidebar-menu-link:hover{
  background: rgba(255,255,255,.08) !important;
  transform: translateY(-1px);
}
.sidebar-menu-link.active{
  background: rgba(255,255,255,.10) !important;
  color:#fff !important;
  position: relative;
}
.sidebar-menu-link.active::before{
  content:"";
  position:absolute;
  left:-10px;
  top:50%;
  transform:translateY(-50%);
  width:4px;
  height:18px;
  border-radius:999px;
  background: var(--wz-accent);
}

/* Badge */
.wz-badge-count{
  margin-left:auto;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display:none;
  align-items:center;
  justify-content:center;
  font-size: 12px;
  font-weight: 800;
  background: rgba(206,2,75,.18);
  border: 1px solid rgba(206,2,75,.30);
  color:#fff;
}
.wz-badge-count.visible{ display:inline-flex; }

/* prevent inner list scroll */
.sidebar-menu .sidebar-menu-list,
.wz-sidebar-bottom .sidebar-menu-list{
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

/* Scrollbar */
.panel-left .sidebar::-webkit-scrollbar{ width: 6px; }
.panel-left .sidebar::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.16); border-radius: 999px; }
.panel-left .sidebar::-webkit-scrollbar-track{ background: transparent; }

/* Bottom fixed area */
.wz-sidebar-bottom{
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 76px !important;
  z-index: 5 !important;

  background: var(--wz-primary) !important;
  border-top: 1px solid rgba(255,255,255,.10) !important;
  padding-top: 10px !important;
}
.user-profile-menu-wraper{
  position: absolute !important;
  left: 12px !important;
  right: 12px !important;
  bottom: 12px !important;
  z-index: 6 !important;
  background: var(--wz-primary) !important;
}
.user-profile-menu-btn{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 14px !important;
  padding: 9px 10px !important;
}
.user-profile-menu-btn .black-text{
  color: rgba(255,255,255,.92) !important;
  font-size:14px !important;
}
.user-profile-menu-btn .paragraph-color{
  color: rgba(255,255,255,.70) !important;
  font-size:12px !important;
}

/* ------------------------------
   4) Desktop TOPBAR (ONE SINGLE)
------------------------------ */
.wz-topbar-clean{
  position: sticky !important;
  top: 0 !important;
  z-index: 2000 !important;

  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap: 12px !important;

  width: 100% !important;
  margin: 0 !important;
  padding: 12px 18px !important;

  background: #fff !important;
  border-bottom: 1px solid rgba(1,29,60,.10) !important;
  box-shadow: 0 10px 22px rgba(1,29,60,.06) !important;
}

.wz-topbar-clean__title{
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  margin: 0 !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.wz-topbar-clean__actions{
  display:flex !important;
  align-items:center !important;
  gap: 12px !important;
  flex: 0 0 auto !important;
}

.wz-topbar-clean__icon{
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(1,29,60,.10) !important;
  background: #fff !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  color: inherit !important;
  text-decoration: none !important;
}
.wz-topbar-clean__icon:hover{ background:#f6f8fc !important; }

.wz-topbar-clean__user{
  display:inline-flex !important;
  align-items:center !important;
  gap: 10px !important;

  height: 44px !important;
  padding: 6px 12px !important;

  border-radius: 14px !important;
  border: 1px solid rgba(1,29,60,.10) !important;
  background: #fff !important;

  width: auto !important;
  max-width: 360px !important;
  text-decoration: none !important;
  color: inherit !important;
}
.wz-topbar-clean__user:hover{ background:#f6f8fc !important; }

.wz-topbar-clean__avatar{
  width: 36px !important;
  height: 36px !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: #eef2f7 !important;
}
.wz-topbar-clean__avatar img{
  width:100% !important;
  height:100% !important;
  object-fit: cover !important;
}
.wz-topbar-clean__user-info{ min-width:0 !important; }
.wz-topbar-clean__user-name{
  font-size: 14px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.wz-topbar-clean__user-role{
  font-size: 12px !important;
  color: rgba(11,18,32,.55) !important;
}

/* ------------------------------
   5) MOBILE TOPBAR + PAGEBAR (ONE SINGLE)
------------------------------ */
.wz-mtopbar, .wz-mpagebar{ display:none; }

.wz-mtopbar{
  height: 56px;
  padding: 0 12px;
  background:#fff;
  border-bottom: 1px solid rgba(1,29,60,.10);

  position: sticky;
  top: 0;
  z-index: 3000;

  align-items:center;
  justify-content:space-between;
}

.wz-mtopbar-logo{
  display:flex;
  align-items:center;
  text-decoration:none;
  color: inherit;
}
.wz-mtopbar-logo img{
  height: 25px;
  width:auto;
  display:block;
}

.wz-mtopbar-actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

.wz-micon-btn{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(1,29,60,.10);
  background:#fff;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  color: var(--wz-primary);
}
.wz-micon-btn i{ color: var(--wz-primary) !important; }

/* ✅ burger utilisé avec .sidebar-toggleler => icône foncée + bouton blanc */
.wz-micon-btn.sidebar-toggleler{
  background:#fff !important;
  border: 1px solid rgba(1,29,60,.10) !important;
}
.wz-micon-btn.sidebar-toggleler i{
  color: var(--wz-primary) !important;
}

.wz-mpagebar{
  background:#fff;
  border-bottom: 1px solid rgba(1,29,60,.08);

  position: sticky;
  top: 56px; /* sous la topbar */
  z-index: 2999;

  padding: 10px 12px;
}
.wz-mpagebar-title{
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------
   6) MOBILE LAYOUT FIX (MERGED: offcanvas + zone vide + vh bug)
------------------------------ */
.wz-sidebar-overlay{ display:none; }

@media (max-width: 992px){

  /* show mobile bars */
  .wz-mtopbar{ display:flex !important; }
  .wz-mpagebar{ display:block !important; }

  /* hide desktop topbar */
  .wz-topbar-clean{ display:none !important; }

  /* ✅ offcanvas sidebar (MERGED with dvh fix) */
  .panel-left{
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;

    width: 86vw !important;
    max-width: 340px !important;

    height: auto !important;
    max-height: 100dvh !important;

    z-index: 9999 !important;

    will-change: transform;
    backface-visibility: hidden;

    transform: translateX(-110%) translateZ(0) !important;
    transition: transform .18s ease !important;
  }
  body.wz-sidebar-open .panel-left{
    transform: translateX(0) translateZ(0) !important;
  }

  /* sidebar scroll */
  .panel-left .sidebar{
    height: 100% !important;
    max-height: 100% !important;
  }

  /* ✅ Fix zone vide / offsets desktop */
  .panel-right,
  .wz-panel-right{
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }

  .panel-wraper,
  .panel-wrapper,
  .panel-wrap,
  .wz-panel,
  .wz-panel-wraper,
  .wz-panel-wrapper{
    display:block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* content spacing under sticky bars */
  .wz-content{
    padding-top: 12px !important;
  }

  /* mobile cards padding like your file */
  .dashboard_border .card-body,
  .card .card-body{
    padding: 14px !important;
  }

  /* overlay */
  .wz-sidebar-overlay{
    display:block;
    position: fixed;
    inset: 0;
    background: rgba(10,14,25,.42);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }
  body.wz-sidebar-open .wz-sidebar-overlay{
    opacity: 1;
    pointer-events: auto;
  }
}

/* ------------------------------
   7) PATCHES (kept exactly, but deduped)
------------------------------ */
@media (max-width: 992px){

  /* z-index when open */
  body.wz-sidebar-open .panel-left{ z-index: 20000 !important; }
  body.wz-sidebar-open .wz-mtopbar,
  body.wz-sidebar-open .wz-mpagebar{ z-index: 1000 !important; }
  body.wz-sidebar-open .wz-sidebar-overlay{ z-index: 19000 !important; }

  /* force sidebar text white on mobile */
  .panel-left,
  .panel-left .sidebar{ color: #fff !important; }

  .panel-left a,
  .panel-left .sidebar-menu-link,
  .panel-left .sidebar-menu-link span,
  .panel-left .sidebar-menu-link p{
    color: rgba(255,255,255,.92) !important;
    text-decoration: none !important;
  }

  .panel-left .sidebar-menu-icon,
  .panel-left .sidebar-menu-icon i,
  .panel-left i{
    color: rgba(255,255,255,.92) !important;
  }

  .panel-left .sidebar-menu-link:hover{
    background: rgba(255,255,255,.08) !important;
  }
  .panel-left .sidebar-menu-link.active{
    background: rgba(255,255,255,.12) !important;
    color: #fff !important;
  }

  .panel-left .wz-badge-count{ color:#fff !important; }

  /* lock body scroll when open */
  body.wz-sidebar-open{
    overflow: hidden !important;
    height: 100vh !important;
  }

  /* show labels */
  body.wz-sidebar-open .panel-left .sidebar-menu-link{
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 10px 12px !important;
  }

  body.wz-sidebar-open .panel-left .sidebar-menu-link .sidebar-menu-text,
  body.wz-sidebar-open .panel-left .sidebar-menu-link .menu-title,
  body.wz-sidebar-open .panel-left .sidebar-menu-link span:not(.wz-badge-count),
  body.wz-sidebar-open .panel-left .sidebar-menu-link p{
    display: inline !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: auto !important;
    max-width: 100% !important;
    color: rgba(255,255,255,.92) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.wz-sidebar-open .panel-left .sidebar-menu,
  body.wz-sidebar-open .panel-left .sidebar{
    width: 100% !important;
  }

  body.wz-sidebar-open .panel-left .sidebar-menu-icon,
  body.wz-sidebar-open .panel-left .sidebar-menu-icon i{
    color: rgba(255,255,255,.92) !important;
  }

  body.wz-sidebar-open .panel-left .wz-sidebar-section,
  body.wz-sidebar-open .panel-left .sidebar-section-title,
  body.wz-sidebar-open .panel-left .sidebar-title{
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: rgba(255,255,255,.55) !important;
  }

  /* safe area bottom for profile */
  .user-profile-menu-wraper{ bottom: 12px !important; }
  @supports (padding: env(safe-area-inset-bottom)){
    .user-profile-menu-wraper{
      bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    }
  }
}


/* =========================================================
   HIDE PROFILE BLOCK ON MOBILE
========================================================= */
@media (max-width: 992px){
  .user-profile-menu-wraper{
    display: none !important;
  }
}


/* =========================================================
   FIX MOBILE — stop bottom-fixed sidebar (avoid overlap)
   Met le bloc Account en "normal flow" sur mobile
========================================================= */
@media (max-width: 992px){

  /* on n'a plus besoin de réserver de la place en bas */
  .panel-left .sidebar{
    padding-bottom: 24px !important;
  }

  /* le bloc "Account" ne doit plus être absolute sur mobile */
  .wz-sidebar-bottom,
  .logout-menu.wz-sidebar-bottom{
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;

    margin-top: 10px !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255,255,255,.10) !important;
    background: transparent !important;
  }

  /* si tu as retiré le profil sur mobile, on le cache au cas où */
  .user-profile-menu-wraper{
    display: none !important;
  }
}


/* =========================================================
   SIDEBAR COLLAPSED (icons-only)
   - cacher les titres de sections (CORE/ADMIN/ACCOUNT)
   - aligner parfaitement le bouton burger
========================================================= */

/* 1) Titres de sections: cachés en mode réduit
   => on cible le cas où la sidebar est étroite (icons-only)
   Ajuste 84px si ton mode réduit est un poil différent. */
@media (min-width: 993px){
  .panel-left{
    position: relative;
  }

  /* Quand la sidebar est "collapsée" (largeur petite), on cache les sections */
  .panel-left:has(.sidebar) {
    /* rien */
  }

  /* Fallback robuste: si ta sidebar réduite applique une classe sur body/html,
     ajoute aussi la règle correspondante (ex: body.sidebar-collapsed ...).
     Là on fait au plus simple: par largeur réelle de la sidebar. */
  .panel-left[style*="width: 80px"],
  .panel-left[style*="width:80px"],
  .panel-left[style*="width: 70px"],
  .panel-left[style*="width:70px"]{
    /* titres sections */
  }
}

/* ✅ Méthode la plus fiable (sans dépendre d’un style inline) :
   si ton thème ajoute une classe quand c’est réduit (souvent: .active, .collapsed, .close)
   Tu peux en activer une juste en dessous si tu la connais.
   En attendant, on fait une règle visuelle : quand le texte des liens est caché => on cache les sections */
@media (min-width: 993px){
  /* si le texte des liens est "display:none" en collapsed, on masque les titres */
  .panel-left .sidebar-menu-text[style*="display: none"],
  .panel-left .sidebar-menu-text[style*="display:none"]{
    /* cache les sections */
  }
  /* règle directe (tu peux laisser, elle ne casse rien même si pas de collapsed) */
  .panel-left .wz-sidebar-section{
    white-space: nowrap;
  }
}

/* ✅ Version qui marche 99% des thèmes collapsés :
   quand la sidebar est étroite (<= 86px) */
@media (min-width: 993px){
  .panel-left{
    container-type: inline-size; /* permet @container */
  }

  .sidebar-logo {
    padding: 6px 0px 10px 6px !important;
}

  @container (max-width: 86px){
    .panel-left .wz-sidebar-section{
      display:none !important;
    }

    /* optionnel: réduire l’espace vertical inutile */
    .panel-left .sidebar-menu-item{
      margin-top: 2px !important;
    }
  }
}

/* 2) Burger / toggle: centrage parfait */
.sidebar-toggleler{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important;         /* évite le décalage vertical */
  padding: 0 !important;             /* pas de padding parasite */
}

.sidebar-toggleler i{
  display:block !important;
  line-height: 1 !important;
  margin: 0 !important;
  transform: translateY(0) !important;
}

/* si ton icône a une classe icon-22px qui ajoute un alignement bizarre */
.sidebar-toggleler .icon-22px{
  line-height: 1 !important;
  vertical-align: middle !important;
}





/* =========================================
   Wavize Ecommerce Integration Banner
========================================= */

.wz-ecom-banner {
    background: linear-gradient(135deg, #fff8ec 0%, #fff2da 100%);
    border-bottom: 1px solid rgba(255, 165, 0, 0.25);
    padding: 14px 22px;
    animation: wzFadeDown .25s ease-out;
}

.wz-ecom-banner__content {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
}

.wz-ecom-banner__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 165, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c87400;
    font-size: 18px;
    flex-shrink: 0;
}

.wz-ecom-banner__text {
    flex: 1;
    min-width: 0;
}

.wz-ecom-banner__title {
    font-weight: 900;
    font-size: 14px;
    color: #5a3a00;
    margin-bottom: 2px;
}

.wz-ecom-banner__desc {
    font-size: 13px;
    font-weight: 600;
    color: rgba(90, 58, 0, 0.75);
}

.wz-ecom-banner__btn {
    background: #011d3c;
    color: #fff !important;
    text-decoration: none;
    padding: 9px 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13px;
    transition: all .2s ease;
    white-space: nowrap;
}

.wz-ecom-banner__btn:hover {
    background: #022a57;
    transform: translateY(-1px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .wz-ecom-banner__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .wz-ecom-banner__btn {
        width: 100%;
        text-align: center;
    }
}

/* Small entrance animation */
@keyframes wzFadeDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.chatbot-header .content-part .img img {
    width: 95% !important;
    height: 95% !important;
    object-fit: cover !important;
    display: block !important;
}