.admin-container {
    margin: auto;
    width: 100%;

}

.admin-container2 {
    margin: auto;
    width: 100%;
    /*     height:100%; */
    /* TODO ICI BUG FOOTER PAR DESSUS DATATABLE*/
}

.hamburger {
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 2;
    margin-left: 3.5rem;
    color: white;
    font-weight: bold;
    padding: 1rem 2rem 2rem 2rem;
    /*width: 75%; /* important 75% car ne pas ecraser le pin sinon pin btn fonctionne plus */
}

.admin-menu-left-container {
    position: absolute;
    width: 20%;

}


#sidebar {
    position: fixed;
    left: -20%;
    width: 20%;

    z-index: 2;
    height: 70vh;
    padding: 4rem;
    padding-top: 0rem;
    margin-top: 8rem;
    background-color: black;
    overflow-y: auto;
    /* Permet le défilement vertical */
    scrollbar-width: thin;
    /* Pour Firefox */
    scrollbar-color: #666 #333;
    /* Pour Firefox */
}

/* Style de la scrollbar pour Chrome/Safari */
#sidebar::-webkit-scrollbar {
    width: 6px;
}

#sidebar::-webkit-scrollbar-track {
    background: #333;
}

#sidebar::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 3px;
}

#sidebar.active {
    left: 0;
}

#sidebar.open {
    left: 0;
    /* Positionne la sidebar sur l'écran */

}

/* #content {
    margin-left: 0;

}

#content.active {
    margin-left: 20%;
} */

.margin-left-auto-admin {
    margin-left:auto !important;
}

.decalage-pin.active-specifique {
    margin-left: 20% !important;
}


/* Menu */
.menu {
    list-style-type: none;
    padding-left: 0;
}

.menu li {
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid #734a39;
    position: relative;
}

/* Sous-menu masqué par défaut */
.menu ul {
    list-style-type: none;
    padding-left: 50px;
    display: none;
    margin-top: 1rem;
}

.menu ul li {
    padding: 5px;
    border-bottom: 0px;
}

/* Flèches pour indiquer les sous-menus */
.menu li.has-submenu::after {
    content: '▼';
    position: absolute;
    right: 15px;
}

/* Flèche orientée vers le haut pour sous-menu ouvert */
.menu li.has-submenu.open::after {
    content: '';
}

.menu-title {
    font-weight: bold;
    color: white;
}

.menu-title i,
.hamburger i,
.a-link-normal-admin i {
    margin-right: 2rem;
}

.menu ul li a {
    font-size: 1.4rem;
}

/*////////////////// PINNED menu */

#pinned-menu {
    position: relative;
    left: -45px;
    top: -5px;
}

#pin-btn {
    background-color: black;
    color: white;
    outline: none;
    border: none;
    font-size: 1.8rem;
}



/*///////////////// POPUP TD + d'infos */


td.hoverable {
    position: relative;
}

.popup {
    position: absolute;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 10;
    font-size: 14px;
    white-space: nowrap;
    top: 30%;
    background-color: black;
    border: 1px solid grey;
    padding: 1rem;
}

.popup ul {
    list-style-type: none;
    padding-left: 0;
}

.hoverable:hover .popup {
    display: block;
    /* Affiche la popup au survol */
}

.badgepopup {
    width: 100%;
}

.popupli {
    margin: 5px;
}

#admin-table-produits-main {
    font-family: var(--font-system);
}


/*///////////////// DATATABLES JS */

.dataTables_wrapper {
    position: relative;
    overflow: hidden;
}


.dt-details-control:hover i {
    color: orange;
    font-weight: bold;
}

td i {
    margin-right: 1rem;
}

div.dt-container.dt-empty-footer tbody>tr:last-child>* {
    border-bottom: none !important;
}

.borderleft-orange {
    border-left:1px solid #464646;
    padding-left:2rem !important;
}

.padding-left-decalage {
    padding-left:2rem;
}



/*************************
**************************  VARIANTES */

.variantes-container {
    margin-top: 3rem;
}

.variantes-collection .form-group {
    margin-bottom: 2rem;
}

.delete-variante-btn {
    margin-top: 1rem;
}

.variante-item {
    padding:2rem; 
    width:70%; 
    border:1px solid #4d4d4d;
}

/*************************
**************************  MEDIAS PRODUITS */

.border-card-media {
    border:1px solid #4d4d4d;
    margin:2rem;
}



/*************************
**************************  GRADIENT STATISTIQUES DASHBOARD */

.redtored {
    background-image: linear-gradient(to right bottom, #dc3545, #d32c3a, #c9212e, #bf1623, #b50717);
}

.orangetorange {
    background-image: linear-gradient(to right bottom, #ffc107, #edb305, #dba603, #ca9801, #b98b00);
}

.bluetoblue {
    background-image: linear-gradient(to right bottom, #0dcaf0, #0bbbdf, #0aadcd, #089ebd, #0790ac);
}

.bluefonce {
    background-image: linear-gradient(to right bottom, #0d6efd, #0a65e8, #095cd3, #0a54be, #0b4baa);
}

.verttovert {
    background-image: linear-gradient(to right bottom, #198754, #157d4d, #127245, #0e683e, #0a5e37);
}

.greytogrey {
    background-image: linear-gradient(to right bottom, #6c757d, #616970, #565e64, #4b5258, #41474c);
}

.browntobrown {
  background-image: linear-gradient(to right bottom, #884824, #80411e, #773a18, #6f3413, #672d0d);  
}












/*************************
**************************  CATEGORIES DRAG N DROP */


/* Assurez une hauteur minimale pour les colonnes vides */
.empty-column {
    min-height: 50px; /* Hauteur minimale pour permettre le dépôt */
    border: 2px dashed #ccc; /* Indication visuelle de zone de dépôt */
    text-align: center;
    padding: 10px;
    color: #888;
    background-color: #f9f9f9;
}

.empty-column::after {
    content: "Glissez les éléments ici"; /* Message pour les colonnes vides */
    font-size: 14px;
}

/* Style pour le placeholder lors du drag and drop */
.sortable-placeholder {
    background: #e0e0e0;
    border: 2px dashed #999;
    height: 40px; /* Taille visible pour le placeholder */
    margin: 5px 0;
}

.admin-banner {
    background-color: #83480e;
    color: rgba(255, 255, 255, 0.7);
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    letter-spacing: 0.5px;
}



/* Styles pour le menu horizontal d'administration */
.admin-nav-horizontal {
    background-color: #884924;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 2000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap:50px;
}

.admin-nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-nav-brand-text {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
}

.admin-nav-list {
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.admin-nav-link {
    color: white;
    text-decoration: none;
    padding: 1rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
}

.dropdown .admin-nav-link::after {
    content: '▼';
    margin-left: 5px;
    display: inline-block;
    vertical-align: middle;
    font-size: 1.2rem;
}

.admin-nav-link-hover-active,
.admin-nav-link:hover {
    color: white;
    background-color: #3515152e;
    border-radius: 4px;
}

.dropdown {
    position: relative;
}


.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #884824;
    min-width: 200px;
    box-shadow: 0 2px 5px 2px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: white;
    padding: 0.75rem 1rem;
    display: block;
    text-decoration: none;
    font-size: 1.4rem;
}

.dropdown-content a:hover {
    background-color: #884824;
    color: white;
    border-radius: 4px;
}

.admin-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
}

.admin-nav-menu {
    background-color: #884824;
    padding: 1rem;
}

.admin-nav-menu.active {
    display: block;
}

@media (max-width: 992px) {
    .admin-mobile-menu-btn {
        display: block;
    }

    .admin-nav-container {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1rem;
        gap:0px;
    }

    .admin-nav-menu {
        /* position: absolute; */
        top: 100%;
        left: 0;
        right: 0;
        background-color: #884824;
        padding: 1rem;
        width: 100%;
        /* transform: translateY(-100%); */
        transition: transform 0.3s ease-in-out;
        display: none;
        visibility: hidden;
    }

    .admin-nav-menu.active {
        /* transform: translateY(0); */
        visibility: visible;
    }

    .admin-nav-list {
        flex-direction: column;
        gap: 0.5rem;
    }

    .dropdown-content {
        position: static;
        background-color: #884824;
        box-shadow: none;
        padding-left: 1rem;
        min-width: auto;
        z-index: 1;
    }

    .dropdown-content a {
        color: white;
    }
}

/* Styles pour le panneau des paiements */
#paiementsPanel {
    transition: all 0.3s ease-in-out;
}

#paiementsPanel .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

#togglePaiementsBtn {
    transition: all 0.2s ease-in-out;
}

#togglePaiementsBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#togglePaiementsBtn.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

#closePaiementsBtn {
    transition: all 0.2s ease-in-out;
}

#closePaiementsBtn:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Animation pour l'apparition du panneau */
#paiementsPanel.show {
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style pour les badges de statut dans le tableau des paiements */
#paiementsTable .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Responsive pour le panneau des paiements */
@media (max-width: 768px) {
    #paiementsPanel .table-responsive {
        font-size: 0.875rem;
    }
    
    #paiementsPanel .card-header {
        padding: 0.75rem;
    }
    
    #paiementsPanel .card-body {
        padding: 0.75rem;
    }
}


.col-edition {
    min-width: 120px; /* Ajuste la valeur selon la taille du bouton */
    max-width: 140px; /* Optionnel : limite la largeur max */
    width: 1%;        /* Permet à la colonne de s’ajuster au contenu */
    white-space: nowrap; /* Empêche le retour à la ligne */
}