.filtro-betha {
    display: flex;
    align-items: center;
}

/* Botão "Filtrar" (.filtro-btn): movido para betha-toolbar.css */

/* Chips filtros ativos */
.filtro-resumos {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filtro-resumo {
    display: none;
    align-items: center;
    gap: 7px;
    background: #e3f2fd;
    color: #1565c0;
    border: 0.5px solid #90caf9;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 7px 5px 12px;
    margin-left: 8px;
    cursor: pointer;
    white-space: nowrap;
}

    .filtro-resumo.visivel {
        display: inline-flex;
    }

    .filtro-resumo > .filtro-resumo-icon {
        font-size: 12px;
    }

.filtro-resumo-count {
    background: #1565c0;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 0 7px;
    border-radius: 50px;
    line-height: 18px;
}

.filtro-resumo-x {
    font-size: 12px;
    margin-left: 2px;
    padding: 3px;
    border-radius: 50%;
    opacity: .65;
}

    .filtro-resumo-x:hover {
        opacity: 1;
        background: rgba(21, 101, 192, .14);
    }

/* Painel que desliza pro lado */
.filtro-painel {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 0;
    opacity: 0;
    transform: translateX(-10px);
    overflow: visible;
    pointer-events: none;
    transition: max-width .32s ease, opacity .28s ease, transform .28s ease;
}

    .filtro-painel.aberto {
        max-width: 100%;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }


.filtro-painel-rolagem {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.filtro-painel-trilho {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0;
    scrollbar-width: none;
}

    .filtro-painel-trilho::-webkit-scrollbar {
        display: none;
    }


.filtro-painel-rolagem::before,
.filtro-painel-rolagem::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 48px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease;
}

.filtro-painel-rolagem::before {
    left: 0;
    background: linear-gradient(to right, var(--filtro-fundo, #fff) 30%, transparent);
}

.filtro-painel-rolagem::after {
    right: 0;
    background: linear-gradient(to left, var(--filtro-fundo, #fff) 30%, transparent);
}

.filtro-painel-rolagem.tem-esq::before,
.filtro-painel-rolagem.tem-dir::after {
    opacity: 1;
}

/* Setas: aparecem só no lado que tem mais categorias */
.filtro-seta {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0.5px solid #d6d6d6;
    border-radius: 50%;
    background: #fff;
    color: #555;
    font-size: 11px;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: background .15s, color .15s;
}

    .filtro-seta:hover {
        background: #f0f0f1;
        color: #1565c0;
    }

.filtro-seta-esq {
    left: 0;
}

.filtro-seta-dir {
    right: 0;
}

.filtro-painel-rolagem.tem-esq .filtro-seta-esq,
.filtro-painel-rolagem.tem-dir .filtro-seta-dir {
    display: inline-flex;
}

.filtro-label {
    font-size: 11px;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
    padding-left: 16px;
}

.filtro-divisor {
    width: 1px;
    height: 20px;
    background: #e0e0e0;
    flex: 0 0 auto;
}

/* Categoria de filtro */
.filtro-cat {
    position: relative;
}

.filtro-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #333;
    font-size: 14px;
    padding: 6px 10px;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 6px;
    transition: background .15s;
}

    .filtro-cat-btn:hover {
        background: #f0f0f1;
    }

.filtro-cat-icon {
    font-size: 13px;
    color: #3374db;
}

.filtro-cat-count {
    display: none;
    background: #e3f2fd;
    color: #1565c0;
    font-size: 11px;
    font-weight: 600;
    padding: 0 7px;
    border-radius: 50px;
    line-height: 18px;
}

.filtro-caret {
    font-size: 11px;
    color: #888;
    transition: transform .2s ease;
}

    .filtro-caret.aberto {
        transform: rotate(180deg);
    }

/* Dropdown */
.filtro-drop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    min-width: 290px;
    background: #fff;
    border: 0.5px solid #d6d6d6;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    z-index: 1000;
    overflow: hidden;
}

    .filtro-drop.aberto {
        display: block;
    }

.filtro-drop-busca {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-bottom: 0.5px solid #eee;
}

    .filtro-drop-busca i {
        font-size: 12px;
        color: #aaa;
    }

    .filtro-drop-busca input {
        border: none;
        outline: none;
        font-size: 13px;
        width: 100%;
        background: transparent;
    }

.filtro-drop-lista {
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 0;
}

.filtro-drop-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    color: #333;
}

    .filtro-drop-item:hover {
        background: #f5f5f6;
    }

    .filtro-drop-item.marcada {
        font-weight: 600;
    }

.filtro-drop-check {
    width: 18px;
    flex: 0 0 18px;
    color: #1565c0;
    font-size: 14px;
}

.filtro-drop-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 8px;
}

.filtro-drop-nome {
    flex: 1;
}

.filtro-drop-qtd {
    background: #ededee;
    color: #888;
    font-size: 11px;
    font-weight: 600;
    padding: 0 7px;
    border-radius: 50px;
}

.filtro-drop-item.marcada .filtro-drop-qtd {
    background: #1565c0;
    color: #fff;
}

.filtro-drop-vazio {
    padding: 14px 12px;
    font-size: 12px;
    color: #999;
    text-align: center;
}
