.bfg-highscore-table {
    width: 100% !important;
    border-collapse: collapse;
    background: #eaf4fa;
    border-radius: 0;
    overflow: hidden;
    border-spacing: 0;
}

.bfg-highscore-table td,
.bfg-highscore-table th {
    border: none !important;
    padding: 14px 16px;
    text-align: center;
    font-family: "Open Sans", sans-serif;
    letter-spacing: 0.5px;
}

.bfg-highscore-table th {
    background-color: #0a4c8c;
    color: #fff;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
}

.bfg-highscore-table td {
    color: #3a3a3a;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    background: #ffffff;
}

.bfg-highscore-table tbody tr:nth-child(even) td {
    background: #f4f6fa;
}

.bfg-highscore-table tbody tr:nth-child(odd) td {
    background: #ffffff;
}

.bfg-highscore-table tbody tr:hover td {
    background: #edf3f8;
}

.bfg-highscore-table td:first-child,
.bfg-highscore-table th:first-child {
    padding-left: 16px;
    text-align: center;
}

.bfg-highscore-table td:nth-child(2),
.bfg-highscore-table th:nth-child(2) {
    text-align: left;
}

.bfg-highscore-table td:not(:last-child),
.bfg-highscore-table th:not(:last-child) {
    box-shadow: inset -2px 0 0 #ffffff;
}

.bfg-place {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.bfg-place-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}
.bfg-place-number {
    display: inline-block;
    text-align: center;
    min-width: 20px;
}

.bfg-pager {
    display: flex;
    gap: 6px;
    justify-content: flex-start;
    padding: 12px 0 4px;
    font-family: "Open Sans", sans-serif;
}

.bfg-pager button {
    background: #f4f6fa;
    border: 1px solid #d4e0ea;
    color: #014785;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bfg-pager button.active {
    background: #014785;
    color: #fff;
    border-color: #014785;
}

.bfg-pager button:hover:not(.active) {
    background: #e0ecf8;
    border-color: #014785;
}

.bfg-highscore-empty-note {
    margin-top: 12px;
    color: #014785;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
}

/* DataTables pagination to match pager look */
.dataTables_wrapper .dataTables_paginate {
    padding: 12px 0 4px;
    text-align: left;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: #edf3f8 !important;
    border: 1px solid #d4e0ea !important;
    color: #014785 !important;
    padding: 6px 12px;
    margin: 0 3px;
    border-radius: 4px;
    font-weight: 600;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    padding-left: 10px;
    padding-right: 10px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    color: #fff !important;
    border-color: #014785 !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:not(.current):hover {
    background: #e0ecf8 !important;
    border-color: #014785 !important;
    color: #014785 !important;
}

/* Subtle sort indicators (to mirror arrow presence in the reference) */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    background-position: right 10px center;
    background-repeat: no-repeat;
}
table.dataTable thead .sorting {
    background-image: linear-gradient(45deg, transparent 50%, #dfe8f0 50%), linear-gradient(135deg, #dfe8f0 50%, transparent 50%);
    background-size: 8px 8px;
}
table.dataTable thead .sorting_asc {
    background-image: linear-gradient(45deg, transparent 50%, #ffffff 50%), linear-gradient(135deg, #dfe8f0 50%, transparent 50%);
    background-size: 8px 8px;
}
table.dataTable thead .sorting_desc {
    background-image: linear-gradient(45deg, transparent 50%, #dfe8f0 50%), linear-gradient(135deg, #ffffff 50%, transparent 50%);
    background-size: 8px 8px;
}

table.dataTable.no-footer {
    border: none;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin: 10px;
}

.dataTables_wrapper .dataTables_length {
    display: none;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 6px 12px;
    margin: 0 2px;
    border-radius: 4px;
    color: var(--sem-color-schemes-content-secondary, #001C35) !important;
    text-align: center;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 160%;
    letter-spacing: 0.5px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #edf3f8;
    color: #fff !important;
    border: 1px solid #014785;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #edf3f8 !important;
    border: 1px solid #014785;
    color: #014785 !important;
}
