/* Paginação compartilhada pela busca do index e pelo diretório do Meu Trilista. */
.company-results-pagination {
    box-sizing: border-box;
    width: 100%;
    margin: 14px auto 4px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.company-results-page-button,
.company-results-page-number {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    border: 0;
    font: inherit;
}

.company-results-page-button {
    min-width: 108px;
    min-height: 46px;
    padding: 0 17px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #eef1f6;
    color: #263857;
    box-shadow: 0 8px 18px rgba(38, 56, 87, 0.1);
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.company-results-page-button:hover:not(:disabled) {
    background: #e2e7ef;
    box-shadow: 0 11px 23px rgba(38, 56, 87, 0.14);
    transform: translateY(-1px);
}

.company-results-page-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    box-shadow: none;
}

.company-results-page-numbers {
    box-sizing: border-box;
    min-width: 0;
    min-height: 46px;
    padding: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid rgba(223, 226, 232, 0.98);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 7px 17px rgba(38, 56, 87, 0.07);
}

.company-results-page-number,
.company-results-page-ellipsis {
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1;
}

.company-results-page-number {
    background: transparent;
    color: #667085;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.company-results-page-number:hover:not(.is-current) {
    background: #eef1f6;
    color: #263857;
    transform: translateY(-1px);
}

.company-results-page-number.is-current {
    background: #263857;
    color: #ffffff;
    cursor: default;
    box-shadow: 0 5px 12px rgba(38, 56, 87, 0.2);
}

.company-results-page-ellipsis {
    color: #98a2b3;
}

.company-results-page-button:focus-visible,
.company-results-page-number:focus-visible {
    outline: 3px solid rgba(255, 196, 0, 0.42);
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .company-results-pagination {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 12px;
    }

    .company-results-page-numbers {
        grid-column: 1 / -1;
        grid-row: 1;
        width: max-content;
        max-width: 100%;
        min-height: 44px;
        margin: 0 auto;
        padding: 4px;
        gap: 2px;
        border-radius: 13px;
    }

    .company-results-page-button {
        grid-row: 2;
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 0 12px;
        border-radius: 13px;
        font-size: 0.8rem;
    }

    .company-results-page-number,
    .company-results-page-ellipsis {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 9px;
        font-size: 0.78rem;
    }
}

@media (max-width: 360px) {
    .company-results-page-number,
    .company-results-page-ellipsis {
        width: 31px;
        height: 32px;
        flex-basis: 31px;
        font-size: 0.74rem;
    }
}
