/* Ajuste visual del listado de parejas para igualarlo a la lectura de clasificación. */

.tpg-parejas-list {
    --tpg-list-bg: var(--color-card-graphite);
    --tpg-list-border: rgba(148, 163, 184, .22);
    --tpg-list-text: var(--color-off-white);
    --tpg-list-muted: var(--color-cool-gray);

    position: relative;
    display: block !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    overflow: hidden;
    padding: 2rem 0 .5rem !important;
    background: var(--tpg-list-bg) !important;
    border: 1px solid var(--tpg-list-border) !important;
    border-radius: 1.1rem !important;
}

.tpg-parejas-list::before,
.tpg-parejas-list::after {
    position: absolute;
    top: .54rem;
    z-index: 1;
    color: var(--tpg-list-muted);
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

.tpg-parejas-list::before {
    left: .72rem;
    content: "PAREJA";
}

.tpg-parejas-list::after {
    right: .72rem;
    width: 5.8rem;
    text-align: center;
    content: "PAGO";
}

.tpg-parejas-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(5.8rem, auto) !important;
    align-items: center !important;
    gap: .5rem !important;
    min-height: 3.1rem !important;
    padding: .54rem .72rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tpg-parejas-item:nth-of-type(even) {
    background: rgba(255, 255, 255, .032) !important;
}

.tpg-parejas-item:hover,
.tpg-parejas-item:focus,
.tpg-parejas-item:focus-visible,
.tpg-parejas-item.is-selected {
    background: rgba(0, 162, 232, .055) !important;
    outline: none !important;
}

.tpg-parejas-item__head {
    display: grid !important;
    grid-template-columns: 1.9rem minmax(0, 1fr) !important;
    align-items: center !important;
    gap: .55rem !important;
    min-width: 0;
}

.tpg-parejas-item__number {
    align-items: center !important;
    justify-content: center !important;
    width: 1.9rem !important;
    min-width: 1.9rem !important;
    height: 1.9rem !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: rgba(0, 162, 232, .14) !important;
    color: var(--tpg-list-text) !important;
    font-size: .92rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}

.tpg-parejas-item__title {
    color: var(--tpg-list-text) !important;
    font-size: .94rem !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    min-width: 0;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.tpg-parejas-item__chevron,
.tpg-parejas-item__critical {
    display: none !important;
}

.tpg-parejas-item__footer {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    grid-column: 2 !important;
    gap: 0 !important;
    margin: 0 !important;
    min-width: 0;
}

.tpg-pay-action {
    min-width: 5.25rem !important;
    min-height: 1.55rem !important;
    padding: .14rem .45rem !important;
    border-radius: 999px !important;
    font-size: 0 !important;
    line-height: 1 !important;
}

.tpg-pay-action::after {
    content: "Pagar";
    font-size: .72rem;
    font-weight: 500;
}

.tpg-pay-action.is-paid::after {
    content: "Pagado";
}

.tpg-pay-action .spinner-border {
    width: .85rem;
    height: .85rem;
    margin-right: .25rem;
    font-size: .72rem;
}

@media (max-width: 767.98px) {
    .tpg-toolbar {
        margin-bottom: .55rem !important;
    }

    .tpg-parejas-list {
        border-radius: 1.1rem !important;
    }

    .tpg-parejas-list::after {
        width: 5.2rem;
    }

    .tpg-parejas-item {
        grid-template-columns: minmax(0, 1fr) minmax(5.2rem, auto) !important;
        min-height: 3.05rem !important;
        padding: .52rem .68rem !important;
    }

    .tpg-parejas-item__head {
        grid-template-columns: 1.85rem minmax(0, 1fr) !important;
        gap: .52rem !important;
    }

    .tpg-parejas-item__number {
        width: 1.85rem !important;
        min-width: 1.85rem !important;
        height: 1.85rem !important;
        font-size: .88rem !important;
    }

    .tpg-parejas-item__title {
        font-size: .94rem !important;
    }

    .tpg-pay-action {
        width: auto !important;
        min-width: 4.85rem !important;
        min-height: 1.5rem !important;
    }

    .tpg-pay-action::after {
        font-size: .68rem;
    }
}
