.over-x {
    overflow-x: scroll;
}
.over-y {
    overflow-y: scroll;
}

.over-x::-webkit-scrollbar{
    height: 4px;
}

.over-y::-webkit-scrollbar{
    width: 2px;
}

.over-x::-webkit-scrollbar-track,
.over-y::-webkit-scrollbar-track{
    box-shadow: inset 0 0 6px transparent;
}

.over-x::-webkit-scrollbar-thumb,
.over-y::-webkit-scrollbar-thumb{
    outline: 1px solid #C4C4C4;
    background: #C4C4C4;
    border-radius: 8px;
}

.light-check {
    opacity: 0.7;
    color: #333;
}

.my-alert {
    border-left:4px solid #dc3232;
    background:#fbeaea;
    color:#222;
    padding: 1rem 1rem;
    border-radius:0;
}

.dropdown-item:focus, .dropdown-item:hover, .dropdown-item:active {
    /* background-color: rgba(75, 77, 76, 0.1); rgba(81, 162, 255, 0.12); */
    background-color: rgba(75, 77, 76, 0.1);
}

.bg-danger-hover:hover {
    color: rgb(220, 53, 69);
    background-color: rgba(220, 53, 70, 0.127);
}

.toast {
    z-index: 1500;
}

.no-element {
    background: #000;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}


.shadow-default {
    box-shadow: 0px 8px 13px -3px rgba(0,0,0,.07);
}

.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

.fw-semibold {
    font-weight: 500 !important;
}

.fs-12 {
    font-size: 12px;
}

.fs-10 {
    font-size: 10px !important;
}

.text-justify {
    text-align: justify !important;
}

.table-container {
    min-height: 35vh;
}

#my-table thead tr th {
    text-align: center;
}

.dot-indicator {
    display: inline-block;
    width: 0.7em;
    height: 0.7em;
    border-radius: 50%;
}

.ajax-link {
    color: currentColor !important;
    text-decoration: none !important;
}

a {
    color: currentColor;
    text-decoration: none;
}

.card {
    border: none;
    overflow: hidden;
}

.email-card-container {
    margin-top: 15px;
}

.email-card-container .form-label {
    font-weight: 500;
}

/* style de la page par defaut */
.main-defaut-container {
    /* background: linear-gradient(135deg, #5171ff, #8b5cf6); */
    color: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Gotham';
}

.hero-container {
    text-align: center;
    max-width: 700px;
    padding: 2rem;
}

.hero-container .logo {
    width: 300px;
    height: auto;
    padding: 0 10px;
    margin-bottom: 2.5rem;
}
.hero-container h1 {
    font-weight: 700;
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-container p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}
.hero-container .btn-lg {
    /* padding: 0.75rem 1.5rem; */
    padding: 0.75rem 4.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
}
.hero-container .btn-pill {
    border-radius: 50px;
    padding: 0.75rem 4.5rem;
    font-size: 1rem;
}

.profile-doc-link:hover {
    text-decoration: underline;
    color: var(--primary);
}

/* =================================================
gestion du profile document 
=====================================================*/

/* ====== Zone principale ====== */
.profile-doc {
    position: relative;
    display: flex;
    width: 100%;
    height: 100vh; /* Utilise toute la hauteur de l'écran */
    overflow: hidden; /* Important : empêche scroll global */
}

/* ==== Colonne 1 : FACTURES ==== */
.profile-doc .factures-container {
    /* flex: 0 0 35%;
    max-width: 35%; */
    max-width: 100%;
    height: 100vh;
    /* overflow: scroll; */
    background: #fff;
    padding-top: 30px;
    padding-right: 5px;

    
    overflow-y: auto;
    scrollbar-width: none; /* Masque scrollbar */
}

/* ==== Colonne 2 : PREVIEW ==== */
.profile-doc .preview-container {
    /* flex: 0 0 45%;
    max-width: 45%; */
    max-width: 100%;
    height: 100vh;
    position: sticky; /* Agit comme fixed mais reste dans le flux */
    top: 0;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-left: 0px;
    border-left: 1px solid #dee2e6;
}

.profile-doc .iframe-box {
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: none; /* Masque scrollbar */
}

.iframe-box::-webkit-scrollbar {
    display: none;
}

.iframe-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==== Colonne 3 : INFOS ==== */
.profile-doc .infos-container {
    max-width: 100%;
    height: 100vh;
    position: sticky;
    top: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.profile-doc .infos-box {
    padding: 20px;
    padding-right: 0;
    overflow-y: auto;

    scrollbar-width: none;
}

.infos-box::-webkit-scrollbar {
    display: none;
}

/* affichage de la top-bar */
.fixed-to-top {
    width: 100%;
}

.top-bar {
    width: 100%;
    background: linear-gradient(90deg, #0e1a2b, #1c2b3a);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.shimmer-wave {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(
      120deg,
      transparent 0%,
      rgba(0, 119, 14, 0.453) 50%,
      transparent 100%
    );
    transform: translateX(-100%);
    animation: shimmer 2.5s infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
      transform: translateX(-100%);
    }
    100% {
      transform: translateX(100%);
    }
}


/* affichage du modal des nouveautes*/
.my-h-50 {
    max-height: 40vh;
}

#newFeaturesModal .modal-dialog {
    display: flex;
    justify-content: center;
    align-items: center;
}

#newFeaturesModal .modal-content {
    background: #fff;
    max-width: 390px;
    width: 100%;
    border: 1px solid var(--primary);
    box-shadow: 0 12px 30px rgba(74, 144, 226, 0.3);
    padding: 1.5rem 1.8rem;
    text-align: center;
    animation: fadeInScale 0.3s ease forwards;
}

#newFeaturesModal .modal-body {
    padding-top: 0;
}

/* Illustration */
#newFeaturesModal .modal-illustration {
    margin-bottom: 0.7rem;
}

/* Titre */
#newFeaturesModal .modal-title {
    color: #2C3E50;
}

#newFeaturesModal .modal-text {
    color: #4A4A4A;
    margin-bottom: 1rem;
}

#newFeaturesModal .modal-btn {
    margin-top: 0.8rem;
    padding: 0.6rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Features list */
#newFeaturesModal .features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

#newFeaturesModal .features-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.6rem;
    position: relative;
}

#newFeaturesModal .features-list li h6 {
    color: #4d5358;
    font-weight: 500 !important;
    margin: 0;
    margin-bottom: 0.2rem;
    font-size: 14px !important;
}

#newFeaturesModal .features-list li p {
    margin: 0;
    padding: 0;
    font-size: 11px;
    font-family: 'Montserrat', sans-serif;
}


#newFeaturesModal .features-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.8rem;
    line-height: 1;
}

/* Animation d’apparition */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#btn-ajouter-remise-globale {
    text-align: end;
    color: var(--primary);
}


#btn-ajouter-remise-globale:hover {
    text-decoration: underline;
    cursor: pointer;
}

.custom-label {
    font-size: 11px;
    padding: 0;
    margin: 0;
    margin-bottom: .2rem;
}

/* ====  style de la page reglages ==== */
.reglage-sidebar {
    position: relative;
    width: 200px;
    /* box-shadow: 1px 0 6px rgba(0, 0, 0, 0.06); */
    /* background: rgba(75, 77, 76, 0.1); */
    min-height: calc(100vh - 170px);
    height: auto;
    /* -webkit-box-shadow: 0 1px 15px 1px rgba(90,90,90,.08);
    box-shadow: 0 1px 15px 1px rgba(90,90,90,.08); */
}

.reglage-sidebar>li {
    border-bottom: 1px solid #e5e5e5;
    margin-right: 0;
    padding: 10px 17px 10px 17px;
    /* border-right: 1px solid #e5e5e5;
    border-left: 1px solid #e5e5e5; */
    border-radius: 0;
}


.reglage-sidebar>li:hover,
.reglage-sidebar>li.active {
    color: var(--primary);
    cursor: pointer;
}











/* Style pour les cellules de remise */
.remise-cellule {
    position: relative;
}

.remise-cellule.d-none {
    display: table-cell !important; /* Toujours occuper l'espace */
}

.remise-cellule.d-none .input-remise,
.remise-cellule.d-none .remise {
    display: none;
}

.remise-cellule.d-none .remise-placeholder {
    display: inline;
    color: #6c757d;
    font-style: italic;
}

.remise-cellule:not(.d-none) .remise-placeholder {
    display: none;
}

.remise-cellule:not(.d-none) .input-remise,
.remise-cellule:not(.d-none) .remise {
    display: block;
    width: 80px;
    margin: 0 auto;
}

/* Colonne remise */
.col-remise.d-none {
    display: none !important;
}






























/* ==== Responsive ==== */
@media (max-width: 992px) {
    .infos-container {
        max-height: 30vh;
    }
    .infos-box {
        max-height: 100%;
    }
    .preview-container {
        max-height: 70vh;
    }
    .preview-box {
        max-height: 100%;
    }
}

@media (max-width: 768px) {
    .profile-doc {
        flex-direction: column;
        height: auto;
        width: 100vw;
        max-width: 100%;
    } 

    .factures-container {
        max-height: 60vh;
    }

    .infos-container {
        max-height: 20vh;
    }

    .infos-box {
        max-height: 100%;
    }

    .preview-container {
        max-height: 50vh;
    }

    .preview-box {
        max-height: 100%;
    }
}