/* Global styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.container-fluid {
    flex: 1; /* Permet au contenu principal de prendre tout l'espace restant */
}

/* Barre latérale */
.sidebar {
    width: 250px;
    background-color: #f8f9fa;
    padding: 20px;
    position: fixed;
    height: 100%;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar button, .sidebar a {
    margin-top: 10px;
    font-size: 14px;
}

/* Conteneur principal */
.content {
    margin-left: 270px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espacement entre les sections */
}

.top-sections {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.bottom-sections {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Statistiques de traitement */
.statistiques-traitement,
.tableau-commission-client,
.tableau-comissions-assureur {
    flex: 1;
    max-width: calc(50% - 10px);
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}


.statistiques-traitement p,
.tableau-commission-client p {
    font-size: 14px;
    color: #333;
}

/* Tableau comparatif commissions payées vs en attente */
.tableau-commmission-payees-vs-attente {
    flex: 1;
    max-width: calc(50% - 10px);
    background-color: #ffffff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Tableau */
.table-container {
    max-height: 200px; /* Limite la hauteur */
    overflow-y: auto;
    overflow-x: auto;  /* Ajoute un défilement horizontal */
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #ffffff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    table-layout: fixed;
}

.table thead th {
    position: sticky;
    top: 0; /* Fixation en haut lors du scroll */
    background-color: #fff;
    z-index: 2;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
}

table th, table td {
    padding: 15px;
    text-align: left;
    border: 1px solid #e0e0e0;
    overflow: hidden; /* Cache le contenu débordant */
    text-overflow: ellipsis;
}

table th {
    background-color: #f1f1f1;
    font-weight: bold;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}


/* Footer */
footer {
    padding: 8px 20px; /* Moins de padding pour un footer plus compact */
    background: #ffffff;
    color: #6c757d;
    font-size: 12px; /* Taille de texte réduite pour plus de discrétion */
    border-top: 1px solid #e0e0e0;
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 9999;
}

footer a {
    color: #16d86e;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Filtres */
.filters-box {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.filters-box select {
    width: 200px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ced4da;
}

.filters-box button {
    height: 38px;
    font-size: 14px;
}

/* Colonnes pour filtres */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
}

.col-md-6 {
    flex: 1;
    max-width: calc(50% - 10px);
    display: flex;
    flex-direction: column;
}

.scrollable-table {
    max-height: calc(40px * 10); /* Hauteur pour 10 lignes */
    overflow-y: auto; /* Ajoute une barre de défilement si nécessaire */
    overflow-x: auto;
    flex: 1;
    margin-top: 10px;
    max-width: 100%; /* Limiter la largeur du conteneur */
}

.pagination {
    max-width: 100%;
    overflow-x: auto;
}

.scrollable-pagination {
    overflow-x: auto;
    white-space: nowrap;
}