/* JEROX 2.0 – isolated visual layer; existing workflows and permissions remain authoritative */
:root{color-scheme:light;--j2-bg:#f3f6fb;--j2-surface:#fff;--j2-ink:#17253b;--j2-muted:#66758a;--j2-line:#e1e7f0;--j2-accent:#2763e7;--j2-accent-soft:#eaf0ff;--j2-shadow:0 8px 28px rgba(22,40,74,.045)}
html[data-j2-theme=dark]{color-scheme:dark;--j2-bg:#101827;--j2-surface:#1b2739;--j2-ink:#e9f0fa;--j2-muted:#acbad0;--j2-line:#344258;--j2-accent:#86aaff;--j2-accent-soft:#283c60;--j2-shadow:0 8px 28px rgba(0,0,0,.14)}
body[data-jerox2=true]{background:var(--j2-bg);color:var(--j2-ink);font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;line-height:1.5}
body[data-jerox2=true] .app-shell{min-height:100vh;background:var(--j2-bg)}
body[data-jerox2=true] .app-sidebar{background:#14243a;color:#eaf1ff;border-right:1px solid #2b3a50}
body[data-jerox2=true] .sidebar-brand{border-bottom-color:rgba(255,255,255,.1)}
body[data-jerox2=true] .sidebar-brand-mark{background:#4779ec;color:#fff;border-radius:13px}
body[data-jerox2=true] .sidebar-link{border-radius:10px;transition:background .15s,color .15s}
body[data-jerox2=true] .sidebar-link:hover{background:rgba(255,255,255,.1)}
body[data-jerox2=true] .sidebar-link.active{background:#2c4b81;color:#fff}
.j2-nav-heading{display:flex;justify-content:space-between;align-items:center;width:100%;border:0;background:transparent;color:#a9bbd7;font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;padding:17px 12px 8px;cursor:pointer;text-align:left}
.j2-nav-heading span{font-size:16px;transition:transform .2s}.j2-nav-heading[aria-expanded=false] span{transform:rotate(-90deg)}
.j2-nav-group[hidden]{display:none!important}
body[data-jerox2=true] .app-topbar{background:var(--j2-surface);color:var(--j2-ink);border-bottom:1px solid var(--j2-line);box-shadow:none}
body[data-jerox2=true] .app-content{max-width:1680px;width:100%;margin:0 auto;padding:28px clamp(16px,3vw,48px) 64px!important}
body[data-jerox2=true] h1,body[data-jerox2=true] h2,body[data-jerox2=true] h3{color:var(--j2-ink);letter-spacing:-.025em}
body[data-jerox2=true] h1{font-size:clamp(24px,2.3vw,34px);font-weight:780}
body[data-jerox2=true] .card,body[data-jerox2=true] .stat,body[data-jerox2=true] .card-lite,body[data-jerox2=true] .open-job-card,body[data-jerox2=true] .plan-card{background:var(--j2-surface);color:var(--j2-ink);border:1px solid var(--j2-line);border-radius:16px;box-shadow:var(--j2-shadow)}
body[data-jerox2=true] .stat{padding:20px}body[data-jerox2=true] .stat span,body[data-jerox2=true] .muted{color:var(--j2-muted)}body[data-jerox2=true] .stat b{color:var(--j2-ink);font-size:clamp(20px,2vw,29px)}
body[data-jerox2=true] .btn{background:#2763e7;color:#fff;border-radius:10px;transition:filter .15s,transform .15s}body[data-jerox2=true] .btn:hover{filter:brightness(1.08)}body[data-jerox2=true] .btn.green{background:#16835b}body[data-jerox2=true] .btn.red{background:#c53b4a}body[data-jerox2=true] .btn.light{background:var(--j2-accent-soft);color:var(--j2-ink)}
body[data-jerox2=true] input:not([type=checkbox]):not([type=radio]),body[data-jerox2=true] select,body[data-jerox2=true] textarea{background:var(--j2-surface);color:var(--j2-ink);border:1px solid var(--j2-line);border-radius:10px;max-width:100%}
body[data-jerox2=true] input:focus-visible,body[data-jerox2=true] select:focus-visible,body[data-jerox2=true] textarea:focus-visible,body[data-jerox2=true] button:focus-visible,body[data-jerox2=true] a:focus-visible{outline:3px solid var(--j2-accent);outline-offset:2px}
body[data-jerox2=true] th{color:var(--j2-muted);font-size:12px;text-transform:uppercase;letter-spacing:.04em;background:var(--j2-bg)}body[data-jerox2=true] td,body[data-jerox2=true] th{border-bottom:1px solid var(--j2-line)}
body[data-jerox2=true] .table-scroll{border-radius:12px;overflow:auto}body[data-jerox2=true] .flash{background:var(--j2-accent-soft);color:var(--j2-ink);border:1px solid var(--j2-line)}
.j2-theme-toggle{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid var(--j2-line);border-radius:10px;background:var(--j2-surface);color:var(--j2-ink);font:inherit;font-size:13px;cursor:pointer}
html[data-j2-theme=dark] body[data-jerox2=true] .topbar-user-avatar{color:#fff}html[data-j2-theme=dark] body[data-jerox2=true] a:not(.sidebar-link):not(.btn){color:var(--j2-accent)}
@media(max-width:760px){body[data-jerox2=true] .app-content{padding:18px 14px 45px!important}.j2-theme-toggle span{display:none}body[data-jerox2=true] .stats{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-jerox2=true] .card{padding:15px}body[data-jerox2=true] table{min-width:560px}body[data-jerox2=true] .table-scroll{overflow-x:auto}}
@media(max-width:440px){body[data-jerox2=true] .stats{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){body[data-jerox2=true] *,body[data-jerox2=true] *:before,body[data-jerox2=true] *:after{transition:none!important;animation:none!important}}

/* JEROX 2.0 – cross-role visual refinements */
body[data-jerox2=true] .page-head,body[data-jerox2=true] .page-title-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:24px}
body[data-jerox2=true] .page-eyebrow{color:var(--j2-accent);font-weight:800;letter-spacing:.11em;font-size:11px}
body[data-jerox2=true] .page-description,body[data-jerox2=true] .section-head p{color:var(--j2-muted)}
body[data-jerox2=true] .dashboard-stats,body[data-jerox2=true] .report-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin-bottom:24px}
body[data-jerox2=true] .dashboard-stat,body[data-jerox2=true] .report-kpi{background:var(--j2-surface);border:1px solid var(--j2-line);border-radius:16px;padding:20px;box-shadow:var(--j2-shadow);min-width:0}
body[data-jerox2=true] .dashboard-stat-label,body[data-jerox2=true] .report-kpi>span{display:block;color:var(--j2-muted);font-size:13px;font-weight:650}
body[data-jerox2=true] .dashboard-stat-value,body[data-jerox2=true] .report-kpi>strong{display:block;font-size:clamp(22px,2.1vw,30px);letter-spacing:-.035em;margin:8px 0;color:var(--j2-ink);overflow-wrap:anywhere}
body[data-jerox2=true] .dashboard-stat-caption,body[data-jerox2=true] .report-kpi>small{color:var(--j2-muted);font-size:12px}
body[data-jerox2=true] .report-filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px}
body[data-jerox2=true] .report-filter-grid label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--j2-muted)}
body[data-jerox2=true] .report-filter-actions,body[data-jerox2=true] .report-export-main{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
body[data-jerox2=true] .report-section{margin:16px 0;padding:18px}body[data-jerox2=true] .report-section>summary{cursor:pointer;font-weight:750;padding:6px}
body[data-jerox2=true] .table-scroll{max-width:100%;overflow:auto}body[data-jerox2=true] table{border-collapse:collapse;width:100%}body[data-jerox2=true] td,body[data-jerox2=true] th{padding:12px 14px;text-align:left}
body[data-jerox2=true] tr:hover td{background:var(--j2-accent-soft)}
.j2-insights{margin:18px 0 24px;padding:22px}.j2-insights-head{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;margin-bottom:18px}.j2-insights-head h2{margin:0}.j2-insights-head p{margin:0;color:var(--j2-muted);font-size:13px}
.j2-bar-row{display:grid;grid-template-columns:minmax(115px,180px) 1fr minmax(85px,145px);align-items:center;gap:14px;margin:14px 0;font-size:13px}.j2-bar-track{height:13px;border-radius:20px;background:var(--j2-accent-soft);overflow:hidden}.j2-bar-fill{height:100%;background:var(--j2-accent);border-radius:20px;width:0}.j2-bar-row output{text-align:right;font-weight:750;font-variant-numeric:tabular-nums}.j2-insights-note{font-size:12px;color:var(--j2-muted);margin-top:14px}
html[data-j2-theme=dark] body[data-jerox2=true] .card,html[data-j2-theme=dark] body[data-jerox2=true] .dashboard-stat{background:var(--j2-surface);color:var(--j2-ink)}
@media(max-width:640px){.j2-bar-row{grid-template-columns:1fr auto;gap:5px}.j2-bar-track{grid-column:1/-1;grid-row:2}.j2-bar-row output{grid-column:2;grid-row:1}body[data-jerox2=true] .report-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){body[data-jerox2=true] .report-kpi-grid{grid-template-columns:1fr}}

/* JEROX 2.0 final consolidation: keyboard, motion and print ergonomics */
body[data-jerox2=true] :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid var(--j2-accent);outline-offset:3px}
body[data-jerox2=true] .j2-nav-group[hidden]{display:none!important}
body[data-jerox2=true] .table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
body[data-jerox2=true] :is(input,select,textarea){max-width:100%}
@media(prefers-reduced-motion:reduce){body[data-jerox2=true] *,body[data-jerox2=true] *::before,body[data-jerox2=true] *::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media print{body[data-jerox2=true] .app-sidebar,body[data-jerox2=true] .j2-theme-toggle{display:none!important}body[data-jerox2=true] .app-shell{display:block!important}body[data-jerox2=true] .card{box-shadow:none!important;break-inside:avoid}}

/* JEROX 2.0 navigačný systém: všetky budúce moduly používajú rovnaký strom */
.j2-tree{display:flex;flex-direction:column;gap:7px;padding:14px 11px 24px!important}
.j2-nav-section{border:1px solid rgba(185,207,240,.12);border-radius:13px;overflow:hidden;background:rgba(255,255,255,.025)}
.j2-nav-section>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:13px 15px;color:#dbe8fc;font-size:13px;font-weight:750;letter-spacing:.01em}
.j2-nav-section>summary::-webkit-details-marker{display:none}
.j2-nav-section>summary:after{content:'⌄';font-size:17px;color:#a8c1e6;transition:transform .15s}
.j2-nav-section[open]>summary:after{transform:rotate(180deg)}
.j2-nav-section[open]{background:rgba(88,129,196,.13);border-color:rgba(166,196,244,.24)}
.j2-nav-items{display:flex;flex-direction:column;gap:3px;padding:0 8px 9px 14px;border-left:2px solid rgba(135,178,247,.3);margin-left:14px}
.j2-nav-items .sidebar-link{font-size:12.5px;min-height:36px;padding:9px 11px!important;display:flex;align-items:center}
.j2-tree>.sidebar-link{font-weight:750;padding:12px 14px!important}
.j2-nav-section>summary:focus-visible{outline:2px solid #9bc0ff;outline-offset:-3px}
body[data-jerox2=true] .app-sidebar{box-shadow:8px 0 32px rgba(10,25,52,.1)}
body[data-jerox2=true] .app-topbar{min-height:76px}
body[data-jerox2=true] .app-content{padding-top:35px!important}
body[data-jerox2=true] .card{box-shadow:0 8px 35px rgba(17,43,83,.06)}
@media(max-width:760px){body[data-jerox2=true] .app-content{padding-top:20px!important}}

/* JEROX 2.0 selectable design systems – all honor the separate light/dark toggle. */
.j2-style-picker{display:inline-flex;align-items:center;gap:7px;color:var(--j2-ink);font-size:13px;font-weight:650}.j2-style-picker select{font:inherit;min-width:150px;max-width:210px;padding:8px 10px;border-radius:10px;border:1px solid var(--j2-line);background:var(--j2-surface);color:var(--j2-ink)}
html[data-j2-style=executive]{--j2-bg:#eef3fa;--j2-surface:#fff;--j2-ink:#132842;--j2-muted:#64748b;--j2-line:#dbe5f1;--j2-accent:#235ed5;--j2-accent-soft:#e6efff;--j2-shadow:0 10px 28px rgba(24,54,91,.08)}
html[data-j2-style=industrial]{--j2-bg:#eaf0f4;--j2-surface:#fff;--j2-ink:#1d2b32;--j2-muted:#60727c;--j2-line:#cad6dc;--j2-accent:#c56b18;--j2-accent-soft:#fff0db;--j2-shadow:0 2px 8px rgba(19,35,43,.08)}
html[data-j2-style=minimal]{--j2-bg:#fafafa;--j2-surface:#fff;--j2-ink:#20252c;--j2-muted:#6b7280;--j2-line:#e5e7eb;--j2-accent:#334155;--j2-accent-soft:#f1f5f9;--j2-shadow:none}
html[data-j2-style=command]{--j2-bg:#eaf0f6;--j2-surface:#fff;--j2-ink:#14253c;--j2-muted:#61748b;--j2-line:#ced9e8;--j2-accent:#087eaa;--j2-accent-soft:#ddf5fa;--j2-shadow:0 10px 25px rgba(0,54,81,.08)}
html[data-j2-style=executive-industrial]{--j2-accent:#2763e7}
html[data-j2-theme=dark][data-j2-style=executive]{color-scheme:dark;--j2-bg:#0d1728;--j2-surface:#182840;--j2-ink:#edf4ff;--j2-muted:#afbed1;--j2-line:#30445e;--j2-accent:#83aaff;--j2-accent-soft:#263e62;--j2-shadow:0 8px 24px rgba(0,0,0,.2)}
html[data-j2-theme=dark][data-j2-style=industrial]{color-scheme:dark;--j2-bg:#141d21;--j2-surface:#233037;--j2-ink:#edf3f5;--j2-muted:#b0c0c7;--j2-line:#3c4b52;--j2-accent:#ffb463;--j2-accent-soft:#493727;--j2-shadow:0 5px 18px rgba(0,0,0,.2)}
html[data-j2-theme=dark][data-j2-style=minimal]{color-scheme:dark;--j2-bg:#18191b;--j2-surface:#232528;--j2-ink:#f2f2f3;--j2-muted:#b2b4b9;--j2-line:#3a3d42;--j2-accent:#b9c9e3;--j2-accent-soft:#343a43;--j2-shadow:none}
html[data-j2-theme=dark][data-j2-style=command]{color-scheme:dark;--j2-bg:#080f1c;--j2-surface:#111f32;--j2-ink:#e7f6ff;--j2-muted:#a0b8cd;--j2-line:#28425b;--j2-accent:#55d5f8;--j2-accent-soft:#123b51;--j2-shadow:0 10px 30px rgba(0,0,0,.32)}
html[data-j2-style=industrial] body[data-jerox2=true] .app-sidebar{background:#27343b}html[data-j2-style=minimal] body[data-jerox2=true] .app-sidebar{background:#30343b}html[data-j2-style=command] body[data-jerox2=true] .app-sidebar{background:#0b1c30}
html[data-j2-style=industrial] body[data-jerox2=true] :is(.card,.stat,.dashboard-stat,.report-kpi){border-radius:7px}html[data-j2-style=minimal] body[data-jerox2=true] :is(.card,.stat,.dashboard-stat,.report-kpi){border-radius:5px}html[data-j2-style=command] body[data-jerox2=true] :is(.card,.stat,.dashboard-stat,.report-kpi){border-radius:12px;border-top:2px solid var(--j2-accent)}
html[data-j2-style] body[data-jerox2=true] .btn:not(.green):not(.red):not(.light){background:var(--j2-accent);color:var(--j2-bg)}html[data-j2-style] body[data-jerox2=true] .j2-bar-fill{background:var(--j2-accent)}
@media(max-width:760px){.j2-style-picker span{display:none}.j2-style-picker select{min-width:100px;max-width:135px;font-size:12px}}


/* JEROX 2.0 / Professional Design Systems R2 – distinct layouts, no backend changes */
body[data-jerox2=true]{--j2-sidebar:#172338;--j2-side-ink:#dce7f6;--j2-radius:18px;--j2-card-padding:24px;--j2-head-font:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;--j2-row-h:52px;--j2-nav-radius:11px;font-feature-settings:"tnum" 1}
body[data-jerox2=true] .app-sidebar{background:var(--j2-sidebar)!important;color:var(--j2-side-ink)!important;box-shadow:4px 0 30px rgba(10,25,45,.1)!important}
body[data-jerox2=true] .app-content{max-width:1780px!important;padding:42px clamp(20px,3vw,58px) 72px!important}
body[data-jerox2=true] .app-topbar{min-height:78px;backdrop-filter:blur(12px)}
body[data-jerox2=true] .sidebar-brand{padding-bottom:23px}
body[data-jerox2=true] .j2-nav-section{border-radius:var(--j2-nav-radius);transition:border-color .18s,background .18s}
body[data-jerox2=true] .j2-nav-section[open]{border-color:rgba(164,192,233,.45);background:rgba(122,155,210,.12)}
body[data-jerox2=true] .j2-nav-section>summary{min-height:49px}
body[data-jerox2=true] :is(.dashboard-stat,.report-kpi,.card,.stat,.card-lite,.plan-card,.open-job-card){border-radius:var(--j2-radius)!important;box-shadow:var(--j2-shadow)!important}
body[data-jerox2=true] :is(.dashboard-stat,.report-kpi){padding:var(--j2-card-padding)!important;position:relative;overflow:hidden;transition:transform .2s,box-shadow .2s}
body[data-jerox2=true] :is(.dashboard-stat,.report-kpi):hover{transform:translateY(-3px)}
body[data-jerox2=true] :is(.dashboard-stat-value,.report-kpi>strong,.stat b){font-variant-numeric:tabular-nums;font-weight:800;letter-spacing:-.055em}
body[data-jerox2=true] :is(.dashboard-stat-label,.report-kpi>span){letter-spacing:.035em;text-transform:uppercase;font-size:11px!important;font-weight:800!important}
body[data-jerox2=true] :is(.dashboard-stat,.report-kpi)::before{content:"";display:block;width:38px;height:4px;border-radius:8px;background:var(--j2-accent);margin-bottom:18px;opacity:.85}
body[data-jerox2=true] :is(.dashboard-stats,.report-kpi-grid){grid-template-columns:repeat(5,minmax(0,1fr));gap:16px!important}
body[data-jerox2=true] .page-head{margin-bottom:30px!important}
body[data-jerox2=true] .page-eyebrow{font-size:11px!important;letter-spacing:.15em!important}
body[data-jerox2=true] h1{font-family:var(--j2-head-font);font-size:clamp(29px,2.7vw,43px)!important;font-weight:820!important;line-height:1.12;letter-spacing:-.052em!important}
body[data-jerox2=true] h2{font-weight:790;letter-spacing:-.035em}
body[data-jerox2=true] .table-scroll{border:1px solid var(--j2-line);border-radius:var(--j2-radius)!important;box-shadow:var(--j2-shadow);background:var(--j2-surface)}
body[data-jerox2=true] table{font-variant-numeric:tabular-nums}
body[data-jerox2=true] th{height:47px;font-size:11px!important;letter-spacing:.075em!important}
body[data-jerox2=true] td{height:var(--j2-row-h);vertical-align:middle}
body[data-jerox2=true] :is(.btn,button):not(.j2-theme-toggle):not(.mobile-menu-toggle){transition:transform .17s,filter .17s,box-shadow .17s}
body[data-jerox2=true] .btn:hover{transform:translateY(-1px)}
body[data-jerox2=true] .j2-style-picker select{min-width:196px;padding:10px 13px;font-weight:750;border-radius:11px}
/* EXECUTIVE – premium editorial hierarchy, asymmetric KPI, soft depth */
html[data-j2-style=executive] body[data-jerox2=true]{--j2-sidebar:#0c203a;--j2-radius:21px;--j2-card-padding:26px;--j2-shadow:0 16px 44px rgba(25,54,92,.095)}
html[data-j2-style=executive] body[data-jerox2=true] .app-content{background:radial-gradient(ellipse at 100% 0%,rgba(77,125,212,.12),transparent 38%)}
html[data-j2-style=executive] body[data-jerox2=true] .dashboard-stats{grid-template-columns:1.4fr repeat(4,1fr)}
html[data-j2-style=executive] body[data-jerox2=true] .dashboard-stat:first-child{background:linear-gradient(145deg,#163e75,#0b2445)!important;color:#fff!important;border-color:#214c83!important}
html[data-j2-style=executive] body[data-jerox2=true] .dashboard-stat:first-child :is(.dashboard-stat-label,.dashboard-stat-value,.dashboard-stat-caption){color:#fff!important}
html[data-j2-style=executive] body[data-jerox2=true] .dashboard-stat:first-child::before{background:#8ac4ff;width:55px}
html[data-j2-style=executive] body[data-jerox2=true] .dashboard-stat:first-child .dashboard-stat-value{font-size:clamp(27px,2.6vw,42px)!important}
html[data-j2-style=executive] body[data-jerox2=true] .j2-nav-section>summary{font-weight:700;letter-spacing:.025em}
/* INDUSTRIAL – dense operational grid, amber signal bars, machine-console feel */
html[data-j2-style=industrial] body[data-jerox2=true]{--j2-sidebar:#202e34;--j2-radius:7px;--j2-nav-radius:5px;--j2-card-padding:21px;--j2-row-h:59px;--j2-shadow:0 2px 0 rgba(24,50,60,.055)}
html[data-j2-style=industrial] body[data-jerox2=true] .app-topbar{border-bottom:3px solid #d67c20}
html[data-j2-style=industrial] body[data-jerox2=true] .dashboard-stat{border-left:5px solid #d67c20!important}
html[data-j2-style=industrial] body[data-jerox2=true] .dashboard-stat::before{width:24px;height:5px;border-radius:0;background:#d67c20}
html[data-j2-style=industrial] body[data-jerox2=true] .dashboard-stat:nth-child(2){border-left-color:#22866d!important}
html[data-j2-style=industrial] body[data-jerox2=true] .dashboard-stat:nth-child(2)::before{background:#22866d}
html[data-j2-style=industrial] body[data-jerox2=true] .dashboard-stat:nth-child(5){border-left-color:#b94b46!important}
html[data-j2-style=industrial] body[data-jerox2=true] .dashboard-stat:nth-child(5)::before{background:#b94b46}
html[data-j2-style=industrial] body[data-jerox2=true] .dashboard-stats{gap:11px!important}
html[data-j2-style=industrial] body[data-jerox2=true] th{background:#dbe4e8!important;color:#344953!important}
html[data-j2-style=industrial][data-j2-theme=dark] body[data-jerox2=true] th{background:#293940!important;color:#b8cbd2!important}
html[data-j2-style=industrial] body[data-jerox2=true] .btn:not(.green):not(.red):not(.light){background:#c46b18!important;color:#fff!important}
/* MINIMAL – calm monochrome, spacious typography, no card chrome */
html[data-j2-style=minimal] body[data-jerox2=true]{--j2-sidebar:#222832;--j2-radius:2px;--j2-nav-radius:3px;--j2-card-padding:21px;--j2-row-h:57px;--j2-shadow:none;--j2-head-font:system-ui,-apple-system,"Segoe UI",sans-serif}
html[data-j2-style=minimal] body[data-jerox2=true] .app-content{max-width:1510px!important}
html[data-j2-style=minimal] body[data-jerox2=true] .dashboard-stats{gap:0!important;border-top:1px solid var(--j2-line);border-bottom:1px solid var(--j2-line)}
html[data-j2-style=minimal] body[data-jerox2=true] .dashboard-stat{border:0!important;border-right:1px solid var(--j2-line)!important;background:transparent!important;box-shadow:none!important;padding:25px 19px!important}
html[data-j2-style=minimal] body[data-jerox2=true] .dashboard-stat:last-child{border-right:0!important}
html[data-j2-style=minimal] body[data-jerox2=true] :is(.dashboard-stat,.report-kpi)::before{height:1px;width:22px;background:var(--j2-muted)}
html[data-j2-style=minimal] body[data-jerox2=true] .j2-nav-section{border-color:transparent;background:transparent}
html[data-j2-style=minimal] body[data-jerox2=true] .j2-nav-section[open]{border-color:rgba(255,255,255,.2)}
html[data-j2-style=minimal] body[data-jerox2=true] .table-scroll{box-shadow:none;border-radius:2px!important}
html[data-j2-style=minimal] body[data-jerox2=true] th{background:transparent!important;border-bottom:2px solid var(--j2-line)}
/* COMMAND – genuine dark command centre in either theme: light mode is slate, dark mode midnight */
html[data-j2-style=command]{color-scheme:dark;--j2-bg:#172638;--j2-surface:#22354b;--j2-ink:#f1f8ff;--j2-muted:#b7c8da;--j2-line:#38516a;--j2-accent:#5bd5ed;--j2-accent-soft:#24485d;--j2-shadow:0 14px 36px rgba(0,8,19,.24)}
html[data-j2-style=command][data-j2-theme=dark]{--j2-bg:#07121f;--j2-surface:#102237;--j2-ink:#e8f6ff;--j2-muted:#a9c4d5;--j2-line:#29445c;--j2-accent:#60e0f6;--j2-accent-soft:#15374d;--j2-shadow:0 18px 42px rgba(0,0,0,.38)}
html[data-j2-style=command] body[data-jerox2=true]{--j2-sidebar:#061526;--j2-radius:12px;--j2-nav-radius:8px;--j2-card-padding:23px;background:var(--j2-bg)!important;color:var(--j2-ink)!important}
html[data-j2-style=command] body[data-jerox2=true] :is(.app-shell,.app-main,.app-content){background:var(--j2-bg)!important;color:var(--j2-ink)!important}
html[data-j2-style=command] body[data-jerox2=true] .app-content{background-image:linear-gradient(rgba(100,203,237,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(100,203,237,.025) 1px,transparent 1px)!important;background-size:36px 36px!important}
html[data-j2-style=command] body[data-jerox2=true] :is(.card,.stat,.dashboard-stat,.report-kpi,.table-scroll,.app-topbar){background:var(--j2-surface)!important;color:var(--j2-ink)!important;border-color:var(--j2-line)!important}
html[data-j2-style=command] body[data-jerox2=true] :is(.dashboard-stat-label,.dashboard-stat-caption,.report-kpi>span,.report-kpi>small,.muted,.page-description){color:var(--j2-muted)!important}
html[data-j2-style=command] body[data-jerox2=true] :is(.dashboard-stat-value,.report-kpi>strong,h1,h2,h3,.stat b){color:var(--j2-ink)!important}
html[data-j2-style=command] body[data-jerox2=true] :is(.dashboard-stat,.report-kpi){border-top:2px solid #5bd5ed!important}
html[data-j2-style=command] body[data-jerox2=true] :is(th,thead){background:#193147!important;color:#a6d6e8!important}
html[data-j2-style=command] body[data-jerox2=true] :is(td,th){border-color:var(--j2-line)!important;color:var(--j2-ink)!important}
html[data-j2-style=command] body[data-jerox2=true] tr:hover td{background:#26455a!important}
html[data-j2-style=command] body[data-jerox2=true] :is(input,select,textarea,.j2-theme-toggle){background:#193249!important;color:#f1faff!important;border-color:#47627c!important}
html[data-j2-style=command] body[data-jerox2=true] .btn:not(.green):not(.red):not(.light){background:#087ca5!important;color:#fff!important}
html[data-j2-style=command] body[data-jerox2=true] .dashboard-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
html[data-j2-style=command] body[data-jerox2=true] .dashboard-stat-value{font-size:clamp(22px,2vw,32px)!important}
/* HYBRID – executive KPI hero + practical industrial service table */
html[data-j2-style=executive-industrial] body[data-jerox2=true]{--j2-sidebar:#15243a;--j2-radius:17px;--j2-card-padding:24px;--j2-shadow:0 9px 30px rgba(23,51,91,.09)}
html[data-j2-style=executive-industrial] body[data-jerox2=true] .dashboard-stats{grid-template-columns:1.3fr repeat(4,1fr)}
html[data-j2-style=executive-industrial] body[data-jerox2=true] .dashboard-stat:first-child{background:linear-gradient(130deg,#194a84,#2563b4)!important;border:0!important}
html[data-j2-style=executive-industrial] body[data-jerox2=true] .dashboard-stat:first-child :is(.dashboard-stat-label,.dashboard-stat-value,.dashboard-stat-caption){color:#fff!important}
html[data-j2-style=executive-industrial] body[data-jerox2=true] .dashboard-stat:first-child::before{background:#b1dfff}
html[data-j2-style=executive-industrial] body[data-jerox2=true] .table-scroll{border-top:3px solid #1a8c81}
html[data-j2-style=executive-industrial] body[data-jerox2=true] .dashboard-stat:nth-child(5)::before{background:#d48c31}
/* Respect existing dark mode across all five variants, not only the command style */
html[data-j2-theme=dark] body[data-jerox2=true] :is(.dashboard-stat,.report-kpi,.card,.stat,.table-scroll){color:var(--j2-ink)}
html[data-j2-theme=dark] body[data-jerox2=true] :is(.dashboard-stat-value,.report-kpi>strong){color:var(--j2-ink)}
@media(max-width:1300px){body[data-jerox2=true] :is(.dashboard-stats,.report-kpi-grid),html[data-j2-style] body[data-jerox2=true] .dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:860px){body[data-jerox2=true] :is(.dashboard-stats,.report-kpi-grid),html[data-j2-style] body[data-jerox2=true] .dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-j2-style=minimal] body[data-jerox2=true] .dashboard-stat:nth-child(2n){border-right:0!important}}
@media(max-width:560px){body[data-jerox2=true] .app-content{padding:20px 14px 45px!important}body[data-jerox2=true] :is(.dashboard-stats,.report-kpi-grid),html[data-j2-style] body[data-jerox2=true] .dashboard-stats{grid-template-columns:1fr}html[data-j2-style=minimal] body[data-jerox2=true] .dashboard-stat{border-right:0!important;border-bottom:1px solid var(--j2-line)!important}body[data-jerox2=true] .j2-style-picker select{min-width:110px;max-width:150px}}
@media print{body[data-jerox2=true] .dashboard-stat{box-shadow:none!important;transform:none!important}body[data-jerox2=true] .j2-style-picker{display:none!important}}
@media(prefers-reduced-motion:reduce){body[data-jerox2=true] :is(.dashboard-stat,.report-kpi){transition:none!important}}

/* JEROX 2.0 R3: genuine data-bound visualizations */
.j2-analytics{margin:30px 0}.j2-analytics-header{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px;flex-wrap:wrap}.j2-analytics-header h2{margin:6px 0;font-size:clamp(23px,2vw,30px)}.j2-analytics-header p{margin:0;color:var(--j2-muted,#64748b);font-size:13px}.j2-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.j2-chart-panel{padding:24px!important;min-width:0}.j2-chart-wide{grid-column:1/-1}.j2-chart-title{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px;margin-bottom:23px}.j2-chart-title h3{font-size:17px;margin:0}.j2-chart-title span{font-size:12px;color:var(--j2-muted,#64748b)}.j2-donut-layout{display:flex;align-items:center;gap:25px;flex-wrap:wrap}.j2-donut{width:190px;height:190px;flex:none;border-radius:50%;background:var(--j2-accent-soft,#e2e8f0);display:grid;place-items:center;position:relative}.j2-donut:before{content:'';position:absolute;inset:24px;border-radius:50%;background:var(--j2-card,#fff);background:var(--j2-surface,#fff)}.j2-donut-center{position:relative;text-align:center;display:flex;flex-direction:column;gap:5px}.j2-donut-center small{font-size:11px;color:var(--j2-muted,#64748b)}.j2-donut-center strong{font-size:clamp(17px,1.5vw,23px);font-variant-numeric:tabular-nums}.j2-donut-legend{flex:1;min-width:175px;display:grid;gap:14px}.j2-donut-legend>div{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:9px;font-size:12px}.j2-donut-legend strong{font-size:12px;font-variant-numeric:tabular-nums}.j2-legend-dot{width:10px;height:10px;border-radius:3px;display:inline-block}.j2-dot-a{background:var(--j2-accent,#2563eb)}.j2-dot-b{background:#10b981}.j2-dot-c{background:#f59e0b}.j2-horizontal-bars{display:grid;gap:16px}.j2-bar-item-top{display:flex;justify-content:space-between;gap:12px;margin-bottom:7px;font-size:12px}.j2-bar-item-top span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.j2-bar-item-top strong{font-variant-numeric:tabular-nums;white-space:nowrap}.j2-horizontal-bars .j2-bar-track{height:10px;border-radius:6px;background:var(--j2-accent-soft,#e2e8f0);overflow:hidden}.j2-horizontal-bars .j2-bar-fill{height:100%;width:0;border-radius:6px;background:var(--j2-accent,#2563eb);transition:width .45s ease}.j2-chart-foot{margin:18px 0 0;font-size:11px;color:var(--j2-muted,#64748b)}.j2-spark-bars{display:flex;gap:12px;align-items:end;min-height:195px;padding-top:10px}.j2-spark-item{flex:1;min-width:0;text-align:center}.j2-spark-column{height:165px;display:flex;align-items:flex-end;background:var(--j2-accent-soft,#e2e8f0);border-radius:7px;overflow:hidden}.j2-spark-fill{height:0;width:100%;background:var(--j2-accent,#2563eb);border-radius:7px 7px 0 0;transition:height .45s ease}.j2-spark-item a{font-size:10px;display:block;margin-top:7px;overflow:hidden;text-overflow:ellipsis}.j2-report-charts{margin:22px 0}.j2-report-charts .j2-donut{width:160px;height:160px}.j2-report-charts .j2-donut:before{inset:21px}html[data-j2-theme=dark] .j2-donut:before,html[data-j2-style=command] .j2-donut:before{background:var(--j2-card,#1e293b)}@media(max-width:1050px){.j2-chart-grid{grid-template-columns:1fr}.j2-chart-wide{grid-column:auto}}@media(max-width:640px){.j2-chart-panel{padding:17px!important}.j2-donut{width:145px;height:145px}.j2-donut:before{inset:20px}.j2-spark-bars{gap:4px}.j2-spark-item a{font-size:8px}}

/* R10: grid items may shrink below their table width on phones; the table scrolls inside .table-scroll */
.dashboard-grid-2>*{min-width:0}
/* SaaS billing pages (account + platform) */
.saas-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:8px 0}
.saas-grid label{display:flex;flex-direction:column;gap:4px}
.saas-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end}
.saas-breakdown td.num,.saas-breakdown th.num{text-align:right;white-space:nowrap}
.saas-breakdown .saas-total td{font-weight:700;border-top:2px solid var(--j2-line)}
.saas-price-form{border-top:1px solid var(--j2-line);padding-top:8px;margin-top:8px}
.saas-note code{font:inherit;white-space:normal;background:none;padding:0;color:inherit}
.saas-scope{border:1px solid var(--j2-line);border-radius:8px;padding:8px 12px;margin:8px 0;display:flex;flex-wrap:wrap;gap:4px 16px}
.saas-billing-data{display:grid;grid-template-columns:max-content 1fr;gap:4px 12px;margin:8px 0}
.saas-billing-data dt{color:var(--j2-muted)}
.saas-restore{margin-top:12px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}

.saas-warning{border-left:4px solid var(--j2-accent);padding:.5rem .75rem;background:var(--j2-accent-soft);color:var(--j2-ink)}
