/* =========================================================
   Emendas Parlamentares — Archive Page Styles
   ========================================================= */

.emendas-archive {
    font-family: inherit;
}

.emendas-archive__header {
    margin-bottom: 32px;
}

.emendas-archive__titulo {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #212529;
}

.emendas-archive__descricao {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.emendas-archive__filtros {
    margin-bottom: 24px;
}

.emendas-archive__lista-wrap {
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    background: #fff;
}

.emendas-archive__lista {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.emendas-archive__lista thead {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.emendas-archive__lista thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057;
    line-height: 1.5;
}

.emendas-archive__lista tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background 0.15s ease;
}

.emendas-archive__lista tbody tr:hover {
    background: #f8f9fa;
}

.emendas-archive__lista tbody td {
    padding: 12px 16px;
    color: #495057;
    vertical-align: middle;
}

.emenda-row__link {
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
}

.emenda-row__link:hover {
    text-decoration: underline;
}

.emenda-row__btn {
    display: inline-block;
    padding: 6px 12px;
    background: #f8f9fa;
    color: #2271b1;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.emenda-row__btn:hover {
    background: #e9ecef;
    border-color: #2271b1;
}

.col-titulo {
    width: 20%;
    min-width: 150px;
}

.col-parlamentar {
    width: 18%;
    min-width: 140px;
}

.col-tipo {
    width: 10%;
    min-width: 100px;
}

.col-situacao {
    width: 12%;
    min-width: 110px;
}

.col-ano {
    width: 8%;
    min-width: 60px;
}

.col-area {
    width: 12%;
    min-width: 100px;
}

.col-valor {
    width: 12%;
    min-width: 120px;
    text-align: right;
}

.col-acao {
    width: 8%;
    min-width: 70px;
    text-align: center;
}

.emendas-archive__nenhuma {
    text-align: center;
    padding: 48px 24px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #6c757d;
}

/* Paginação */
.navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
}

.page-numbers {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-numbers a,
.page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    background: #fff;
    transition: all 0.15s;
}

.page-numbers a:hover {
    background: #f8f9fa;
    border-color: #2271b1;
    color: #2271b1;
}

.page-numbers .current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.page-numbers .dots {
    border: none;
    color: #6c757d;
}

/* Responsivo */
@media (max-width: 1024px) {
    .col-parlamentar {
        display: none;
    }

    .col-titulo {
        width: 25%;
    }

    .col-area {
        display: none;
    }

    .col-valor {
        width: 18%;
    }
}

@media (max-width: 768px) {
    .emendas-archive__lista {
        font-size: 12px;
    }

    .emendas-archive__lista thead {
        display: none;
    }

    .emendas-archive__lista tbody tr {
        display: block;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        margin-bottom: 12px;
        padding: 12px;
        background: #fff;
    }

    .emendas-archive__lista tbody tr:hover {
        background: #fff;
    }

    .emendas-archive__lista tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid #e9ecef;
        font-size: 12px;
    }

    .emendas-archive__lista tbody td:last-child {
        border-bottom: none;
    }

    .emendas-archive__lista tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #6c757d;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        flex: 0 0 40%;
        display: block;
    }

    .col-titulo,
    .col-parlamentar,
    .col-tipo,
    .col-situacao,
    .col-ano,
    .col-area,
    .col-valor,
    .col-acao {
        width: 100%;
        min-width: auto;
        text-align: left;
    }

    .col-valor {
        text-align: left;
    }

    .col-acao {
        text-align: left;
        margin-top: 8px;
    }
}