.app-data-table-loading-surface {
    position: relative !important;
}

.app-data-table-loading-overlay {
    position: absolute;
    z-index: 30;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    background: rgba(255, 255, 255, .78);
}

.app-data-table-loading-message {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: .875rem;
    box-shadow: 0 3px 14px rgba(15, 23, 42, .12);
}

.app-data-table-loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(59, 130, 246, .2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: app-data-table-spin .7s linear infinite;
}

@keyframes app-data-table-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .app-data-table-loading-spinner { animation-duration: 1.5s; }
}

/* Visible sort indicators for DataTables across all themes. */
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc,
table.dataTable thead th.dt-orderable-asc,
table.dataTable thead th.dt-orderable-desc,
table.dataTable thead th.dt-ordering-asc,
table.dataTable thead th.dt-ordering-desc {
    position: relative !important;
    padding-right: 28px !important;
    background-image: none !important;
}
table.dataTable thead th.sorting::after,
table.dataTable thead th.sorting_asc::after,
table.dataTable thead th.sorting_desc::after,
table.dataTable thead th.dt-orderable-asc::after,
table.dataTable thead th.dt-orderable-desc::after,
table.dataTable thead th.dt-ordering-asc::after,
table.dataTable thead th.dt-ordering-desc::after {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    font-size: 12px !important;
    line-height: 1 !important;
    opacity: .55 !important;
}
table.dataTable thead th.sorting:before,
table.dataTable thead th.sorting_asc:before,
table.dataTable thead th.sorting_desc:before {
    content: none !important;
    display: none !important;
}
table.dataTable thead th.dt-orderable-asc::before,
table.dataTable thead th.dt-orderable-desc::before,
table.dataTable thead th.dt-ordering-asc::before,
table.dataTable thead th.dt-ordering-desc::before,
table.dataTable thead th .dt-column-order {
    display: none !important;
}
table.dataTable thead th.sorting::after { content: "↕" !important; }
table.dataTable thead th.sorting_asc::after { content: "↑" !important; opacity: 1 !important; }
table.dataTable thead th.sorting_desc::after { content: "↓" !important; opacity: 1 !important; }
table.dataTable thead th.dt-orderable-asc::after,
table.dataTable thead th.dt-orderable-desc::after { content: "↕" !important; }
table.dataTable thead th.dt-ordering-asc::after { content: "↑" !important; opacity: 1 !important; }
table.dataTable thead th.dt-ordering-desc::after { content: "↓" !important; opacity: 1 !important; }
