.rtp-thead {
    position: sticky;
    top: calc(var(--topbar-h, 60px) + var(--rtp-nav-h, 48px) + 8px);
    z-index: 7;
    display: grid;
    grid-template-columns: var(--rtp-grid);
    gap: 12px;
    align-items: center;
    padding: 0 16px;
    background: var(--pd-bg-card-hd);
    border-bottom: 1px solid var(--pd-border);
}

.rtp-th {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 11px 0;
    border: 0;
    background: none;
    color: var(--pd-text-muted);
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
}

.rtp-th--act,
.rtp-th--act:hover {
    cursor: default;
    justify-content: flex-end;
}

.rtp-th:hover {
    color: var(--pd-accent-text);
}

.rtp-th[data-sort]::after {
    content: '\2195';
    font-size: 9px;
    opacity: 0.4;
}

.rtp-th.is-sorted-asc::after {
    content: '\2191';
    opacity: 1;
}

.rtp-th.is-sorted-desc::after {
    content: '\2193';
    opacity: 1;
}

.rtp-th.is-sorted-asc,
.rtp-th.is-sorted-desc {
    color: var(--pd-accent-text);
}

.rtp-row {
    display: block;
    border-bottom: 1px solid var(--pd-border-soft);
}

.rtp-row.is-hidden {
    display: none;
}

.rtp-row:hover {
    background: var(--pd-bg-row);
}

.rtp-row:target {
    background: var(--pd-accent-tint);
}

.rtp-row__sum {
    display: grid;
    grid-template-columns: var(--rtp-grid);
    gap: 4px 12px;
    align-items: center;
    padding: 10px 16px;
    position: relative;
    list-style: none;
    cursor: pointer;
}

.rtp-row__sum::-webkit-details-marker {
    display: none;
}

.rtp-row__chev {
    flex-shrink: 0;
    color: var(--pd-text-ghost);
    transition: transform 0.15s ease;
}

.rtp-row[open] .rtp-row__chev {
    transform: rotate(180deg);
}

.rtp-cell {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.rtp-cell--rtp,
.rtp-cell--configs,
.rtp-cell--maxwin,
.rtp-cell--released,
.rtp-cell--vol {
    font-variant-numeric: tabular-nums;
}

.rtp-ab__short {
    display: none;
}

.rtp-cell--act {
    justify-content: flex-end;
    min-width: 0;
    overflow: hidden;
    gap: 6px;
}

.rtp-lbl {
    display: none;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pd-text-ghost);
}

.rtp-logo {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--pd-border);
    object-fit: cover;
    background: var(--pd-bg-inset);
}

.rtp-logo--ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--pd-text-ghost);
}

.rtp-gname {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 0;
}

.rtp-gname__line {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.rtp-gname__a {
    flex: 1 1 auto;
    min-width: 92px;
    font-size: 14px;
    font-weight: 550;
    color: var(--pd-text-h);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rtp-gname__a:hover {
    color: var(--pd-accent-text);
}

.rtp-gname__sub {
    font-size: 11px;
    color: var(--pd-text-ghost);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rtp-tag {
    display: inline-block;
    padding: 1px 7px;
    border: 1px solid var(--pd-border);
    border-radius: var(--radius-sm);
    background: var(--pd-bg-inset);
    color: var(--pd-text-sec);
    font-size: 10.5px;
    font-weight: 550;
    white-space: nowrap;
}

.rtp-tag--type {
    border-color: var(--pd-accent-border);
    background: var(--pd-accent-tint);
    color: var(--pd-accent-text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rtp-tag--bb {
    border-color: rgba(217, 119, 6, 0.35);
    background: rgba(217, 119, 6, 0.1);
    color: var(--color-warning);
}

.rtp-val {
    font-size: 14px;
    font-weight: 650;
    color: var(--pd-text-h);
}

.rtp-cfgn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 22px;
    padding: 0 7px;
    border: 1px solid var(--pd-accent-border);
    border-radius: 999px;
    background: var(--pd-accent-tint);
    color: var(--pd-accent-text);
    font-size: 12px;
    font-weight: 650;
}

.rtp-dash {
    color: var(--pd-text-ghost);
}

.rtp-vol__w {
    font-size: 12.5px;
    color: var(--pd-text-sec);
    white-space: nowrap;
}

.rtp-mw {
    font-size: 13.5px;
    color: var(--pd-text-body);
}

.rtp-mw__x {
    font-size: 11px;
    color: var(--pd-text-ghost);
}

.rtp-rel {
    font-size: 12.5px;
    color: var(--pd-text-sec);
    white-space: nowrap;
}

.rtp-ab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 11px;
    border: 1px solid var(--pd-border-strong);
    border-radius: var(--radius-md);
    background: var(--pd-bg);
    color: var(--pd-text-sec);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 550;
    white-space: nowrap;
    cursor: pointer;
}

.rtp-ab:hover {
    border-color: var(--pd-accent-border);
    color: var(--pd-accent-text);
    text-decoration: none;
}

.rtp-ab--demo {
    border-color: var(--pd-accent-border);
    background: var(--pd-accent-tint);
    color: var(--pd-accent-text);
}

.rtp-ab--off {
    opacity: 0.45;
    cursor: not-allowed;
}

.rtp-ab--link {
    border-color: transparent;
    background: none;
    padding-left: 6px;
    padding-right: 6px;
}

.rtp-empty {
    padding: 40px 16px;
    text-align: center;
    color: var(--pd-text-muted);
    font-size: 14px;
}
