/*
 * WiFi-Zona panel theme (2026-11-17)
 * A layer over AdminLTE 2 / Bootstrap 3: only colours, type, spacing, radii and shadows change.
 * Markup and scripts of the pages stay untouched, so every function works as before.
 * Light and dark themes: html[data-theme="light|dark"] (set by wz-theme.js, default = system setting).
 */
@import url("inter-local.css");

/* ——— tokens ——— */
:root {
  --wz-font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --wz-bg: #f3f6fa;
  --wz-surface: #ffffff;
  --wz-surface-2: #f7f9fc;
  --wz-surface-3: #eef2f7;
  --wz-text: #0f1b2d;
  --wz-text-2: #33435a;
  --wz-muted: #5b6b80;
  --wz-border: #e2e8f0;
  --wz-border-strong: #cbd5e1;
  --wz-accent: #0e7490;
  --wz-accent-hover: #0b5f76;
  --wz-accent-2: #0891b2;
  --wz-accent-soft: #e2f4f8;
  --wz-on-accent: #ffffff;
  --wz-success: #15803d;  --wz-success-soft: #e3f4e8;
  --wz-warning: #b45309;  --wz-warning-soft: #fdf0dc;
  --wz-danger: #b91c1c;   --wz-danger-soft: #fbe5e5;
  --wz-info: #1d4ed8;     --wz-info-soft: #e5ecfc;
  --wz-violet: #6d28d9;   --wz-violet-soft: #efe7fc;
  --wz-radius: 14px;
  --wz-radius-sm: 10px;
  --wz-radius-xs: 7px;
  --wz-shadow: 0 1px 2px rgba(15, 27, 45, .04), 0 8px 24px rgba(15, 27, 45, .06);
  --wz-shadow-hover: 0 2px 4px rgba(15, 27, 45, .05), 0 14px 32px rgba(15, 27, 45, .10);
  --wz-shadow-pop: 0 18px 48px rgba(15, 27, 45, .18);
  --wz-ring: 0 0 0 3px rgba(8, 145, 178, .28);
  --wz-header-h: 60px;
  --wz-ease: cubic-bezier(.2, .7, .2, 1);
  --wz-fast: 160ms;
  color-scheme: light;
}
html[data-theme="dark"] {
  --wz-bg: #0b1220;
  --wz-surface: #111a2b;
  --wz-surface-2: #16213a;
  --wz-surface-3: #1c2945;
  --wz-text: #e6edf7;
  --wz-text-2: #c4d0e1;
  --wz-muted: #9aa8bd;
  --wz-border: #23324a;
  --wz-border-strong: #33476a;
  --wz-accent: #22d3ee;
  --wz-accent-hover: #67e8f9;
  --wz-accent-2: #38bdf8;
  --wz-accent-soft: #0c2f3a;
  --wz-on-accent: #04232b;
  --wz-success: #4ade80;  --wz-success-soft: #0f2e1d;
  --wz-warning: #fbbf24;  --wz-warning-soft: #33260a;
  --wz-danger: #f87171;   --wz-danger-soft: #3a1518;
  --wz-info: #93b4fd;     --wz-info-soft: #16224a;
  --wz-violet: #c4b5fd;   --wz-violet-soft: #251a45;
  --wz-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .28);
  --wz-shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 16px 36px rgba(0, 0, 0, .38);
  --wz-shadow-pop: 0 20px 56px rgba(0, 0, 0, .55);
  --wz-ring: 0 0 0 3px rgba(34, 211, 238, .32);
  color-scheme: dark;
}

/* ——— base ——— */
html, body { background: var(--wz-bg) !important; }
body, .main-header .logo, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6,
.content-header > h1, .box-title, .info-box-number, .btn, .form-control, .table, .dropdown-menu,
.select2-container, .tooltip, .popover, .modal { font-family: var(--wz-font) !important; }
body { color: var(--wz-text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--wz-accent); transition: color var(--wz-fast) var(--wz-ease); }
a:hover, a:focus { color: var(--wz-accent-hover); }
h1, h2, h3, h4, h5, h6 { color: var(--wz-text); letter-spacing: -.01em; }
hr { border-top-color: var(--wz-border); }
::selection { background: var(--wz-accent-soft); color: var(--wz-text); }
:focus-visible { outline: 2px solid var(--wz-accent-2); outline-offset: 2px; }
.text-muted, .help-block { color: var(--wz-muted) !important; }
.text-primary { color: var(--wz-accent) !important; }
.text-success, .text-green { color: var(--wz-success) !important; }
.text-danger, .text-red { color: var(--wz-danger) !important; }
.text-warning, .text-yellow { color: var(--wz-warning) !important; }
.text-info, .text-aqua { color: var(--wz-info) !important; }
* { scrollbar-color: var(--wz-border-strong) transparent; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ——— layout: header ——— */
.wrapper, .content-wrapper, .right-side, .main-footer { background: var(--wz-bg) !important; }
.main-header { box-shadow: none; border-bottom: 1px solid var(--wz-border); background: var(--wz-surface); }
.main-header .navbar, .skin-blue-light .main-header .navbar, .skin-blue .main-header .navbar { background: var(--wz-surface) !important; min-height: var(--wz-header-h); }
.main-header .logo, .skin-blue-light .main-header .logo, .skin-blue .main-header .logo {
  background: var(--wz-surface) !important; color: var(--wz-text) !important; height: var(--wz-header-h); line-height: var(--wz-header-h);
  border-right: 1px solid var(--wz-border); border-bottom: 0 !important; font-weight: 700; letter-spacing: -.02em; text-align: left; padding: 0 18px;
}
.main-header .logo:hover { background: var(--wz-surface) !important; }
.main-header .logo .logo-lg, .main-header .logo .logo-mini { display: none; }
.sidebar-mini.sidebar-collapse .main-header .logo .wz-brand-text { display: none; }
.wz-brand { display: inline-flex; align-items: center; gap: 10px; height: 100%; color: var(--wz-text); }
.wz-brand svg { width: 30px; height: 30px; flex: none; }
.wz-brand-text { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.wz-brand-text small { font-size: 11px; font-weight: 700; color: var(--wz-accent); background: var(--wz-accent-soft); border-radius: 6px; padding: 2px 6px; margin-left: 6px; letter-spacing: .02em; vertical-align: 3px; }
.sidebar-mini.sidebar-collapse .main-header .logo { padding: 0; text-align: center; }
.sidebar-mini.sidebar-collapse .main-header .logo .wz-brand { justify-content: center; width: 100%; }
.main-header .navbar .sidebar-toggle, .skin-blue-light .main-header .navbar .sidebar-toggle {
  color: var(--wz-text-2) !important; height: var(--wz-header-h); line-height: 30px; padding: 15px 18px; border-radius: 0;
}
.main-header .navbar .sidebar-toggle:hover { background: var(--wz-surface-2) !important; color: var(--wz-text) !important; }
.main-header .navbar .nav > li > a, .skin-blue-light .main-header .navbar .nav > li > a {
  color: var(--wz-text-2) !important; height: var(--wz-header-h); padding-top: 13px; padding-bottom: 13px; display: flex; align-items: center; gap: 8px;
}
.main-header .navbar .nav > li > a:hover, .main-header .navbar .nav > li > a:focus,
.main-header .navbar .nav .open > a, .skin-blue-light .main-header .navbar .nav > li > a:hover { background: var(--wz-surface-2) !important; color: var(--wz-text) !important; }
.navbar-nav > .user-menu > a > .user-image, .navbar-nav > .user-menu .user-image { margin-top: 0; width: 32px; height: 32px; border: 2px solid var(--wz-border); }
.wz-theme-toggle > a { cursor: pointer; font-size: 17px; }
.wz-theme-toggle > a .fa { width: 18px; text-align: center; }

/* ——— layout: sidebar ——— */
.main-sidebar, .left-side, .skin-blue-light .main-sidebar, .skin-blue-light .left-side, .skin-blue .main-sidebar {
  background: var(--wz-surface) !important; border-right: 1px solid var(--wz-border); padding-top: var(--wz-header-h);
}
.skin-blue-light .wrapper, .skin-blue-light .main-sidebar, .skin-blue-light .left-side { background: var(--wz-surface) !important; }
.user-panel { padding: 16px 14px; border-bottom: 1px solid var(--wz-border); }
.user-panel > .image > img { border: 2px solid var(--wz-border); }
.user-panel > .info, .user-panel > .info > a, .skin-blue-light .user-panel > .info, .skin-blue-light .user-panel > .info > a { color: var(--wz-text) !important; font-weight: 600; }
.user-panel > .info > p { color: var(--wz-text) !important; }
.sidebar-menu > li.header, .skin-blue-light .sidebar-menu > li.header {
  background: transparent !important; color: var(--wz-muted) !important; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 16px 18px 8px;
}
.sidebar-menu > li > a, .skin-blue-light .sidebar-menu > li > a {
  color: var(--wz-text-2) !important; margin: 2px 10px; border-radius: var(--wz-radius-sm); padding: 10px 12px; font-weight: 500; border-left: 0 !important;
  transition: background var(--wz-fast) var(--wz-ease), color var(--wz-fast) var(--wz-ease);
}
.sidebar-menu > li > a > .fa, .sidebar-menu > li > a > .glyphicon, .sidebar-menu > li > a > .ion { width: 22px; color: var(--wz-muted); transition: color var(--wz-fast) var(--wz-ease); }
.sidebar-menu > li:hover > a, .skin-blue-light .sidebar-menu > li:hover > a { background: var(--wz-surface-2) !important; color: var(--wz-text) !important; }
.sidebar-menu > li.active > a, .skin-blue-light .sidebar-menu > li.active > a,
.sidebar-menu > li.menu-open > a, .skin-blue-light .sidebar-menu > li.menu-open > a { background: var(--wz-accent-soft) !important; color: var(--wz-accent) !important; font-weight: 600; }
.sidebar-menu > li.active > a > .fa, .sidebar-menu > li:hover > a > .fa { color: var(--wz-accent); }
.sidebar-menu > li > .treeview-menu, .skin-blue-light .sidebar-menu > li > .treeview-menu { background: transparent !important; margin: 2px 10px 6px 26px; padding: 2px 0 2px 10px; border-left: 2px solid var(--wz-border); }
.sidebar-menu .treeview-menu > li > a, .skin-blue-light .treeview-menu > li > a { color: var(--wz-muted) !important; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; }
.sidebar-menu .treeview-menu > li > a:hover, .skin-blue-light .treeview-menu > li > a:hover { color: var(--wz-text) !important; background: var(--wz-surface-2); }
.sidebar-menu .treeview-menu > li.active > a, .skin-blue-light .treeview-menu > li.active > a { color: var(--wz-accent) !important; font-weight: 600; }
.sidebar-menu .label, .sidebar-menu .badge { border-radius: 999px; }
.sidebar-mini.sidebar-collapse .sidebar-menu > li > a { margin: 2px 6px; }
.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > span:not(.pull-right),
.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu {
  background: var(--wz-surface) !important; border: 1px solid var(--wz-border); box-shadow: var(--wz-shadow-pop); border-radius: 0 var(--wz-radius-sm) var(--wz-radius-sm) 0;
}

/* ——— content ——— */
.content { padding: 20px 24px 32px; }
.content-header { padding: 22px 24px 0; }
.content-header > h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--wz-text); }
.content-header > h1 > small { color: var(--wz-muted); }
.content-header > .breadcrumb { background: transparent; top: 22px; right: 24px; color: var(--wz-muted); }
.content-header > .breadcrumb > li > a { color: var(--wz-muted); }
.main-footer { border-top: 1px solid var(--wz-border); color: var(--wz-muted); }
@media (max-width: 767px) { .content { padding: 14px 12px 24px; } .content-header { padding: 16px 12px 0; } }

/* ——— cards (box) ——— */
.box, .nav-tabs-custom, .panel, .well, .thumbnail, .callout, .small-box, .info-box {
  background: var(--wz-surface) !important; border: 1px solid var(--wz-border) !important; border-radius: var(--wz-radius) !important;
  box-shadow: var(--wz-shadow) !important; color: var(--wz-text);
}
.box { border-top: 1px solid var(--wz-border) !important; margin-bottom: 22px; }
.box.box-solid > .box-header, .box > .box-header { background: transparent !important; color: var(--wz-text) !important; padding: 14px 18px; border-bottom: 1px solid var(--wz-border); }
.box.collapsed-box > .box-header { border-bottom: 0; }
.box-header .box-title, .box-header > .fa + .box-title { font-size: 15px; font-weight: 650; color: var(--wz-text); letter-spacing: -.005em; }
.box-header > .box-tools { top: 9px; right: 12px; }
.box-body { padding: 16px 18px; }
.box-footer { background: var(--wz-surface-2) !important; border-top: 1px solid var(--wz-border); border-radius: 0 0 var(--wz-radius) var(--wz-radius); padding: 12px 18px; }
.box .overlay, .overlay-wrapper .overlay { background: color-mix(in srgb, var(--wz-surface) 72%, transparent) !important; border-radius: var(--wz-radius); }
.box .btn-box-tool { color: var(--wz-muted); border-radius: 8px; }
.box .btn-box-tool:hover { color: var(--wz-text); background: var(--wz-surface-2); }
.panel-heading { background: var(--wz-surface-2) !important; border-bottom: 1px solid var(--wz-border) !important; color: var(--wz-text) !important; border-radius: var(--wz-radius) var(--wz-radius) 0 0 !important; }
.panel-footer { background: var(--wz-surface-2); border-top-color: var(--wz-border); }

/* ——— KPI cards (info-box / small-box) ——— */
.info-box { min-height: 104px; display: flex; align-items: center; gap: 16px; padding: 18px; margin-bottom: 22px; transition: transform var(--wz-fast) var(--wz-ease), box-shadow var(--wz-fast) var(--wz-ease); }
.info-box:hover { transform: translateY(-2px); box-shadow: var(--wz-shadow-hover) !important; }
.info-box-icon { float: none; flex: none; width: 52px; height: 52px; line-height: 52px; font-size: 24px; border-radius: 14px !important; background: var(--wz-accent-soft) !important; color: var(--wz-accent) !important; }
.info-box-icon > img { max-width: 60%; }
.info-box-content { margin-left: 0; padding: 0; min-width: 0; flex: 1; }
.info-box-text { text-transform: none; font-size: 13px; color: var(--wz-muted); font-weight: 500; white-space: normal; line-height: 1.35; }
.info-box-number { font-size: 26px; font-weight: 750; color: var(--wz-text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.info-box-content .info-box-text + .info-box-number + .info-box-text { margin-top: 6px; }
/* each KPI keeps its own hue (entity colour, not status) */
.info-box-icon.bg-aqua, .info-box-icon.bg-light-blue, .info-box-icon.bg-blue { background: var(--wz-accent-soft) !important; color: var(--wz-accent) !important; }
.info-box-icon.bg-red, .info-box-icon.bg-maroon { background: var(--wz-violet-soft) !important; color: var(--wz-violet) !important; }
.info-box-icon.bg-green, .info-box-icon.bg-olive, .info-box-icon.bg-teal { background: var(--wz-success-soft) !important; color: var(--wz-success) !important; }
.info-box-icon.bg-yellow, .info-box-icon.bg-orange { background: var(--wz-warning-soft) !important; color: var(--wz-warning) !important; }
.info-box-icon.bg-purple { background: var(--wz-info-soft) !important; color: var(--wz-info) !important; }
.info-box.bg-aqua, .info-box.bg-red, .info-box.bg-green, .info-box.bg-yellow { background: var(--wz-surface) !important; color: var(--wz-text) !important; }
.small-box { overflow: hidden; }
.small-box > .inner { padding: 16px 18px; }
.small-box h3 { font-weight: 750; font-variant-numeric: tabular-nums; color: var(--wz-text); }
.small-box p { color: var(--wz-muted); }
.small-box .icon { color: var(--wz-accent); opacity: .18; }
.small-box > .small-box-footer { background: var(--wz-surface-2) !important; color: var(--wz-accent) !important; border-top: 1px solid var(--wz-border); }
.small-box.bg-aqua, .small-box.bg-red, .small-box.bg-green, .small-box.bg-yellow, .small-box.bg-blue { background: var(--wz-surface) !important; color: var(--wz-text) !important; }

/* ——— buttons ——— */
.btn { border-radius: var(--wz-radius-sm); font-weight: 600; font-size: 13.5px; padding: 8px 14px; border-width: 1px; box-shadow: none !important;
  transition: background var(--wz-fast) var(--wz-ease), border-color var(--wz-fast) var(--wz-ease), color var(--wz-fast) var(--wz-ease), transform 80ms ease; }
.btn:active { transform: scale(.98); }
.btn-sm, .btn-group-sm > .btn { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn-xs, .btn-group-xs > .btn { padding: 3px 8px; font-size: 12px; border-radius: 7px; }
.btn-lg { padding: 11px 18px; font-size: 15px; border-radius: 12px; }
.btn-default { background: var(--wz-surface) !important; color: var(--wz-text) !important; border-color: var(--wz-border-strong) !important; }
.btn-default:hover, .btn-default:focus, .btn-default.active, .open > .dropdown-toggle.btn-default { background: var(--wz-surface-2) !important; border-color: var(--wz-muted) !important; }
.btn-primary, .btn-info, .bg-light-blue.btn, .btn.bg-aqua { background: var(--wz-accent) !important; border-color: var(--wz-accent) !important; color: var(--wz-on-accent) !important; }
.btn-primary:hover, .btn-primary:focus, .btn-info:hover, .btn-info:focus, .btn-primary.active { background: var(--wz-accent-hover) !important; border-color: var(--wz-accent-hover) !important; }
.btn-success { background: var(--wz-success) !important; border-color: var(--wz-success) !important; color: #fff !important; }
.btn-danger { background: var(--wz-danger) !important; border-color: var(--wz-danger) !important; color: #fff !important; }
.btn-warning { background: var(--wz-warning) !important; border-color: var(--wz-warning) !important; color: #fff !important; }
html[data-theme="dark"] .btn-success, html[data-theme="dark"] .btn-danger, html[data-theme="dark"] .btn-warning { color: #0b1220 !important; }
.btn-success:hover, .btn-danger:hover, .btn-warning:hover { filter: brightness(1.08); }
.btn-link { color: var(--wz-accent); }
.btn:focus-visible, .btn.focus { box-shadow: var(--wz-ring) !important; outline: 0; }
.btn[disabled], .btn.disabled { opacity: .5; }
.btn-app { background: var(--wz-surface-2); border-color: var(--wz-border); color: var(--wz-text-2); border-radius: 12px; }

/* ——— forms ——— */
.form-control, .input-group-addon, select.form-control, textarea.form-control {
  background: var(--wz-surface) !important; color: var(--wz-text) !important; border: 1px solid var(--wz-border-strong) !important;
  border-radius: var(--wz-radius-sm) !important; box-shadow: none !important; transition: border-color var(--wz-fast) var(--wz-ease), box-shadow var(--wz-fast) var(--wz-ease);
}
.form-control { height: 40px; padding: 8px 12px; font-size: 14px; }
textarea.form-control { height: auto; }
.input-sm, .form-group-sm .form-control { height: 32px; font-size: 13px; border-radius: 8px !important; }
.form-control:focus { border-color: var(--wz-accent-2) !important; box-shadow: var(--wz-ring) !important; }
.form-control::placeholder { color: var(--wz-muted); opacity: .85; }
.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { background: var(--wz-surface-2) !important; color: var(--wz-muted) !important; }
.input-group-addon { color: var(--wz-muted) !important; background: var(--wz-surface-2) !important; }
.input-group .form-control:not(:first-child), .input-group-addon:not(:first-child) { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
.input-group .form-control:not(:last-child), .input-group-addon:not(:last-child) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.input-group-btn > .btn { height: 40px; }
label, .control-label { color: var(--wz-text-2); font-weight: 600; font-size: 13px; }
.has-error .form-control { border-color: var(--wz-danger) !important; }
.has-error .help-block, .has-error .control-label { color: var(--wz-danger) !important; }
.has-success .form-control { border-color: var(--wz-success) !important; }
.checkbox label, .radio label { font-weight: 500; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--wz-accent); }

/* ——— tables ——— */
.table { color: var(--wz-text); background: transparent; }
.table > thead > tr > th, table.dataTable thead th, table.dataTable thead td {
  color: var(--wz-muted); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid var(--wz-border) !important; background: var(--wz-surface-2); white-space: nowrap; vertical-align: middle;
}
.table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td { border-top: 1px solid var(--wz-border) !important; vertical-align: middle; font-variant-numeric: tabular-nums; }
.table-bordered, .table-bordered > thead > tr > th, .table-bordered > tbody > tr > td, .table-bordered > tbody > tr > th { border-color: var(--wz-border) !important; }
.table-striped > tbody > tr:nth-of-type(odd) { background: var(--wz-surface-2); }
.table-hover > tbody > tr:hover, table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover { background: var(--wz-accent-soft) !important; }
table.dataTable tbody tr, table.dataTable.stripe tbody tr.odd, table.dataTable.display tbody tr.odd { background: transparent; }
table.dataTable.display tbody tr.odd > .sorting_1, table.dataTable.order-column.stripe tbody tr.odd > .sorting_1,
table.dataTable.display tbody tr.even > .sorting_1, table.dataTable.order-column.stripe tbody tr.even > .sorting_1 { background: transparent; }
table.dataTable.no-footer { border-bottom: 1px solid var(--wz-border); }
.dataTables_wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select {
  background: var(--wz-surface); color: var(--wz-text); border: 1px solid var(--wz-border-strong); border-radius: 9px; height: 34px; padding: 4px 10px; margin-left: 6px;
}
.dataTables_wrapper .dataTables_filter input:focus { outline: 0; border-color: var(--wz-accent-2); box-shadow: var(--wz-ring); }
.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter { color: var(--wz-muted) !important; font-size: 13px; }
.dataTables_wrapper .dataTables_processing { background: var(--wz-surface); color: var(--wz-text); border: 1px solid var(--wz-border); border-radius: var(--wz-radius-sm); box-shadow: var(--wz-shadow); }
.table img.img-circle, .table img { border-radius: 10px; }

/* pagination */
.pagination > li > a, .pagination > li > span, .dataTables_wrapper .dataTables_paginate .paginate_button {
  background: var(--wz-surface) !important; color: var(--wz-text-2) !important; border: 1px solid var(--wz-border) !important; margin: 0 2px; border-radius: 8px !important; min-width: 34px; text-align: center;
}
.pagination > li > a:hover, .dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: var(--wz-surface-2) !important; color: var(--wz-text) !important; }
.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--wz-accent) !important; border-color: var(--wz-accent) !important; color: var(--wz-on-accent) !important;
}
.pagination > .disabled > a, .dataTables_wrapper .dataTables_paginate .paginate_button.disabled { opacity: .45; }

/* ——— tabs ——— */
.nav-tabs-custom > .nav-tabs { border-bottom: 1px solid var(--wz-border); background: transparent; border-radius: var(--wz-radius) var(--wz-radius) 0 0; padding: 0 8px; display: flex; flex-wrap: wrap; }
.nav-tabs-custom > .nav-tabs > li { border-top: 0 !important; margin-bottom: -1px; }
.nav-tabs-custom > .nav-tabs > li > a { color: var(--wz-muted) !important; border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; padding: 12px 12px; font-weight: 600; background: transparent !important; }
.nav-tabs-custom > .nav-tabs > li > a:hover { color: var(--wz-text) !important; }
.nav-tabs-custom > .nav-tabs > li.active > a, .nav-tabs-custom > .nav-tabs > li.active:hover > a { color: var(--wz-accent) !important; border-bottom-color: var(--wz-accent) !important; background: transparent !important; }
.nav-tabs-custom > .tab-content { background: transparent; padding: 14px; border-radius: 0 0 var(--wz-radius) var(--wz-radius); }
.nav-tabs { border-bottom-color: var(--wz-border); }
.nav-tabs > li > a { color: var(--wz-muted); border-radius: 10px 10px 0 0; }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { background: var(--wz-surface); color: var(--wz-text); border-color: var(--wz-border) var(--wz-border) transparent; }
.nav-pills > li > a { border-radius: 9px; color: var(--wz-text-2); }
.nav-pills > li.active > a, .nav-pills > li.active > a:hover { background: var(--wz-accent-soft); color: var(--wz-accent); border-top-color: transparent; }
.nav-stacked > li > a { border-left: 0; border-radius: 9px; }
.list-group-item { background: var(--wz-surface); border-color: var(--wz-border); color: var(--wz-text); }
.list-group-item.active, .list-group-item.active:hover { background: var(--wz-accent); border-color: var(--wz-accent); color: var(--wz-on-accent); }
.products-list > .item, .users-list > li { background: transparent; }

/* ——— labels, badges, alerts, callouts, progress ——— */
.label, .badge { border-radius: 999px; font-weight: 650; padding: .3em .7em; letter-spacing: .01em; }
.label-default { background: var(--wz-surface-3); color: var(--wz-text-2); }
.label-primary, .label-info, .badge.bg-aqua, .badge.bg-light-blue, .label.bg-aqua { background: var(--wz-accent-soft) !important; color: var(--wz-accent) !important; }
.label-success, .badge.bg-green, .label.bg-green { background: var(--wz-success-soft) !important; color: var(--wz-success) !important; }
.label-warning, .badge.bg-yellow, .label.bg-yellow { background: var(--wz-warning-soft) !important; color: var(--wz-warning) !important; }
.label-danger, .badge.bg-red, .label.bg-red { background: var(--wz-danger-soft) !important; color: var(--wz-danger) !important; }
.alert { border-radius: var(--wz-radius-sm); border: 1px solid transparent; }
.alert-success, .alert.bg-green { background: var(--wz-success-soft) !important; color: var(--wz-success) !important; border-color: color-mix(in srgb, var(--wz-success) 25%, transparent) !important; }
.alert-info, .alert.bg-aqua { background: var(--wz-info-soft) !important; color: var(--wz-info) !important; border-color: color-mix(in srgb, var(--wz-info) 25%, transparent) !important; }
.alert-warning, .alert.bg-yellow { background: var(--wz-warning-soft) !important; color: var(--wz-warning) !important; border-color: color-mix(in srgb, var(--wz-warning) 25%, transparent) !important; }
.alert-danger, .alert-error, .alert.bg-red { background: var(--wz-danger-soft) !important; color: var(--wz-danger) !important; border-color: color-mix(in srgb, var(--wz-danger) 25%, transparent) !important; }
.alert a, .alert .alert-link { color: inherit; text-decoration: underline; }
.callout { border-left-width: 4px !important; }
.callout.callout-info { border-left-color: var(--wz-info) !important; background: var(--wz-info-soft) !important; color: var(--wz-text) !important; }
.callout.callout-warning { border-left-color: var(--wz-warning) !important; background: var(--wz-warning-soft) !important; color: var(--wz-text) !important; }
.callout.callout-danger { border-left-color: var(--wz-danger) !important; background: var(--wz-danger-soft) !important; color: var(--wz-text) !important; }
.callout.callout-success { border-left-color: var(--wz-success) !important; background: var(--wz-success-soft) !important; color: var(--wz-text) !important; }
.progress, .progress-group .progress { background: var(--wz-surface-3); border-radius: 999px; box-shadow: none; }
.progress-bar { background: var(--wz-accent); border-radius: 999px; }
.progress-bar-success, .progress-bar-green { background: var(--wz-success); }
.progress-bar-danger, .progress-bar-red { background: var(--wz-danger); }
.progress-bar-warning, .progress-bar-yellow { background: var(--wz-warning); }

/* generic AdminLTE colour helpers used as backgrounds outside KPI cards */
.bg-gray, .bg-gray-light { background: var(--wz-surface-3) !important; color: var(--wz-text) !important; }
.bg-light-blue, .bg-aqua { background-color: var(--wz-accent) !important; }

/* ——— dropdowns, modals, tooltips, popovers ——— */
.dropdown-menu { background: var(--wz-surface); border: 1px solid var(--wz-border); border-radius: 12px; box-shadow: var(--wz-shadow-pop); padding: 6px; }
.dropdown-menu > li > a { color: var(--wz-text-2); border-radius: 8px; padding: 7px 12px; }
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { background: var(--wz-surface-2); color: var(--wz-text); }
.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover { background: var(--wz-accent-soft); color: var(--wz-accent); }
.dropdown-menu .divider { background: var(--wz-border); }
.navbar-nav > .user-menu > .dropdown-menu { border-radius: 14px; padding: 0; overflow: hidden; width: 260px; }
.navbar-nav > .user-menu > .dropdown-menu > li.user-header, .skin-blue-light .main-header li.user-header { background: linear-gradient(135deg, var(--wz-accent), var(--wz-accent-2)) !important; height: auto; padding-bottom: 14px; }
.navbar-nav > .user-menu > .dropdown-menu > .user-footer { background: var(--wz-surface-2); }
.navbar-nav > .user-menu > .dropdown-menu > .user-body { border-color: var(--wz-border); }
.modal-content { background: var(--wz-surface); color: var(--wz-text); border: 1px solid var(--wz-border); border-radius: 16px; box-shadow: var(--wz-shadow-pop); }
.modal-header { border-bottom: 1px solid var(--wz-border); padding: 16px 20px; }
.modal-header .modal-title { font-weight: 700; }
.modal-body { padding: 18px 20px; }
.modal-footer { border-top: 1px solid var(--wz-border); padding: 14px 20px; background: var(--wz-surface-2); border-radius: 0 0 16px 16px; }
.modal-backdrop.in { opacity: .45; }
.modal .close, .close { color: var(--wz-text); text-shadow: none; opacity: .5; }
.modal .close:hover { opacity: .9; }
.modal.modal-danger .modal-content, .modal.modal-warning .modal-content, .modal.modal-success .modal-content, .modal.modal-info .modal-content, .modal.modal-primary .modal-content { background: var(--wz-surface) !important; color: var(--wz-text) !important; }
.modal.modal-danger .modal-header { background: var(--wz-danger-soft) !important; color: var(--wz-danger) !important; border-radius: 16px 16px 0 0; }
.modal.modal-danger .modal-footer, .modal.modal-warning .modal-footer, .modal.modal-success .modal-footer, .modal.modal-info .modal-footer, .modal.modal-primary .modal-footer { background: var(--wz-surface-2) !important; }
.tooltip-inner { background: var(--wz-text); color: var(--wz-surface); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; }
.tooltip.top .tooltip-arrow { border-top-color: var(--wz-text); }
.tooltip.bottom .tooltip-arrow { border-bottom-color: var(--wz-text); }
.popover { background: var(--wz-surface); border-color: var(--wz-border); border-radius: 12px; box-shadow: var(--wz-shadow-pop); color: var(--wz-text); }
.popover-title { background: var(--wz-surface-2); border-bottom-color: var(--wz-border); }

/* ——— plugins ——— */
.select2-container--default .select2-selection--single, .select2-container--default .select2-selection--multiple {
  background: var(--wz-surface) !important; border: 1px solid var(--wz-border-strong) !important; border-radius: var(--wz-radius-sm) !important; min-height: 40px;
}
.select2-container--default .select2-selection--single { height: 40px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--wz-text) !important; line-height: 38px; padding-left: 12px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 38px; }
.select2-container--default.select2-container--focus .select2-selection--multiple, .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--wz-accent-2) !important; box-shadow: var(--wz-ring); }
.select2-container--default .select2-selection--multiple .select2-selection__choice { background: var(--wz-accent-soft) !important; border: 0 !important; color: var(--wz-accent) !important; border-radius: 999px; padding: 2px 10px; }
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove { color: var(--wz-accent) !important; }
.select2-dropdown { background: var(--wz-surface) !important; border-color: var(--wz-border) !important; border-radius: 12px !important; box-shadow: var(--wz-shadow-pop); overflow: hidden; color: var(--wz-text); }
.select2-container--default .select2-results__option[aria-selected=true] { background: var(--wz-surface-2) !important; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--wz-accent) !important; color: var(--wz-on-accent) !important; }
.select2-container--default .select2-search--dropdown .select2-search__field { background: var(--wz-surface); color: var(--wz-text); border: 1px solid var(--wz-border-strong); border-radius: 8px; }
.daterangepicker, .datepicker, .bootstrap-datetimepicker-widget, .bootstrap-timepicker-widget { background: var(--wz-surface) !important; color: var(--wz-text) !important; border: 1px solid var(--wz-border) !important; border-radius: 14px !important; box-shadow: var(--wz-shadow-pop) !important; font-family: var(--wz-font); }
.daterangepicker .calendar-table, .daterangepicker .calendar-table table { background: transparent !important; border-color: transparent !important; }
.daterangepicker td, .daterangepicker th, .datepicker table tr td, .datepicker table tr th { border-radius: 8px !important; color: var(--wz-text); }
.daterangepicker td.off, .daterangepicker td.off.in-range { background: transparent !important; color: var(--wz-muted) !important; opacity: .6; }
.daterangepicker td.available:hover, .daterangepicker th.available:hover, .datepicker table tr td.day:hover { background: var(--wz-surface-2) !important; }
.daterangepicker td.in-range { background: var(--wz-accent-soft) !important; color: var(--wz-text) !important; }
.daterangepicker td.active, .daterangepicker td.active:hover, .datepicker table tr td.active, .datepicker table tr td.active:hover { background: var(--wz-accent) !important; color: var(--wz-on-accent) !important; }
.daterangepicker .ranges li { background: var(--wz-surface-2) !important; border: 1px solid var(--wz-border) !important; color: var(--wz-text-2) !important; border-radius: 8px !important; }
.daterangepicker .ranges li:hover, .daterangepicker .ranges li.active { background: var(--wz-accent) !important; border-color: var(--wz-accent) !important; color: var(--wz-on-accent) !important; }
.daterangepicker .input-mini, .daterangepicker select { background: var(--wz-surface) !important; color: var(--wz-text) !important; border: 1px solid var(--wz-border-strong) !important; border-radius: 8px !important; }
.daterangepicker:after, .daterangepicker:before { display: none; }
.icheckbox_minimal-blue, .iradio_minimal-blue, .icheckbox_flat-green { filter: hue-rotate(-20deg); }
.bootstrap-switch { border-radius: 999px; border-color: var(--wz-border-strong); }
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary, .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-info { background: var(--wz-accent); color: var(--wz-on-accent); }
.bootstrap-switch .bootstrap-switch-label { background: var(--wz-surface); }
#toast-container > div { border-radius: 12px; box-shadow: var(--wz-shadow-pop); opacity: .97; font-family: var(--wz-font); }
#toast-container > .toast-success { background-color: var(--wz-success); }
#toast-container > .toast-error { background-color: var(--wz-danger); }
#toast-container > .toast-info { background-color: var(--wz-info); }
#toast-container > .toast-warning { background-color: var(--wz-warning); }
html[data-theme="dark"] #toast-container > div { color: #0b1220; }
.file-input .file-preview, .file-drop-zone { background: var(--wz-surface-2); border-color: var(--wz-border) !important; border-radius: 12px; color: var(--wz-muted); }
.file-preview-frame { background: var(--wz-surface); border-color: var(--wz-border) !important; box-shadow: none !important; border-radius: 10px; }
.cke_chrome { border-color: var(--wz-border) !important; border-radius: 10px; overflow: hidden; }
.wysihtml5-toolbar .btn { padding: 4px 8px; }
.ui-widget-content { background: var(--wz-surface); color: var(--wz-text); border-color: var(--wz-border); }
.direct-chat-text { background: var(--wz-surface-2); border-color: var(--wz-border); color: var(--wz-text); border-radius: 12px; }
.direct-chat-primary .right > .direct-chat-text { background: var(--wz-accent); border-color: var(--wz-accent); color: var(--wz-on-accent); }
.timeline > li > .timeline-item { background: var(--wz-surface); border: 1px solid var(--wz-border); border-radius: 12px; box-shadow: var(--wz-shadow); color: var(--wz-text); }
.timeline > li > .timeline-item > .timeline-header { border-bottom-color: var(--wz-border); color: var(--wz-text); }
.timeline:before { background: var(--wz-border); }
canvas { max-width: 100%; }

/* top progress bar from wz-instant.js uses the accent */
#wz-progress { background: var(--wz-accent-2) !important; box-shadow: 0 0 6px color-mix(in srgb, var(--wz-accent-2) 60%, transparent) !important; }

/* ——— dark theme: things AdminLTE paints with fixed light colours ——— */
html[data-theme="dark"] .bg-white, html[data-theme="dark"] .well, html[data-theme="dark"] .jumbotron { background: var(--wz-surface) !important; color: var(--wz-text) !important; }
html[data-theme="dark"] .table > thead > tr > th { background: var(--wz-surface-2); }
html[data-theme="dark"] .text-black, html[data-theme="dark"] .text-dark { color: var(--wz-text) !important; }
html[data-theme="dark"] img.img-circle, html[data-theme="dark"] .user-panel img { background: var(--wz-surface-2); }
html[data-theme="dark"] .content-wrapper [style*="background-color: #fff"], html[data-theme="dark"] .content-wrapper [style*="background:#fff"],
html[data-theme="dark"] .content-wrapper [style*="background: #fff"], html[data-theme="dark"] .content-wrapper [style*="background-color:#fff"],
html[data-theme="dark"] .content-wrapper [style*="background-color: white"] { background-color: var(--wz-surface) !important; }
html[data-theme="dark"] .content-wrapper [style*="color: #000"], html[data-theme="dark"] .content-wrapper [style*="color:#000"],
html[data-theme="dark"] .content-wrapper [style*="color: #333"], html[data-theme="dark"] .content-wrapper [style*="color:#333"] { color: var(--wz-text) !important; }
html[data-theme="dark"] .fc-unthemed td, html[data-theme="dark"] .fc-unthemed th { border-color: var(--wz-border); }

/* ——— phones ——— */
@media (max-width: 767px) {
  .main-header .logo { width: 100% !important; border-right: 0; border-bottom: 1px solid var(--wz-border) !important; text-align: center; }
  .main-header .logo .wz-brand { justify-content: center; width: 100%; }
  .main-sidebar { padding-top: calc(var(--wz-header-h) * 2); }
  .info-box { min-height: 88px; padding: 14px; }
  .info-box-number { font-size: 22px; }
  .box-header, .box-body { padding-left: 14px; padding-right: 14px; }
  .nav-tabs-custom > .nav-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .nav-tabs-custom > .nav-tabs > li { flex: none; float: none; }
  .btn { min-height: 38px; }
}

/* ——— sign-in, registration, password pages ——— */
body.login-page, body.register-page, body.lockscreen {
  background: var(--wz-bg) !important;
  background-image:
    radial-gradient(1100px 520px at 12% -10%, color-mix(in srgb, var(--wz-accent-2) 22%, transparent), transparent 60%),
    radial-gradient(900px 480px at 110% 110%, color-mix(in srgb, var(--wz-violet) 14%, transparent), transparent 60%) !important;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px;
}
.login-box, .register-box { width: 100%; max-width: 420px; margin: 0 auto !important; }
.login-logo, .register-logo { margin-bottom: 22px; text-align: center; }
.login-logo img, .register-logo img { display: none !important; }
.login-logo .wz-brand, .register-logo .wz-brand { justify-content: center; }
.login-logo .wz-brand svg, .register-logo .wz-brand svg { width: 44px; height: 44px; }
.login-logo .wz-brand-text, .register-logo .wz-brand-text { font-size: 26px; }
.login-box-body, .register-box-body { background: transparent !important; padding: 0 !important; box-shadow: none !important; }
.login-box-body .panel, .register-box-body .panel, .login-box .panel, .register-box .panel {
  border-radius: 18px !important; box-shadow: var(--wz-shadow-pop) !important; overflow: hidden; margin-bottom: 0;
}
.login-box .panel-heading, .register-box .panel-heading { background: transparent !important; border-bottom: 0 !important; padding: 26px 26px 6px; }
.login-box .panel-heading h3, .login-box-msg, .register-box-msg, .register-box .panel-heading h3 {
  color: var(--wz-text) !important; font-size: 19px !important; font-weight: 700; text-align: left; padding: 0 !important; margin: 0; letter-spacing: -.01em; line-height: 1.35;
}
.login-box .panel-body, .register-box .panel-body { padding: 16px 26px 22px; }
.login-box .panel-footer, .register-box .panel-footer { background: var(--wz-surface-2) !important; border-top: 1px solid var(--wz-border) !important; padding: 14px 26px; font-size: 13.5px; }
.login-box .form-control, .register-box .form-control { height: 46px; font-size: 15px; padding-right: 40px; }
.login-box .form-control-feedback, .register-box .form-control-feedback { line-height: 46px; height: 46px; color: var(--wz-muted); }
.login-box .btn-primary, .register-box .btn-primary { height: 46px; font-size: 15px; }
.input-shadow, .box-shadow { box-shadow: none !important; }
.login-page .lang-select, .register-page .lang-select { position: fixed; left: 16px; bottom: 16px; }
@media (max-width: 480px) {
  .login-box .panel-heading, .register-box .panel-heading { padding: 22px 18px 4px; }
  .login-box .panel-body, .register-box .panel-body { padding: 14px 18px 18px; }
  .login-box .panel-footer, .register-box .panel-footer { padding: 12px 18px; }
}

/* ——— charts (wz-charts.js: Chart.js 4 behind the 1.x calls) ——— */
:root { --wz-seq-1: #a5e3ef; --wz-seq-2: #67cfe3; --wz-seq-3: #22b0cc; --wz-seq-4: #0e8aa6; --wz-seq-5: #0b6a82; --wz-seq-6: #0a4a5c; }
html[data-theme="dark"] { --wz-seq-1: #0e4f5e; --wz-seq-2: #0f6f84; --wz-seq-3: #1491ab; --wz-seq-4: #22b6d0; --wz-seq-5: #5fd3e6; --wz-seq-6: #a5ecf6; }
.wz-chart { position: relative; width: 100%; height: 260px; }
.wz-chart[data-kind="round"] { height: 200px; }
.wz-chart > canvas { display: block; width: 100% !important; height: 100% !important; }
@media (max-width: 767px) { .wz-chart { height: 200px; } .wz-chart[data-kind="round"] { height: 180px; } }
/* legends the pages draw under the doughnuts use the same colours as the segments */
.description-percentage.color17 { color: var(--wz-seq-1) !important; }
.description-percentage.color18 { color: var(--wz-seq-2) !important; }
.description-percentage.color25 { color: var(--wz-seq-3) !important; }
.description-percentage.color35 { color: var(--wz-seq-4) !important; }
.description-percentage.color45 { color: var(--wz-seq-5) !important; }
.description-percentage.color55 { color: var(--wz-seq-6) !important; }
html:not([data-theme="dark"]) .description-percentage.color17 { color: #22b0cc !important; }
.description-percentage.colorCountMan { color: var(--wz-violet) !important; }     /* original markup: this class marks the women */
.description-percentage.colorCountWoman { color: var(--wz-accent) !important; }   /* ... and this one the men */
.description-percentage:has(#procMacsNew) { color: var(--wz-violet) !important; }
.description-percentage:has(#procMacsOld) { color: var(--wz-accent) !important; }
.description-block { padding: 6px 4px; }
.description-block > .description-percentage { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.description-block > .description-text { color: var(--wz-muted); text-transform: none; font-size: 12px; font-weight: 500; }
.description-block.border-right { border-right-color: var(--wz-border) !important; }
.box-footer .canvas-legend-bottom { display: flex; flex-wrap: wrap; }

/* ——— phones: one-row header, KPI cards two per row ——— */
@media (max-width: 767px) {
  .main-header { display: flex; align-items: center; height: var(--wz-header-h); }
  .main-header .logo { order: -1; width: auto !important; flex: none; border-bottom: 0 !important; border-right: 1px solid var(--wz-border); padding: 0 12px; }
  .main-header .logo .wz-brand-text { font-size: 16px; }
  .main-header .logo .wz-brand-text small { display: none; }
  .main-header .navbar { flex: 1; min-width: 0; margin: 0 !important; width: auto !important; float: none; }
  .main-header .navbar .sidebar-toggle { padding: 15px 14px; }
  .main-header .navbar-custom-menu > .navbar-nav > li > a { padding-left: 9px; padding-right: 9px; }
  .main-header .navbar .user-menu .hidden-xs { display: none; }
  .main-sidebar { padding-top: var(--wz-header-h) !important; }
  .content-wrapper { padding-top: 0; }
  .content-header > h1 { font-size: 21px; line-height: 1.25; }
  .row > [class*="col-"]:has(> .info-box), .row > [class*="col-"]:has(> .small-box) { width: 50%; float: left; padding-left: 6px; padding-right: 6px; }
  .info-box { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 12px; margin-bottom: 12px; }
  .info-box-icon { width: 38px; height: 38px; line-height: 38px; font-size: 18px; border-radius: 11px !important; }
  .info-box-number { font-size: 20px; }
  .info-box-text { font-size: 12px; }
  .box { margin-bottom: 14px; }
}

/* ═════════ professional pass: calmer surfaces, crisper type ═════════ */
:root { --wz-bg: #f5f7fa; --wz-radius: 12px; --wz-shadow: 0 1px 2px rgba(15, 27, 45, .05); --wz-shadow-hover: 0 4px 14px rgba(15, 27, 45, .08); }
html[data-theme="dark"] { --wz-bg: #0a101c; --wz-shadow: 0 1px 2px rgba(0, 0, 0, .35); --wz-shadow-hover: 0 6px 18px rgba(0, 0, 0, .4); }
.content-wrapper { min-height: calc(100vh - var(--wz-header-h)) !important; }
.content { max-width: 1520px; }
.content-header { max-width: 1520px; }
.box-header { min-height: 52px; display: flex; align-items: center; gap: 10px; }
.box-header > .box-title { flex: 1; min-width: 0; }
.box-header > .box-tools { position: static; margin-left: auto; display: flex; align-items: center; gap: 6px; }
.box-header > .box-tools .form-group { margin: 0; }
.box-header.with-border { border-bottom: 1px solid var(--wz-border); }
.sidebar-menu > li > a { padding: 9px 12px; font-size: 13.5px; }
.user-panel { display: flex; align-items: center; gap: 10px; }
.user-panel > .image { float: none; flex: none; }
.user-panel > .image > img { width: 38px; height: 38px; }
.user-panel > .info { position: static; float: none; padding: 0; left: auto; min-width: 0; }
.user-panel > .info > p { margin-bottom: 2px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-panel > .info > a, .user-panel > .info small { font-size: 12px; color: var(--wz-muted) !important; font-weight: 500; }

/* page head */
.wz-page-head > h1 { font-size: 22px !important; }

/* KPI */
.wz-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.wz-kpi { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center;
  background: var(--wz-surface); border: 1px solid var(--wz-border); border-radius: var(--wz-radius); box-shadow: var(--wz-shadow); padding: 16px 18px;
  transition: box-shadow var(--wz-fast) var(--wz-ease), transform var(--wz-fast) var(--wz-ease); }
.wz-kpi:hover { box-shadow: var(--wz-shadow-hover); transform: translateY(-1px); }
.wz-kpi-icon { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--wz-accent-soft); color: var(--wz-accent); }
.wz-kpi[data-tone="violet"] .wz-kpi-icon { background: var(--wz-violet-soft); color: var(--wz-violet); }
.wz-kpi[data-tone="success"] .wz-kpi-icon { background: var(--wz-success-soft); color: var(--wz-success); }
.wz-kpi[data-tone="warning"] .wz-kpi-icon { background: var(--wz-warning-soft); color: var(--wz-warning); }
.wz-kpi-label { font-size: 12.5px; color: var(--wz-muted); font-weight: 500; line-height: 1.3; display: flex; align-items: center; gap: 6px; }
.wz-kpi-value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--wz-text); font-variant-numeric: tabular-nums; }
.wz-kpi-value small { font-size: 13px; font-weight: 600; color: var(--wz-muted); letter-spacing: 0; }
.wz-live { width: 7px; height: 7px; border-radius: 50%; background: var(--wz-success); box-shadow: 0 0 0 0 color-mix(in srgb, var(--wz-success) 50%, transparent); animation: wz-pulse 2s infinite; }
@keyframes wz-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--wz-success) 45%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (max-width: 1199px) { .wz-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .wz-kpis { gap: 10px; }
  .wz-kpi { grid-template-columns: 1fr; padding: 12px; row-gap: 6px; }
  .wz-kpi-icon { grid-row: auto; width: 34px; height: 34px; font-size: 17px; border-radius: 10px; }
  .wz-kpi-value { font-size: 21px; }
}

/* cards on the dashboard */
.wz-card { margin-bottom: 20px; }
.wz-card > .box-header { border-bottom: 0 !important; padding-bottom: 4px; }
.wz-card > .box-body { padding-top: 6px; }
.wz-icon-btn { width: 32px; height: 32px; padding: 0 !important; display: inline-grid; place-items: center; border-radius: 9px !important; color: var(--wz-muted) !important; }
.wz-icon-btn .hiddenMedia500:empty { display: none; }
.wz-icon-btn:hover { color: var(--wz-text) !important; }
.wz-card-foot { background: transparent !important; text-align: center; padding: 10px 18px 14px !important; border-top: 1px solid var(--wz-border); }
.wz-more { font-size: 13px; font-weight: 600; color: var(--wz-accent); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.wz-more:hover { text-decoration: none; color: var(--wz-accent-hover); }
.wz-chip { font-size: 12px; font-weight: 600; color: var(--wz-warning); background: var(--wz-warning-soft); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.wz-mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; letter-spacing: 0; }
.wz-c-violet { color: var(--wz-violet) !important; }
.wz-c-accent { color: var(--wz-accent) !important; }

/* doughnut + legend side by side */
.wz-donut { display: flex; align-items: center; gap: 18px; min-height: 196px; }
.wz-donut-chart { flex: 0 0 160px; height: 160px; position: relative; }
.wz-donut-chart.wz-chart, .wz-donut .wz-chart[data-kind="round"] { height: 160px; }
.wz-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; display: grid; gap: 8px; }
.wz-legend li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 8px; font-size: 13px; color: var(--wz-text-2); }
.wz-legend .description-percentage { font-size: 0; line-height: 0; }
.wz-legend .wz-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
.wz-legend-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-legend-label .fa { color: var(--wz-muted); width: 14px; }
.wz-legend b { font-weight: 700; color: var(--wz-text); font-variant-numeric: tabular-nums; }
@media (max-width: 400px) { .wz-donut { flex-direction: column; align-items: stretch; } .wz-donut-chart { flex-basis: auto; } }

/* activity lists */
.wz-list-body { padding: 0 !important; }
.wz-list { list-style: none; margin: 0; padding: 4px 0 6px; width: 100%; border-collapse: collapse; }
.wz-list > li, .wz-list-table tr { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--wz-border); }
.wz-list > li:first-child, .wz-list-table tr:first-child { border-top: 0; }
.wz-list-table tr.hidden { display: none !important; }
.wz-list-table td { padding: 0; border: 0 !important; vertical-align: middle; }
.wz-list-table td:nth-child(2) { flex: 1; min-width: 0; }
.wz-avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: var(--wz-surface-3); color: var(--wz-muted); }
.wz-net-vk { background: #e8f0fb; color: #2b6cb0; } .wz-net-fb { background: #e8effc; color: #1d4ed8; }
.wz-net-ok { background: #fdf0e3; color: #c2610c; } .wz-net-ig { background: #fbe8f1; color: #be185d; }
.wz-net-sms { background: var(--wz-success-soft); color: var(--wz-success); }
html[data-theme="dark"] .wz-net-vk, html[data-theme="dark"] .wz-net-fb { background: #16264a; color: #93b4fd; }
html[data-theme="dark"] .wz-net-ok { background: #3a2410; color: #fdba74; }
html[data-theme="dark"] .wz-net-ig { background: #3b1426; color: #f9a8d4; }
.wz-list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wz-list-title { font-size: 13.5px; font-weight: 600; color: var(--wz-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.wz-list-sub { font-size: 12px; color: var(--wz-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.wz-list-side { flex: none; text-align: right; display: flex; flex-direction: column; align-items: flex-end; max-width: 46%; }
.wz-list-side .wz-list-sub { max-width: 100%; }
.wz-list-time { font-size: 12px; color: var(--wz-text-2); font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.wz-list-title .wz-list-time { color: var(--wz-muted); font-weight: 500; margin-left: 6px; }
.wz-badge { margin-top: 3px; font-size: 11.5px; color: var(--wz-muted); background: var(--wz-surface-3); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.wz-badge-today { color: var(--wz-success); background: var(--wz-success-soft); }
.wz-review { align-items: flex-start !important; }
.wz-review-text { font-size: 13px; color: var(--wz-text-2); margin: 2px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
/* dashboard fixes */
.wz-list-table, .wz-list-table > tbody { display: block; width: 100%; }
.wz-list-table td.wz-list-side { display: flex; flex-direction: column; align-items: flex-end; flex: none; max-width: 48%; }
.wz-card > .box-header > .box-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-card .box-tools .wz-chip { max-width: 190px; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
.wz-donut-chart { flex-basis: 140px; height: 140px; }
.wz-donut-chart.wz-chart, .wz-donut .wz-chart[data-kind="round"] { height: 140px; }
.wz-legend-label { white-space: normal; line-height: 1.25; }
.sidebar .current-datetime { text-align: left !important; padding: 10px 18px 0; margin: 0; color: var(--wz-muted); font-variant-numeric: tabular-nums; }
.sidebar-collapse .sidebar .current-datetime { display: none; }
.wz-card > .box-header { flex-wrap: wrap; row-gap: 6px; }
.wz-card > .box-header > .box-title { flex: 1 0 auto; max-width: 100%; }
.wz-card .box-tools .wz-chip { max-width: none; }
.wz-kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1399px) { .wz-kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .wz-kpis-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.modal .checkbox label { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.modal .checkbox + .checkbox { margin-top: 0; border-top: 1px solid var(--wz-border); }
.wz-kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1680px) { .wz-kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 767px) { .wz-kpis-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wz-kpi-value { overflow-wrap: normal; white-space: nowrap; }
/* chart without data */
.wz-chart[data-empty] > canvas { opacity: .35; }
.wz-chart[data-empty]::after { content: attr(data-empty-text); position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 16px;
  font-size: 13px; font-weight: 600; color: var(--wz-muted); pointer-events: none; }
.wz-chart[data-kind="round"][data-empty]::before { content: ""; position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; transform: translate(-50%, -50%);
  border-radius: 50%; border: 16px solid var(--wz-surface-3); }
.wz-donut-chart.wz-chart[data-empty]::after { font-size: 11.5px; padding: 0 30px; }

/* contextual table rows / cells (Bootstrap .danger/.success/...) -> soft theme tints */
.table > tbody > tr.danger > td, .table > tbody > tr > td.danger, .table > tbody > tr.danger > th { background: var(--wz-danger-soft) !important; }
.table > tbody > tr.success > td, .table > tbody > tr > td.success { background: var(--wz-success-soft) !important; }
.table > tbody > tr.warning > td, .table > tbody > tr > td.warning { background: var(--wz-warning-soft) !important; }
.table > tbody > tr.info > td, .table > tbody > tr > td.info, .table > tbody > tr.active > td { background: var(--wz-info-soft) !important; }
.table > tbody > tr[style*="background"] > td { background: inherit; }
.table > tbody > tr.danger:hover > td { background: color-mix(in srgb, var(--wz-danger-soft) 70%, var(--wz-danger) 8%) !important; }
.table .btn + .btn { margin-left: 4px; }
/* FullCalendar (campaign calendar) */
.fc-toolbar h2 { font-size: 20px; font-weight: 700; color: var(--wz-text); letter-spacing: -.01em; }
.fc button, .fc-button { background: var(--wz-surface) !important; color: var(--wz-text-2) !important; border: 1px solid var(--wz-border-strong) !important; text-shadow: none !important; box-shadow: none !important; height: 32px; padding: 0 12px; border-radius: 8px; }
.fc-state-active, .fc-state-down { background: var(--wz-accent-soft) !important; color: var(--wz-accent) !important; border-color: var(--wz-accent-soft) !important; }
.fc-button-group > .fc-button { border-radius: 0; } .fc-button-group > .fc-button:first-child { border-radius: 8px 0 0 8px; } .fc-button-group > .fc-button:last-child { border-radius: 0 8px 8px 0; }
.fc-unthemed th, .fc-unthemed td, .fc-unthemed thead, .fc-unthemed .fc-row, .fc-unthemed .fc-divider, .fc-unthemed .fc-popover { border-color: var(--wz-border) !important; }
.fc-day-header { color: var(--wz-muted); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; padding: 8px 0 !important; background: var(--wz-surface-2); }
.fc-day-number { color: var(--wz-text-2); font-size: 13px; padding: 6px 8px !important; }
.fc-other-month .fc-day-number { color: var(--wz-muted); opacity: .5; }
.fc-unthemed .fc-today { background: var(--wz-accent-soft) !important; }
.fc-event { border-radius: 6px; border: 0; padding: 2px 6px; font-size: 12px; font-weight: 600; }
.fc-basic-view .fc-body .fc-row { min-height: 6em; }
/* hotspot with Wi-Fi switched off (statusWifi = 0) */
.bg-red-little, .bg-red-little > td { background: var(--wz-danger-soft) !important; }
.table-hover > tbody > tr.bg-red-little:hover > td { background: color-mix(in srgb, var(--wz-danger-soft) 80%, var(--wz-danger) 10%) !important; }

/* ═════════ forms & tables pass (cp pages) ═════════ */
/* row actions inside tables: tinted, not loud */
.table .btn-xs, .table .btn-sm, .table .btn { box-shadow: none !important; }
.table .btn-danger { background: var(--wz-danger-soft) !important; color: var(--wz-danger) !important; border-color: transparent !important; }
.table .btn-info, .table .btn-primary { background: var(--wz-accent-soft) !important; color: var(--wz-accent) !important; border-color: transparent !important; }
.table .btn-warning { background: var(--wz-warning-soft) !important; color: var(--wz-warning) !important; border-color: transparent !important; }
.table .btn-success { background: var(--wz-success-soft) !important; color: var(--wz-success) !important; border-color: transparent !important; }
.table .btn-danger:hover { background: var(--wz-danger) !important; color: #fff !important; }
.table .btn-info:hover, .table .btn-primary:hover { background: var(--wz-accent) !important; color: var(--wz-on-accent) !important; }
.table .btn-warning:hover { background: var(--wz-warning) !important; color: #fff !important; }
.table .btn-success:hover { background: var(--wz-success) !important; color: #fff !important; }
.table td { padding-top: 10px !important; padding-bottom: 10px !important; }
.box-body.no-padding > .table, .box-body.table-responsive > .table { margin-bottom: 0; }
/* "leave without saving" is not destructive */
a.btn-danger:has(.fa-reply), button.btn-danger:has(.fa-reply), a.btn-danger:has(.fa-undo) {
  background: var(--wz-surface) !important; color: var(--wz-text-2) !important; border-color: var(--wz-border-strong) !important; }
a.btn-danger:has(.fa-reply):hover { background: var(--wz-surface-2) !important; }
.btn-success:has(.fa-floppy-o), .btn-success:has(.fa-save) { background: var(--wz-accent) !important; border-color: var(--wz-accent) !important; color: var(--wz-on-accent) !important; }
/* long forms: the action bar stays at the bottom of the screen */
.box > .box-footer:has(.btn-success, .btn-primary, button[type="submit"]), form .box-footer:has(.btn, button[type="submit"]) {
  position: sticky; bottom: 0; z-index: 6; background: color-mix(in srgb, var(--wz-surface) 92%, transparent) !important;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.box-footer .btn + .btn { margin-left: 0; }
/* on/off switches (bootstrap-switch) */
.bootstrap-switch { border-radius: 999px !important; border: 1px solid var(--wz-border-strong) !important; background: var(--wz-surface-3) !important; box-shadow: none !important; overflow: hidden; }
.bootstrap-switch .bootstrap-switch-handle-on, .bootstrap-switch .bootstrap-switch-handle-off, .bootstrap-switch .bootstrap-switch-label {
  font-size: 12px !important; font-weight: 600; padding: 4px 12px !important; line-height: 1.5 !important; }
.bootstrap-switch .bootstrap-switch-handle-on { background: var(--wz-accent) !important; color: var(--wz-on-accent) !important; }
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success { background: var(--wz-success) !important; color: #fff !important; }
.bootstrap-switch .bootstrap-switch-handle-off { background: var(--wz-surface-3) !important; color: var(--wz-muted) !important; }
.bootstrap-switch .bootstrap-switch-label { background: var(--wz-surface) !important; color: var(--wz-text-2) !important; }
.bootstrap-switch.bootstrap-switch-focused { box-shadow: var(--wz-ring) !important; border-color: var(--wz-accent-2) !important; }
/* multiselect buttons look like inputs */
.btn-group > .multiselect.dropdown-toggle, button.multiselect {
  background: var(--wz-surface) !important; color: var(--wz-text) !important; border: 1px solid var(--wz-border-strong) !important; border-radius: var(--wz-radius-sm) !important;
  min-height: 40px; min-width: 220px; text-align: left; font-weight: 500; padding: 8px 34px 8px 12px; position: relative; }
button.multiselect .caret { position: absolute; right: 12px; top: 50%; margin-top: -2px; color: var(--wz-muted); }
.multiselect-container > li > a > label { padding: 6px 12px 6px 34px !important; color: var(--wz-text-2); font-weight: 500; }
/* file inputs */
input[type="file"] { color: var(--wz-muted); font-size: 13px; }
input[type="file"]::file-selector-button { font: 600 13px var(--wz-font); color: var(--wz-text); background: var(--wz-surface-2); border: 1px solid var(--wz-border-strong);
  border-radius: 9px; padding: 7px 12px; margin-right: 10px; cursor: pointer; }
input[type="file"]::file-selector-button:hover { background: var(--wz-surface-3); }
input[type="file"].form-control { height: auto; padding: 6px; }
/* forms read better at a limited width */
.box form .form-control:not(textarea), .box form .input-group { max-width: 640px; }
.box form .col-xs-7, .box form .col-md-6:has(> .form-control), .box form .col-sm-6:has(> .form-control) { min-width: min(100%, 420px); }
.box-header .box-title + .btn, .box-header > .btn { margin-left: auto; }
.content > .row > [class*="col-"] > .box > .box-header:first-child > a.btn:first-child { order: 2; margin-left: auto; }
/* empty table state */
.dataTables_empty, td.dataTables_empty { color: var(--wz-muted) !important; text-align: center; padding: 28px 12px !important; font-weight: 500; }
@media (max-width: 767px) {
  .box form .col-xs-7 { width: 100%; }
  .btn-group > .multiselect.dropdown-toggle, button.multiselect { min-width: 0; width: 100%; }
}

/* ——— phones: table rows as cards (labels added by wz-theme.js) ——— */
@media (max-width: 767px) {
  table.wz-stack, table.wz-stack > tbody { display: block; width: 100% !important; border: 0 !important; }
  table.wz-stack > thead, table.wz-stack tr.wz-stack-head { display: none !important; }
  table.wz-stack > tbody > tr { display: block; background: var(--wz-surface) !important; border: 1px solid var(--wz-border); border-radius: 12px; margin: 0 0 10px; padding: 6px 12px; }
  table.wz-stack > tbody > tr.bg-red-little { border-color: color-mix(in srgb, var(--wz-danger) 30%, transparent); }
  table.wz-stack > tbody > tr > td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0 !important;
    border: 0 !important; border-top: 1px solid var(--wz-border) !important; text-align: right !important; width: auto !important; min-height: 0; }
  table.wz-stack > tbody > tr > td:first-child { border-top: 0 !important; }
  table.wz-stack > tbody > tr > td[data-label]::before { content: attr(data-label); color: var(--wz-muted); font-size: 12px; font-weight: 600; text-align: left; flex: none; max-width: 45%; }
  table.wz-stack > tbody > tr > td.wz-cell-plain { justify-content: flex-start; flex-wrap: wrap; text-align: left !important; }
  table.wz-stack > tbody > tr > td.wz-cell-plain[data-label]::before { display: none; }
  table.wz-stack > tbody > tr > td.dataTables_empty { justify-content: center; }
  table.wz-stack > tbody > tr > td.dataTables_empty::before { display: none; }
  .table-responsive:has(table.wz-stack), .dataTables_wrapper:has(table.wz-stack) { overflow: visible; border: 0; }
  .box-body.no-padding:has(table.wz-stack) { padding: 10px !important; }
}
@media (max-width: 767px) {
  table.wz-stack > tfoot { display: none !important; }
  table.wz-stack > tbody > tr > td.wz-cell-empty { display: none !important; }
  table.wz-stack > tbody > tr > td.wz-cell-plain { display: inline-flex; width: auto !important; border-top: 0 !important; padding: 8px 6px 4px 0 !important; vertical-align: middle; }
  table.wz-stack > tbody > tr > td.wz-cell-plain:has(img) { display: flex; width: 100% !important; }
  table.wz-stack > tbody > tr > td img { max-height: 48px; width: auto; }
}
@media (max-width: 767px) {
  table.wz-stack > tbody > tr.bg-red-little { background: var(--wz-danger-soft) !important; }
  table.wz-stack > tbody > tr > td { background: transparent !important; }
}

/* ——— start page editor: settings left, live preview right (sticky) ——— */
@media (min-width: 1100px) {
  .box form .row > [class*="col-"]:has(> .exampleMini) {
    width: 100%; float: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); column-gap: 32px; align-items: start; }
  .box form .row > [class*="col-"]:has(> .exampleMini) > .form-group { grid-column: 1; }
  .box form .row > [class*="col-"]:has(> .exampleMini) > .exampleMini { grid-column: 2; grid-row: 1 / span 40; position: sticky; top: calc(var(--wz-header-h) + 16px); margin: 0; }
}
.exampleMini { border-radius: 14px !important; border: 1px solid var(--wz-border) !important; overflow: hidden; box-shadow: var(--wz-shadow); background-color: var(--wz-surface-3) !important; }
.exampleMini > .textexampleMini:first-child { font-size: 12px; font-weight: 600; color: var(--wz-muted); }
.hrBox { border-top: 1px solid var(--wz-border); margin: 4px 18px; }

/* ═════════ constructor (cp /builder) ═════════ */
.wz-page-sub { color: var(--wz-muted); margin: 4px 0 0; font-size: 14px; }
.wz-pages { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.wz-page-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--wz-surface); border: 1px solid var(--wz-border); border-radius: var(--wz-radius);
  box-shadow: var(--wz-shadow); color: var(--wz-text); transition: box-shadow var(--wz-fast) var(--wz-ease), transform var(--wz-fast) var(--wz-ease); }
.wz-page-card:hover { color: var(--wz-text); text-decoration: none; box-shadow: var(--wz-shadow-hover); transform: translateY(-1px); }
.wz-page-logo { flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--wz-surface-2); border: 1px solid var(--wz-border); display: grid; place-items: center; overflow: hidden; color: var(--wz-accent); font-size: 22px; }
.wz-page-logo img { max-width: 80%; max-height: 80%; object-fit: contain; }
.wz-page-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wz-page-name { font-weight: 700; font-size: 15px; }
.wz-page-meta { font-size: 12px; color: var(--wz-muted); }
.wz-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.wz-state-on { color: var(--wz-success); } .wz-state-draft { color: var(--wz-warning); } .wz-state-none { color: var(--wz-muted); }
.wz-empty { text-align: center; padding: 40px 16px !important; color: var(--wz-muted); }

body.wz-builder-page .content-wrapper { background: var(--wz-bg) !important; }
.wz-builder { display: flex; flex-direction: column; height: calc(100vh - var(--wz-header-h)); height: calc(100dvh - var(--wz-header-h)); }
.wz-b-top { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: var(--wz-surface); border-bottom: 1px solid var(--wz-border); }
.wz-b-back { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--wz-text-2); border: 1px solid var(--wz-border); font-size: 20px; }
.wz-b-back:hover { background: var(--wz-surface-2); color: var(--wz-text); }
.wz-b-title { flex: 1; min-width: 0; }
.wz-b-title h1 { font-size: 17px; margin: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-b-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.wz-b-dirty { font-size: 12.5px; color: var(--wz-warning); font-weight: 600; }
.wz-b-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 260px minmax(0, 1fr) 340px; }
.wz-b-palette, .wz-b-inspector { background: var(--wz-surface); overflow-y: auto; padding: 18px 16px; }
.wz-b-palette { border-right: 1px solid var(--wz-border); }
.wz-b-inspector { border-left: 1px solid var(--wz-border); }
.wz-b-palette h2, .wz-b-inspector h2 { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.wz-b-inspector h3 { font-size: 13px; font-weight: 700; margin: 18px 0 6px; color: var(--wz-text-2); }
.wz-b-hint { font-size: 12.5px; color: var(--wz-muted); margin: 0 0 12px; }
.wz-b-types { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.wz-b-type { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--wz-border); border-radius: 11px; background: var(--wz-surface);
  cursor: grab; font-weight: 600; font-size: 13.5px; color: var(--wz-text); user-select: none; transition: border-color var(--wz-fast), background var(--wz-fast); }
.wz-b-type:hover, .wz-b-type:focus-visible { border-color: var(--wz-accent-2); background: var(--wz-accent-soft); outline: 0; }
.wz-b-type-icon { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; background: var(--wz-accent-soft); color: var(--wz-accent); }
.wz-t-ads .fa, .wz-t-feed .fa { } .wz-b-type-icon.wz-t-ads, .wz-b-type-icon.wz-t-feed { background: var(--wz-violet-soft); color: var(--wz-violet); }
.wz-b-type-icon.wz-t-stoks, .wz-b-type-icon.wz-t-button { background: var(--wz-warning-soft); color: var(--wz-warning); }
.wz-b-type-icon.wz-t-menus, .wz-b-type-icon.wz-t-jobs { background: var(--wz-success-soft); color: var(--wz-success); }
.wz-b-type-icon.wz-t-quiz, .wz-b-type-icon.wz-t-reviews { background: var(--wz-info-soft); color: var(--wz-info); }
.wz-b-stage { overflow-y: auto; padding: 28px 16px 40px; display: flex; justify-content: center; background:
  radial-gradient(circle at 1px 1px, var(--wz-border) 1px, transparent 0) 0 0 / 18px 18px; }
.wz-phone { width: 380px; max-width: 100%; border-radius: 42px; padding: 12px; background: #0f1b2d; box-shadow: var(--wz-shadow-pop); position: relative; align-self: flex-start; }
.wz-phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 92px; height: 22px; border-radius: 12px; background: #0f1b2d; z-index: 2; }
.wz-phone-screen { border-radius: 32px; background: #f4f6f9 center / cover no-repeat; min-height: 720px; padding: 52px 14px 22px; overflow: hidden; color: #0f1b2d; }
.wz-phone-head { text-align: center; margin-bottom: 10px; }
.wz-phone-logo { max-width: 110px; max-height: 90px; object-fit: contain; }
.wz-phone-words { font-size: 17px; font-weight: 600; margin-top: 8px; color: #33435a; text-shadow: 0 1px 2px rgba(255, 255, 255, .6); }
.wz-phone-connect { margin: 10px 0 12px; border-radius: 12px; padding: 12px; text-align: center; font-weight: 700; background: #0e7490; color: #fff; box-shadow: 0 6px 16px rgba(14, 116, 144, .25); }
.wz-phone-divider { display: flex; align-items: center; gap: 8px; margin: 16px 0 6px; color: #5b6b80; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.wz-phone-divider::before, .wz-phone-divider::after { content: ""; flex: 1; border-top: 1px dashed #b8c4d4; }
.wz-b-zone { background: rgba(255, 255, 255, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px dashed #b8c4d4; border-radius: 16px; padding: 8px; margin: 8px 0; }
.wz-b-zone > h3 { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #5b6b80; margin: 2px 6px 6px; font-weight: 700; }
.wz-b-zone-list { list-style: none; margin: 0; padding: 0; min-height: 52px; display: grid; gap: 6px; position: relative; }
.wz-b-zone-list:empty::before { content: attr(data-empty); display: grid; place-items: center; min-height: 52px; color: #8a97a8; font-size: 12.5px; border-radius: 10px; }
.wz-b-block { display: flex; align-items: center; gap: 10px; padding: 9px 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; cursor: pointer; color: #0f1b2d;
  box-shadow: 0 1px 2px rgba(15, 27, 45, .05); transition: border-color var(--wz-fast), box-shadow var(--wz-fast); }
.wz-b-block:hover { border-color: #94a3b8; }
.wz-b-block.is-selected, .wz-b-block:focus-visible { border-color: var(--wz-accent-2); box-shadow: 0 0 0 3px rgba(8, 145, 178, .25); outline: 0; }
.wz-b-block-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wz-b-block-title { font-weight: 650; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-b-block-sub { font-size: 11.5px; color: #5b6b80; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-b-flag { color: #b45309; font-size: 12px; }
.wz-b-grip { color: #94a3b8; cursor: grab; padding: 0 2px; }
.wz-b-ghost { opacity: .45; }
.wz-b-zone-list .wz-b-type { background: #fff; color: #0f1b2d; }
.wz-b-insp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.wz-b-insp-head h2 { margin: 0; }
.wz-b-i18n { display: grid; gap: 6px; }
.wz-b-i18n .input-group-addon { min-width: 42px; font-size: 11.5px; font-weight: 700; }
.wz-b-checks { display: grid; gap: 4px; max-height: 220px; overflow-y: auto; border: 1px solid var(--wz-border); border-radius: 10px; padding: 6px 8px; }
.wz-b-checks label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13px; margin: 0; padding: 4px 2px; cursor: pointer; }
.wz-b-dates { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 6px; align-items: center; font-size: 12.5px; color: var(--wz-muted); }
.wz-b-color { width: 56px; height: 36px; padding: 2px; border: 1px solid var(--wz-border-strong); border-radius: 9px; background: var(--wz-surface); cursor: pointer; }
.wz-b-insp-actions { display: flex; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--wz-border); }
.wz-b-zones-help { padding-left: 18px; color: var(--wz-text-2); font-size: 13px; }
.wz-toasts { position: fixed; right: 18px; bottom: 18px; z-index: 3000; display: grid; gap: 8px; }
.wz-toast { background: var(--wz-text); color: var(--wz-surface); padding: 10px 14px; border-radius: 12px; box-shadow: var(--wz-shadow-pop); font-weight: 600; font-size: 13.5px; max-width: 380px; transition: opacity .3s, transform .3s; }
.wz-toast-err { background: var(--wz-danger); color: #fff; } .wz-toast-warn { background: var(--wz-warning); color: #fff; }
.wz-toast.wz-out { opacity: 0; transform: translateY(8px); }
.wz-dialog-back { position: fixed; inset: 0; background: rgba(15, 27, 45, .45); z-index: 3000; display: grid; place-items: center; padding: 16px; }
.wz-dialog { background: var(--wz-surface); color: var(--wz-text); border-radius: 16px; padding: 22px; max-width: 420px; width: 100%; box-shadow: var(--wz-shadow-pop); }
.wz-dialog p { font-size: 15px; font-weight: 600; margin: 0 0 18px; }
.wz-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 1279px) { .wz-b-body { grid-template-columns: 220px minmax(0, 1fr) 300px; } }
@media (max-width: 991px) {
  .wz-builder { height: auto; }
  .wz-b-body { grid-template-columns: 1fr; }
  .wz-b-palette { border-right: 0; border-bottom: 1px solid var(--wz-border); }
  .wz-b-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wz-b-inspector { border-left: 0; border-top: 1px solid var(--wz-border); }
  .wz-phone { width: 100%; max-width: 380px; }
}

/* ═════════ constructor v2: list | editor | phone (owner's reference layout, WiFi-Zona theme) ═════════ */
.wz-builder { height: auto; min-height: calc(100vh - var(--wz-header-h)); padding: 22px 24px 32px; }
.wz-b-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.wz-b-head-text { flex: 1; min-width: 260px; }
.wz-b-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 2px; }
.wz-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wz-accent); }
.wz-eyebrow::after { content: ""; width: 40px; border-top: 1px solid currentColor; opacity: .5; }
.wz-b-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wz-b-body { display: grid; grid-template-columns: 300px minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.wz-b-body > .box { margin: 0; }
.wz-b-list { padding: 12px !important; position: sticky; top: calc(var(--wz-header-h) + 12px); max-height: calc(100vh - var(--wz-header-h) - 24px); overflow-y: auto; }
.wz-b-add { margin-bottom: 6px; height: 42px; }
.wz-b-zone-title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wz-muted); margin: 14px 6px 6px; }
.wz-b-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-height: 40px; }
.wz-b-items:empty::before { content: attr(data-empty); display: grid; place-items: center; min-height: 44px; font-size: 12.5px; color: var(--wz-muted); border: 1px dashed var(--wz-border-strong); border-radius: 12px; }
.wz-b-item { display: flex; align-items: center; gap: 6px; padding: 8px; border: 1px solid transparent; border-radius: 14px; background: var(--wz-surface); transition: background var(--wz-fast), border-color var(--wz-fast); cursor: grab; }
.wz-b-item:hover { background: var(--wz-surface-2); }
.wz-b-item.is-selected { background: var(--wz-accent-soft); border-color: color-mix(in srgb, var(--wz-accent) 35%, transparent); }
.wz-b-item.is-hidden .wz-b-item-main { opacity: .5; }
.wz-b-item-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; padding: 0; text-align: left; color: var(--wz-text); cursor: pointer; }
.wz-b-item-text { min-width: 0; display: flex; flex-direction: column; }
.wz-b-item-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-b-item-sub { font-size: 12px; color: var(--wz-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-b-item-tools { display: flex; gap: 2px; opacity: .55; transition: opacity var(--wz-fast); }
.wz-b-item:hover .wz-b-item-tools, .wz-b-item.is-selected .wz-b-item-tools, .wz-b-item-tools:focus-within { opacity: 1; }
.wz-icon-tool { width: 28px; height: 28px; border-radius: 8px; border: 0; background: transparent; color: var(--wz-muted); display: grid; place-items: center; font-size: 13px; cursor: pointer; }
.wz-icon-tool:hover { background: var(--wz-surface-3); color: var(--wz-text); }
.wz-tile-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; }
.wz-tile-sm { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.wz-tile-lg { width: 48px; height: 48px; border-radius: 14px; font-size: 21px; }
html[data-theme="dark"] .wz-tile-icon { filter: brightness(1.35) saturate(1.1); }
.wz-b-editor { padding: 22px 24px !important; }
.wz-ed-top { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.wz-ed-kind { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.wz-ed-kind > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.wz-ed-kind b { font-size: 15px; } .wz-ed-kind small { color: var(--wz-muted); font-size: 12.5px; }
.wz-lang-tabs { display: inline-flex; gap: 6px; }
.wz-lang-tabs button { min-width: 42px; height: 30px; border-radius: 8px; border: 1px solid var(--wz-border-strong); background: var(--wz-surface); color: var(--wz-text-2); font-weight: 700; font-size: 12px; cursor: pointer; }
.wz-lang-tabs button.is-on { background: var(--wz-accent); border-color: var(--wz-accent); color: var(--wz-on-accent); }
.wz-ed-section { margin-top: 18px; }
.wz-ed-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wz-muted); margin-bottom: 8px; }
.wz-ed-section > .form-control, .wz-ed-section textarea.form-control { max-width: none !important; }
.wz-ed-grid2 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
.wz-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 8px; }
.wz-icon-pick { height: 42px; border-radius: 11px; border: 1px solid var(--wz-border); background: var(--wz-surface); color: var(--wz-text-2); font-size: 16px; cursor: pointer; transition: all var(--wz-fast); }
.wz-icon-pick:hover { border-color: var(--wz-accent-2); color: var(--wz-accent); }
.wz-icon-pick.is-on { background: var(--wz-accent); border-color: var(--wz-accent); color: var(--wz-on-accent); box-shadow: 0 4px 12px color-mix(in srgb, var(--wz-accent) 35%, transparent); }
.wz-color-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.wz-color-pick { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--wz-surface); box-shadow: 0 0 0 1px var(--wz-border-strong); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 12px; }
.wz-color-pick.is-on { box-shadow: 0 0 0 2px var(--wz-text); }
.wz-check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; color: var(--wz-text); cursor: pointer; }
.wz-check input { width: 16px; height: 16px; }
.wz-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 11px; background: var(--wz-surface-3); }
.wz-seg button { border: 0; background: transparent; color: var(--wz-text-2); font-weight: 600; font-size: 13px; padding: 7px 12px; border-radius: 8px; cursor: pointer; transition: background var(--wz-fast), color var(--wz-fast); }
.wz-seg button:hover:not([disabled]) { color: var(--wz-text); }
.wz-seg button.is-on { background: var(--wz-surface); color: var(--wz-text); box-shadow: 0 1px 3px rgba(15, 27, 45, .12); }
.wz-seg button[disabled] { opacity: .4; cursor: not-allowed; }
.wz-seg-sm button { padding: 5px 10px; font-size: 12.5px; }
.wz-ed-section > .wz-seg { display: flex; } .wz-ed-section > .wz-seg button { flex: 1; }
.wz-seg button.is-on:last-child:not(:first-child) { }
.wz-ed-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--wz-border); border-radius: 12px; margin-bottom: 8px; background: var(--wz-surface); }
.wz-ed-row.is-on { background: var(--wz-accent-soft); border-color: color-mix(in srgb, var(--wz-accent) 30%, transparent); }
.wz-ed-row-text { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; display: flex; flex-direction: column; }
.wz-ed-row-text small { font-weight: 500; color: var(--wz-muted); font-size: 12px; }
.wz-ed-row > .form-control, .wz-ed-row > .wz-i18n-one { flex: 1.4; max-width: none !important; }
.wz-ed-row > .wz-num { flex: none; width: 90px; }
.wz-ed-actions { display: flex; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--wz-border); }
.wz-ed-empty { text-align: center; padding: 60px 20px; color: var(--wz-muted); }
.wz-ed-empty .fa { font-size: 30px; color: var(--wz-accent); margin-bottom: 10px; }
.wz-b-preview { position: sticky; top: calc(var(--wz-header-h) + 12px); }
.wz-ph-label { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wz-muted); margin: 0 0 10px 6px; }
.wz-ph { width: 340px; max-width: 100%; border-radius: 44px; padding: 11px; background: #0f1b2d; box-shadow: var(--wz-shadow-pop); position: relative; }
.wz-ph-notch { position: absolute; top: 17px; left: 50%; transform: translateX(-50%); width: 86px; height: 20px; border-radius: 12px; background: #0f1b2d; z-index: 2; }
.wz-ph-screen { border-radius: 34px; background: #f5f7fa center / cover no-repeat; height: 660px; overflow-y: auto; padding: 46px 14px 20px; color: #0f1b2d; font-family: var(--wz-font); scrollbar-width: none; }
.wz-ph-head { text-align: center; margin-bottom: 12px; }
.wz-ph-head img { max-width: 104px; max-height: 84px; object-fit: contain; }
.wz-ph-words { font-size: 16px; font-weight: 700; margin-top: 6px; color: #33435a; }
.wz-ph-connect { margin: 10px 0 12px; border-radius: 14px; padding: 13px; text-align: center; font-weight: 700; background: #0e7490; color: #fff; box-shadow: 0 8px 18px rgba(14, 116, 144, .25); }
.wz-ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.wz-ph-tile { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 14px; background: rgba(255, 255, 255, .92); border: 1px solid #e2e8f0; font-weight: 650; font-size: 12.5px; color: #0f1b2d; text-align: left; cursor: pointer; box-shadow: 0 1px 2px rgba(15, 27, 45, .05); }
.wz-ph-tile span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wz-ph-tile.is-selected { border-color: #0891b2; box-shadow: 0 0 0 2px rgba(8, 145, 178, .25); }
.wz-ph-card { background: rgba(255, 255, 255, .95); border: 1px solid #e2e8f0; border-radius: 18px; padding: 12px; margin-bottom: 10px; box-shadow: 0 6px 18px rgba(15, 27, 45, .06); cursor: pointer; }
.wz-ph-card.is-selected { border-color: #0891b2; }
.wz-ph-card-head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.wz-ph-hint { font-size: 12px; color: #5b6b80; margin: 8px 0 0; background: #f3f6fa; border-radius: 10px; padding: 8px 10px; }
.wz-ph-line { font-size: 12.5px; color: #33435a; background: #f3f6fa; border-radius: 10px; padding: 8px 10px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-ph-btn { margin-top: 8px; border-radius: 12px; padding: 10px; text-align: center; color: #fff; font-weight: 700; font-size: 13px; }
.wz-ph-video { margin-top: 8px; height: 120px; border-radius: 12px; background: #0f1b2d; color: #fff; display: grid; place-items: center; font-size: 26px; }
.wz-ph-input { margin-top: 8px; height: 60px; border-radius: 10px; border: 1px dashed #cbd5e1; color: #94a3b8; padding: 8px; font-size: 12px; }
.wz-ph-divider { display: flex; align-items: center; gap: 8px; margin: 14px 0 10px; color: #5b6b80; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.wz-ph-divider::before, .wz-ph-divider::after { content: ""; flex: 1; border-top: 1px dashed #b8c4d4; }
.wz-dialog-title { font-size: 18px; font-weight: 800; margin: 0 0 14px; }
.wz-dialog-text { font-size: 15px; font-weight: 600; margin: 0 0 18px; }
.wz-dialog:has(.wz-type-grid) { max-width: 720px; }
.wz-type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 16px; max-height: 60vh; overflow-y: auto; }
.wz-type-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 12px; border-radius: 14px;
  border: 1px solid var(--wz-border); background: var(--wz-surface); color: var(--wz-text); cursor: pointer; transition: border-color var(--wz-fast), background var(--wz-fast); }
.wz-type-card:hover, .wz-type-card:focus-visible { border-color: var(--wz-accent-2); background: var(--wz-accent-soft); outline: 0; }
.wz-type-card .wz-tile-icon { grid-row: 1 / span 2; }
.wz-type-name { font-weight: 700; font-size: 14px; } .wz-type-help { font-size: 12px; color: var(--wz-muted); }
@media (max-width: 1399px) { .wz-b-body { grid-template-columns: 270px minmax(0, 1fr) 330px; } .wz-ph { width: 310px; } .wz-ed-grid2 { grid-template-columns: 1fr; } }
@media (max-width: 1199px) { .wz-b-body { grid-template-columns: 270px minmax(0, 1fr); } .wz-b-preview { grid-column: 1 / -1; position: static; display: grid; justify-items: center; } }
@media (max-width: 767px) { .wz-builder { padding: 14px 12px 24px; } .wz-b-body { grid-template-columns: 1fr; } .wz-b-list { position: static; max-height: none; } .wz-b-head h1 { font-size: 21px; } }

/* the hidden attribute always wins over component display rules */
[hidden] { display: none !important; }
.wz-ph-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.wz-ph-tile { min-width: 0; }
.wz-code { background: var(--wz-surface-2); color: var(--wz-text-2); border: 1px solid var(--wz-border); border-radius: 12px; padding: 12px 14px; font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.wz-key-secret { display: block; padding: 12px; border-radius: 10px; background: var(--wz-surface-2); border: 1px solid var(--wz-border); color: var(--wz-text); font-size: 13px; word-break: break-all; margin-bottom: 16px; user-select: all; }
.wz-list > li.is-revoked { opacity: .55; }
.wz-dialog .wz-check { margin: 6px 0; font-weight: 500; }

/* ——— sidebar v2: guest-page buttons, management at the bottom ——— */
.sidebar-menu > li.header.wz-menu-pages { margin-top: 6px; }
.sidebar-menu > li.header.wz-menu-manage { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--wz-border); }
.sidebar-menu .wz-menu-dot { color: var(--wz-dot, var(--wz-muted)) !important; }
.sidebar-menu > li > a .wz-menu-off { color: var(--wz-muted); }
.sidebar-menu > li.wz-menu-hint > a { color: var(--wz-muted) !important; font-size: 12.5px; white-space: normal; }

/* ——— constructor: design item, uploads, ranges, ad formats ——— */
.wz-tile-design { background: linear-gradient(135deg, var(--wz-accent), var(--wz-violet)); color: #fff; }
.wz-b-item-design { margin: 4px 0 2px; }
.wz-upload-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.wz-upload-thumb { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; border: 1px solid var(--wz-border); background: var(--wz-surface-2); }
.wz-upload-wide { width: 120px; object-fit: cover; }
.wz-inline { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--wz-muted); }
.wz-range-row { display: flex; align-items: center; gap: 10px; flex: 1.4; }
.wz-range { flex: 1; accent-color: var(--wz-accent); }
.wz-range-row output { min-width: 26px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.wz-ed-section > .wz-seg { margin-bottom: 0; }
.wz-ed-section > .wz-seg + * { margin-top: 10px; }
.wz-ed-sub { margin-bottom: 12px; }
.wz-format-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.wz-format { display: grid; gap: 4px; justify-items: start; text-align: left; padding: 10px; border-radius: 12px; border: 1px solid var(--wz-border); background: var(--wz-surface); color: var(--wz-text); cursor: pointer; }
.wz-format b { font-size: 12.5px; line-height: 1.25; } .wz-format small { color: var(--wz-muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.wz-format-shape { display: block; height: 30px; max-width: 100%; border-radius: 5px; background: linear-gradient(135deg, var(--wz-accent-soft), var(--wz-violet-soft)); border: 1px dashed var(--wz-border-strong); }
.wz-format.is-on { border-color: var(--wz-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--wz-accent) 25%, transparent); }
.wz-format[disabled] { opacity: .4; cursor: not-allowed; }

/* ——— phone preview driven by the page design ——— */
.wz-ph-screen { position: relative; isolation: isolate; background: none !important; font-family: var(--ph-font, var(--wz-font)); }
.wz-ph-bg { position: absolute; inset: -20px; z-index: -2; background: linear-gradient(160deg, #0e7490, #1d4ed8); }
.wz-ph-dim { position: absolute; inset: 0; z-index: -1; background: #000; }
.wz-ph-logo-text { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.wz-ph-logo-img { max-width: 140px; max-height: 90px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .2)); }
.wz-ph-logo-empty { display: inline-block; padding: 14px 18px; border: 1.5px dashed rgba(255, 255, 255, .7); border-radius: 14px; color: #fff; font-size: 12px; font-weight: 600; }
.wz-ph-words { color: #fff !important; text-shadow: 0 2px 10px rgba(0, 0, 0, .25); font-size: 19px !important; font-weight: 800 !important; letter-spacing: -.01em; }
.wz-ph-subtitle { color: rgba(255, 255, 255, .88); font-size: 13px; margin-top: 4px; }
.wz-ph-connect { background: var(--ph-accent, #0e7490) !important; color: #fff !important; box-shadow: 0 10px 24px color-mix(in srgb, var(--ph-accent, #0e7490) 45%, transparent) !important; }
.wz-ph-ad { position: relative; width: 100%; margin-bottom: 10px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; color: #fff; font-size: 11.5px; font-weight: 700;
  background: repeating-linear-gradient(45deg, rgba(15, 27, 45, .55), rgba(15, 27, 45, .55) 10px, rgba(15, 27, 45, .45) 10px, rgba(15, 27, 45, .45) 20px); border: 1px solid rgba(255, 255, 255, .25); }
.wz-ph-ad > span { background: rgba(0, 0, 0, .35); padding: 4px 8px; border-radius: 8px; }
/* card surfaces */
.wz-surface-dark .wz-ph-card, .wz-surface-dark .wz-ph-tile { background: rgba(15, 23, 42, .92); border-color: rgba(255, 255, 255, .08); color: #e6edf7; }
.wz-surface-dark .wz-ph-hint, .wz-surface-dark .wz-ph-line { background: rgba(255, 255, 255, .06); color: #c4d0e1; }
.wz-surface-glass .wz-ph-card, .wz-surface-glass .wz-ph-tile { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.wz-surface-glass .wz-ph-hint, .wz-surface-glass .wz-ph-line { background: rgba(255, 255, 255, .16); color: #fff; }
.wz-ph-divider { color: rgba(255, 255, 255, .85) !important; }
.wz-ph-divider::before, .wz-ph-divider::after { border-top-color: rgba(255, 255, 255, .45) !important; }
/* corners */
.wz-radius-soft .wz-ph-card, .wz-radius-soft .wz-ph-tile, .wz-radius-soft .wz-ph-connect, .wz-radius-soft .wz-ph-ad { border-radius: 8px !important; }
.wz-radius-pill .wz-ph-tile, .wz-radius-pill .wz-ph-connect { border-radius: 999px !important; }
.wz-radius-pill .wz-ph-card, .wz-radius-pill .wz-ph-ad { border-radius: 22px !important; }
/* fonts */
.wz-font-rounded { --ph-font: ui-rounded, "SF Pro Rounded", "Nunito", "Inter", system-ui, sans-serif; }
.wz-font-serif { --ph-font: Georgia, "Times New Roman", serif; }
