html,
body {
    height: 100% !important;
    margin: 0;
    padding-top: 50px;
    background-color: #f2f5f9;
    padding-bottom: 100px;
    /* Hauteur du footer */

}


/* 1. Footer collé en bas (toujours visible) */
.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    padding: .5rem;
    font-size: 10px;
    z-index: 1000;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    
}

.bottom {
    padding-bottom: 80px;
}

.logo {
    width: 60px !important;
    z-index: 1000;
    opacity: .5;
}

.logo1 {
    width: 80px !important;
    margin-top: 20px;
    margin-bottom: 30px;
}

.badge1 {
    background-color: rgb(72, 72, 72) !important;
    border-radius: 5px;
    margin-left: 10px;
    margin-right: 10px;
}

.logocontaine {
    display: flex;
    align-self: center;
    justify-content: center;
}

.logout {
    background-color: #ffffff5f;
    color: rgb(0, 0, 0);
    border-radius: 5px;
}

.login {
    background-color: black !important;
}

/* Navbar fixe basique */
.navfix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    z-index: 1000;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content {
    flex: 1;
    /* Prend tout l'espace disponible */
    padding: 20px;
}


.card {
    margin-bottom: 20px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    font-weight: 600;
}

.table th {
    font-weight: 600;
}

.alert {
    margin-bottom: 20px;
}

.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding-top: 50px;
}

.stat-card {
    color: white;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.stat-card h5 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.stat-card .display-4 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}


/* Role badges */
.navbar .badge {
    font-size: 0.6em;
    vertical-align: middle;
}


/* PDF Preview in Modal */
.ratio-1x1 {
    position: relative;
    width: 100%;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
}

.ratio-1x1>iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}



/* Select2 personnalisation */
.select2-container .select2-selection--single {
    height: 38px;
    padding: 5px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

/* Tableau des articles */
#itemsTable tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.remove-item {
    cursor: pointer;
}

/* Dans css/style.css */
#addProductBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.haut {
    height: 100% !important;
}

.scroll {
    max-height: 600px;
    min-height: 550px;
    /* Hauteur maximale du div */
    overflow-y: auto;
    /* Active le scroll vertical si nécessaire */
}

.scroll1 {
    max-height: 400px;
    /* Hauteur maximale du div */
    min-height: 415px;
    overflow-y: auto;
    /* Active le scroll vertical si nécessaire */
}

.scroll2 {
    max-height: 250px;
    /* Hauteur maximale du div */
    min-height: 250px;
    overflow-y: auto;
    /* Active le scroll vertical si nécessaire */
}


.scroll3 {
    max-height: 200px;
    /* Hauteur maximale du div */
    overflow-y: auto;
    /* Active le scroll vertical si nécessaire */
}

.scroll4 {
    min-height: 172px;
    /* Hauteur maximale du div */
    overflow-y: auto;
    /* Active le scroll vertical si nécessaire */
}

.scroll6 {
    min-height: 390px;
    max-height: 390px;
    /* Hauteur maximale du div */
    overflow-y: auto;
    /* Active le scroll vertical si nécessaire */
}





.table-scroll {
  border-collapse: collapse;
  width: 100%;
}

.table-scroll thead {
  background-color: #f2f2f2;
  display: table;
  width: 100%;
  table-layout: fixed;
}

.table-scroll tbody {
  display: block;
  max-height: 100px; /* 👈 hauteur définie ici */
  overflow-y: auto;
  width: 100%;
}

.table-scroll tbody tr {
  display: table;
  table-layout: fixed;
  width: 100%;
}


/* Style pour le bouton de scan */
#scan-barcode {
    transition: all 0.3s;
}
#scan-barcode:hover {
    background-color: #f8f9fa;
    border-color: #6c757d;
}

/* Ajustement des colonnes du tableau */
#maTable1 th, #maTable1 td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Icônes blanches et centrées pour le dashboard */
.dashboard-icon-white {
    color: #fff;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Style pour l'onglet de navigation actif */
.nav-link.active, .nav-item.active > .nav-link {
    opacity: 1 !important;
    background-color: inherit !important;
    
    border-radius: 0.25rem;
    box-shadow: none;
}

/* Spinner overlay spécifique à la modale reçu */
#receiptModal .modal-body {
    position: relative;
}
#receiptLoadingSpinner {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.75);
}