/* NovaCore 6.1.151 – UI Revolution
   Ziel: gleiche Funktionsbreite, deutlich kürzere Wege, visuell nach dem freigegebenen
   NovaCore-Leitstand. Die bestehende DOM-/Datenlogik bleibt erhalten. */
:root{
  --rev-bg:#04101b;--rev-bg2:#071827;--rev-card:#081b2b;--rev-card2:#0a2134;
  --rev-line:rgba(68,160,219,.22);--rev-line-soft:rgba(90,178,230,.11);
  --rev-blue:#118dff;--rev-cyan:#19d9ff;--rev-green:#16d995;--rev-red:#ff4667;
  --rev-purple:#8b4dff;--rev-orange:#f38b2f;--rev-gold:#f0b93b;
  --rev-text:#f3f8ff;--rev-muted:#83a0b6;--rev-radius:12px;--rev-nav:226px;
  --nc-appbar-h:60px;--nc-main-nav-w:var(--rev-nav);--nc-main-nav-expanded-w:var(--rev-nav);
}
html{background:#03101a!important}
body.nc-ui-revolution{background:radial-gradient(circle at 56% -15%,rgba(18,114,188,.18),transparent 36%),linear-gradient(180deg,#04111d 0,#061522 45%,#04101a 100%)!important;color:var(--rev-text)!important;padding-top:60px!important;overflow-x:clip}
body.nc-ui-revolution::before{background:linear-gradient(180deg,rgba(31,145,218,.035),transparent 22%,transparent 80%,rgba(0,0,0,.10))!important}
body.nc-ui-revolution .appbar.nc-appbar-modern{position:fixed!important;inset:0 0 auto 0!important;height:60px!important;min-height:60px!important;grid-template-columns:226px minmax(220px,1fr) auto!important;gap:14px!important;padding:0 16px!important;background:rgba(4,17,29,.96)!important;border-bottom:1px solid rgba(53,155,220,.21)!important;box-shadow:0 8px 24px rgba(0,0,0,.20)!important;backdrop-filter:blur(18px)!important;z-index:4000!important}
body.nc-ui-revolution .appbar .brand{height:60px!important;padding:0!important;gap:9px!important}
body.nc-ui-revolution .brand-mark{width:38px!important;height:38px!important;border-radius:9px!important;background:transparent!important;box-shadow:none!important}
body.nc-ui-revolution .brand img{width:34px!important;height:34px!important}
body.nc-ui-revolution .brand-name{font-size:18px!important;letter-spacing:-.02em!important}
body.nc-ui-revolution .brand-sub{font-size:9px!important;color:#7994aa!important}
body.nc-ui-revolution .alpha-badge{display:none!important}
body.nc-ui-revolution .nc-header-context{display:none!important}
body.nc-ui-revolution .actions.nc-header-actions{display:flex!important;justify-content:flex-end!important;gap:8px!important;min-width:0!important}
body.nc-ui-revolution .nc-global-search-trigger{order:-3!important;width:min(510px,44vw)!important;height:38px!important;justify-content:flex-start!important;border:1px solid rgba(83,173,229,.22)!important;background:#071b2c!important;border-radius:9px!important;color:#84a2b8!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important}
body.nc-ui-revolution .nc-global-search-trigger strong{display:block!important;font-weight:550!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.nc-ui-revolution .nc-global-search-trigger .nc-key{margin-left:auto!important;color:#80a1ba!important;background:#0b2740!important;border:1px solid rgba(80,167,223,.20)!important;border-radius:6px!important;padding:3px 7px!important}
body.nc-ui-revolution #globalSync{min-width:auto!important;width:40px!important;height:38px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#7cc9ff!important}
body.nc-ui-revolution #globalSyncButtonLabel{display:none!important}
body.nc-ui-revolution #openLogin{height:38px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#d7e9f5!important;padding:0 8px!important}
body.nc-ui-revolution .nc-icon-btn{width:38px!important;height:38px!important;border-radius:9px!important;background:transparent!important;border:1px solid transparent!important}
body.nc-ui-revolution .nc-icon-btn:hover{background:#0a2236!important;border-color:rgba(78,166,222,.18)!important}
.nc-rev-create{order:-2;position:relative}
.nc-rev-create-main{height:38px!important;display:flex!important;align-items:center!important;gap:8px!important;padding:0 15px!important;border-radius:9px!important;border:1px solid #1a9bff!important;background:linear-gradient(180deg,#138eff,#0873e0)!important;color:white!important;font-weight:800!important;box-shadow:0 8px 20px rgba(14,132,238,.18)!important}
.nc-rev-create-menu{position:fixed;z-index:5200;width:260px;padding:8px;border:1px solid rgba(82,170,226,.24);border-radius:11px;background:#071a2a;box-shadow:0 24px 70px rgba(0,0,0,.55);display:none}
.nc-rev-create.open .nc-rev-create-menu{display:grid;gap:4px}.nc-rev-create-menu button{display:grid;grid-template-columns:30px 1fr;gap:8px;align-items:center;text-align:left;border:0;background:transparent;color:#dceaf4;border-radius:8px;padding:9px}.nc-rev-create-menu button:hover{background:#0b2942}.nc-rev-create-menu small{display:block;color:#6f8ca2;font-size:9px;margin-top:2px}

/* Neue kompakte Hauptnavigation – Legacy-Buttons bleiben unsichtbar im DOM und funktionieren weiter. */
body.nc-ui-revolution>.nc-main-nav{position:fixed!important;left:0!important;top:60px!important;bottom:0!important;width:var(--rev-nav)!important;height:auto!important;display:flex!important;flex-direction:column!important;background:linear-gradient(180deg,#061625,#05121f)!important;border-right:1px solid rgba(54,153,217,.20)!important;box-shadow:8px 0 30px rgba(0,0,0,.12)!important;padding:10px 8px 8px!important;z-index:3900!important;overflow:hidden!important}
body.nc-ui-revolution #mainNavToggle,body.nc-ui-revolution #mainNav>.nc-main-nav-tabs{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}
.nc-rev-nav{display:flex;flex:1;min-height:0;flex-direction:column;gap:3px;overflow-y:auto;overflow-x:hidden;padding:0 1px 8px;scrollbar-width:thin;scrollbar-color:rgba(77,164,219,.18) transparent}
.nc-rev-nav-brand-spacer{height:2px}
.nc-rev-nav-item,.nc-rev-group-head,.nc-rev-subitem{appearance:none;border:0;color:#cbdbe7;background:transparent;font:inherit;cursor:pointer}
.nc-rev-nav-item,.nc-rev-group-head{width:100%;min-height:42px;border-radius:8px;display:grid;grid-template-columns:35px minmax(0,1fr) 18px;gap:6px;align-items:center;padding:0 9px;text-align:left;font-weight:720;position:relative}
.nc-rev-nav-item:hover,.nc-rev-group-head:hover{background:rgba(19,101,157,.12);color:#fff}
.nc-rev-nav-item.active,.nc-rev-group.active>.nc-rev-group-head{background:linear-gradient(90deg,rgba(17,141,255,.29),rgba(17,141,255,.10));color:#fff;box-shadow:inset 3px 0 0 #158dff,0 0 0 1px rgba(45,157,230,.12)}
.nc-rev-icon{width:30px;height:30px;display:grid;place-items:center;color:#e7f6ff}.nc-rev-icon svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nc-rev-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.nc-rev-caret{color:#6689a2;font-size:12px;text-align:center;transition:transform .12s}.nc-rev-group.open>.nc-rev-group-head .nc-rev-caret{transform:rotate(90deg)}
.nc-rev-submenu{display:none;margin:1px 0 4px 37px;padding-left:7px;border-left:1px solid rgba(65,157,216,.22)}.nc-rev-group.open>.nc-rev-submenu{display:grid;gap:1px}
.nc-rev-subitem{min-height:30px;border-radius:7px;padding:6px 8px;text-align:left;color:#819db2;font-size:10.5px;line-height:1.25}.nc-rev-subitem:hover{background:rgba(16,110,170,.13);color:#dff3ff}.nc-rev-subitem.active{color:#6dc9ff;background:rgba(18,122,190,.10);font-weight:800}
.nc-rev-nav-sep{height:1px;background:rgba(65,157,216,.10);margin:5px 8px}
.nc-rev-nav-bottom{display:grid;gap:3px;margin-top:auto;padding-top:6px;border-top:1px solid rgba(65,157,216,.10)}
.nc-rev-nav-toggle{height:34px;display:flex;align-items:center;gap:8px;justify-content:flex-start;border:0;background:transparent;color:#69889f;border-radius:7px;padding:0 10px;cursor:pointer;font-size:10px}.nc-rev-nav-toggle:hover{background:#0a2234;color:#b8d5e7}
.nc-rev-version{padding:7px 10px;color:#496d86;font-size:9px}
body.nc-rev-nav-collapsed{--rev-nav:64px;--nc-main-nav-w:64px;--nc-main-nav-expanded-w:64px}
body.nc-rev-nav-collapsed .nc-rev-label,body.nc-rev-nav-collapsed .nc-rev-caret,body.nc-rev-nav-collapsed .nc-rev-submenu,body.nc-rev-nav-collapsed .nc-rev-nav-toggle span,body.nc-rev-nav-collapsed .nc-rev-version{display:none!important}
body.nc-rev-nav-collapsed .nc-rev-nav-item,body.nc-rev-nav-collapsed .nc-rev-group-head{grid-template-columns:1fr;padding:0;place-items:center}
body.nc-rev-nav-collapsed .nc-rev-icon{width:42px;height:36px}
body.nc-rev-nav-collapsed .nc-rev-nav-toggle{justify-content:center;padding:0}

/* Arbeitsfläche */
body.nc-ui-revolution>.main{width:calc(100% - var(--rev-nav))!important;max-width:none!important;margin:0 0 0 var(--rev-nav)!important;padding:14px 16px 42px!important;min-height:calc(100vh - 60px)!important;transition:width .12s ease,margin-left .12s ease!important}
body.nc-ui-revolution>.nc-contextbar{display:none!important}
body.nc-ui-revolution .app-page{content-visibility:auto;contain-intrinsic-size:900px}
body.nc-ui-revolution .app-page:not(.hidden){content-visibility:visible}
body.nc-ui-revolution .panel{background:linear-gradient(180deg,rgba(8,27,43,.97),rgba(6,22,35,.97))!important;border:1px solid var(--rev-line-soft)!important;border-radius:11px!important;box-shadow:0 10px 26px rgba(0,0,0,.14)!important}
body.nc-ui-revolution .page-header{padding:14px 16px!important;margin-bottom:10px!important;background:transparent!important;border:0!important;box-shadow:none!important}
body.nc-ui-revolution .page-header-copy h1{font-size:26px!important;color:#f4f9ff!important}.page-header-copy p{color:#7f9cb1!important}
body.nc-ui-revolution .btn{border-radius:8px!important;background:#0a2235!important;border-color:rgba(75,163,219,.18)!important;color:#dceaf4!important;box-shadow:none!important}.btn:hover{transform:none!important;background:#0c2c45!important;border-color:rgba(78,177,237,.32)!important}.btn.login{background:linear-gradient(180deg,#148eff,#0876df)!important;border-color:#209fff!important;color:#fff!important;box-shadow:0 8px 20px rgba(10,126,230,.14)!important}
body.nc-ui-revolution input,body.nc-ui-revolution select,body.nc-ui-revolution textarea{background:#061827!important;border-color:rgba(74,162,217,.20)!important;color:#eaf6ff!important;border-radius:8px!important}
body.nc-ui-revolution table{border-collapse:separate!important;border-spacing:0!important}body.nc-ui-revolution th{background:#082035!important;color:#7f9db3!important;border-color:rgba(65,157,216,.12)!important}body.nc-ui-revolution td{background:#071a2a!important;border-color:rgba(65,157,216,.08)!important;color:#bfd1de!important}body.nc-ui-revolution tbody tr:hover td{background:#09243a!important}
body.nc-ui-revolution .factory-section-nav,body.nc-ui-revolution .factory-section-subnav,body.nc-ui-revolution .business-tabs,body.nc-ui-revolution .recipe-hub-tabs{border-color:rgba(70,159,215,.14)!important}
body.nc-ui-revolution .factory-section-tab,body.nc-ui-revolution .factory-group-tab{border-radius:8px!important}

/* Startseite – Leitstand */
#homePage.nc-rev-home-ready>.nc-home-lead,#homePage.nc-rev-home-ready>.nc-home-kpis,#homePage.nc-rev-home-ready>.nc-home-actions-panel{display:none!important}
.nc-rev-home{display:grid;gap:10px;margin-bottom:10px}
.nc-rev-home-title{display:flex;align-items:end;justify-content:space-between;gap:16px;padding:3px 4px 2px}.nc-rev-home-title h1{margin:0;font-size:28px;letter-spacing:-.035em}.nc-rev-home-title p{margin:4px 0 0;color:#819db2;font-size:11px}.nc-rev-home-clock{text-align:right}.nc-rev-home-clock strong{display:block;font-size:17px}.nc-rev-home-clock span{display:block;color:#66859c;font-size:9px;margin-top:3px}
.nc-rev-launchers{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.nc-rev-launcher{min-height:106px;border:1px solid rgba(255,255,255,.06);border-radius:10px;padding:13px;text-align:left;color:white;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;position:relative;cursor:pointer;box-shadow:0 12px 24px rgba(0,0,0,.16)}.nc-rev-launcher::after{content:"";position:absolute;inset:auto -32px -46px auto;width:110px;height:110px;border-radius:50%;background:rgba(255,255,255,.09)}.nc-rev-launcher:hover{filter:brightness(1.06)}.nc-rev-launcher .nc-rev-icon{width:34px;height:34px;border-radius:9px;background:rgba(255,255,255,.12)}.nc-rev-launcher .nc-rev-icon svg{width:21px;height:21px}.nc-rev-launcher strong{display:block;font-size:15px;position:relative;z-index:1}.nc-rev-launcher small{display:block;font-size:9px;color:rgba(255,255,255,.78);margin-top:3px;position:relative;z-index:1}.nc-rev-launcher.blue{background:linear-gradient(135deg,#0d78f3,#1655dd)}.nc-rev-launcher.green{background:linear-gradient(135deg,#0cb56d,#078b64)}.nc-rev-launcher.orange{background:linear-gradient(135deg,#f47d28,#d85924)}.nc-rev-launcher.purple{background:linear-gradient(135deg,#7a3be3,#5427b8)}.nc-rev-launcher.cyan{background:linear-gradient(135deg,#128bc2,#17649b)}.nc-rev-launcher.red{background:linear-gradient(135deg,#e93259,#b81945)}
.nc-rev-glance{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.nc-rev-glance-card{min-height:82px;padding:12px;border:1px solid var(--rev-line-soft);border-radius:10px;background:linear-gradient(180deg,#0a2033,#071a2a);display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center}.nc-rev-glance-card .ico{width:38px;height:38px;display:grid;place-items:center;border-radius:9px;font-size:17px;background:#0d3150}.nc-rev-glance-card strong{display:block;font-size:20px;font-variant-numeric:tabular-nums}.nc-rev-glance-card small{display:block;color:#7290a6;font-size:8.5px;margin-top:2px}.nc-rev-glance-card em{font-style:normal;font-size:8px;color:#57dca9;align-self:start;padding-top:5px}.nc-rev-glance-card.warn em{color:#ffc45e}.nc-rev-glance-card.error em{color:#ff6d82}
.nc-rev-home-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.72fr);gap:10px;align-items:start}
.nc-rev-home-stack{display:grid;gap:10px}
#homePage.nc-rev-home-ready>.nc-home-priority-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;margin:0!important}
#homePage.nc-rev-home-ready>.nc-home-companies{margin:0!important;padding:13px!important}
#homePage.nc-rev-home-ready>.nc-home-personal{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:0!important}
#homePage.nc-rev-home-ready>.nc-home-system{margin:0!important;padding:13px!important}
.nc-rev-ops{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:10px}.nc-rev-card{padding:13px;border:1px solid var(--rev-line-soft);border-radius:10px;background:linear-gradient(180deg,#081d30,#061827)}.nc-rev-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.nc-rev-card-head strong{font-size:12px}.nc-rev-card-head button{border:0;background:transparent;color:#2eb5ff;font-size:9px;cursor:pointer}.nc-rev-mini-list{display:grid;gap:5px}.nc-rev-mini-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px;border-radius:8px;background:#071a2a;border:1px solid rgba(73,160,216,.08);cursor:pointer}.nc-rev-mini-row:hover{background:#092339}.nc-rev-mini-row img{width:34px;height:34px;object-fit:contain;border-radius:7px;background:#05131f}.nc-rev-mini-row strong{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nc-rev-mini-row small{display:block;font-size:8px;color:#6f8da3;margin-top:2px}.nc-rev-mini-row em{font-style:normal;color:#d9e9f4;font-size:9px;font-weight:800;white-space:nowrap}
.nc-rev-performance{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.nc-rev-perf{padding:10px;border-radius:9px;background:#071a2a;border:1px solid rgba(68,160,219,.10);text-align:center}.nc-rev-perf span{display:block;color:#66869e;font-size:8px}.nc-rev-perf strong{display:block;margin-top:4px;font-size:13px}.nc-rev-perf.good strong{color:#49e5a9}.nc-rev-perf-ring{width:34px;height:34px;margin:0 auto 5px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#16d995 var(--p,70%),#0a2940 0);position:relative}.nc-rev-perf-ring::after{content:"";position:absolute;inset:4px;border-radius:50%;background:#071a2a}.nc-rev-perf-ring b{position:relative;z-index:1;font-size:7px;color:#dff5ff}

/* Direktchat immer erreichbar */
.nc-rev-support-dock{position:fixed;right:16px;bottom:16px;z-index:4400;height:42px;border:1px solid rgba(29,211,162,.34);background:linear-gradient(180deg,#0b2a35,#08202c);color:#e7fbff;border-radius:11px;padding:0 13px;display:flex;align-items:center;gap:9px;box-shadow:0 18px 42px rgba(0,0,0,.34);cursor:pointer;font-weight:800}.nc-rev-support-dock:hover{border-color:rgba(45,226,177,.60);background:#0d3341}.nc-rev-support-dot{width:8px;height:8px;border-radius:50%;background:#19dc99;box-shadow:0 0 0 4px rgba(25,220,153,.10)}.nc-rev-support-badge{display:none;min-width:18px;height:18px;border-radius:999px;background:#ff3d63;color:#fff;align-items:center;justify-content:center;font-size:9px}.nc-rev-support-badge.show{display:inline-flex}

/* Dialoge */
body.nc-ui-revolution dialog{background:#061827!important;border:1px solid rgba(69,166,225,.25)!important;color:#eaf6ff!important;border-radius:12px!important;box-shadow:0 30px 90px rgba(0,0,0,.62)!important}body.nc-ui-revolution dialog::backdrop{background:rgba(0,7,13,.76)!important;backdrop-filter:blur(5px)!important}.nc-search-modal{width:min(760px,calc(100vw - 28px))!important}.nc-search-result{border-radius:8px!important;background:#071a2a!important;border-color:rgba(72,160,216,.10)!important}.nc-search-result.active{background:#0b2b45!important;border-color:rgba(32,157,236,.38)!important}

/* Breite Seiten: wie im Mockup kompakt, ohne Funktionalität zu verstecken */
body.nc-ui-revolution .workspace{grid-template-columns:255px minmax(0,1fr)!important;gap:10px!important}.sidebar{top:74px!important}.side-panel{padding:12px!important}.controls-panel{top:74px!important}.station,.import-company-section,.storage-shell,.factory-content-panel,.production-profit-workspace{border-radius:10px!important}.premium-strip,.insight-strip{gap:8px!important}.insight{border-radius:9px!important;min-height:62px!important}.tablewrap,.table-wrap,.factory-table-wrap{border-radius:9px!important;overflow:auto!important}

/* Performance: keine dekorativen Daueranimationen, keine Blur-Flächen in großen Listen. */
body.nc-ui-revolution .panel,body.nc-ui-revolution .station,body.nc-ui-revolution .import-company-section{backdrop-filter:none!important}body.nc-ui-revolution *{scroll-behavior:auto!important}.nc-rev-nav,.tablewrap,.table-wrap,.factory-table-wrap{overscroll-behavior:contain}.statev-product-thumb,.storage-item-image,.catalog-product-image,.catalog-material img{content-visibility:auto}
@media(max-width:1380px){.nc-rev-launchers{grid-template-columns:repeat(3,minmax(0,1fr))}.nc-rev-glance{grid-template-columns:repeat(2,minmax(0,1fr))}.nc-rev-home-grid{grid-template-columns:1fr}.appbar.nc-appbar-modern{grid-template-columns:210px minmax(180px,1fr) auto!important}.nc-global-search-trigger{width:min(380px,34vw)!important}}
@media(max-width:1050px){:root{--rev-nav:64px}.nc-rev-label,.nc-rev-caret,.nc-rev-submenu,.nc-rev-version,.nc-rev-nav-toggle span{display:none!important}.nc-rev-nav-item,.nc-rev-group-head{grid-template-columns:1fr!important;padding:0!important;place-items:center!important}.nc-rev-icon{width:42px!important}.nc-rev-home-grid{grid-template-columns:1fr}.nc-rev-ops{grid-template-columns:1fr}.appbar.nc-appbar-modern{grid-template-columns:64px minmax(180px,1fr) auto!important}.appbar .brand .brand-name,.appbar .brand .brand-sub{display:none!important}.appbar .brand{justify-content:center!important}.nc-global-search-trigger{width:min(420px,42vw)!important}.workspace{grid-template-columns:1fr!important}}
@media(max-width:760px){body.nc-ui-revolution{--rev-nav:0px;padding-top:56px!important}body.nc-ui-revolution>.nc-main-nav{transform:translateX(-100%);width:220px!important;transition:transform .15s ease}body.nc-ui-revolution.nc-rev-mobile-nav>.nc-main-nav{transform:none}.appbar.nc-appbar-modern{height:56px!important;grid-template-columns:48px minmax(0,1fr) auto!important;padding:0 7px!important}.appbar .brand{height:56px!important}.nc-global-search-trigger{width:100%!important}.nc-global-search-trigger .nc-key,.nc-global-search-trigger strong{display:none!important}.nc-rev-create-main{width:38px!important;padding:0!important;justify-content:center!important}.nc-rev-create-main span:last-child{display:none}.nc-rev-launchers{grid-template-columns:repeat(2,minmax(0,1fr))}.nc-rev-glance{grid-template-columns:1fr 1fr}.nc-rev-home-title{align-items:flex-start}.nc-rev-home-clock{display:none}#homePage.nc-rev-home-ready>.nc-home-priority-grid,#homePage.nc-rev-home-ready>.nc-home-personal{grid-template-columns:1fr!important}.nc-rev-support-dock{right:10px;bottom:10px;width:42px;padding:0;justify-content:center}.nc-rev-support-dock .label{display:none}.nc-rev-performance{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.nc-rev-caret,body.nc-ui-revolution>.main,body.nc-ui-revolution>.nc-main-nav{transition:none!important}}

/* ===== NovaCore 6.1.153 · finale UX-/Scroll-/Gesamtübersichten ===== */
/* Startseite: alter Firmenblock/Systemblock/alte Prioritätsfläche werden durch den neuen Leitstand ersetzt. */
#homePage.nc-rev-home-ready>.nc-home-priority-grid,
#homePage.nc-rev-home-ready>.nc-home-companies,
#homePage.nc-rev-home-ready>.nc-home-system,
#homePage.nc-rev-home-ready>#ncMasterHome{display:none!important}
.nc-rev-sync-mount{min-width:0}.nc-rev-sync-mount .nc-master-sync-deck{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important;margin:0!important}
.nc-rev-sync-mount .nc-master-sync-card{min-width:0!important;margin:0!important;padding:10px 11px!important;border-radius:10px!important}
.nc-rev-home-priority{display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,.95fr);gap:10px;align-items:stretch}
.nc-rev-important{min-width:0}.nc-rev-important .nc-master-kpis{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin:0!important}
.nc-rev-important .nc-master-kpi{min-width:0!important;margin:0!important}
#ncRevReminderMount{min-width:0}#ncRevReminderMount .import-reminder-panel{height:100%;margin:0!important;padding:13px!important;overflow:visible!important;max-height:none!important}
#ncRevReminderMount .import-reminder-list{max-height:none!important;overflow:visible!important;display:grid!important;gap:6px!important}
#ncRevReminderMount .import-reminder-item,#ncRevReminderMount [class*="import-reminder"]{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;max-width:none!important}
#ncRevReminderMount .import-reminder-item strong,#ncRevReminderMount .import-reminder-item span{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.35!important}
#ncRevPersonalMount>.nc-home-personal{margin:0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.nc-rev-mini-row strong{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.25!important}.nc-rev-mini-row small{white-space:normal!important;line-height:1.25!important}

/* Navigation: mehrere Gruppen dürfen gleichzeitig offen bleiben. */
.nc-rev-group.open>.nc-rev-submenu{display:grid!important}.nc-rev-group-head{cursor:pointer}

/* Vollseiten-Scrolling: vertikales Scrollen geschieht immer über die Hauptseite, Tabellen behalten nur horizontalen Scroll. */
html,body{min-height:100%!important;height:auto!important;overflow-y:auto!important}
body.nc-ui-revolution>.main{height:auto!important;max-height:none!important;overflow:visible!important}
body.nc-ui-revolution .app-page:not(.hidden){height:auto!important;max-height:none!important;overflow:visible!important}
body[data-nc-page="imports"] #importPage,
body[data-nc-page="imports"] #importPage .import-layout,
body[data-nc-page="imports"] #importPage .import-layout>.content,
body[data-nc-page="imports"] #importPage #importResults,
body[data-nc-page="exports"] #exportPage,
body[data-nc-page="running-imports"] #runningImportsPage,
body[data-nc-page="saved-imports"] #savedImportsPage{height:auto!important;max-height:none!important;overflow-y:visible!important}
body[data-nc-page="imports"] #importPage .import-sidebar{position:relative!important;top:auto!important;height:auto!important;max-height:none!important;overflow:visible!important}
body[data-nc-page="imports"] #importPage .import-company-list{max-height:none!important;overflow:visible!important}
body.nc-ui-revolution .tablewrap,body.nc-ui-revolution .table-wrap,body.nc-ui-revolution .factory-table-wrap,body.nc-ui-revolution .nc-rev-table-scroll{overflow-x:auto!important;overflow-y:visible!important;overscroll-behavior:auto!important}

/* Aggregate Finanzen + Produktion/Lager */
.nc-rev-aggregate-page{display:grid;gap:10px;align-content:start}.nc-rev-aggregate-panel{padding:13px!important}.nc-rev-aggregate-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:10px}.nc-rev-aggregate-toolbar input{min-width:320px;flex:1;height:40px;padding:0 12px}.nc-rev-aggregate-toolbar span{font-size:9px;color:#7a9ab1;white-space:nowrap}.nc-rev-aggregate-content{display:grid;gap:10px}.nc-rev-aggregate-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start}.nc-rev-aggregate-block{min-width:0;border:1px solid rgba(65,157,216,.12);border-radius:10px;background:#071a2a;padding:11px}.nc-rev-aggregate-empty{display:grid;gap:4px;place-items:center;min-height:150px;color:#7895a9;text-align:center}.nc-rev-aggregate-empty strong{color:#ddecf5;font-size:13px}.nc-rev-table-scroll{width:100%;min-width:0}.nc-rev-table{width:100%;min-width:690px}.nc-rev-table th{padding:10px 11px!important;font-size:8px!important}.nc-rev-table td{padding:9px 11px!important;font-size:10px!important}.nc-rev-item-cell{display:flex;align-items:center;gap:9px;min-width:210px}.nc-rev-item-cell img{width:36px;height:36px;object-fit:contain;border-radius:8px;background:#05131f;flex:0 0 auto}.nc-rev-item-cell span{min-width:0}.nc-rev-item-cell strong{display:block;font-size:10px;color:#e7f4fb}.nc-rev-item-cell small{display:block;margin-top:2px;color:#607f96;font-size:7.5px;white-space:normal;overflow-wrap:anywhere}.nc-rev-money{font-weight:900;color:#52e2a7!important;white-space:nowrap}.nc-rev-status{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:8px;font-weight:900}.nc-rev-status.active{background:rgba(31,145,255,.13);color:#84d4ff}.nc-rev-status.ok{background:rgba(46,215,151,.10);color:#75e5b3}

/* Performance-Diagnose gehört in Einstellungen, nicht auf die Startseite. */
.nc-rev-settings-performance{margin-top:12px;padding:14px!important}.nc-rev-settings-performance .nc-rev-card-head small{display:block;margin-top:3px;color:#6f8ea5;font-size:9px}.nc-rev-performance-ok{color:#3be2a6;font-size:9px;font-weight:900}.nc-rev-settings-perf-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.nc-rev-settings-perf-grid>div{padding:11px;border:1px solid rgba(65,157,216,.1);border-radius:9px;background:#071a2a}.nc-rev-settings-perf-grid span{display:block;color:#6e8ca2;font-size:8px}.nc-rev-settings-perf-grid strong{display:block;margin-top:4px;font-size:13px;color:#e7f5fc}

/* Itembilder niemals unnötig verstecken/verwaschen. */
.statev-product-thumb,.storage-item-image,.catalog-product-image,.catalog-material img,.nc-rev-item-cell img,.nc-rev-mini-row img{visibility:visible!important;opacity:1!important;object-fit:contain!important}

/* Firmen-Exportgewinn darf die Tabelle vollständig über die Seite scrollen. */
#companyProfitPage .pp-standalone-table-wrap{max-height:none!important;overflow-x:auto!important;overflow-y:visible!important}

@media(max-width:1380px){.nc-rev-sync-mount .nc-master-sync-deck{grid-template-columns:repeat(3,minmax(0,1fr))!important}.nc-rev-home-priority{grid-template-columns:1fr}.nc-rev-aggregate-grid{grid-template-columns:1fr}}
@media(max-width:900px){.nc-rev-sync-mount .nc-master-sync-deck{grid-template-columns:repeat(2,minmax(0,1fr))!important}.nc-rev-important .nc-master-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}.nc-rev-settings-perf-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nc-rev-aggregate-toolbar{align-items:stretch;flex-direction:column}.nc-rev-aggregate-toolbar input{min-width:0;width:100%}}

/* 6.1.153 – einheitliches Vollseiten-Scrolling und Dashboard-Bereinigung */
html,body{height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important}
body.nc-ui-revolution{height:auto!important;min-height:100vh!important;overflow-y:auto!important}
body.nc-ui-revolution .app-page:not(.hidden){height:auto!important;min-height:calc(100vh - 90px)!important;max-height:none!important;overflow:visible!important}
body.nc-ui-revolution .main-content,body.nc-ui-revolution .content,body.nc-ui-revolution .page-content{height:auto!important;max-height:none!important;overflow:visible!important}
#importPage .import-layout,#importPage .import-shell,#importPage .import-main{height:auto!important;max-height:none!important;overflow:visible!important;align-items:start!important}
#importPage .import-sidebar,#importPage .import-company-list,#importPage .import-content{position:relative!important;top:auto!important;height:auto!important;max-height:none!important;overflow:visible!important}
#invoiceQuotePage .inv-workspace,#invoiceQuotePage .inv-page-grid{height:auto!important;max-height:none!important;overflow:visible!important}
.nc-rev-home .nc-home-companies{display:none!important}
.terra-vm-vehicles{max-height:none!important;overflow:visible!important}

/* 6.1.153 – finale Scroll-Härtung: der Inhaltsbereich scrollt als ganze Seite. */
body.nc-ui-revolution .workspace,body.nc-ui-revolution .app-shell,body.nc-ui-revolution #app,body.nc-ui-revolution main{height:auto!important;max-height:none!important;overflow:visible!important}
body.nc-ui-revolution .main{height:auto!important;min-height:100vh!important;max-height:none!important;overflow:visible!important}
body.nc-ui-revolution .main-content{overflow:visible!important}
body.nc-ui-revolution #overviewPage,body.nc-ui-revolution #storagePage,body.nc-ui-revolution #productionLaptopPage,body.nc-ui-revolution #invoiceQuotePage,body.nc-ui-revolution #vapiFunctionsPage{height:auto!important;max-height:none!important;overflow:visible!important}
/* Alter doppelter Produktions-Preise-Einstieg unter Firmen/Legacy-Navigation ist nicht mehr sichtbar. */
#navProductionPrices{display:none!important}

/* 6.1.155 – Wichtige Kennzahlen exakt im 6.1.146-Aufbau.
   Das originale .nc-master-kpi-panel wird vollständig verschoben statt zerlegt. */
.nc-rev-important{min-width:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
#ncRevKpiMount{display:block!important;width:100%!important;min-width:0!important}
#ncRevKpiMount>.nc-master-kpi-panel{margin:0!important}


/* 6.1.159 – Globales Vollseiten-Scrolling: Root ist der einzige normale vertikale Scrollbereich. */
html{height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:scroll!important;overscroll-behavior-y:auto!important}
body,body.nc-ui-revolution{height:auto!important;min-height:100vh!important;max-height:none!important;overflow-x:hidden!important;overflow-y:visible!important;overscroll-behavior-y:auto!important}
body.nc-ui-revolution>.main,body.nc-ui-revolution .app-page:not(.hidden),body.nc-ui-revolution .workspace,body.nc-ui-revolution .main-content,body.nc-ui-revolution .content,body.nc-ui-revolution .page-content{height:auto!important;max-height:none!important;overflow-y:visible!important}
/* Import-Seite darf keinen eigenen vertikalen Scrollfänger besitzen. */
body[data-nc-page="imports"] #importPage .import-layout,body[data-nc-page="imports"] #importPage .import-shell,body[data-nc-page="imports"] #importPage .import-main,body[data-nc-page="imports"] #importPage .import-sidebar,body[data-nc-page="imports"] #importPage .import-company-list,body[data-nc-page="imports"] #importPage .import-content{height:auto!important;max-height:none!important;overflow-y:visible!important}
/* Tabellen dürfen horizontal scrollen, aber die Seite fängt das vertikale Mausrad ab. */
body.nc-ui-revolution .tablewrap,body.nc-ui-revolution .table-wrap,body.nc-ui-revolution .factory-table-wrap,body.nc-ui-revolution .pp-standalone-table-wrap,body.nc-ui-revolution .nc-rev-table-scroll{max-height:none!important;overflow-x:auto!important;overflow-y:hidden!important}

/* 6.1.162 / 6.2.3 – Startseite, Finanzen, KPI und Navigation global bereinigt. */
#homePage.nc-rev-home-ready>.nc-home-personal,#contextFavorite{display:none!important}
.nc-rev-statev-login-sync{display:flex;align-items:center;gap:12px;justify-content:flex-start;padding:10px 12px;border:1px solid rgba(39,154,230,.18);border-radius:10px;background:#071c2d;color:#7899af;font-size:9px}
.nc-rev-statev-login-sync[hidden]{display:none!important}.nc-rev-statev-login-sync .btn{flex:0 0 auto}
.nc-rev-home-priority{grid-template-columns:1fr!important;gap:12px!important;align-items:start!important}
#ncRevKpiMount,#ncRevReminderMount{width:100%!important;max-width:none!important;min-width:0!important}
#ncRevKpiMount>.nc-master-kpi-panel,#ncRevReminderMount>.import-reminder-panel{width:100%!important;max-width:none!important}
#homePage .nc-master-kpi-panel{height:auto!important;min-height:540px!important;grid-template-rows:auto auto minmax(330px,1fr)!important}
#homePage .nc-master-chart,#homePage .nc-reference-chart-6179{height:340px!important;min-height:340px!important;max-height:none!important;width:100%!important}
#homePage .nc-master-chart{display:block!important;overflow:visible!important}
#homePage .nc-ref-current-value{font-size:11px!important;font-weight:900!important;paint-order:stroke;stroke:#071521;stroke-width:3px;stroke-linejoin:round}
#homePage .nc-ref-value-i{fill:#28a9ff!important}#homePage .nc-ref-value-m{fill:#ff6478!important}#homePage .nc-ref-value-x{fill:#42dda0!important}
#ncRevReminderMount .import-reminder-panel{min-height:220px!important}
.nc-rev-finance-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0 0 12px}
.nc-rev-finance-summary article{padding:13px 14px;border:1px solid rgba(65,157,216,.12);border-radius:10px;background:#071a2a}
.nc-rev-finance-summary span,.nc-rev-finance-summary small{display:block;color:#6f90a7;font-size:8px}.nc-rev-finance-summary strong{display:block;margin:5px 0 3px;font-size:20px;color:#eaf7ff;font-variant-numeric:tabular-nums}
.nc-rev-finance-company>.nc-rev-card-head{padding-bottom:8px;border-bottom:1px solid rgba(65,157,216,.09)}.nc-rev-finance-company>.nc-rev-card-head small{display:block;margin-top:3px;color:#6f8da3;font-size:8px}.nc-rev-company-total{font-size:15px;font-weight:900;color:#52e2a7}
@media(max-width:900px){.nc-rev-finance-summary{grid-template-columns:1fr}.nc-rev-statev-login-sync{align-items:stretch;flex-direction:column}}

/* 7.2.1 – Kennzahlen geöffnet, kompakte Einklappung und Preisverläufe aller Firmen */
#homePage .nc-master-kpi-panel:not(.nc-collapsed-6179){height:auto!important;grid-template-rows:auto auto auto!important}
#homePage .nc-master-kpi-panel.nc-collapsed-6179{display:block!important;height:42px!important;min-height:42px!important;max-height:42px!important;overflow:hidden!important}
#homePage .nc-master-chart[data-nc-all-companies="1"]{height:auto!important;min-height:260px!important;max-height:none!important;display:block!important;overflow:visible!important;padding:14px!important}
#homePage .nc-master-chart[data-nc-all-companies="1"]>.nc-all-charts-intro{display:flex!important;height:auto!important;min-height:44px!important;flex-wrap:wrap!important;gap:8px!important;margin-bottom:12px!important}
.nc-all-charts-intro span{color:#91aabd;font-size:12px}
#homePage .nc-master-chart[data-nc-all-companies="1"]>.nc-company-chart-grid{display:grid!important;height:auto!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr))!important;gap:14px!important;align-items:stretch!important}
.nc-company-chart-card{min-width:0;padding:12px;border:1px solid #21415c;border-radius:12px;background:#091827}
.nc-company-chart-card>header{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.nc-company-chart-card>header button{border:0;background:transparent;color:#ecf6ff;text-align:left;font-weight:800;cursor:pointer}
.nc-company-chart-card>header select{max-width:100%;width:100%;padding:7px;background:#0b2032;color:#dbeeff;border:1px solid #29465e;border-radius:7px}
.nc-company-chart-card .nc-pixel-chart-legend{display:flex;flex-wrap:wrap;gap:10px;font-size:11px;margin-bottom:8px}
#homePage .nc-company-chart-card .nc-reference-chart-6179{height:225px!important;min-height:225px!important;width:100%!important;max-width:100%!important}
.nc-company-chart-body{min-height:225px}

/* 7.2.2: Only the dedicated warehouse route renders aggregate stock. */
#storagePage.nc-storage-mode-overview .factory-selector-shell,
#storagePage.nc-storage-mode-overview #factoryWorkspace,
#storagePage.nc-storage-mode-overview #storageRefresh,
#storagePage.nc-storage-mode-company #storageAllOverviewPanel{display:none!important}
