.filtro-texto-global {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px 12px;
    margin-bottom: 12px;
}

.filtro-texto-global-label {
    margin: 0;
    font-weight: 600;
    color: #73879c;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    width: 100%;
}

.filtro-texto-global-campo {
    display: flex;
    align-items: stretch;
    flex: 1 1 336px;
    max-width: 576px;
    min-width: 240px;
    position: relative;
}

.filtro-texto-global-input {
    flex: 1;
    border-radius: 6px 0 0 6px;
    border-right: 0;
    padding-right: 43px;
}

.filtro-texto-global-input:focus {
    border-color: #26b99a;
    box-shadow: none;
}

.filtro-texto-global-campo--ativo .filtro-texto-global-input {
    border-color: #26b99a;
    background-color: #f9fffd;
}

.filtro-texto-global-limpar {
    border-radius: 0 6px 6px 0;
    border-left: 0;
    padding: 6px 10px;
}

/* Barra acima da tabela (busca + limpar filtros) */
.filter-clear-button-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
    padding-left: 2px;
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
}

.filter-clear-button-container .filter-clear-all-button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.filtro-texto-global--inline-toolbar {
    margin-bottom: 0;
    flex: 1 1 240px;
    min-width: 0;
    max-width: 100%;
    width: auto;
}

.filtro-texto-global--inline-toolbar .filtro-texto-global-label {
    display: none;
}

.filter-clear-button-container .filtro-texto-global--inline-toolbar .filtro-texto-global-campo {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    min-width: min(240px, 100%);
}

.filter-clear-button-container .filtro-texto-global--inline-toolbar .filtro-texto-global-input {
    min-width: 0;
    width: 100%;
}

@media (max-width: 768px) {
    .filter-clear-button-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filtro-texto-global--inline-toolbar {
        flex: 1 1 100%;
        width: 100%;
    }

    .filter-clear-button-container .filter-clear-all-button {
        width: 100%;
    }
}
