.ontriathlonapi-table-scroll {
    position: relative;
    max-width: 100%;
    max-height: 75vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.ontriathlonapi-table-scroll > table {
    width: max-content;
    min-width: 100%;
}

.ontriathlonapi-table-scroll > table > thead {
    position: sticky;
    top: 0;
    z-index: 5;
}

.ontriathlonapi-table-scroll > table > thead th {
    background: var(--bs-table-bg, #f8f9fa);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .2);
    white-space: nowrap;
}

.ontriathlonapi-table-scroll > table td {
    vertical-align: middle;
}

.ontriathlonapi-table-scroll details > summary {
    cursor: pointer;
}

.ontri-prediction-table {
    min-width: 980px;
}

.ontri-prediction-table > tbody > tr > td {
    min-width: 110px;
}

.ontri-prediction-table > tbody > tr > td:nth-child(2) {
    min-width: 210px;
}

.ontri-prediction-disclosure > summary,
.ontri-prediction-row-details > summary {
    cursor: pointer;
}

.ontri-prediction-disclosure > summary {
    color: var(--bs-primary);
    font-weight: 600;
}

.ontri-prediction-row-details {
    position: static;
}

.ontri-prediction-row-details[open]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1039;
    background: rgba(15, 23, 42, .48);
}

.ontri-prediction-row-details > summary {
    list-style: none;
    white-space: nowrap;
}

.ontri-prediction-row-details > summary::-webkit-details-marker {
    display: none;
}

.ontri-prediction-detail-card {
    position: fixed;
    top: 5vh;
    right: 5vw;
    bottom: 5vh;
    left: 5vw;
    z-index: 1040;
    overflow: auto;
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg);
    background: var(--bs-body-bg);
    box-shadow: var(--bs-box-shadow-lg);
    white-space: normal;
}

.ontri-prediction-detail-card h3 {
    margin-bottom: .5rem;
    font-size: .9rem;
    font-weight: 700;
}

.ontri-prediction-detail-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: -1rem -1rem 1rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-lg) var(--bs-border-radius-lg) 0 0;
    background: var(--bs-body-bg);
}

.ontri-prediction-summary {
    position: absolute;
    right: 1rem;
    z-index: 6;
    width: min(900px, calc(100vw - 3rem));
}

.ontri-prediction-summary small,
.ontri-prediction-summary strong {
    display: block;
}

.ontri-prediction-summary strong {
    font-size: 1.2rem;
}

html.ontri-prediction-details-open {
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .ontriathlonapi-table-scroll {
        max-height: 70vh;
    }

    .ontri-prediction-detail-card {
        top: 2vh;
        right: 2vw;
        bottom: 2vh;
        left: 2vw;
    }
}
