/*
 * wpDataTables Aurora — opt-in standard-table palette.
 * Load after prism.css, which owns shared structure, original icons and states.
 * No fonts, images, libraries or continuous decorative animation are downloaded.
 * Palette tokens retain their Prism names for compatibility with shared controls.
 */
.wdt-skin-aurora {
    --wdt-prism-surface: #121d30;
    --wdt-prism-field: #1b2940;
    --wdt-prism-ink: #e6edf9;
    --wdt-prism-muted: #adbbd2;
    --wdt-prism-border: #33445f;
    --wdt-prism-accent: #b9adff;
    --wdt-prism-accent-hover: #d0c7ff;
    --wdt-prism-soft: #302c50;
    --wdt-prism-cyan: #74d9e8;
    --wdt-prism-cyan-soft: #193b49;
    --wdt-prism-row-hover: #21324b;
    --wdt-prism-row-selected: #2c3657;
    --wdt-prism-row-alternate: #162237;
    --wdt-prism-danger: #ff9fae;
    --wdt-prism-danger-soft: #3d2536;
    --wdt-prism-danger-border: #8f5364;
    --wdt-prism-hover-border: #8b83d5;
    --wdt-prism-shadow: 0 12px 32px #070e1b30;
    --wdt-prism-filter-background: linear-gradient(120deg, #1c2943, #193442);
    --wdt-prism-handle-shadow: 0 2px 6px #050b1740;
    --wdt-prism-hover-shadow: 0 0 0 1px #b9adff14, 0 3px 14px #8d80ef20;
    --wdt-prism-popover-shadow: 0 10px 28px #050b1760;
    --wdt-prism-menu-shadow: 0 14px 32px #050b1760;
    --wdt-prism-modal-shadow: 0 24px 72px #050b1780;
    --wdt-prism-focus-shadow: 0 0 0 3px #b9adff26;
    color-scheme: dark;
}

/* A quiet aurora at the edge of working surfaces. Cells stay opaque, so pinned
 * columns, selection and customer conditional colors remain legible. */
.wpdt-c.wdt-skin-aurora > .wpDataTablesWrapper {
    background-image: radial-gradient(ellipse at 0 0, #7774df12, transparent 50%),
        radial-gradient(ellipse at 100% 0, #4bceda0b, transparent 42%);
}
.wpdt-c :is(#wdt-frontend-modal, #wdt-delete-modal).wdt-skin-aurora .modal-header {
    background-image: linear-gradient(115deg, #b9adff0a, #74d9e808);
}

/* Clear hover feedback without shifting controls or making bright flashes. */
.wdt-skin-aurora :is(.wdt-checkbox-filter.btn, .wdt-clear-filters-button, .wdt-clear-filters-widget-button, .wdt-pf-search-filters-button):not(:disabled):not(.disabled):hover,
.wpdt-c.wdt-skin-aurora .wpDataTablesPopover.editTools :is(button.DTTT_button, a.DTTT_button):not(:disabled):not(.disabled):hover,
.wpdt-c.wdt-skin-aurora .bootstrap-select > .dropdown-toggle:not(:disabled):not(.disabled):hover,
.wpDataTablesFilter.wdt-skin-aurora .bootstrap-select > .dropdown-toggle:not(:disabled):not(.disabled):hover {
    border-color: var(--wdt-prism-hover-border);
    background: var(--wdt-prism-soft);
    box-shadow: var(--wdt-prism-hover-shadow);
}

/* The host page can be light: native controls inside the owned skin must still
 * use its dark palette, including browser-rendered select options. */
.wdt-skin-aurora :is(select, input, textarea) {
    color-scheme: dark;
}
.wdt-skin-aurora select option {
    background: var(--wdt-prism-surface);
    color: var(--wdt-prism-ink);
}

@media print {
    .wdt-skin-aurora { color-scheme: light; }
    .wpdt-c.wdt-skin-aurora > .wpDataTablesWrapper { background-image: none; }
    .wpdt-c.wdt-skin-aurora .wpDataTablesWrapper table.wpDataTable:not(.wpdtSimpleTable) > tbody > tr:is(.odd, .even, .selected):hover > td,
    .wpdt-c.wdt-skin-aurora .wpDataTablesWrapper table.wpDataTable:not(.wpdtSimpleTable) > tbody > tr:is(.odd, .even, .selected) > td,
    .wpdt-c.wdt-skin-aurora .wpDataTablesWrapper table.wpDataTable:not(.wpdtSimpleTable) > tfoot > tr > :is(td, th) {
        background: #fff;
        color: #172337;
        border-color: #dce3ed;
    }
}
