.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-header-popup-button {
    position: absolute;
    top: 0;
    right: 10px;
    font-size: 15px;
    z-index: 10;
}

.tabulator .tabulator-alert {
    background: rgba(226, 226, 226, 0.644) !important;
}

.tabulator .tabulator-alert .tabulator-alert-msg.tabulator-alert-state-msg {
    border: none !important;
    color: var(--primary-color) !important;
}

.tabulator .tabulator-alert .tabulator-alert-msg {
    box-shadow: 3px 3px 0 var(--primary-color) !important;
    outline: 1px solid var(--primary-color) !important;
    outline-offset: -1px !important;
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-sorter {
    right: -5px;
}

.tabulator .tabulator-header .tabulator-col {
    position: relative;
}

.tabulator-col-content>.tabulator-header-filter {
    display: none;
}

.tabulator-menu.tabulator-popup-container {
    font-size: 12px;
}

.advanced-filter-container {
    padding: 10px;
    min-width: 250px;
    max-height: none;
    overflow: visible;
    z-index: 10000;
    animation: slideDown 0.2s ease-out;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    margin-top: 5px;
}

/* Styles spécifiques pour les filtres à la racine du menu */
.tabulator-menu .advanced-filter-container {
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 5px 0;
}

/* Inputs dans les filtres avancés */
.advanced-filter-container input,
.advanced-filter-container select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
    box-sizing: border-box;
}

.advanced-filter-container input:focus,
.advanced-filter-container select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Conteneur principal pour tous les contrôles de table */
.table-controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    min-height: 20px;
    margin-bottom: 10px;
    padding: 0px 10px;
}

/* Section des filtres (gauche) */
.table-filter-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Section des boutons d'action (droite) */
.table-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    min-height: 20px;
    margin-left: auto;
}


@keyframes slideDown {
    from {
        opacity: 0;
        height: 0;
    }

    to {
        opacity: 1;
        height: auto;
    }
}

.supplanted-indicator {
    color: #ff6b35;
    font-size: 10px;
    position: absolute;
    right: 1px;
    top: 1px;
}

.supplanting-indicator {
    color: #28a745;
    font-size: 10px;
    position: absolute;
    right: 1px;
    top: 1px;
}

/* ========================================
   DROPDOWN DE FILTRAGE
   ======================================== */

/* Conteneur du dropdown */
.filter-dropdown {
    position: fixed;
    z-index: 99999;
}

/* Contenu du dropdown - réutilise les styles dropdown */
.filter-dropdown-content {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #dee2e6;
    min-width: 250px;
    max-width: 350px;
    max-height: 60vh;
    overflow-y: auto;
    animation: slideDown 0.2s ease-out;
}

/* Animation d'apparition */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Body du dropdown */
.filter-dropdown-body {
    padding: 12px;
}

.filter-input-container {
    margin-bottom: 8px;
}

.filter-input-container label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-input {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Options pour les selects */
.filter-input option.boolean-option-true {
    color: #28a745;
}

.filter-input option.boolean-option-false {
    color: var(--error-color);
}

/* Footer du dropdown */
.filter-dropdown-footer {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.filter-dropdown-footer .btn {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-clear-btn {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.filter-clear-btn:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Responsive */
@media (max-width: 768px) {
    .filter-dropdown-content {
        min-width: 220px;
        max-width: 80vw;
    }

    .filter-dropdown-footer {
        flex-direction: row;
    }

    .filter-dropdown-footer .btn {
        flex: 1;
    }
}