/*
 * Prominent loading feedback for server-side DataTables (the report grids).
 *
 * The report grid runs with `processing: true`, so DataTables toggles the
 * .dataTables_processing element (via inline display:block/none) on every server-side
 * draw. The stock indicator is a faint bar that flashes by. This restyles it as a
 * centered spinner card so every page change / sort / filter gives a clear signal.
 *
 * NOTE: layout must NOT use `display:flex` here — DataTables controls visibility by
 * setting inline `display`, so the element is centered via absolute positioning +
 * translate instead, leaving display free for DataTables (and the min-display JS in
 * datatables-loading.js) to toggle.
 *
 * Loaded AFTER themes/panel/css/libraries/jquery.dataTables.min.css so it wins.
 */
.dataTables_wrapper .dataTables_processing {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: auto;
    margin: 0;
    padding: 20px 24px 16px;
    text-align: center;
    color: #333;
    font-weight: 500;
    font-size: 0.95em;
    background: rgba(255, 255, 255, 0.96);
    background-image: none;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
    z-index: 20;
}

.dataTables_wrapper .dataTables_processing::before {
    content: "";
    display: block;
    width: 28px;
    height: 28px;
    margin: 0 auto 10px;
    border: 3px solid rgba(0, 0, 0, 0.15);
    border-top-color: #2b6cb0;
    border-radius: 50%;
    animation: wpasDtSpin 0.7s linear infinite;
}

@keyframes wpasDtSpin {
    to {
        transform: rotate(360deg);
    }
}
