/* ========================================
   TABLE FILTER STYLES
   Estilos para filtros de colunas em tabelas
   ======================================== */

/* Container principal do modal de filtro */
.filter-modal {
    position: fixed;
    z-index: 9999;
    display: none;
}

/* Conteúdo do modal */
.filter-modal-content {
    background-color: #ffffff;
    border: 1px solid #888;
    width: 350px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Cabeçalho do modal */
.filter-modal-header {
    padding: 12px 15px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    border-radius: 5px 5px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.filter-modal-header h4 {
    margin: 0;
    font-size: 16px;
}

/* Botão de fechar */
.filter-modal-close {
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.filter-modal-close:hover,
.filter-modal-close:focus {
    color: #000;
}

/* Corpo do modal */
.filter-modal-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Campo de busca */
.filter-search-input {
    margin-bottom: 10px;
}

/* Container das opções */
.filter-options-container label {
    cursor: pointer;
    padding: 5px 0;
    display: block;
}

.filter-options-container label:hover {
    background-color: #f5f5f5;
}

/* Lista de itens com scroll */
.filter-items-list {
    overflow-y: auto;
    max-height: 300px;
}

/* Rodapé do modal */
.filter-modal-footer {
    padding: 12px 15px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    border-radius: 0 0 5px 5px;
    text-align: right;
    flex-shrink: 0;
}

.filter-modal-footer button {
    margin-left: 10px;
}

/* Ícone de filtro ativo */
.filter-icon-active {
    color: darkorange !important;
}

/* Container do botão limpar todos */
.filter-clear-button-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}

/* Botão limpar todos os filtros */
.filter-clear-all-button {
    display: none;
}

/* Checkbox do filtro */
.filter-checkbox {
    margin-right: 8px;
    cursor: pointer;
}

/* Label do checkbox selecionar todos */
.filter-select-all-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Divisor horizontal */
.filter-divider {
    border-top: 1px solid #ddd;
    margin: 10px 0;
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */

/* Telas pequenas */
@media (max-width: 480px) {
    .filter-modal-content {
        width: 90%;
        max-width: 350px;
    }
}

/* Telas com pouca altura */
@media (max-height: 600px) {
    .filter-items-list {
        max-height: 200px;
    }
}