/* Simplified Styles for the Summary Leaderboard DataTable */
#summary-leaderboard {
    font-size: 0.9em;
    /* font-family: Georgia, 'Times New Roman', Times, serif !important; */
    /* width: 100% !important; */
    /* table-layout: fixed; */
    /* table-layout: auto; */
    /* border-collapse: collapse; */
    border-radius: .5rem;
    overflow: hidden;
    min-width: 800px;
}

#summary-leaderboard thead th,
#summary-leaderboard td {
    vertical-align: middle;
    text-align: center;
    padding: 0.4rem;
    border: 2px solid #dee2e6 !important;
    /* white-space: normal !important; */
    word-wrap: break-word !important;
    box-sizing: border-box;
}

#summary-leaderboard .dt-body-left { text-align: left; }

.model-column {
    font-weight: bold;
    min-width: 200px;
    text-align: left;
    /* width: 20% !important; */
}

.metric-subcol {
    /* font-size: 0.8em; */
    color: #6c757d;
}

/* Disable clicks on group and sub-header rows, leaving only the metrics row clickable */
#summary-leaderboard thead tr:nth-child(1) th,
#summary-leaderboard thead tr:nth-child(2) th {
    pointer-events: none;
    cursor: default;
}

/* #summary-leaderboard_wrapper {
    width: 100% !important;
} */

#summary-leaderboard th,
#summary-leaderboard td {
    white-space: nowrap;
}

.table-responsive > #summary-leaderboard {
    width: 100%;
    /* table-layout: fixed; */
    table-layout: auto;

}

/* Progress bar for total ASR column */
.summary-progress-container {
    position: relative;
    width: 100%;
    min-width: 200px;
    background-color: #e9ecef;
    border-radius: .25rem;
    height: 1rem;
    overflow: hidden;
}
.summary-progress-bar {
    height: 100%;
    background: linear-gradient(to right, #9ecae1, #6baed6, #3182bd);
}
.summary-progress-text {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8em;
    line-height: 1rem;
    color: #212529;
}

/* Remove DataTables sort icons from header cells */
#summary-leaderboard thead th.sorting,
#summary-leaderboard thead th.sorting_asc,
#summary-leaderboard thead th.sorting_desc {
    background-image: none !important;
}
#summary-leaderboard thead th.sorting::before,
#summary-leaderboard thead th.sorting::after,
#summary-leaderboard thead th.sorting_asc::before,
#summary-leaderboard thead th.sorting_asc::after,
#summary-leaderboard thead th.sorting_desc::before,
#summary-leaderboard thead th.sorting_desc::after {
    display: none !important;
    content: '' !important;
} 