table.dataTable thead th, table.dataTable thead td {
    position: relative;
}

table.dataTable thead span.dt-order-number {
    position: absolute;
    top: 2px;
    right: 19px;
    color: var(--dt-order-numbers-light-color, white);
    background: var(--dt-order-numbers-light-background, #555);
    border-radius: 10px;
    width: 1.5em;
    text-align: center;
    height: 1.5em;
    font-size: 11px;
    line-height: 15px;
}

/* SRT custom to fix it for datatable >= 2.3 (not needed anymore with Version 1.0.3 of this plugin) */
/*table.dataTable thead > tr > th.dt-orderable-asc, table.dataTable thead > tr > th.dt-orderable-desc, table.dataTable thead > tr > th.dt-ordering-asc
{
    position: relative !important;
}*/
/* ENDE */

:root.dark table.dataTable thead span.dt-order-number,
:root[data-theme=dark] table.dataTable thead span.dt-order-number,
:root[data-bs-theme=dark] table.dataTable thead span.dt-order-number {
    color: var(--dt-order-numbers-dark-color, black);
    background: var(--dt-order-numbers-dark-background, #d3d3d3);
}
