/* Editor chrome only: data-table and simple-table preview renderers retain their skins. */
body.wpdt-c .wdt-datatables-admin-wrap.wdt-editor-refresh { padding-bottom:40px; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh > .container { width:100%; padding:0; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .card { border:0; border-radius:22px; box-shadow:0 10px 36px #29407318; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh :is(.wdt-table-settings,.wdt-table-constructor,.wdt-chart-wizard,.column-settings-overlay .card) { background:var(--wdt-color-surface) !important; color:var(--wdt-color-text); }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh :is(.wdt-table-settings,.wdt-table-constructor,.wdt-chart-wizard,.column-settings-overlay) :is(.card-body,.bg-white,.card-header) { background:var(--wdt-color-surface) !important; color:var(--wdt-color-text); }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-admin-card-header { background:var(--wdt-color-surface) !important; color:var(--wdt-color-text); border:0; border-radius:22px 22px 0 0; padding:24px !important; min-height:0; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh #wpdt-inline-logo { display:none; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-admin-card-header h2 { color:var(--wdt-color-text) !important; font:500 23px/1.3 'Space Grotesk',sans-serif; letter-spacing:-.5px; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-table-constructor > .wdt-admin-card-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-table-constructor > .wdt-admin-card-header h2 { margin:0; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-table-constructor > .wdt-admin-card-header .actions { position:static; margin:0; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-table-settings > .wdt-admin-card-header .actions { position:static; display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:8px; width:100%; margin:16px 0 0; padding:0; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-table-settings > .wdt-admin-card-header h2 { float:none !important; width:100%; margin:0 0 8px; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-table-settings .wdt-table-name { width:min(650px,100%); }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-table-settings .wdt-table-name input { font:500 25px/1.4 'Space Grotesk',sans-serif !important; height:46px; padding:5px 12px; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-table-settings .wdt-admin-card-header .col-sm-2-4 { width:100%; padding:0; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh #wdt-table-description-edit { width:min(760px,100%); min-height:42px; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh :is(.wdt-table-settings,.wdt-table-constructor,.wdt-chart-wizard,.column-settings-overlay,.modal) { font-family:Geist,sans-serif; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh :is(.wdt-table-settings,.wdt-table-constructor,.wdt-chart-wizard,.column-settings-overlay,.modal) :is(h3,h4,h5,.c-title-color,label) { color:var(--wdt-color-text) !important; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh :is(.wdt-table-settings,.wdt-table-constructor,.wdt-chart-wizard,.column-settings-overlay,.modal) :is(p,small,.help-block) { color:var(--wdt-color-muted) !important; line-height:1.6; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh :is(.wdt-table-settings,.wdt-table-constructor,.wdt-chart-wizard,.column-settings-overlay,.modal) :is(.form-control,.bootstrap-select,.bootstrap-select > .btn,.checkbox,.radio,.toggle-switch,.input-group-addon) { background:var(--wdt-color-field) !important; color:var(--wdt-color-text) !important; border-color:var(--wdt-color-border) !important; border-radius:10px; box-shadow:none; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh :is(.wdt-table-settings,.wdt-table-constructor,.wdt-chart-wizard,.column-settings-overlay,.modal) .btn,
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-admin-card-header .btn { font:var(--wdt-control-font); text-transform:none; border:0; border-radius:var(--wdt-radius-pill); padding:9px 16px; background:var(--wdt-color-field) !important; color:var(--wdt-color-action) !important; box-shadow:none; transition:box-shadow .18s,transform .12s; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh :is(.wdt-table-settings,.wdt-table-constructor,.wdt-chart-wizard,.column-settings-overlay,.modal) .btn-primary { background:var(--wdt-color-action) !important; color:var(--wdt-color-surface) !important; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh :is(.wdt-table-settings,.wdt-table-constructor,.wdt-chart-wizard,.column-settings-overlay,.modal) .btn:not(:disabled):not(.disabled):not([aria-disabled=true]):hover { box-shadow:0 0 0 3px #83a4ed26; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh :is(.wdt-table-settings,.wdt-table-constructor,.wdt-chart-wizard,.column-settings-overlay,.modal) .btn:not(:disabled):not(.disabled):not([aria-disabled=true]):active { transform:scale(.98); }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh :is(.wdt-table-settings,.wdt-table-constructor,.wdt-chart-wizard,.column-settings-overlay,.modal) :is(a,button,input,textarea,select):focus-visible { outline:2px solid var(--wdt-color-action); outline-offset:3px; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-constructor-type-selecter-block > .card { display:flex; align-items:center; gap:20px; height:100%; padding:22px; background:linear-gradient(130deg,var(--wdt-color-field),var(--wdt-color-surface)) !important; border:2px solid transparent; border-radius:18px; cursor:pointer; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-constructor-type-selecter-block > .card:is(:hover,.selected,.active) { border-color:var(--wdt-color-action); box-shadow:0 0 24px #729ce426; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-constructor-type-selecter-block .card-header { width:78px; flex:0 0 78px; padding:0 !important; background:transparent !important; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-constructor-type-selecter-block .card-body { flex:1; padding:0 !important; background:transparent !important; color:var(--wdt-color-muted); }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-constructor-type-selecter-block .card-body h4 { font:500 17px/1.4 'Space Grotesk',sans-serif; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-constructor-step { padding:18px 24px; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .tab-nav { display:flex; flex-wrap:wrap; gap:6px; background:transparent; border:0; box-shadow:none; padding:0; margin-bottom:20px; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .tab-nav > li { float:none; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .tab-nav > li > a { border-radius:10px; padding:10px 14px; font:500 13px/1.4 Geist,sans-serif; text-transform:none; color:var(--wdt-color-muted) !important; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .tab-nav > li.active > a { background:var(--wdt-color-field); color:var(--wdt-color-action) !important; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .tab-nav > li > a:after { display:none; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .column-settings-overlay .card { border-radius:20px 0 0 20px; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .modal-content { background:var(--wdt-color-surface); color:var(--wdt-color-text); border:0; border-radius:20px; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .modal-header,body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .modal-footer { border-color:var(--wdt-color-border); padding:20px 24px; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .close { color:var(--wdt-color-text); text-shadow:none; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .dropdown-menu:not(:where(#wpdt-view-container, #wpdatatable-preview-container) *) { background:var(--wdt-color-surface); color:var(--wdt-color-text); border:1px solid var(--wdt-color-border); border-radius:12px; padding:6px; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .dropdown-menu:not(:where(#wpdt-view-container, #wpdatatable-preview-container) *) > li > a { color:var(--wdt-color-text); border-radius:8px; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .dropdown-menu:not(:where(#wpdt-view-container, #wpdatatable-preview-container) *) > li > a:hover { background:var(--wdt-color-field); }
@media(max-width:800px) { body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-constructor-type-selecter-block { width:100%; } body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wpdt-flex { flex-wrap:wrap; } body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-admin-card-header { padding:16px !important; } }
@media(prefers-reduced-motion:reduce) { body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .btn { transition:none !important; } }

body.wpdt-c .wdt-editor-refresh #wpdt-inline-logo { display:none !important; }
body.wpdt-c .wdt-editor-refresh .wdt-table-settings [class*="col-sm"] { background-color:transparent !important; }
body.wpdt-c .wdt-editor-refresh .wdt-constructor-type-selecter-block .card-body > span { color:var(--wdt-color-muted) !important; line-height:1.65; }
body.wpdt-c .wdt-editor-refresh :is(.wdt-table-settings,.column-settings-overlay) .card-body { border-radius:0 0 22px 22px; padding:24px !important; }

/* The surrounding preview panel follows admin mode; renderer descendants retain their own skin. */
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .column-settings > .card-body { background:var(--wdt-color-surface) !important; }

/* A rendered table keeps the light page canvas it has on the front end, so its skin looks the same in both admin themes. */
body.wpdt-c .wdt-editor-refresh #wpdatatable-preview-container { background:#fff; color-scheme:light; }
html[data-wdt-theme="dark"] body.wpdt-c .wdt-editor-refresh #wpdatatable-preview-container { margin:0 0 16px; padding:20px 16px; border-radius:16px;
    --wdt-color-surface:#fff; --wdt-color-field:#e8edf3; --wdt-color-text:#152133; --wdt-color-muted:#526176; --wdt-color-border:#dce3ed; --wdt-color-action:#0765b5; --wdt-color-selected:#091d70; }

/* These are preview widgets, not admin form controls; preserve their classic skin inheritance. */
body.wpdt-c .wdt-editor-refresh > .container > .row > .column-settings > .card-body { font-family:Inter,sans-serif; color:#061938; color-scheme:light; }
body.wpdt-c .wdt-editor-refresh #wdt-table-description-edit { color:var(--wdt-color-text) !important; border:1px solid var(--wdt-color-border) !important; padding:10px 12px; }
body.wpdt-c .wdt-editor-refresh #wdt-table-id,body.wpdt-c .wdt-editor-refresh #wdt-table-id * { background:var(--wdt-color-field) !important; color:var(--wdt-color-muted) !important; border:0 !important; border-radius:8px; }
body.wpdt-c .wdt-editor-refresh :is(.wdt-table-settings,.wdt-table-constructor,.wdt-chart-wizard,.column-settings-overlay,.modal) :is(.checkbox,.radio,.toggle-switch) label { border-color:var(--wdt-color-border) !important; border-radius:10px; }
body.wpdt-c .wdt-editor-refresh :is(.wdt-table-settings,.wdt-table-constructor,.wdt-chart-wizard,.column-settings-overlay,.modal) input[type=checkbox] { accent-color:var(--wdt-color-action); color-scheme:inherit; }
body.wpdt-c .wdt-editor-refresh .column-settings-overlay h2 { color:var(--wdt-color-text) !important; font:500 20px/1.4 'Space Grotesk',sans-serif; }
body.wpdt-c .wdt-editor-refresh .column-settings-overlay h2 span { background:transparent !important; color:var(--wdt-color-action) !important; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .column-settings > .card-header { background:var(--wdt-color-surface) !important; border-radius:22px 22px 0 0; color:var(--wdt-color-text); }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .column-settings > .card-header h2 { color:var(--wdt-color-text) !important; font:500 20px/1.4 'Space Grotesk',sans-serif; }
@media(max-width:800px) { body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .tab-nav > li { width:auto !important; flex:0 1 auto; } }
/* Simple-table editing toolbar is admin chrome; the cell grid keeps its content styles. */
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh #wpdt-cell-action-buttons { background:var(--wdt-color-field) !important; border:0; border-radius:12px; padding:8px; box-shadow:none; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh #wpdt-cell-action-buttons :is(button,select) { background:transparent !important; color:var(--wdt-color-text) !important; border-color:var(--wdt-color-border) !important; border-radius:6px; box-shadow:none; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh #wpdt-cell-action-buttons button:hover { background:var(--wdt-color-surface) !important; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh #wpdt-cell-action-buttons button:disabled { opacity:.4; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .alert-warning { background:var(--wdt-color-field) !important; color:var(--wdt-color-muted) !important; border:0; border-radius:14px; padding:18px 22px; box-shadow:none; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .alert-warning a { color:var(--wdt-color-action) !important; }
body.wpdt-c .wdt-editor-refresh :is(.wdt-table-settings,.column-settings-overlay) hr { border:0; }
@media(max-width:800px) { body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .tab-nav { flex-direction:row !important; } }

/* Shared contextual assistant stays beside the native editor, never replaces its controls. */
.wdt-editor-refresh .wdt-editor-ai-toggle {display:inline-flex;align-items:center;gap:8px;border:0;border-radius:999px;padding:9px 16px;background:var(--wdt-color-field);color:var(--wdt-color-action);font:500 14px Geist,sans-serif;}
.wdt-editor-refresh .wdt-editor-ai-toggle .wdt-tabella-character {width:24px;height:24px;flex:0 0 24px;}
.wdt-editor-refresh .wdt-editor-ai {position:fixed;z-index:1050;top:46px;right:12px;bottom:12px;width:min(470px,calc(100vw - 24px));overflow:auto;padding:20px;background:var(--wdt-color-surface);color:var(--wdt-color-text);border-radius:22px;box-shadow:0 12px 70px #0005;animation:wdt-editor-ai-enter .2s ease-out;}
.wdt-editor-refresh .wdt-editor-ai[hidden] {display:none !important;}
.wdt-editor-refresh .wdt-editor-ai-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.wdt-editor-refresh .wdt-editor-ai-heading h2 {font:500 22px 'Space Grotesk',sans-serif;margin:0;}
.wdt-editor-refresh .wdt-editor-ai-close {border:0;background:transparent;color:var(--wdt-color-muted);font-size:26px;padding:6px 12px;}
.wdt-editor-refresh :is(.wdt-editor-ai-context,.wdt-editor-ai-dirty) {font:400 12px/1.6 Geist,sans-serif;color:var(--wdt-color-muted);margin:12px 0;}
.wdt-editor-refresh .wdt-editor-ai-dirty {padding:10px;border-radius:10px;background:var(--wdt-color-field);color:var(--wdt-color-action);}
.wdt-editor-refresh .wdt-editor-ai .wdt-tabella-conversation {padding:0;background:transparent;}
.wdt-editor-refresh .wdt-editor-ai .wdt-chat-log {max-height:45vh;overflow:auto;}
.wdt-editor-refresh .wdt-editor-ai .wdt-tabella-conversation h2 {font-size:17px;}
.wdt-editor-refresh .wdt-editor-ai .wdt-chat-form {position:sticky;bottom:0;background:var(--wdt-color-surface);padding:12px 0;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-wizard {background:var(--wdt-color-surface);color:var(--wdt-color-text);border:0;border-radius:22px;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-wizard :is(.card-header,.card-body,.wdt-chart-wizard-step) {background:transparent;color:var(--wdt-color-text);}
body.wpdt-c .wdt-editor-refresh .wdt-chart-wizard :is(.form-control,.bootstrap-select > .btn) {background:var(--wdt-color-field);color:var(--wdt-color-text);border-color:var(--wdt-color-border);border-radius:10px;}
@media(min-width:1450px){.wdt-editor-refresh.wdt-ai-is-open {margin-right:490px;}}
@keyframes wdt-editor-ai-enter {from{opacity:0;transform:translateX(16px)}to{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.wdt-editor-refresh .wdt-editor-ai {animation:none;}}
body.wpdt-c .wdt-editor-refresh .wdt-editor-ai-heading {position:sticky;top:-20px;z-index:2;padding:12px 0;background:var(--wdt-color-surface);}
body.wpdt-c .wdt-editor-refresh .wdt-editor-ai :is(h2,h3,h4,strong) {color:var(--wdt-color-text);}
body.wpdt-c .wdt-editor-refresh .wdt-editor-ai .wdt-browse-chat-actions {display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;}
body.wpdt-c .wdt-editor-refresh .wdt-editor-ai .wdt-chat-model-label {display:flex;align-items:center;margin:0 0 0 auto;max-width:180px;}
body.wpdt-c .wdt-editor-refresh .wdt-editor-ai .wdt-chat-model {appearance:auto;background:transparent !important;background-image:none !important;color:var(--wdt-color-text) !important;border:0;box-shadow:none;min-width:0;width:100%;height:38px;padding:6px 10px;text-align:right;text-align-last:right;font:400 12px Geist,sans-serif;}
body.wpdt-c .wdt-editor-refresh .wdt-editor-ai .wdt-chat-model option {background:var(--wdt-color-surface);color:var(--wdt-color-text);text-align:left;}
body.wpdt-c .wdt-editor-refresh .wdt-editor-ai .wdt-chat-model:disabled {opacity:.5;}
body.wpdt-c .wdt-editor-refresh .wdt-editor-ai .wdt-browse-chat-actions button {margin:0;padding:10px 14px;white-space:nowrap;min-height:38px;}
body.wpdt-c .wdt-editor-refresh .wdt-editor-ai .wdt-browse-chat-actions button[type=submit] {background:var(--wdt-color-action);color:var(--wdt-color-surface);}
body.wpdt-c .wdt-editor-refresh .wdt-chart-wizard :is(.chart-wizard-breadcrumb,.chart-name,.render-engine,.charts-type) {background:transparent !important;color:var(--wdt-color-text);}
body.wpdt-c .wdt-editor-refresh .wdt-chart-wizard :is(.wdt-ai-chart-card,.charts-type .card) {background:var(--wdt-color-field) !important;color:var(--wdt-color-text) !important;border:0;border-radius:16px;box-shadow:none;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-wizard :is(h2,h3,h4,label,.breadcrumb li) {color:var(--wdt-color-text) !important;}
body.wpdt-c .wdt-editor-refresh .wdt-chart-wizard .breadcrumb {display:flex;gap:8px;flex-wrap:wrap;padding:14px 0;}
body.wpdt-c .wdt-editor-refresh .wdt-editor-ai .wdt-browse-setup-toggle {background:transparent;color:var(--wdt-color-action);border:0;padding:6px 0;font:400 12px Geist,sans-serif;}
/* The fixed-width editor companion is narrower than a page-level split view. */
.wdt-editor-refresh .wdt-editor-ai .wdt-tabella-conversation.wdt-has-editor {display:flex;flex-direction:column;gap:14px;min-width:0;}
.wdt-editor-refresh .wdt-editor-ai .wdt-has-editor > * {width:100%;min-width:0;box-sizing:border-box;}
.wdt-editor-refresh .wdt-editor-ai .wdt-has-editor .wdt-table-editor {padding:16px;overflow-wrap:anywhere;}
.wdt-editor-refresh .wdt-editor-ai .wdt-has-editor > .wdt-chat-log {max-height:200px;}
.wdt-editor-refresh .wdt-editor-ai .wdt-has-editor .wdt-chat-form {position:static;}
/* Original pixel character scenes: decorative CSS motion, no extra assets or runtime. */
.wdt-editor-refresh .wdt-wizard-tabella {display:flex;align-items:center;gap:28px;padding:24px;margin:0 0 28px;border-radius:20px;background:linear-gradient(120deg,#8059ef19,#52d9e218);}
.wdt-editor-refresh .wdt-wizard-tabella h3 {font:500 24px/1.3 'Space Grotesk',sans-serif;margin:0 0 10px;color:var(--wdt-color-text);}
.wdt-editor-refresh .wdt-wizard-tabella p {max-width:680px;font:400 14px/1.6 Geist,sans-serif;color:var(--wdt-color-muted);margin:0 0 16px;}
.wdt-editor-refresh .wdt-wizard-art {position:relative;display:inline-flex;align-items:center;justify-content:center;width:170px;height:110px;flex:0 0 170px;gap:8px;}
.wdt-editor-refresh .wdt-wizard-art .wdt-tabella-character {width:60px;height:60px;animation:wdt-wizard-hop 3s steps(4,end) infinite;}
.wdt-editor-refresh .wdt-wizard-data {display:grid;grid-template-columns:repeat(2,22px);gap:4px;padding:8px;background:var(--wdt-color-field);border-radius:10px;transform:rotate(-8deg);animation:wdt-wizard-float 4s ease-in-out infinite;}
.wdt-editor-refresh .wdt-wizard-data i {display:block;height:8px;background:#8059ef88;border-radius:2px;}
.wdt-editor-refresh .wdt-wizard-data i:nth-child(even) {background:#36b8ceaa;}
.wdt-editor-refresh .wdt-wizard-spark {position:absolute;right:12px;top:8px;color:#ad80ef;animation:wdt-wizard-float 3s ease-in-out infinite reverse;}
.wdt-editor-refresh .wdt-constructor-type-selecter-block .card-header:has(.wdt-wizard-art) {display:flex;justify-content:center;align-items:center;padding:12px;}
.wdt-editor-refresh .wdt-constructor-type-selecter-block:nth-child(even) .wdt-wizard-data {transform:rotate(8deg);animation-delay:-2s;}
@keyframes wdt-wizard-hop {0%,70%,100%{transform:translateY(0) rotate(0)}80%{transform:translateY(-8px) rotate(-5deg)}90%{transform:translateY(-4px) rotate(4deg)}}
@keyframes wdt-wizard-float {0%,100%{translate:0 0;opacity:.75}50%{translate:0 -7px;opacity:1}}
@media(max-width:600px){.wdt-editor-refresh .wdt-wizard-tabella{flex-direction:column;align-items:flex-start;gap:8px;padding:18px;}}
@media(prefers-reduced-motion:reduce){.wdt-editor-refresh .wdt-wizard-art *{animation:none!important;}}
.wdt-editor-refresh .wdt-constructor-type-selecter-block .wdt-wizard-art {width:104px;height:90px;flex-basis:104px;gap:4px;}
.wdt-editor-refresh .wdt-constructor-type-selecter-block .wdt-wizard-art .wdt-tabella-character {width:44px;height:44px;}
.wdt-editor-refresh .wdt-constructor-type-selecter-block .wdt-wizard-data {grid-template-columns:repeat(2,12px);gap:3px;padding:5px;}
.wdt-editor-refresh .wdt-constructor-type-selecter-block .wdt-wizard-spark {right:5px;top:5px;}
.wdt-editor-refresh .wdt-constructor-step[data-step="1"] > h4 {clear:both;}
.wdt-editor-refresh .wdt-wizard-art--chart .wdt-wizard-data {display:flex;align-items:flex-end;height:64px;gap:4px;}
.wdt-editor-refresh .wdt-wizard-art--chart .wdt-wizard-data i {width:7px;height:18px;}
.wdt-editor-refresh .wdt-wizard-art--chart .wdt-wizard-data i:nth-child(2n) {height:32px;}
.wdt-editor-refresh .wdt-wizard-art--chart .wdt-wizard-data i:nth-child(3n) {height:46px;}
/* Source-specific scenes and direct, keyboard-accessible source selection. */
.wdt-editor-refresh .wdt-wizard-source {display:flex;flex-direction:column;align-items:center;gap:5px;width:58px;color:var(--wdt-color-action);animation:wdt-wizard-float 4s ease-in-out infinite;}
.wdt-editor-refresh .wdt-wizard-source svg {width:44px;height:44px;overflow:visible;}
.wdt-editor-refresh .wdt-wizard-source b {font:600 9px/1.2 Geist,sans-serif;white-space:nowrap;letter-spacing:.02em;}
.wdt-editor-refresh .wdt-wizard-art--woo .wdt-wizard-source {color:#b284ec;}
.wdt-editor-refresh .wdt-wizard-art--ivy .wdt-wizard-source {color:#49b3aa;}
.wdt-editor-refresh .wdt-wizard-art--mysql .wdt-wizard-source {color:#d99845;}
body.wpdt-c .wdt-editor-refresh .wdt-constructor-type-selecter-block .card:not(.wdt-premium-feature) {cursor:pointer;transition:box-shadow .18s ease,transform .18s ease;}
body.wpdt-c .wdt-editor-refresh .wdt-constructor-type-selecter-block .card:is(:hover,:focus-visible) {outline:2px solid var(--wdt-color-action);outline-offset:2px;box-shadow:0 5px 24px #739eff30;transform:translateY(-2px);}
body.wpdt-c .wdt-editor-refresh .wdt-wizard-navigation {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px!important;margin:0!important;clear:both;}
body.wpdt-c .wdt-editor-refresh .wdt-wizard-navigation #wpdt-control-buttons {order:2;display:flex;flex-direction:row-reverse;align-items:center;gap:8px;margin-left:auto;}
body.wpdt-c .wdt-editor-refresh .wdt-wizard-navigation:before,body.wpdt-c .wdt-editor-refresh .wdt-wizard-navigation:after {display:none;}
body.wpdt-c .wdt-editor-refresh .wdt-wizard-navigation .btn {float:none!important;position:static;display:inline-flex;align-items:center;justify-content:center;gap:8px;margin:0!important;}
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor:has(.wdt-constructor-step[data-step="1"]:not([style*="display: none"])) #wdt-constructor-next-step {display:none;}
@media(prefers-reduced-motion:reduce){body.wpdt-c .wdt-editor-refresh .wdt-constructor-type-selecter-block .card{transition:none;transform:none;}}
/* Simple creation: compact setup and native template library grouped by category. */
body.wpdt-c .wdt-editor-refresh [data-step="1-0"] {padding:0!important;}
body.wpdt-c .wdt-editor-refresh .wdt-simple-setup-card {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:18px 28px;padding:28px;border-radius:22px;background:linear-gradient(125deg,#8059ef14,#52d9e218),var(--wdt-color-surface);box-shadow:0 8px 30px #739eff12;margin-bottom:28px;}
body.wpdt-c .wdt-editor-refresh .wdt-simple-setup-card header {grid-column:1/-1;}
body.wpdt-c .wdt-editor-refresh .wdt-simple-setup-card h3,body.wpdt-c .wdt-editor-refresh .wdt-template-library-heading {font:500 22px/1.3 'Space Grotesk',sans-serif;color:var(--wdt-color-text);margin:0 0 8px;}
body.wpdt-c .wdt-editor-refresh .wdt-simple-setup-card p {color:var(--wdt-color-muted);margin:0;line-height:1.6;}
body.wpdt-c .wdt-editor-refresh .wdt-simple-setup-card > .row {display:flex;flex-wrap:wrap;align-content:start;margin:0!important;padding:0!important;gap:16px;}
body.wpdt-c .wdt-editor-refresh .wdt-simple-setup-card > .row > .col-sm-6 {width:100%;padding:0;}
body.wpdt-c .wdt-editor-refresh .wdt-simple-setup-card > .row > .col-sm-3 {flex:1;min-width:100px;padding:0;}
body.wpdt-c .wdt-editor-refresh .wdt-simple-setup-card .form-group {margin-bottom:0;}
body.wpdt-c .wdt-editor-refresh .wdt-simple-setup-card h4 {margin:0 0 8px!important;}
body.wpdt-c .wdt-editor-refresh .wdt-simple-setup-card textarea {height:88px;min-height:88px;border-radius:12px;padding:12px!important;}
body.wpdt-c .wdt-editor-refresh .wdt-simple-setup-card > .row:last-child {align-items:end;justify-content:flex-end;}
body.wpdt-c .wdt-editor-refresh .wdt-template-tabs {display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 22px;}
body.wpdt-c .wdt-editor-refresh .wdt-template-tabs button {background:var(--wdt-color-field);color:var(--wdt-color-muted);border:0;border-radius:999px;padding:10px 15px;font:500 13px/1.4 Geist,sans-serif;cursor:pointer;}
body.wpdt-c .wdt-editor-refresh .wdt-template-tabs button[aria-selected=true] {background:var(--wdt-color-action);color:var(--wdt-color-surface);}
body.wpdt-c .wdt-editor-refresh .wdt-template-tabs button:focus-visible {outline:2px solid var(--wdt-color-action);outline-offset:3px;}
body.wpdt-c .wdt-editor-refresh .wdt-template-legacy-heading,body.wpdt-c .wdt-editor-refresh .wdt-template-panel[hidden] {display:none!important;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel:not([hidden]) {display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin:0;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel > .wdt-simple-table-template {width:auto;padding:0;float:none;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel .card {height:100%;overflow:hidden;background:var(--wdt-color-field)!important;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel .card-header {background:transparent!important;padding:14px!important;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel .card-body {padding:12px 16px!important;background:transparent!important;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel .card img {border-radius:10px;max-width:100%;height:auto;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel .wdt-simple-table-template-overlay {display:none;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel .card-header .btn {position:static!important;display:inline-flex!important;opacity:1!important;visibility:visible!important;transform:none!important;margin:10px 4px 0 0;}
@media(max-width:700px){body.wpdt-c .wdt-editor-refresh .wdt-simple-setup-card{grid-template-columns:1fr;padding:20px;}.wdt-editor-refresh .wdt-simple-setup-card header{grid-column:1;}}
/* Different character poses/actions, with the same original pixel identity. */
.wdt-editor-refresh .wdt-wizard-art--simple .wdt-tabella-character {animation:wdt-wizard-wave 4s steps(3,end) infinite;}
.wdt-editor-refresh .wdt-wizard-art--source .wdt-tabella-character {animation:wdt-wizard-look 5s steps(3,end) infinite;}
.wdt-editor-refresh .wdt-wizard-art--manual .wdt-tabella-character {animation:wdt-wizard-work 3.8s steps(4,end) infinite;}
.wdt-editor-refresh .wdt-wizard-art--file .wdt-tabella-character {animation:wdt-wizard-work 4.5s steps(4,end) infinite reverse;}
.wdt-editor-refresh .wdt-wizard-art--mysql .wdt-tabella-character {animation:wdt-wizard-look 6s steps(3,end) infinite reverse;}
.wdt-editor-refresh .wdt-wizard-art--wp .wdt-tabella-character {animation:wdt-wizard-wave 5s steps(3,end) infinite reverse;}
.wdt-editor-refresh .wdt-wizard-art--posts .wdt-tabella-character {animation:wdt-wizard-work 5.5s steps(4,end) infinite;}
.wdt-editor-refresh .wdt-wizard-art--woo .wdt-tabella-character {animation:wdt-wizard-hop 2.8s steps(4,end) infinite;}
.wdt-editor-refresh .wdt-wizard-art--ivy .wdt-tabella-character {animation:wdt-wizard-wave 3.4s steps(3,end) infinite;}
.wdt-editor-refresh .wdt-wizard-art--woo .wdt-tabella-character::after,.wdt-editor-refresh .wdt-wizard-art--ivy .wdt-tabella-character::after {content:'';position:absolute;left:44%;top:62%;width:19%;height:12%;border-bottom:2px solid #152133;border-left:2px solid #152133;border-right:2px solid #152133;background:#bba5ff;}
@keyframes wdt-wizard-wave{0%,60%,100%{transform:rotate(-5deg)}70%,90%{transform:rotate(8deg) translateY(-3px)}80%{transform:rotate(-8deg)}}
@keyframes wdt-wizard-look{0%,45%,100%{transform:translateX(0) rotate(0)}55%,80%{transform:translateX(-4px) rotate(-9deg)}}
@keyframes wdt-wizard-work{0%,60%,100%{transform:translateY(1px) rotate(-8deg)}70%,90%{transform:translateY(-3px) rotate(4deg)}80%{transform:translateY(2px) rotate(-4deg)}}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel::before,body.wpdt-c .wdt-editor-refresh .wdt-template-panel::after {display:none;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel .wdt-simple-table-template {min-width:0;margin:0!important;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel .card-body h4 {margin:0!important;line-height:1.4;color:var(--wdt-color-text);}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel > .wdt-simple-table-template {height:auto!important;left:auto!important;top:auto!important;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel .card {height:auto!important;min-height:100%;min-width:0!important;margin:0!important;left:auto!important;top:auto!important;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel .card-header {height:auto!important;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel .card-header img {display:block;width:100%!important;height:180px!important;object-fit:contain;}
/* Original pixel character poses: each source gets its own expression and gesture. */
body.wpdt-c .wdt-editor-refresh .wdt-wizard-art .wdt-scene-character {background:none!important;width:50px;height:50px;}
.wdt-editor-refresh .wdt-scene-character svg {width:100%;height:100%;overflow:visible;}
.wdt-editor-refresh .wdt-scene-character::before,.wdt-editor-refresh .wdt-scene-character::after {display:none!important;}
.wdt-editor-refresh .wdt-wizard-art--source {flex-direction:row-reverse;}
.wdt-editor-refresh .wdt-wizard-art--source .wdt-scene-arm-left {transform:translate(-1px,-5px);animation:wdt-pixel-wave 1.8s steps(2,end) infinite;}
.wdt-editor-refresh .wdt-wizard-art--manual .wdt-scene-arm-left {transform:translate(-2px,2px) rotate(-15deg);transform-origin:4px 11px;animation:wdt-pixel-write 1.6s steps(3,end) infinite;}
.wdt-editor-refresh .wdt-wizard-art--manual .wdt-scene-mouth {transform:scaleX(.6);transform-origin:center;}
.wdt-editor-refresh .wdt-wizard-art--file .wdt-wizard-source {transform:translateX(20px);}
.wdt-editor-refresh .wdt-wizard-art--file .wdt-scene-character {z-index:1;align-self:flex-end;margin-bottom:4px;}
.wdt-editor-refresh .wdt-wizard-art--file .wdt-scene-arm-left {transform:translate(-2px,-3px);}
.wdt-editor-refresh .wdt-wizard-art--wp {flex-direction:row-reverse;}
.wdt-editor-refresh .wdt-wizard-art--wp .wdt-scene-eyes {transform:translate(-1px,1px);}
.wdt-editor-refresh .wdt-wizard-art--wp .wdt-scene-arm-right {transform:translate(1px,-3px);}
.wdt-editor-refresh .wdt-wizard-art--mysql .wdt-scene-character {align-self:flex-start;}
.wdt-editor-refresh .wdt-wizard-art--mysql .wdt-scene-eyes {transform:translateY(1px) scaleY(.8);transform-origin:center;}
.wdt-editor-refresh .wdt-wizard-art--mysql .wdt-scene-arm-left {transform:translate(-1px,3px);}
.wdt-editor-refresh .wdt-wizard-art--posts {flex-direction:row-reverse;}
.wdt-editor-refresh .wdt-wizard-art--posts .wdt-scene-arm-right {transform:translate(2px,-5px);}
.wdt-editor-refresh .wdt-wizard-art--woo .wdt-scene-arm-left,.wdt-editor-refresh .wdt-wizard-art--woo .wdt-scene-arm-right {transform:translateY(-5px);animation:wdt-pixel-wave 1.8s steps(2,end) infinite;}
.wdt-editor-refresh .wdt-wizard-art--woo .wdt-scene-mouth {transform:scaleY(1.8);transform-origin:10px 12px;}
.wdt-editor-refresh .wdt-wizard-art--ivy {flex-direction:row-reverse;}
.wdt-editor-refresh .wdt-wizard-art--ivy .wdt-scene-eyes {transform:scaleY(.5);transform-origin:10px 9px;}
.wdt-editor-refresh .wdt-wizard-art--ivy .wdt-scene-arm-right {transform:translate(2px,-4px);}
@keyframes wdt-pixel-wave {50%{transform:translateY(-7px);}}
@keyframes wdt-pixel-write {50%{transform:translate(-2px,3px);}}

body.wpdt-c .wdt-editor-refresh .wdt-template-panel .card {display:flex;flex-direction:column;border-radius:22px!important;transition:box-shadow .2s;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel .card-body {order:-1;padding:20px 20px 4px!important;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel .card-body h4 {font:500 18px/1.35 'Space Grotesk',sans-serif!important;letter-spacing:-.35px;text-align:left;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel .card-header {display:flex;flex-wrap:wrap;gap:10px;padding:16px 20px 20px!important;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel .card-header img {flex-basis:100%;opacity:1!important;filter:none!important;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel .card-header .btn {flex:1;margin:0!important;gap:6px;justify-content:center;border-radius:999px!important;white-space:nowrap;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel .card-header .showcase {background:var(--wdt-color-surface)!important;color:var(--wdt-color-action)!important;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel .wdt-simple-table-template:hover {background:transparent!important;box-shadow:none!important;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel .wdt-simple-table-template-overlay {display:none!important;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel .wdt-premium-feature .wdt-simple-table-template-overlay {display:block!important;flex-basis:100%;margin:0!important;font-size:12px;font-weight:500;line-height:1.4;color:var(--wdt-color-muted);text-align:left;}
body.wpdt-c .wdt-editor-refresh .wdt-template-panel .card:hover {box-shadow:0 0 0 1px #71abff55,0 8px 28px #718fff25!important;}
body.wpdt-c .wdt-editor-refresh #wpdt-simple-setup-data .wdt-simple-table-template {box-shadow:none!important;background:transparent!important;}
body.wpdt-c .wdt-editor-refresh #wpdt-simple-setup-data .wdt-template-panel :is(.card-header,.card-body) {background:transparent!important;}
body.wpdt-c .wdt-editor-refresh #wpdt-simple-setup-data .wdt-template-panel h4 {left:auto!important;bottom:auto!important;}
body.wpdt-c .wdt-editor-refresh #wpdt-simple-setup-data .wdt-template-panel .showcase {background:var(--wdt-color-surface)!important;color:var(--wdt-color-action)!important;}
body.wpdt-c .wdt-editor-refresh #wpdt-simple-setup-data .wdt-template-panel .showcase:hover {background:var(--wdt-color-field)!important;box-shadow:0 0 18px #6aa6ff55!important;}

/* Compact constructor introduction and a deliberate Simple Table metadata grid. */
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-table-constructor > .card-body { padding-top:0 !important; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-table-constructor .wdt-constructor-step[data-step="1"] { padding-top:0 !important; margin-top:0 !important; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .card.wdt-table-settings > .wdt-admin-card-header { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px 24px; align-items:center; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .card.wdt-table-settings > .wdt-admin-card-header > .clear { display:none; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .card.wdt-table-settings > .wdt-admin-card-header > h2 { margin:0; min-width:0; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .card.wdt-table-settings > .wdt-admin-card-header > h2:nth-of-type(2) { grid-column:1; grid-row:2; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .card.wdt-table-settings #wdt-table-description-edit { width:100%; resize:vertical; padding:10px 12px; font:400 14px/1.5 Geist,sans-serif; border-radius:12px; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .card.wdt-table-settings #wdt-tour-actions { grid-column:2; grid-row:2; width:auto; margin:0; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .card.wdt-table-settings #wdt-table-id { justify-self:end; margin:0; }
@media(max-width:1000px) {
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .card.wdt-table-settings > .wdt-admin-card-header { grid-template-columns:minmax(0,1fr); }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .card.wdt-table-settings #wdt-tour-actions { grid-column:1; grid-row:auto; justify-content:flex-start; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .card.wdt-table-settings #wdt-table-id { justify-self:start; }
}
body.wpdt-c .wdt-editor-refresh .wdt-table-settings-col { border:0 !important; padding-top:16px; }
body.wpdt-c .wdt-editor-refresh .wdt-input-data-source-type { padding:18px; border-radius:16px; background:linear-gradient(120deg,#8059ef18,#52d9e212); margin:0 0 18px; }
body.wpdt-c .wdt-editor-refresh .wdt-input-data-source-type .form-group { margin-bottom:0; }
body.wpdt-c .wdt-editor-refresh .bootstrap-select:not(:where(#wpdt-view-container, #wpdatatable-preview-container) *) .dropdown-menu { border-radius:12px !important; padding:5px !important; background:var(--wdt-color-surface) !important; color:var(--wdt-color-text) !important; border:1px solid var(--wdt-color-border) !important; box-shadow:0 12px 28px #0003; }
body.wpdt-c .wdt-editor-refresh .bootstrap-select:not(:where(#wpdt-view-container, #wpdatatable-preview-container) *) .dropdown-menu.inner { border:0 !important; box-shadow:none; padding:0 !important; }
body.wpdt-c .wdt-editor-refresh .bootstrap-select:not(:where(#wpdt-view-container, #wpdatatable-preview-container) *) .dropdown-menu li a { border-radius:8px; padding:9px 32px 9px 12px; color:var(--wdt-color-text) !important; }
body.wpdt-c .wdt-editor-refresh .bootstrap-select:not(:where(#wpdt-view-container, #wpdatatable-preview-container) *) .dropdown-menu li:is(.selected,.active) a,body.wpdt-c .wdt-editor-refresh .bootstrap-select:not(:where(#wpdt-view-container, #wpdatatable-preview-container) *) .dropdown-menu li a:hover { background:var(--wdt-color-field) !important; color:var(--wdt-color-action) !important; }
body.wpdt-c .wdt-editor-refresh #wdt-columns-list-modal :is(.wdt-column-block,.alert-info) { background:var(--wdt-color-field) !important; color:var(--wdt-color-text) !important; border:0; border-radius:12px; }
body.wpdt-c .wdt-editor-refresh #wdt-columns-list-modal :is(.wdt-alert-title,.wdt-alert-subtitle,#wdt-show-all,.wdt-column-block-icon) { color:var(--wdt-color-muted) !important; }
body.wpdt-c .wdt-editor-refresh #wdt-columns-list-modal input[type=checkbox] { accent-color:var(--wdt-color-action); }
body.wpdt-c .wdt-editor-refresh .wdt-source-next { font:400 13px/1.5 Geist,sans-serif; color:var(--wdt-color-action); padding:10px 14px; margin:10px 0; border-radius:10px; background:#6c9df014; }
body.wpdt-c .wdt-editor-refresh .wdt-editor-ai:has(.wdt-source-panel:not([hidden])) .wdt-chat-form { position:static; }
body.wpdt-c .wdt-editor-refresh .wdt-editor-ai .wdt-tabella-conversation > header { margin:12px 0; padding:0; }
body.wpdt-c .wdt-editor-refresh .wdt-editor-ai .wdt-chat-log { margin:12px 0; }
body.wpdt-c .wdt-editor-refresh .wdt-editor-ai .wdt-tabella-conversation.wdt-has-editor { display:flex; flex-direction:column; gap:12px; }
body.wpdt-c .wdt-editor-refresh .wdt-editor-ai .wdt-tabella-conversation.wdt-has-editor > * { width:100%; min-width:0; box-sizing:border-box; }
body.wpdt-c .wdt-editor-refresh .wdt-editor-ai .wdt-source-panel { display:block; }

/* Constructor metadata and import steps share the preview surface tokens. */
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-constructor-step > .row,
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .input-path-block { background:transparent !important; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor :is(.wdt-constructor-table-name-and-columns,.wdt-constructor-file-table-name-block,.wdt-constructor-file-table-description-block) { margin:0; padding:12px; background:linear-gradient(115deg,#875bf00b,#41cddd09),var(--wdt-color-surface) !important; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-constructor-step .alert-info { background:linear-gradient(115deg,#845bed15,#32bddd12),var(--wdt-color-field) !important; color:var(--wdt-color-muted) !important; border:0; border-radius:16px; padding:18px 40px 18px 42px; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .alert-info :is(.wdt-alert-title,.wdt-alert-subtitle) { color:var(--wdt-color-muted) !important; font:400 13px/1.6 Geist,sans-serif; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-constructor-columns-container { display:flex; flex-wrap:wrap; align-items:stretch; margin:12px -8px; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-constructor-column-block { flex:1 1 250px; max-width:100%; padding:8px; font-family:Geist,sans-serif; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-constructor-column-block .card { height:calc(100% - 16px); min-height:0 !important; margin:8px 0 !important; border-radius:16px; background:linear-gradient(145deg,#8557e910,#4cdde008),var(--wdt-color-field) !important; box-shadow:0 8px 24px #09132512; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-constructor-column-block :is(.card-header,.card-body) { background:transparent !important; padding:16px !important; border:0; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-constructor-column-block .card-header { display:flex; align-items:center; gap:8px; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-constructor-column-block .card-header > div { flex:1; min-width:0; padding:0; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-constructor-column-block .actions { position:static; margin:0; padding:0; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-constructor-column-block .wdt-constructor-column-name { background:var(--wdt-color-surface) !important; color:var(--wdt-color-text) !important; border-radius:10px; padding:10px 30px 10px 12px !important; font:500 14px/1.4 Geist,sans-serif; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-constructor-step[data-step="1-2"] .input-path-block { width:100%; max-width:900px; padding:22px; border-radius:18px; background:linear-gradient(120deg,#8557e912,#4cdde00c),var(--wdt-color-field) !important; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .input-path-block .form-group { display:flex; align-items:center; gap:12px; margin:12px 0 0; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .input-path-block .fg-line { flex:1; min-width:0; width:auto; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .input-path-block .form-group > .col-sm-3 { width:auto; padding:0; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .input-path-block .form-group :is(.input-url-path,#wdt-constructor-browse-button) { margin-top:0; margin-bottom:0; }
/* Named creation actions share geometry; selects, steppers and renderer tools keep native sizing. */
body.wpdt-c .wdt-editor-refresh :is(.wdt-admin-card-header,.wdt-wizard-navigation) .btn,
body.wpdt-c .wdt-editor-refresh .wdt-template-panel .card-header .btn,
body.wpdt-c .wdt-editor-refresh :is(#wdt-simple-table-constructor,#wdt-constructor-add-column,#wdt-constructor-browse-button,#wdt-constructor-previous-step,#wdt-constructor-next-step) { min-height:var(--wdt-control-height); border:0 !important; border-radius:var(--wdt-radius-pill) !important; padding:var(--wdt-control-padding) !important; font:var(--wdt-control-font); }
body.wpdt-c .wdt-editor-refresh :is(#wdt-constructor-previous-step,#wdt-constructor-next-step)::after { position:static; margin-left:8px; }
body.wpdt-c .wdt-editor-refresh #wdt-constructor-previous-step::before { position:static; margin-right:8px; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .alert-info li { color:var(--wdt-color-muted) !important; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor :is(.wdt-constructor-table-name-and-columns,.wdt-constructor-file-table-name-block,.wdt-constructor-file-table-description-block) .form-group { margin-bottom:14px; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-constructor-step :is(h4,h5) { font:var(--wdt-field-label-font); margin-top:10px; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-table-constructor .wdt-constructor-step .wdt-constructor-column-block .card { min-height:0 !important; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-constructor-column-block .table td { border-color:var(--wdt-color-border); color:var(--wdt-color-muted); }
@media(max-width:700px) {
body.wpdt-c .wdt-editor-refresh .wdt-wizard-navigation { flex-wrap:wrap; }
body.wpdt-c .wdt-editor-refresh .wdt-wizard-navigation #wpdt-control-buttons { flex-wrap:wrap; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .input-path-block .form-group { flex-wrap:wrap; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .input-path-block .fg-line { flex-basis:100%; }
}

/* Saved-editor controls sit outside the rendered table; keep its own buttons/skin untouched. */
body.wpdt-c .wdt-editor-refresh .column-settings > .wdt-admin-card-header { display:flex; flex-wrap:wrap; align-items:center; gap:16px; }
body.wpdt-c .wdt-editor-refresh .column-settings > .wdt-admin-card-header > .col-sm-6 { flex:1 1 280px; width:auto; padding:0; }
body.wpdt-c .wdt-editor-refresh .column-settings > .wdt-admin-card-header > .wdt-edit-buttons { flex:0 1 auto; margin-left:auto; }
body.wpdt-c .wdt-editor-refresh .column-settings > .wdt-admin-card-header > .clearfix { display:none; }
body.wpdt-c .wdt-editor-refresh .column-settings > .wdt-admin-card-header h2 { margin:0; }
body.wpdt-c .wdt-editor-refresh .column-settings > .card-body > .wdt-table-action-buttons { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
body.wpdt-c .wdt-editor-refresh .column-settings > .card-body > .wdt-table-action-buttons > span { display:flex; flex-wrap:wrap; gap:8px; float:none !important; }
body.wpdt-c .wdt-editor-refresh .column-settings > .card-body > .wdt-table-action-buttons > .pull-left { order:-1; flex-direction:row-reverse; }
body.wpdt-c .wdt-editor-refresh .column-settings > .wpdt-actions-bottom { padding:20px 24px; background:var(--wdt-color-surface); border-top:1px solid var(--wdt-color-border); border-radius:0 0 22px 22px; }
body.wpdt-c .wdt-editor-refresh .column-settings > .wpdt-actions-bottom > .col { display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
body.wpdt-c .wdt-editor-refresh .column-settings > .wpdt-actions-bottom > .col > .pull-right { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; margin-left:auto; float:none !important; }
body.wpdt-c .wdt-editor-refresh .column-settings > .wpdt-actions-bottom .btn,
body.wpdt-c .wdt-editor-refresh .column-settings > .card-body > .wdt-table-action-buttons .btn,
body.wpdt-c .wdt-editor-refresh .column-settings > .card-body > .wdt-table-action-buttons button#wdt-open-columns-list { display:inline-flex; align-items:center; justify-content:center; gap:8px; float:none !important; min-height:var(--wdt-control-height); height:auto; margin:0 !important; padding:var(--wdt-control-padding) !important; border:0; border-radius:var(--wdt-radius-pill); background:var(--wdt-color-field) !important; color:var(--wdt-color-action) !important; font:var(--wdt-control-font); text-transform:none; box-shadow:none !important; }
body.wpdt-c .wdt-editor-refresh .column-settings > .wpdt-actions-bottom .btn-primary { background:var(--wdt-color-action) !important; color:var(--wdt-color-surface) !important; }
body.wpdt-c .wdt-editor-refresh .column-settings > .wpdt-actions-bottom .btn i,
body.wpdt-c .wdt-editor-refresh .column-settings > .card-body > .wdt-table-action-buttons .btn i { position:static; margin:0 !important; line-height:1; color:inherit; }
body.wpdt-c .wdt-editor-refresh .column-settings > .wpdt-actions-bottom .btn:focus-visible,
body.wpdt-c .wdt-editor-refresh .column-settings > .card-body > .wdt-table-action-buttons .btn:focus-visible { outline:2px solid var(--wdt-color-action); outline-offset:3px; }

/* Both native view selectors use the same quiet segmented-control geometry. */
body.wpdt-c .wdt-editor-refresh .column-settings > .wdt-admin-card-header .wdt-view-buttons,
body.wpdt-c .wdt-editor-refresh .column-settings > .card-body > #wpdt-views > .nav { display:inline-flex; flex-wrap:wrap; gap:4px; float:none !important; margin:0; padding:4px; border-radius:var(--wdt-radius-pill); background:var(--wdt-color-field); letter-spacing:normal; }
body.wpdt-c .wdt-editor-refresh .column-settings > .card-body > #wpdt-views > .nav > li { float:none; margin:0; border:0; background:transparent !important; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .column-settings > .wdt-admin-card-header .wdt-view-buttons > .btn,
body.wpdt-c .wdt-editor-refresh .column-settings > .card-body > #wpdt-views > .nav > li > a { display:inline-flex; align-items:center; justify-content:center; min-width:0; min-height:var(--wdt-control-height); height:auto; margin:0; padding:var(--wdt-control-padding) !important; border:0; border-radius:var(--wdt-radius-pill); background:transparent !important; color:var(--wdt-color-muted) !important; font:var(--wdt-control-font); text-decoration:none; opacity:1; box-shadow:none; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .column-settings > .wdt-admin-card-header .wdt-view-buttons > :is(.wdt-standard-view,.wdt-excel-view) { padding:0 !important; }
body.wpdt-c .wdt-editor-refresh .column-settings > .wdt-admin-card-header .wdt-view-buttons > .btn > a { display:inline-flex; align-items:center; justify-content:center; min-height:var(--wdt-control-height); padding:var(--wdt-control-padding); border-radius:inherit; background:transparent !important; color:inherit !important; font:inherit; text-decoration:none; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .column-settings > .wdt-admin-card-header .wdt-view-buttons > :is(.wdt-standard-view-selected,.wdt-excel-view-selected),
body.wpdt-c .wdt-editor-refresh .column-settings > .card-body > #wpdt-views > .nav > .active > a { background:var(--wdt-color-surface) !important; color:var(--wdt-color-action) !important; box-shadow:0 1px 4px #29407318; cursor:default; }
body.wpdt-c .wdt-editor-refresh .column-settings > .wdt-admin-card-header .wdt-view-buttons a:focus-visible,
body.wpdt-c .wdt-editor-refresh .column-settings > .card-body > #wpdt-views > .nav > li > a:focus-visible { outline:2px solid var(--wdt-color-action); outline-offset:2px; }
@media(max-width:700px) {
body.wpdt-c .wdt-editor-refresh .column-settings > .wpdt-actions-bottom { padding:16px; }
body.wpdt-c .wdt-editor-refresh .column-settings > .wdt-admin-card-header > .wdt-edit-buttons { margin-left:0; }
}

/* Transform-value references share native handlers; only the refreshed editor is restyled. */
body.wpdt-c .wdt-editor-refresh #column-transform-value > .row { margin-left:0; margin-right:0; }
body.wpdt-c .wdt-editor-refresh #column-transform-value .column-tranform-vaule-textarea { padding:0; }
body.wpdt-c .wdt-editor-refresh #column-transform-value h4.c-title-color { margin:0 0 12px; width:auto; font-size:14px; line-height:1.5; font-weight:600; letter-spacing:normal; }
body.wpdt-c .wdt-editor-refresh #column-transform-value .column-tranform-vaule-textarea textarea {
    display:block; width:100%; height:140px !important; min-height:100px; resize:vertical;
    padding:14px 16px; border:1px solid var(--wdt-color-border) !important; border-radius:12px;
    background:var(--wdt-color-field) !important; color:var(--wdt-color-text) !important;
    font:13px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace; box-shadow:none !important;
}
body.wpdt-c .wdt-editor-refresh #column-transform-value textarea:focus { outline:2px solid var(--wdt-color-action); outline-offset:2px; }
body.wpdt-c .wdt-editor-refresh #column-transform-value .transform-value-columns { width:40%; padding:0 6px 0 0; }
body.wpdt-c .wdt-editor-refresh #column-transform-value .transform-value-shortcodes { width:60%; padding:0 0 0 6px; }
body.wpdt-c .wdt-editor-refresh #column-transform-value :is(.transform-value-columns,.transform-value-shortcodes) { float:left; min-width:0; }
body.wpdt-c .wdt-editor-refresh #column-transform-value :is(.transform-value-columns,.transform-value-shortcodes) p.title { margin:20px 0 10px; color:var(--wdt-color-muted) !important; font-size:12px; font-weight:600; line-height:1.5; letter-spacing:.015em; }
body.wpdt-c .wdt-editor-refresh #column-transform-value :is(.transform-value-container,.transform-value-shortcodes-container) .wdt-column-block {
    display:flex; align-items:center; min-width:0; min-height:44px; margin:0 0 8px; padding:10px 12px;
    border:0; border-radius:10px; background:var(--wdt-color-field) !important; color:var(--wdt-color-text) !important;
    box-shadow:none; transition:background-color .16s,box-shadow .16s;
}
body.wpdt-c .wdt-editor-refresh #column-transform-value .transform-value-columns .wdt-column-block:hover { background:var(--wdt-color-field) !important; }
body.wpdt-c .wdt-editor-refresh #column-transform-value .wdt-column-block .fg-line { width:100%; min-width:0; margin:0; padding:0; background:transparent !important; border:0; }
body.wpdt-c .wdt-editor-refresh #column-transform-value .wdt-column-block .fg-line > span { display:block; width:100% !important; margin:0 !important; padding:0; overflow-x:auto; white-space:nowrap; color:var(--wdt-color-text) !important; font:500 13px/24px Geist,sans-serif; }
body.wpdt-c .wdt-editor-refresh #column-transform-value .transform-value-shortcodes-container .fg-line > span { color:var(--wdt-color-action) !important; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-weight:400; }
/* Native reference rows reuse a template with empty, already-hidden action icons. */
body.wpdt-c .wdt-editor-refresh #column-transform-value .wdt-column-block > :is(.wdt-column-block-icon,.wdt-column-move-arrows) { display:none; }
body.wpdt-c .wdt-editor-refresh #column-transform-value .transform-value-shortcodes-container .wdt-column-block { cursor:pointer; }
body.wpdt-c .wdt-editor-refresh #column-transform-value .transform-value-shortcodes-container .wdt-column-block:hover { box-shadow:inset 0 0 0 1px var(--wdt-color-action); }
body.wpdt-c .wdt-editor-refresh #column-transform-value .transform-value-shortcodes-container .wdt-column-block:focus-within { outline:2px solid var(--wdt-color-action); outline-offset:2px; }
body.wpdt-c .wdt-editor-refresh #column-transform-value > .row > .alert { width:100% !important; margin:16px 0 0 !important; border:0; border-radius:12px; background:var(--wdt-color-field) !important; color:var(--wdt-color-text) !important; }
body.wpdt-c .wdt-editor-refresh #column-transform-value .alert .wdt-alert-title { color:var(--wdt-color-text) !important; font-weight:400; line-height:1.6; }
@media (prefers-reduced-motion:reduce) { body.wpdt-c .wdt-editor-refresh #column-transform-value .wdt-column-block { transition:none; } }
/* Native input wrappers have fixed single-line heights; textarea must own its space. */
body.wpdt-c .wdt-editor-refresh #column-transform-value .column-tranform-vaule-textarea :is(.form-group,.fg-line) { height:auto !important; min-height:0; display:block; }
body.wpdt-c .wdt-editor-refresh #column-transform-value > .row { display:flow-root; }

/* Preview card: themed surface and divider, so no white shows around its rounded header */
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .card.column-settings { background:var(--wdt-color-surface); }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .column-settings > .card-header { border-bottom-color:var(--wdt-color-border); }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-table-settings .tab-content.wdt-main { padding:8px 0; }

/* Query builder steps (WordPress, MySQL, WP_Query, WooCommerce) use the same surface tokens as the other wizard steps */
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor :is([class*="-table-name-block"],[class*="-table-description-block"]) { background:transparent !important; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-constructor-query-data-step .card { overflow:hidden; border:1px solid var(--wdt-color-border); border-radius:16px; background:var(--wdt-color-field) !important; box-shadow:none !important; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-constructor-query-data-step .card :is(.card-header,.card-body) { background:transparent !important; border-radius:0; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-constructor-query-data-step .card .card-header { display:flex; align-items:center; padding:12px 14px !important; border-bottom:1px solid var(--wdt-color-border); }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-constructor-query-data-step .card .card-header > .col-sm-12 { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; padding:0; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-constructor-query-data-step .card .card-header h2 { margin:0; padding:0; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-constructor-query-data-step .card .card-header h2,
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-constructor-query-data-step .card .card-header h2 span { color:var(--wdt-color-text) !important; font:var(--wdt-field-label-font); }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-constructor-query-data-step .card .card-header .btn { position:static; flex:none; float:none !important; margin:0; min-height:32px; padding:6px 12px; background:var(--wdt-color-surface) !important; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-constructor-query-data-step .card .card-body { padding:6px !important; scrollbar-width:thin; scrollbar-color:color-mix(in srgb,var(--wdt-color-muted) 45%,transparent) transparent; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-constructor-query-data-step .card .card-body table { background:transparent; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-constructor-query-data-step .card .card-body table tr { border:0 !important; border-radius:9px; background:transparent; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-constructor-query-data-step .card .card-body table td { padding:9px 12px; border:0 !important; background:transparent !important; color:var(--wdt-color-text); font:400 13px/1.5 Geist,sans-serif; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-constructor-query-data-step .card .card-body table tr:hover { background:color-mix(in srgb,var(--wdt-color-action) 8%,transparent); }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-constructor-query-data-step .card .card-body table tr.selected { background:color-mix(in srgb,var(--wdt-color-action) 18%,transparent); }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-constructor-query-data-step .card .card-body table tr.selected td { color:var(--wdt-color-action); }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-constructor-step hr { border-color:var(--wdt-color-border); }

/* Nested JSON custom headers: themed group, delete button inside the row */
body.wpdt-c .wdt-editor-refresh .wdt-nested-json-custom-headers-container { padding:12px 12px 2px; border:1px solid var(--wdt-color-border); border-radius:14px; box-shadow:none !important; }
body.wpdt-c .wdt-editor-refresh .wdt-nested-json-custom-headers-container .wdt-custom-headers-row-rule { display:flex; align-items:flex-start; gap:10px; margin:0; }
body.wpdt-c .wdt-editor-refresh .wdt-nested-json-custom-headers-container .wdt-custom-headers-row-rule::before,
body.wpdt-c .wdt-editor-refresh .wdt-nested-json-custom-headers-container .wdt-custom-headers-row-rule::after { display:none; }
body.wpdt-c .wdt-editor-refresh .wdt-nested-json-custom-headers-container .wdt-custom-headers-row-rule > :is(.wdt-custom-header-key-name,.wdt-custom-header-key-value) { flex:1 1 0; width:auto; min-width:0; padding:0; }
body.wpdt-c .wdt-editor-refresh .wdt-nested-json-custom-headers-container .wdt-delete-custom-headers-wrapper { flex:none; width:auto; padding:0; }
body.wpdt-c .wdt-editor-refresh .wdt-nested-json-custom-headers-container .wdt-delete-custom-headers-row-rule.btn { width:40px; height:40px; min-height:0; margin:0; padding:0; }
body.wpdt-c .wdt-editor-refresh .wdt-nested-json-custom-headers-container textarea.form-control { height:40px; min-height:40px; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-constructor-step [class*="wdt-constructor-"][class*="-block"] { background-color:transparent !important; border-color:var(--wdt-color-border) !important; }
/* Relation, condition and grouping rows: one aligned line, the join switch stands on its own */
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor :is(.wdt-constructor-post-block,.wdt-constructor-mysql-block) { display:flex; align-items:center; gap:12px; padding:10px 0; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor :is(.wdt-constructor-post-block,.wdt-constructor-mysql-block)::before,
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor :is(.wdt-constructor-post-block,.wdt-constructor-mysql-block)::after { display:none; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor :is(.wdt-constructor-post-block,.wdt-constructor-mysql-block) > div { float:none; width:auto; padding:0; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor :is(.wdt-constructor-post-block,.wdt-constructor-mysql-block) > .wdt-constructor-relation-initiator-type { flex:0 0 150px; height:auto; text-align:right; overflow-wrap:anywhere; color:var(--wdt-color-text); }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor :is(.wdt-constructor-post-block,.wdt-constructor-mysql-block) > .col-sm-4 { flex:1 1 0; min-width:0; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor :is(.wdt-constructor-post-block,.wdt-constructor-mysql-block) > .wdt-constructor-relation-equal { flex:none; color:var(--wdt-color-muted); }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor :is(.wdt-constructor-post-block,.wdt-constructor-mysql-block) > .col-sm-1-0:last-child { flex:none; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor :is(.wdt-constructor-post-block,.wdt-constructor-mysql-block) .form-group { margin:0; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-table-constructor :is(#wdt-constructor-post-add-grouping-rule,#wdt-constructor-add-post-condition,#wdt-constructor-add-mysql-condition,#wdt-constructor-mysql-add-grouping-rule) { width:auto; padding:8px 16px; text-align:center; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor :is(.wdt-constructor-post-block,.wdt-constructor-mysql-block) { clear:both; width:100%; max-width:820px; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor :is([class*="define-relations-block"],[class*="define-relations-block"] > div,[class*="define-relations-block"] .form-group) { float:none; width:auto; }

/* Query preview: the generated query box and the first-rows table */
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-wp-query-preview-block { padding:16px 18px; border:1px solid var(--wdt-color-border) !important; border-radius:16px; background:var(--wdt-color-field) !important; box-shadow:none; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-wp-query-preview-block h2 { margin:0 0 10px; padding:0 0 10px; border-bottom:1px solid var(--wdt-color-border) !important; color:var(--wdt-color-text) !important; font:var(--wdt-field-label-font); }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-wp-query-preview-block .panel-body { padding:0; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-wp-query-preview-block pre { margin:0; padding:0; border:0; background:transparent; color:var(--wdt-color-text); white-space:pre-wrap; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-table-constructor .wdt-preview-card { overflow:hidden; border:1px solid var(--wdt-color-border); border-radius:16px; background:var(--wdt-color-field) !important; box-shadow:none !important; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-table-constructor .wdt-preview-card :is(.card-header,.card-body) { background:transparent !important; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-table-constructor .wdt-preview-card .card-header { padding:14px 18px !important; border-bottom:1px solid var(--wdt-color-border); }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-table-constructor .wdt-preview-card .card-header h2 { margin:0; color:var(--wdt-color-text) !important; font:var(--wdt-field-label-font); }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-constructor-preview-wp-table { background:transparent !important; scrollbar-width:thin; scrollbar-color:color-mix(in srgb,var(--wdt-color-muted) 45%,transparent) transparent; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-constructor-preview-wp-table table { margin:0; background:transparent; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-constructor-preview-wp-table table :is(th,td) { background:transparent !important; border-color:var(--wdt-color-border) !important; color:var(--wdt-color-text) !important; font:400 13px/1.5 Geist,sans-serif; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-constructor-preview-wp-table table th { color:var(--wdt-color-muted) !important; font-weight:500; }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor .wdt-constructor-preview-wp-table table a { color:var(--wdt-color-action); }
body.wpdt-c .wdt-editor-refresh .wdt-table-constructor [class*="-table-description-block"] textarea.form-control { min-height:40px; padding:10px 14px !important; }

/* WP Posts / WooCommerce query tabs: the block spans the settings card and its fields fill each line */
@media (min-width:768px) {
    body.wpdt-c .wdt-editor-refresh .wdt-table-settings .tab-pane.active > .row > .card-body.card-padding:has(> :is(.main-wp-posts-settings,.main-wdt-woo-settings)) { flex:0 0 100%; max-width:100%; padding:0 15px 8px !important; }
    body.wpdt-c .wdt-datatables-admin-wrap.wdt-editor-refresh :is(.main-wp-posts-settings,.main-wdt-woo-settings),
    body.wpdt-c .wdt-datatables-admin-wrap.wdt-editor-refresh :is(.main-wp-posts-settings,.main-wdt-woo-settings) .tab-pane.active { display:block !important; margin:0 !important; }
    body.wpdt-c .wdt-editor-refresh :is(.main-wp-posts-settings,.main-wdt-woo-settings) .tab-pane > .row,
    body.wpdt-c .wdt-editor-refresh :is(.wdt-wp-query-clause-template,.wdt-wp-query-cf-template,.wdt-woo-commerce-cf-template) > .row { display:grid !important; grid-template-columns:repeat(auto-fill,minmax(max(220px,25% - 20px),1fr)); gap:0 20px; margin:0; }
    body.wpdt-c .wdt-editor-refresh :is(.main-wp-posts-settings,.main-wdt-woo-settings) .tab-pane > .row::before,
    body.wpdt-c .wdt-editor-refresh :is(.main-wp-posts-settings,.main-wdt-woo-settings) .tab-pane > .row::after,
    body.wpdt-c .wdt-editor-refresh :is(.wdt-wp-query-clause-template,.wdt-wp-query-cf-template,.wdt-woo-commerce-cf-template) > .row::before,
    body.wpdt-c .wdt-editor-refresh :is(.wdt-wp-query-clause-template,.wdt-wp-query-cf-template,.wdt-woo-commerce-cf-template) > .row::after { display:none; }
    body.wpdt-c .wdt-editor-refresh :is(.main-wp-posts-settings,.main-wdt-woo-settings) .tab-pane > .row > [class*=col-],
    body.wpdt-c .wdt-editor-refresh :is(.wdt-wp-query-clause-template,.wdt-wp-query-cf-template,.wdt-woo-commerce-cf-template) > .row > [class*=col-] { float:none; width:auto; min-width:0; padding-left:0; padding-right:0; }
    body.wpdt-c .wdt-editor-refresh :is(.main-wp-posts-settings,.main-wdt-woo-settings) .tab-pane > .row > :is(.col-sm-12,.card-body,[class*=-template],[class*=-container],:has(.wdt-wp-query-clause-template,.wdt-wp-query-cf-template,.wdt-woo-commerce-cf-template)) { grid-column:1 / -1; }
    body.wpdt-c .wdt-editor-refresh :is(.wdt-wp-query-clause-template,.wdt-wp-query-cf-template,.wdt-woo-commerce-cf-template) > .row { grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); align-items:start; }
    body.wpdt-c .wdt-editor-refresh :is(.wdt-wp-query-clause-template,.wdt-wp-query-cf-template,.wdt-woo-commerce-cf-template) > .row > .col-sm-1 { max-width:60px; }
}
body.wpdt-c .wdt-editor-refresh :is(.main-wp-posts-settings,.main-wdt-woo-settings) > .tab-content { padding-left:0; padding-right:0; }

/* Query clauses (taxonomy, meta, date, custom fields): themed group instead of the classic white frame */
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .bg-white:is(.wdt-wp-query-clause-template,.wdt-wp-query-cf-template,.wdt-woo-commerce-cf-template,.wdt-wp-query-tax-template,.wdt-wp-query-date-template,.wdt-wp-query-meta-template) { padding:14px 16px 4px !important; border:1px solid var(--wdt-color-border); border-radius:14px; background:transparent !important; }
body.wpdt-c .wdt-editor-refresh :is(.wdt-wp-query-clause-template,.wdt-wp-query-cf-template,.wdt-woo-commerce-cf-template) .actions { margin:0; padding:0; }
body.wpdt-c .wdt-editor-refresh :is(.wdt-wp-query-clause-template,.wdt-wp-query-cf-template,.wdt-woo-commerce-cf-template) .actions > li { padding-top:26px; }
body.wpdt-c .wdt-editor-refresh :is(.wdt-wp-query-clause-template,.wdt-wp-query-cf-template,.wdt-woo-commerce-cf-template) .actions > li > a { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:50%; background:var(--wdt-color-field); color:var(--wdt-color-muted); cursor:pointer; }
body.wpdt-c .wdt-editor-refresh :is(.wdt-wp-query-clause-template,.wdt-wp-query-cf-template,.wdt-woo-commerce-cf-template) .actions > li > a:hover { color:#d63c3c; }
body.wpdt-c .wdt-editor-refresh :is(.wdt-wp-query-clause-template,.wdt-wp-query-cf-template,.wdt-woo-commerce-cf-template) .actions > li > a i { position:static; color:inherit; }

/* Generated query preview: same table as the first-rows preview */
body.wpdt-c .wdt-editor-refresh .wdt-wp-query-preview-block { padding:16px 18px; border:1px solid var(--wdt-color-border) !important; border-radius:16px; background:var(--wdt-color-field) !important; }
body.wpdt-c .wdt-editor-refresh .wdt-wp-query-preview-block h2 { margin:0 0 10px; padding:0 0 10px; border-bottom:1px solid var(--wdt-color-border) !important; color:var(--wdt-color-text) !important; font:var(--wdt-field-label-font); }
body.wpdt-c .wdt-editor-refresh .wdt-wp-query-preview-block .panel-body { padding:0; }
body.wpdt-c .wdt-editor-refresh .wdt-wp-query-preview-block pre { margin:0; padding:0; border:0; background:transparent; color:var(--wdt-color-text); font:400 13px/1.5 Geist,sans-serif; white-space:normal; overflow-x:auto; scrollbar-width:thin; scrollbar-color:color-mix(in srgb,var(--wdt-color-muted) 45%,transparent) transparent; }
body.wpdt-c .wdt-editor-refresh .wdt-wp-query-preview-block pre table { margin:0; background:transparent; font:inherit; }
body.wpdt-c .wdt-editor-refresh .wdt-wp-query-preview-block pre table :is(th,td) { padding:10px 12px; background:transparent !important; border:0 !important; border-bottom:1px solid var(--wdt-color-border) !important; color:var(--wdt-color-text) !important; font:inherit; white-space:normal; }
body.wpdt-c .wdt-editor-refresh .wdt-wp-query-preview-block pre table th { color:var(--wdt-color-muted) !important; font-weight:500; text-transform:uppercase; }

/* Wizard Previous / Next arrows follow the button text */
body.wpdt-c .wdt-editor-refresh #wdt-constructor-previous-step::before,
body.wpdt-c .wdt-editor-refresh #wdt-constructor-next-step::after { color:inherit !important; border-color:currentColor !important; opacity:1; }

/* Nested JSON header delete: icon centred in its circle */
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh .wdt-nested-json-custom-headers-container .wdt-delete-custom-headers-row-rule.btn { display:inline-flex; align-items:center; justify-content:center; padding:0 !important; line-height:1; border-radius:50% !important; }
body.wpdt-c .wdt-editor-refresh .wdt-nested-json-custom-headers-container .wdt-delete-custom-headers-row-rule.btn i { display:flex; line-height:1; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-editor-refresh .card-body.card-padding:has(> :is(.main-wp-posts-settings,.main-wdt-woo-settings)) { box-shadow:none !important; background:transparent !important; }

/* Query clauses: plain selects and number fields take the themed field look; delete icon centred */
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh :is(.main-wp-posts-settings,.main-wdt-woo-settings,.wdt-wp-query-clause-template,.wdt-wp-query-cf-template,.wdt-woo-commerce-cf-template) select:not(.bootstrap-select > select) { display:block; width:100%; max-width:none; height:40px; min-height:40px; margin:0; padding:0 36px 0 14px; border:1px solid var(--wdt-color-border); border-radius:var(--wdt-radius-control,14px); background:var(--wdt-color-field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%237f8ea6'/%3E%3C/svg%3E") no-repeat right 14px center / 9px 6px; color:var(--wdt-color-text); font:400 13px/38px Geist,Inter,sans-serif; box-shadow:none; -webkit-appearance:none; appearance:none; cursor:pointer; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh :is(.main-wp-posts-settings,.main-wdt-woo-settings,.wdt-wp-query-clause-template,.wdt-wp-query-cf-template,.wdt-woo-commerce-cf-template) select:not(.bootstrap-select > select):is(:hover,:focus) { border-color:var(--wdt-color-action); outline:0; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-editor-refresh :is(.main-wp-posts-settings,.main-wdt-woo-settings,.wdt-wp-query-clause-template,.wdt-wp-query-cf-template,.wdt-woo-commerce-cf-template) select:not(.bootstrap-select > select):focus { box-shadow:var(--wdt-focus-ring); }
body.wpdt-c .wdt-editor-refresh :is(.main-wp-posts-settings,.main-wdt-woo-settings) select option { background:var(--wdt-color-surface); color:var(--wdt-color-text); }
body.wpdt-c .wdt-editor-refresh :is(.main-wp-posts-settings,.main-wdt-woo-settings) input[type=number] { -moz-appearance:textfield; appearance:textfield; }
body.wpdt-c .wdt-editor-refresh :is(.main-wp-posts-settings,.main-wdt-woo-settings) input[type=number]::-webkit-inner-spin-button,
body.wpdt-c .wdt-editor-refresh :is(.main-wp-posts-settings,.main-wdt-woo-settings) input[type=number]::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
body.wpdt-c .wdt-editor-refresh :is(.main-wp-posts-settings,.main-wdt-woo-settings,.wdt-wp-query-clause-template,.wdt-wp-query-cf-template,.wdt-woo-commerce-cf-template) .actions > li > a i { display:flex; align-items:center; justify-content:center; line-height:1; }
body.wpdt-c .wdt-editor-refresh :is(.main-wp-posts-settings,.main-wdt-woo-settings,.wdt-wp-query-clause-template,.wdt-wp-query-cf-template,.wdt-woo-commerce-cf-template) .actions > li > a i::before { display:block; }
body.wpdt-c .wdt-editor-refresh :is(.wdt-wp-query-clause-template,.wdt-wp-query-cf-template,.wdt-woo-commerce-cf-template) .actions > li > a { padding:0; }
/* Calculation toggles: the group grows with the shortcode below the switch instead of letting it overlap the next row */
body.wpdt-c .wdt-editor-refresh .wdt-datatables-admin-wrap div.column-settings-panel .wdt-numeric-column-block div.form-group,
body.wpdt-c .wdt-datatables-admin-wrap.wdt-editor-refresh div.column-settings-panel .wdt-numeric-column-block div.form-group { height:auto; min-height:30px; }
body.wpdt-c .wdt-editor-refresh .wdt-datatables-admin-wrap div.column-settings-panel :is(.wdt-column-calc-total-block,.wdt-column-calc-avg-block,.wdt-column-calc-min-block,.wdt-column-calc-max-block),
body.wpdt-c .wdt-datatables-admin-wrap.wdt-editor-refresh div.column-settings-panel :is(.wdt-column-calc-total-block,.wdt-column-calc-avg-block,.wdt-column-calc-min-block,.wdt-column-calc-max-block) { margin-bottom:8px; }
/* Nested JSON URL row: the input takes the free width so the button label is never cut */
body.wpdt-c .wdt-editor-refresh .input-nested-json-url-block .form-group { display:flex; align-items:center; gap:12px; }
body.wpdt-c .wdt-editor-refresh .input-nested-json-url-block .form-group > .fg-line { flex:1; min-width:0; width:auto; float:none; }
body.wpdt-c .wdt-editor-refresh .input-nested-json-url-block .form-group > .col-sm-3 { flex:none; width:auto; padding:0; float:none; }
body.wpdt-c .wdt-editor-refresh #wdt-get-nested-json-roots { width:auto; white-space:nowrap; }
