/* ==========================================================================
   Tabela Associados — Shortcode (frontend) CSS
   ========================================================================== */

.ta-wrapper {
    font-family: inherit;
    margin: 32px 0;
}

/* -------- Formulário de filtro -------- */
.ta-filter-form {
    margin-bottom: 20px;
}

/* Linha 1 — busca por nome (largura total) */
.ta-filter-row-search {
    margin-bottom: 8px;
}

/* Linha 2 — duas colunas: UF | Botões */
.ta-filter-row-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: center;
}

.ta-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
}

.ta-input-busca {
    width: 100%;
    box-sizing: border-box;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.ta-select-uf {
    width: 100%;
    box-sizing: border-box;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.ta-btn-buscar,
.ta-btn-limpar {
    padding: 0 20px;
    height: 38px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    box-sizing: border-box;
}

.ta-btn-buscar {
    background: #0073aa;
    color: #fff;
    border: none;
    transition: background 0.15s;
}

.ta-btn-buscar:hover {
    background: #005a87;
}

.ta-btn-limpar {
    background: transparent;
    color: #666;
    border: 1px solid #ccc;
}

.ta-btn-limpar:hover {
    background: #f5f5f5;
    color: #333;
}

/* -------- Contador -------- */
.ta-count {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px;
}

/* -------- Sem resultados -------- */
.ta-sem-resultados {
    color: #555;
    font-style: italic;
}

/* -------- Tabela -------- */
.ta-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}

.ta-table th,
.ta-table td {
    padding: 9px 12px;
    text-align: left;
    border: 1px solid #d5d5d5;
    vertical-align: middle;
}

.ta-table thead th {
    background: var(--e-global-color-accent);
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.ta-table thead .ta-th-grad {
    text-align: center;
    background: var(--e-global-color-accent);
}

.ta-table .ta-row-even {
    background: #fff;
}

.ta-table .ta-row-odd {
    background: #f4faff;
}

.ta-table .ta-td-num,
.ta-table .ta-td-uf {
    text-align: center;
    width: 50px;
    white-space: nowrap;
}

/* -------- Paginação -------- */
.ta-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 16px;
    align-items: center;
}

.ta-page-link,
.ta-page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #ccc;
    line-height: 1;
    box-sizing: border-box;
}

.ta-page-link {
    background: #fff;
    color: #0073aa;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.ta-page-link:hover {
    background: #e8f4fd;
}

.ta-page-current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    font-weight: 600;
}

.ta-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 32px;
    font-size: 14px;
    color: #aaa;
    user-select: none;
}

/* -------- Responsividade -------- */
@media (max-width: 600px) {
    .ta-filter-row-bottom {
        grid-template-columns: 1fr;
    }

    .ta-filter-actions {
        justify-content: flex-start;
    }

    .ta-table {
        font-size: 12px;
    }

    .ta-table th,
    .ta-table td {
        padding: 6px 8px;
    }
}
