body {
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
}

.card {
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table td, .table th {
    vertical-align: middle;
}

.text-end, .text-right {
    text-align: right !important;
    padding-right: 1rem !important;
}

.badge {
    font-size: 0.875rem;
    padding: 0.35em 0.65em;
}

.btn-link {
    color: #6c757d;
    text-decoration: none;
}

.btn-link:hover {
    color: #0d6efd;
}

.table-info td {
    font-weight: 600;
}

td.text-danger, td.text-success {
    font-weight: 500;
}

.table td, .table th {
    padding: 0.75rem;
}

.btn-primary {
    background-color: #0d6efd;
    border: none;
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

#formTransaction {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25);
}

.table-responsive {
    overflow-x: auto;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .card {
        margin-bottom: 15px;
    }
}

.status-regle {
    color: #198754;
}

.status-non-regle {
    color: #dc3545;
}

.montant-depense {
    color: #dc3545;
}

.montant-revenue {
    color: #198754;
}

tfoot tr {
    font-weight: bold;
}

.sortable {
    cursor: pointer;
    user-select: none;
}

.sortable:hover {
    background-color: #f0f0f0;
}

.sortable i {
    margin-left: 5px;
}

.sort-asc .fa-sort::before {
    content: "\f0de";  /* flèche vers le haut */
}

.sort-desc .fa-sort::before {
    content: "\f0dd";  /* flèche vers le bas */
}

.status-non_regle {
    color: #dc3545;
    font-weight: bold;
}

.status-regle {
    color: #198754;
    font-weight: bold;
}

.export-buttons {
    display: flex;
    gap: 10px;
}

.export-buttons .btn {
    display: flex;
    align-items: center;
    gap: 5px;
}

.export-buttons .btn i {
    font-size: 1.1em;
}
