.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, .dropdown-item:active {
    background-color: #e9ecef;
    color: var( --bs-body-color);
}

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

.toast {
    z-index: 1500;
}

.no-element {
    background: var(--light) !important;
    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;
}

.fw-extralight {
    font-weight: 200 !important;
}

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

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

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

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

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

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

.text-opacity-70 {
    opacity: 0.7;
}

.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;
}

.text-truncate {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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


/** ====----------------- */
/** style pour l'editeur quill */
#editor-container {
    height: auto;
    min-height: 150px;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 8px 4px;
}

.ql-toolbar {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    border-bottom: 1px solid #ced4da;
}

#emoji-palette {
    top: 0 !important;
}

.quill-description ul,
.quill-description ol {
    list-style: initial !important;
    padding-left: 1.5rem !important;
}

.quill-description ul {
    list-style-type: disc !important;
}

.quill-description ol {
    list-style-type: decimal !important;
}

/** ====----------------- */

/* style de la page par defaut */
.main-defaut-container {
    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);
}

/* Styles pour les selects avec recherche */
.autocomplete-filter {
    max-height: 250px;
    overflow-y: auto;
    position: absolute;
    background: white;
    border-radius: 4px;
    margin-top: 2px;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.autocomplete-filter .autocomplete-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.875rem;
}

.autocomplete-filter .autocomplete-item:hover {
    background-color: #f8f9fa;
}

.autocomplete-filter .autocomplete-item:last-child {
    border-bottom: none;
}

.module-block {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.module-block:last-child {
    border-bottom: none !important;
}

/* =================================================
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%;
}

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

.min-vh-80 {
    min-height: 80vh;
}

.feature-restricted {
    opacity: 0.6;
    /* cursor: not-allowed; */
    position: relative;
}

.badge.pro {
    padding: 0.3em 0.5em;
    font-size: 10px !important;
}

.feature-restricted:hover {
    opacity: 0.8;
}

#advanced-filters label {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 
.feature-restricted::after {
    content: "🔒";
    margin-left: 5px;
    font-size: 0.8em;
} */

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

.custom-modal .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;
}

.custom-modal .modal-body {
    padding-top: 0;
}

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

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

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

.custom-modal .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 */
.custom-modal .features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

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

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

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

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

/* last refunds */
.refund-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.tiny-badge {
    padding: 0.3em 0.5em;
}

.refund-item:hover {
    background-color: #f8f9fa;
    border-left-color: var(--bs-primary);
}

/* Styles supplémentaires pour l'onglet Partage */
.access-list {
    max-height: 300px;
    overflow-y: auto;
}

.access-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.access-item:hover {
    background-color: #f8f9fa;
}

.access-item.owner {
    background-color: rgba(13, 110, 253, 0.05);
}

.access-item.current-user {
    background-color: rgba(25, 135, 84, 0.05);
}

.access-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.access-info {
    flex-grow: 1;
}

.access-name {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.access-name strong {
    margin-right: 8px;
}

.access-details {
    font-size: 0.85rem;
    color: #6c757d;
}

.access-actions {
    flex-shrink: 0;
}

.history-item {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
}

.history-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.history-info {
    flex-grow: 1;
}

.history-title {
    font-weight: 500;
    margin-bottom: 2px;
}

.history-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.history-details {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

.share-summary .alert {
    border-radius: 8px;
}

/* 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;
    min-width: 190px;
    min-height: calc(100vh - 170px);
    background-color: #fff;
    padding: 1rem !important;
}

.reglage-group {
    margin-bottom: 0.8rem;
}

.reglage-group .group-title {
    text-transform: uppercase;
    color: var(--secondary-rgb); /* #6c757d */
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

#societeDropdown {
    width: auto;
    max-width: 170px;
    overflow: hidden;
}

#societe_membre {
    width: auto;
    max-width: 250px;
    overflow: hidden;
}

.nav-subitems {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.nav-subitems li a {
    display: flex;
    align-items: center;
    padding: 5px 12px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.nav-subitems li a:hover {
    background-color: #e9ecef;
}

.nav-subitems li.active > a {
    background-color: var(--secondary-rgb);
    color: #fff;
}

.reglage-group .sidebar-icon-label span {
    margin-left: -5px;
}


#societe-card .card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
}

#societe-card .card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

#societe-card .modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* 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: var(--secondary-rgb);
    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;
}


.timeline-item {
    border-left: 3px solid var(--primary-dark);
    padding-left: 1rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.6rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--primary-dark);
    /* background: var(--bs-primary); */
    border: 3px solid #fff;
}


/* == profil Membre == */

.my-custom-tab .profile-header {
    background: linear-gradient(135deg, var(--blue-dark-bg), var(--bs-primary));
    color: #fff;
    border-radius: 15px;
    margin-top: -80px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.bg-linear {
    background: linear-gradient(135deg, var(--blue-dark-bg), var(--bs-primary));
    color: #fff;
}

#usageSurveyForm .form-check-label {
    margin-left: 8px !important;
}

.my-custom-tab .avatar-wrapper {
    width: 120px;
    height: 120px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border: 4px solid #fff;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.rounded-full {
    border-radius: 100%;
}

.my-custom-tab .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    border-radius: 50%;
    display: block;
}

.my-custom-tab .camera-icon {
    right: 6px;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.my-custom-tab .camera-icon-2,
.my-custom-tab .infobulle {
    position: absolute;
    top: -5px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 15px;
    height: 15px;
    font-size: 8px;
    line-height: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.label-infobulle {
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 15px;
    height: 15px;
    font-size: 8px;
    line-height: 0px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.label-infobulle:hover,
.my-custom-tab .camera-icon:hover,
.my-custom-tab .infobulle:hover,
.my-custom-tab .camera-icon-2:hover {
    background-color: var(--primary-dark);
    color: #000;
}

.my-custom-tab .infobulle {
    top: -5px;
    right: 30px;
}


.my-custom-tab .stat-card {
    background: #fff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.my-custom-tab .nav-pills .nav-link {
    color: var(--blue-dark-bg);
    border-radius: 8px;
    margin: 0 3px;
    font-weight: 500;
}

.my-custom-tab .nav-pills .nav-link.active {
    background: var(--bs-primary);
    color: #fff;
}

.my-custom-tab .nav-pills .nav-link.expanded {
    background-color: var(--primary-dark);
    color: #fff;
}

.badge-abonnement {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    font-weight: 600;
}

.my-custom-tab .badge-certified {
    color: white;
    padding: 5px 12px;
    top: 20px;
    right: 20px;
    border-radius: 20px;
    font-weight: 500;
}

.text-blue {
    color: var(--bs-primary) !important;
}

.my-custom-tab .chart-container {
    position: relative;
    height: 250px;
}

.my-custom-tab .transition-width {
    transition: width 0.4s ease;
}

.my-custom-tab .nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.my-custom-tab .nav-tabs .nav-link:hover {
    border-bottom-color: #dee2e6;
    background: none;
    color: #495057;
}

.my-custom-tab .nav-tabs .nav-link.active {
    border-bottom-color: var(--bs-primary);
    color: var(--bs-primary);
    background: transparent;
}

#formFilters .nav-tabs .nav-link {
    padding: 0.5rem 0.85rem;
    font-size: 12px;
}

.my-custom-tab table.profile-fields tr td {
    border: 0;
    border-bottom: 1px solid #eff0f1;
}

.my-custom-tab table.table-sm {
    margin-bottom: 0;
}

.my-custom-tab table.table-sm tr td {
    padding: 0.25rem 0;
}

.my-custom-tab table.table-sm tr:last-child td {
    padding-bottom: 0;
    border: none;
}

.my-custom-tab .image-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 5px;
}

.my-custom-tab .image-container img {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

caption {
    caption-side: top !important;
}


/*========= gestion du overlay sur les icon des documents =======*/
.my-custom-tab .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(59, 69, 81, 0.79);
    display: none;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    border-radius: 6px;
    z-index: 2;
}

.my-custom-tab .rge-container:hover .overlay,
.my-custom-tab .kbis-container:hover .overlay,
.my-custom-tab .assurance-container:hover .overlay,
.my-custom-tab .autre_doc-container:hover .overlay {
    display: flex;
}

.my-custom-tab .overlay a {
    color: #fff;
    font-size: 18px;
}

/*========= gestion du responsive des filtres =======*/
#formFilters .form-label,
#formFilters .btn-group label,
#formFilters .statut-tab,
#formFilters .state-tab,
#formFilters .etat-tab,
#formFilters .type-tab,
#advanced-filters button,
#advanced-filters a {
    white-space: nowrap;
}

/*========= gestion des credits projets =======*/
.credit-card {
    width: 100%;
    max-width: 220px;
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    border: 2px solid transparent;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    text-align: center;
}

.credit-card:hover {
    border: 2px solid var(--primary);
    box-shadow: 0 2px 15px rgba(var(--bs-primary-rgb),.3);
}

.credit-card ul {
    text-align: start;
}

/* ============ Cagnotte Card Styles ============= */
.cagnotte-container {
    background: #fff;
    border-radius: 0 8px 8px 0;
    padding: 18px 24px;
    box-shadow: 2px 0 0 rgba(0, 142, 83, 0.475);
    width: 100%;
    max-width: 220px;
    transition: all 0.2s ease-in-out;
}

.cagnotte-container:hover {
    transform: translateY(-5px);
}

.cagnotte-label {
    font-size: 14px;
    color: #888;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cagnotte-value {
    font-size: 28px;
    font-weight: 600;
    color: #222;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.cagnotte-unit {
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

/*========= gestion du scan de la facture d'achat =======*/
.scan-preview-item {
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
}

.scan-preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.preview-image {
    transition: all 0.2s ease;
}

.preview-image:hover {
    transform: scale(1.05);
}

#cropContainer {
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scrollbar personnalisée pour la zone de prévisualisation */
#scanPreview::-webkit-scrollbar {
    width: 6px;
}

#scanPreview::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#scanPreview::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

#scanPreview::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.collaborateur-itemm {
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.collaborateur-item:hover {
    background-color: #e7f1ff;
}

.collaborateur-item.selected {
    background-color: #e7f1ff;
    border-left: 3px solid #0d6efd;
}

.collaborateur:last-child {
    border-bottom: none !important;
}

/* ==== style de gestion des produits dans le devis/facture ===*/
#addContactsModal .table-container {
    max-height: 55vh;
    overflow-y: auto;
}

/* Animation pour l'affichage de l'encart */
.product-detail-card {
    border-left: 1px solid #eeeeee;
    height: 100%;
    /* box-shadow: -1px 0 6px rgba(0, 0, 0, 0.06); */
}

.encart-prix-marge {
    position: relative;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #fff;
    border: 2px solid #ff9900;
    border-radius: 8px;
}

.encart-prix-marge > div {
    text-align: center;
}

.product-detail-card > .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--blue-dark-bg) 0%, var(--bs-primary) 100%);
    color: #fff;
}

/* ========================= */
.products-container,
.product-info-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px;
    min-height: 45vh;
    max-height: 670px;
    overflow-y: auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(130px,1fr));
    gap: 9px;
    align-content: start;
}

.product-card {
    position: relative;
    background-color: #fff;
    border: 1px solid #EBEBEB;
    border-radius: 8px;
    padding: 9px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: default;
    transition: all .18s ease;
    box-shadow: 0 1px 4px #0000000a;
    height: 170px;
    overflow: hidden;
}

#repairModal .products-grid {
    grid-template-columns: repeat(auto-fill,minmax(180px,1fr)) !important;
}

#repairModal .product-card {
    height: 210px;
}

#repairModal .product-image {
    height: 55px;
}

.product-card .product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4px;
    min-height: 32px;
}

.product-card .product-name {
    font-weight: 500;
    margin: 0 !important;
}

.product-card .product-image {
    width: 100%;
    height: 80px;
    background-color: #f5f5f5;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #F0F0F0;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .18s ease;
}

.product-card .actions-btn {
    position: absolute;
    display: flex;
    gap: 4px;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    background: #fff;
}

/* .product-card .actions-btn {
    display: flex;
    justify-content: end;
    gap: 4px;
} */

.product-card:hover,
.product-card.active {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(255, 214, 81, 0.25);
}

#bibliotheque-libraries .product-card:hover {
    transform: translateY(-2px);
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, .3);
}

.product-price {
    font-size: 11px;
    color: #28a745;
    /* margin-bottom: 12px; */
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

/** ======= style tutoriel ==== **/
#tutorielModal .modal-content {
    border: none;
    overflow: hidden;
}

#tutorielModal .modal-header {
    background: linear-gradient(135deg, var(--blue-bg) 0%, var(--purple-bg) 100%);
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 1.5rem 1rem 0.5rem 1rem;
}

#tutorielModal .modal-body {
    max-height: 65vh;
    overflow: hidden;
}

.tutoriel-description {
    height: 80%;
    overflow: auto;
}

/* Bouton play */
.play-btn {
    width: 60px;
    height: 60px;
    background: rgba(var(--bs-warning-rgb), 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(var(--bs-warning-rgb), 0.3);
}

.play-btn:hover {
    transform: scale(1.1);
    background: rgba(var(--bs-warning-rgb), 0.3);
}

.video-thumbnail {
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-thumbnail:hover .play-btn {
    background: rgba(var(--bs-warning-rgb), 0.4);
}

/* Icônes circulaires */
.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bouton tutoriel */
.tutoriel-btn, .bg-gardient-blue {
    background: linear-gradient(135deg, var(--blue-bg) 0%, var(--purple-bg) 100%);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tutoriel-btn {
    padding: 0.375rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 10px;
}

.tutoriel-btn:hover, .bg-gardient-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, var(--purple-bg) 0%, var(--blue-bg) 100%);
}

.tutoriel-btn:active {
    transform: translateY(0);
}

/* Animation d'entrée */
#tutorielModal .modal-content {
    animation: fadeInUp 0.5s ease;
}

/* Corrige les sauts de ligne Quill */
.tutoriel-description p {
    margin-bottom: 0 !important;
}

/* Image plein largeur */
#featureImage {
    max-height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.options-container {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.options-container::-webkit-scrollbar {
    width: 5px;
}

.options-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}


#settings-container label,
.config-title {
    font-size: 11px !important;
    color: #888 !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: .4px !important;
    margin-bottom: 4px !important;
    display: block !important;
}

.config-title {
    margin-top: 10px;
}

#settings-container .form-check-label {
    color: #505050 !important;
    text-transform: none !important;
    font-weight: 400 !important;
}

#shipping-inputs .form-check,
#shipping-inputs .form-check-label {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
}

#menuiserie h6,
.list-group-item {
    color: #888 !important;
}

#empty-selection {
    font-size: 12px;
    color: #bbb;
}

.list-group-item-action.additional-email {
    background-color: #f5f5f5 !important;
    border-radius: 5px !important;
    margin-bottom: 4px !important;
    font-size: 11px !important;
    color: #555 !important;
}

#products-container {
    border-left: 1px solid #E0E0E0;
    border-right: 1px solid #E0E0E0;
}

.list-product {
    border: 1px solid #EEEEEE;
    border-radius: 7px;
    padding: 8px 10px;
    background-color: #fafafa;
    transition: border-color .15s;
}

.list-product .chart-product-name {
    color: #404040 !important;
    padding-bottom: 4px;
    margin-bottom: 5px;
    margin-right: 5px;
    border-bottom: 1px solid #EFEFEF;
    font-weight: 500;
    font-size: 11px;
}

.search-product {
    border: 1px solid #E0E0E0;
    border-top: 0;
}

#urgency-btns label {
    flex: 1 !important;
    padding: 5px 2px !important;
    border: 1px solid #E5E5E5 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    text-align: center !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #777;
    transition: all .15s ease;
    text-transform: none !important;
    /* text-transform: lowercase !important; */
}

#urgency-btns .btn-check:checked+.btn {
    border: 1px solid #e77131 !important;
    color: #e77131 !important;
    background: #e7713112 !important;
}

.edit-product-btn,
.copy-product-btn,
.delete-product-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: #777;
    transition: color .15s;
}

.edit-product-btn:hover {
    color: var(--primary);
}

.copy-product-btn:hover {
    color: var(--success);
}

.delete-product-btn:hover {
    color: #dc3545;
}

.price-request-history {
    background-color: #fff;
    color: #505050;
    font-family: Montserrat,sans-serif;
    font-weight: 400;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    margin-right: -10px;
}

.price-request-history:hover {
    border-color: #e77131;
}

.kpi-card {
    transition: transform 0.2s;
    border-left: 4px solid transparent;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
}
.kpi-card.success { border-left-color: #28a745; }
.kpi-card.warning { border-left-color: #ffc107; }
.kpi-card.info { border-left-color: #17a2b8; }
.kpi-card.primary { border-left-color: #007bff; }
.kpi-card.secondary { border-left-color: #6c757d; }

.image-box {
    /* max-width: 300px;
    min-height: 200px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px dashed rgba(var(--bs-secondary-rgb), 1);
    padding: 16px;
}

.btn-smm {
    padding: 0.25rem 0.25rem !important;
    font-size: 8px !important;
    border-radius: 5px !important;
}








/*
.value-row {
    transition: all 0.2s ease;
}

.value-row:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.value-image-preview {
    width: 70px;
    height: 70px;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: auto;
    background: #f8f9fa;
}

.value-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adjustment-section {
    font-size: 0.85rem;
}
*/

/*
.value-row {
    transition: all 0.2s ease;
    position: relative;
}

.value-row:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.value-image-preview {
    width: 80px;
    height: 80px;
    border: 1px dashed #dee2e6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f9fa;
}

.value-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
*/









/* ==== Responsive ==== */
@media (max-width: 992px) {
    #tutorielModal .modal-header {
        padding: 1rem 0.5rem 0.25rem 0.5rem;
    }

    #tutorielModal .modal-body {
        overflow: auto;
    }
    
    #tutorielModal .modal-body > .row {
        flex-direction: column;
    }

    .infos-container {
        max-height: 30vh;
    }
    .infos-box {
        max-height: 100%;
    }
    .preview-container {
        max-height: 70vh;
    }
    .preview-box {
        max-height: 100%;
    }
    .product-image,
    .library-image {
        height: 80px;
    }
}

@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%;
    }

    .reglage-sidebar {
        width: 100%;
        min-height: auto;
        height: auto;
        margin-top: 10px !important;
    }
    
    .access-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .access-avatar {
        margin-bottom: 8px;
        margin-right: 0;
    }
    
    .access-actions {
        margin-top: 8px;
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
    
    .my-custom-tab .nav-tabs .nav-link {
        padding: 0.35rem 0.5rem;
        font-size: 13px;
    }
    .my-custom-tab .badge-certified {
        top: 10px;
        right: 10px;
        font-size: 12px;
    }
    .my-custom-tab .avatar-wrapper {
        width: 100px;
        height: 100px;
    }
    .cagnotte-container {
        padding: 12px 24px;
    }
    .cagnotte-value {
        font-size: 24px;
    }
}

@media (max-width: 564px) {
    .my-custom-tab .avatar-wrapper {
        width: 80px;
        height: 80px;
    }

    .products-container {
        padding: 0px;
    }
}
