/* Styles globaux */
body {
    background-color: #f5f5f5;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Améliorations pour les conteneurs de filtres */
.filter-container {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 4px;
    background-color: white;
}

/* Améliorations pour les champs de formulaire */
.input-group, .form-control {
    width: 100%;
}

/* Style pour les indicateurs de tri */
.sort-indicator::after {
    content: "";
    margin-left: 5px;
}

.sort-asc::after {
    content: " ▲";
}

.sort-desc::after {
    content: " ▼";
}

/* Style pour les cartes et les tableaux */
.filter-card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: none;
}

.filter-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Améliorer la lisibilité des tableaux */
.table th {
    background-color: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
    cursor: pointer;
}

.table th:hover {
    background-color: #e9ecef;
}

.table-responsive {
    max-height: 600px;
    overflow-y: auto;
}

/* Améliorations pour les valeurs positives et négatives */
.text-positive {
    color: #28a745 !important;
    font-weight: 500;
}

.text-negative {
    color: #dc3545 !important;
    font-weight: 500;
}

/* Style pour les badges de filtres actifs */
.badge {
    padding: 0.5em 0.75em;
    font-weight: normal;
    border-radius: 4px;
}

/* Animation pour le chargement */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@media (min-width: 1400px) {
    .container{
        max-width: 100%;
    }
}
/* Améliorer l'affichage sur mobile */
@media (max-width: 768px) {
    .filters-row {
        flex-direction: column;
    }
    
    .filter-column {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .filter-section {
        margin-bottom: 1.5rem;
    }
    
    /* Rendre les boutons de pagination plus grands sur mobile */
    .pagination .page-link {
        padding: 0.5rem 0.75rem;
    }
    
    /* Ajustement pour les en-têtes sur mobile */
    .filter-column h5 {
        cursor: pointer;
        padding: 0.5rem;
        background-color: #f8f9fa;
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }
    
    .filter-column h5::after {
        content: " ▼";
        float: right;
    }
}