/*
 * wpDataTables Editorial — 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-editorial {
    --wdt-prism-surface: #fffdf7;
    --wdt-prism-field: #f3f0e7;
    --wdt-prism-ink: #273e3a;
    --wdt-prism-muted: #5c6b64;
    --wdt-prism-border: #d6dbcf;
    --wdt-prism-accent: #24685a;
    --wdt-prism-accent-hover: #185346;
    --wdt-prism-soft: #e5eee5;
    --wdt-prism-cyan: #2d6a69;
    --wdt-prism-cyan-soft: #e7f1ec;
    --wdt-prism-row-hover: #eef3e9;
    --wdt-prism-row-selected: #dcece3;
    --wdt-prism-row-alternate: #fbfaf3;
    --wdt-prism-danger: #9e3447;
    --wdt-prism-danger-soft: #fcecee;
    --wdt-prism-danger-border: #e6bac2;
    --wdt-prism-hover-border: #718e7e;
    --wdt-prism-shadow: 0 12px 32px #5c624915;
    --wdt-prism-filter-background: linear-gradient(120deg, #f7f2e5, #eef4ec);
    --wdt-prism-handle-shadow: 0 2px 6px #4b634922;
    --wdt-prism-hover-shadow: 0 0 0 1px #24685a12, 0 3px 14px #3b786516;
    --wdt-prism-popover-shadow: 0 10px 28px #4b634924;
    --wdt-prism-menu-shadow: 0 14px 32px #4b634924;
    --wdt-prism-modal-shadow: 0 24px 72px #374b3940;
    --wdt-prism-focus-shadow: 0 0 0 3px #24685a20;
    color-scheme: light;
}

/* A soft paper-and-sage tint at the edge of working surfaces. Cells stay opaque, so pinned
 * columns, selection and customer conditional colors remain legible. */
.wpdt-c.wdt-skin-editorial > .wpDataTablesWrapper {
    background-image: radial-gradient(ellipse at 0 0, #bd944e0b, transparent 50%),
        radial-gradient(ellipse at 100% 0, #44896c08, transparent 42%);
}
.wpdt-c :is(#wdt-frontend-modal, #wdt-delete-modal).wdt-skin-editorial .modal-header {
    background-image: linear-gradient(115deg, #bd944e0b, #44896c08);
}

/* Clear hover feedback without shifting controls or making bright flashes. */
.wdt-skin-editorial :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-editorial .wpDataTablesPopover.editTools :is(button.DTTT_button, a.DTTT_button):not(:disabled):not(.disabled):hover,
.wpdt-c.wdt-skin-editorial .bootstrap-select > .dropdown-toggle:not(:disabled):not(.disabled):hover,
.wpDataTablesFilter.wdt-skin-editorial .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 dark: native controls inside the owned skin must still
 * use its light palette, including browser-rendered select options. */
.wdt-skin-editorial :is(select, input, textarea) {
    color-scheme: light;
}
.wdt-skin-editorial select option {
    background: var(--wdt-prism-surface);
    color: var(--wdt-prism-ink);
}

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