.filter-box{
            width: 100%;
        }

        .filter-box-header{
            background-color: #f1f1f1;
            padding: 15px;
            cursor: pointer;
            border-radius: .5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            
        }

        .filter-box-header div{
            display: flex;
            align-items: center;
            gap:10px
        }

        .filter-box-header i {
            font-size: 20px;
            transition: transform 0.3s ease;
        }


        .filter-box-header h1{
            margin: 0;
            font-size: 18px;
        }
        

        .filter-box-content{
            max-height: 0;
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            transition: all 0.5s ease;
            overflow: hidden;
        }

        .filter-box-content label {
            margin: 0;
            font-weight: 500; 
            color: #333; 
            margin-bottom: 5px;
            display: block;
        }

        .filter-box-content div{
            display: flex;
            flex: 1 1 300px;
            margin: 5px;
            gap: 5px;
            align-items: center;
        }

        .filter-box-content div input{
            height: 35px; 
            border: 1px solid #ced4da; 
            border-radius: 8px; 
            background-color: #fff;
            color: #495057;
            width: 100%;
            max-width: 600px;
        }

        .filter-box-content div input:hover{
            border-color: #80bdff;
        }

        .filter-box-content div input:focus{
            outline: 0;
            border-color: #007bff; 
        }

        .filter-box-content div input::placeholder{
            color: #adb5bd;
        }

        
        .filter-box.active .filter-box-content{
            max-height: 2000px;
            padding: 15px;
            transition: all 0.5s ease;
        }

        .filter-box.active .fa-solid.fa-up-down{
            transition: transform 0.5s ease;
            transform: rotate(180deg);
        }

        .filter-box-header .filter-box-cancel-box{
            align-items: center;
            padding: 9px 12px;
            border-radius: .5rem;
            border: 1px solid #ced4da;
            display: none;
        }

        .filter-box-cancel-box:hover{
            border-color: rgb(255, 120, 120);
        }

        .filter-box-cancel-box p{
            margin: 0;
        }

/* ÁREA DO FLTRO PROFUNDO */
.profound-filter-box {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* HEADER */
.profound-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.profound-filter-header:hover {
    background: #f3f4f6;
}

.profound-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profound-filter-header h1 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.profound-filter-header i {
    font-size: 18px;
    color: #6b7280;
}

.profound-filter-count {
    background: #3b82f6;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.profound-header-right {
    display: flex;
    align-items: center;
}

.profound-toggle-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.profound-filter-box.active .profound-toggle-icon {
    transform: rotate(180deg);
}

/* CONTENT (área colapsável) */
.profound-filter-content {
    max-height: 0;
    overflow: hidden;
}

.profound-filter-box.active .profound-filter-content {
    max-height: 1000px;

}

/* Garante que o TH serve de âncora para o popup absoluto */
thead tr th {
    position: relative;
    overflow: visible !important; /* Essencial para o popup não sumir */
}
.filter-th-box {
  opacity: 0;
  visibility: hidden;
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  padding: 8px;
  z-index: 100;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  flex-direction: column;
  gap: 5px;
  cursor: auto;

  &.open {
    opacity: 1;
    visibility: visible;
    display: flex;
  }

  input, select {
    width: 100%;
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    background-color: #f8fafc;
    transition: border-color 0.15s;
    margin: 0;

    &:focus {
      border-color: #3b82f6;
      background-color: #fff;
    }
  }

  .filter-th-info {
    font-size: 11px;
    color: #64748b;
    margin: 0;
    
    p {
      margin: 0;
      display: flex;
      align-items: center;
      gap: 4px;
    }
  }
}

.tabela-completa thead th:first-child .filter-th-box {
    transform: translateX(-10%);
}

.tabela-completa thead th:last-child .filter-th-box {
    transform: translateX(-90%);
}

/* Ícone de filtro no TH */
.icon-filter {
    cursor: pointer;
    margin-left: 6px;
    color: #94a3b8;
    transition: color 0.15s;

    &.filtering {
        color: #3b82f6;
        animation: activePulse 2s ease-in-out infinite;
        
        filter: drop-shadow(0px 1px 2px rgba(59, 130, 246, 0.2));
    }
}

@keyframes activePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ÁREA DOS INPUTS */
.profound-inputs-area {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    padding: 20px;
    max-height: 200px;
    overflow-y: auto;
}

/* Scrollbar customizada */
.profound-inputs-area::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.profound-inputs-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.profound-inputs-area::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

.profound-inputs-area::-webkit-scrollbar-thumb:hover {
    background: #555;
}
.profound-grupo-input {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profound-grupo-input label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin: 0;
}

.profound-grupo-input input,
.profound-grupo-input select,
.profound-input {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    background: white;
    color: #495057;
}

.profound-grupo-input input:hover,
.profound-grupo-input select:hover,
.profound-input:hover {
    border-color: #9ca3af;
}

.profound-grupo-input input:focus,
.profound-grupo-input select:focus, 
.profound-input:hover:focus {
    outline: none;
    border-color: #3b82f6;
}

.profound-grupo-input input::placeholder,
.profound-input:hover::placeholder {
    color: #adb5bd;
}

.profound-input:disabled {
    cursor: not-allowed;
}

/* ÁREA DOS BOTÕES DE AÇÃO, tipo o de cancelar e o de filtrar */
.profound-actions-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    gap: 12px;
    flex-wrap: wrap;
}

.profound-info-text {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profound-info-text i {
    color: #3b82f6;
}

.profound-buttons-group {
    display: flex;
    gap: 12px;
}

.profound-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profound-btn i {
    font-size: 14px;
}

.profound-btn-primary {
    background: #3b82f6;
    color: white;
}

.profound-btn-primary:hover {
    background: #2563eb;
}

.profound-btn-secondary {
    background: white;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.profound-btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .profound-inputs-area {
        grid-template-columns: 1fr;
    }
    
    .profound-actions-area {
        flex-direction: column;
        align-items: stretch;
    }
    
    .profound-buttons-group {
        width: 100%;
        flex-direction: column;
    }
    
    .profound-btn {
        width: 100%;
        justify-content: center;
    }
}

/* checkbox de nulo */
.checkbox-filtro {
  cursor: pointer;
  border: 1.5px solid var(--border-strong, #cbd5e0);
  border-radius: 4px;
  background: var(--surface-2, #ffffff);
  transition: all 0.15s ease-out;
  vertical-align: middle;
  max-width: 18px;
  max-height: 18px;
}

.checkbox-filtro:checked {
  background: #3b82f6;
  border-color: #3b82f6;
}

.checkbox-filtro:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.checkbox-filtro:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Label */
.label-filtro {
  display: flex;
  align-items: center;
  max-height: 30px;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  text-transform: none;
  font-size: 12px;
}

/* Dark mode */
[data-theme="dark"] .checkbox-filtro {
  background: #2d3748;
  border-color: #4a5568;
}

[data-theme="dark"] .checkbox-filtro:checked {
  background: #60a5fa;
  border-color: #60a5fa;
}

[data-theme="dark"] .label-filtro {
  color: #e2e8f0;
}

.tabela-completa thead th {
    cursor: pointer;

    &:hover .icon-filter{
        color: #3b82f6;
    }
}
/* ============================================================
   TEMA ESCURO (DARK MODE) — [data-theme="dark"]
   Cobre: caixa de filtro simples, filtro profundo (avançado) e
   o popup de filtro por coluna (aquele que abre ao clicar no
   funil do cabeçalho da tabela, ex: "FILTRANDO POR").
   ============================================================ */

/* ---------- Caixa de filtro simples (.filter-box) ---------- */
[data-theme="dark"] .filter-box-header {
    background-color: #151521;
}
[data-theme="dark"] .filter-box-content label {
    color: #cbd5e1;
}
[data-theme="dark"] .filter-box-content div input {
    background-color: #1e1e2e;
    color: #E4E6EF;
    border-color: #3c3c46;
}
[data-theme="dark"] .filter-box-content div input:hover {
    border-color: #487ffa;
}
[data-theme="dark"] .filter-box-content div input:focus {
    border-color: #487ffa;
}
[data-theme="dark"] .filter-box-content div input::placeholder {
    color: #64748b;
}
[data-theme="dark"] .filter-box-header .filter-box-cancel-box {
    border-color: #3c3c46;
}

/* ---------- Filtro profundo (.profound-filter-box) ---------- */
[data-theme="dark"] .profound-filter-box {
    background: #1e1e2e;
}
[data-theme="dark"] .profound-filter-header {
    background: #151521;
    border-bottom-color: #2b2b40;
}
[data-theme="dark"] .profound-filter-header:hover {
    background: #1a1a29;
}
[data-theme="dark"] .profound-filter-header h1 {
    color: #E4E6EF;
}
[data-theme="dark"] .profound-filter-header i {
    color: #94a3b8;
}
[data-theme="dark"] .profound-inputs-area::-webkit-scrollbar-track {
    background: #151521;
}
[data-theme="dark"] .profound-inputs-area::-webkit-scrollbar-thumb {
    background: #3c3c46;
}
[data-theme="dark"] .profound-inputs-area::-webkit-scrollbar-thumb:hover {
    background: #56566b;
}
[data-theme="dark"] .profound-grupo-input label {
    color: #cbd5e1;
}
[data-theme="dark"] .profound-grupo-input input,
[data-theme="dark"] .profound-grupo-input select,
[data-theme="dark"] .profound-input {
    background: #1e1e2e;
    color: #E4E6EF;
    border-color: #3c3c46;
}
[data-theme="dark"] .profound-grupo-input input:hover,
[data-theme="dark"] .profound-grupo-input select:hover,
[data-theme="dark"] .profound-input:hover {
    border-color: #56566b;
}
[data-theme="dark"] .profound-grupo-input input:focus,
[data-theme="dark"] .profound-grupo-input select:focus,
[data-theme="dark"] .profound-input:hover:focus {
    border-color: #487ffa;
}
[data-theme="dark"] .profound-grupo-input input::placeholder,
[data-theme="dark"] .profound-input:hover::placeholder {
    color: #64748b;
}
[data-theme="dark"] .profound-actions-area {
    background: #151521;
    border-top-color: #2b2b40;
}
[data-theme="dark"] .profound-info-text {
    color: #94a3b8;
}
[data-theme="dark"] .profound-btn-secondary {
    background: #1e1e2e;
    color: #94a3b8;
    border-color: #3c3c46;
}
[data-theme="dark"] .profound-btn-secondary:hover {
    background: #151521;
    border-color: #56566b;
}

/* ---------- Popup de filtro por coluna (.filter-th-box) ---------- */
/* Este é o popup "FILTRANDO POR" que abre ao clicar no funil do TH */
[data-theme="dark"] .filter-th-box {
    background: #1e1e2e;
    border-color: #2b2b40;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 2px 4px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .filter-th-box input,
[data-theme="dark"] .filter-th-box select {
    background-color: #151521;
    color: #E4E6EF;
    border-color: #3c3c46;
}
[data-theme="dark"] .filter-th-box input:focus,
[data-theme="dark"] .filter-th-box select:focus {
    border-color: #487ffa;
    background-color: #1e1e2e;
}
[data-theme="dark"] .filter-th-info {
    color: #94a3b8;
}

/* ---------- Ícone de filtro no cabeçalho da tabela ---------- */
[data-theme="dark"] .icon-filter {
    color: #64748b;
}
[data-theme="dark"] .icon-filter.filtering {
    color: #60a5fa;
    filter: drop-shadow(0px 1px 2px rgba(96, 165, 250, 0.25));
}