/* NovaCore 6.1.79 – Praxis-Finalisierung
   Verbindlich: Import initial sichtbar, Sidebar-genau, state-preserving Updates,
   Portaled Spaltenmenüs, einklappbare Startseite, Referenzdiagramm und große Erinnerungen. */

/* IMPORT – die Seite ist bereits innerhalb von .main; deshalb ausschließlich 100% dieser
   Arbeitsfläche nutzen. Der echte Content-Knoten heißt .content (nicht .import-main). */
#importPage{
  display:grid!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0!important;padding:0!important;overflow:visible!important;
  content-visibility:visible!important;contain:none!important;
  transform:none!important;
}
#importPage>.page-header,#importPage>.premium-strip,#importPage>.import-sync-note,
#importPage>.nc-import-pickup-panel,#importPage>.import-layout{
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin-left:0!important;margin-right:0!important;box-sizing:border-box!important;
}
#importPage .import-layout{
  display:block!important;position:relative!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0!important;padding:0!important;overflow:visible!important;
  content-visibility:visible!important;contain:none!important;
}
#importPage .import-sidebar{display:none!important}
#importPage .import-layout>.content{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin:0!important;padding:0!important;left:auto!important;right:auto!important;
  transform:none!important;overflow:visible!important;
  content-visibility:visible!important;contain:none!important;
}
#importPage .controls-panel,#importPage #importResults,#importPage .import-company-section,
#importPage .running-company-section,#importPage .import-reminder-panel{
  width:100%!important;max-width:100%!important;min-width:0!important;
  margin-left:0!important;margin-right:0!important;transform:none!important;
  content-visibility:visible!important;contain:none!important;
}
/* Nur einzelne, bereits unterhalb der Falz liegende Angebotszeilen dürfen lazy sein. */
#importPage .import-offer-row,#importPage .import-offer-card{
  content-visibility:auto!important;contain-intrinsic-size:auto 86px!important;
  contain:layout style paint!important;
}
body[data-nc-page="imports"] .main{overflow-x:hidden!important}
body[data-nc-page="imports"] #overviewPage{scroll-margin-top:0!important}

/* SPALTENMENÜ – beim Öffnen wird das echte Menü von JS direkt an body geportalt. */
.nc-table-columns-menu.nc-columns-portal-6179{
  position:fixed!important;z-index:2147483200!important;
  display:block!important;
  width:280px!important;min-width:280px!important;
  max-width:min(360px,calc(100vw - 24px))!important;
  max-height:min(420px,calc(100vh - 24px))!important;
  overflow:auto!important;overscroll-behavior:contain!important;
  margin:0!important;padding:9px!important;
  border:1px solid rgba(94,190,247,.32)!important;
  border-radius:11px!important;background:#081826!important;
  box-shadow:0 22px 64px rgba(0,0,0,.62),0 0 0 1px rgba(255,255,255,.025) inset!important;
  transform:none!important;contain:none!important;
}
.nc-table-columns-menu.nc-columns-portal-6179 .nc-table-column-option{
  display:flex!important;align-items:center!important;gap:9px!important;
  min-height:32px!important;padding:6px 8px!important;border-radius:7px!important;
  font-size:12px!important;color:#d5e5ee!important;
}
.nc-table-columns-menu.nc-columns-portal-6179 .nc-table-column-option:hover{background:rgba(34,139,214,.12)!important}

/* STARTSEITE – vier Module erhalten dieselbe einklappbare Panel-Mechanik. */
#homePage .nc-collapsible-6179{position:relative!important;transition:min-height .16s ease,height .16s ease!important}
#homePage .nc-collapse-toggle-6179{
  display:inline-grid!important;place-items:center!important;width:26px!important;height:26px!important;
  min-width:26px!important;padding:0!important;margin-left:7px!important;
  border:1px solid rgba(80,169,227,.22)!important;border-radius:7px!important;
  background:#092139!important;color:#bde4fa!important;font-size:13px!important;line-height:1!important;
}
#homePage .nc-collapse-toggle-6179:hover{background:#0b2d4a!important;border-color:rgba(83,185,249,.45)!important}
#homePage .nc-collapsible-6179.nc-collapsed-6179>*:not(header):not(.dashboard-head){display:none!important}
#homePage .nc-collapsible-6179.nc-collapsed-6179{min-height:42px!important;height:auto!important;overflow:hidden!important}
#homePage .nc-collapsible-6179.nc-collapsed-6179>header,
#homePage .nc-collapsible-6179.nc-collapsed-6179>.dashboard-head{margin-bottom:0!important;border-bottom:0!important}

/* Referenz-Geometrie: gemessen aus Referenz-Bild.png (1186×666). */
#homePage .nc-master-mid-grid{align-items:stretch!important;grid-template-columns:minmax(0,1.05fr) minmax(374px,.95fr)!important;gap:8px!important}
#homePage .nc-master-price-changes,#homePage .nc-master-kpi-panel{min-height:185px!important;height:185px!important;overflow:hidden!important}
#homePage .nc-master-price-changes>header,#homePage .nc-master-kpi-panel>header{height:29px!important;min-height:29px!important;padding:5px 9px!important}
#homePage .nc-master-price-changes header strong,#homePage .nc-master-kpi-panel header strong{font-size:11px!important;line-height:14px!important}
#homePage .nc-master-price-changes .nc-master-table-scroll{height:156px!important;max-height:156px!important;overflow:auto!important}
#homePage .nc-master-price-changes th{height:22px!important;font-size:7.5px!important;padding:0 8px!important}
#homePage .nc-master-price-changes td{height:23px!important;padding:3px 8px!important;font-size:8.5px!important}

/* Wichtige Kennzahlen 1:1 Referenzstruktur. */
#homePage .nc-master-kpi-panel{display:grid!important;grid-template-rows:25px 52px 108px!important}
#homePage .nc-master-kpis{height:52px!important;min-height:52px!important;padding:3px 7px 4px!important;gap:6px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
#homePage .nc-master-kpis article{height:45px!important;min-height:45px!important;padding:4px 6px!important;border-radius:7px!important}
#homePage .nc-master-kpis article .nc-master-card-icon{width:27px!important;height:27px!important;font-size:12px!important}
#homePage .nc-master-kpis article strong{font-size:13px!important;line-height:14px!important}
#homePage .nc-master-kpis article small{font-size:6.8px!important;line-height:8px!important}
#homePage .nc-master-chart{height:108px!important;min-height:108px!important;padding:3px 7px 4px!important;display:grid!important;grid-template-rows:20px 68px!important;align-content:start!important;overflow:hidden!important}
#homePage .nc-master-chart>div{height:20px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important}
#homePage .nc-master-chart>div>strong{font-size:9px!important;line-height:11px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#homePage .nc-pixel-chart-legend{gap:8px!important;font-size:6.5px!important;white-space:nowrap!important}
#homePage .nc-pixel-chart-legend i{width:5px!important;height:5px!important;margin-right:2px!important}
#homePage .nc-master-chart .nc-reference-chart-6179{width:100%!important;height:68px!important;display:block!important;margin:0!important;overflow:visible!important}
#homePage .nc-reference-chart-6179 .nc-ref-grid{stroke:#153b55;stroke-width:.55;opacity:.68}
#homePage .nc-reference-chart-6179 .nc-ref-axis{stroke:#1b4d6c;stroke-width:.65}
#homePage .nc-reference-chart-6179 .nc-ref-label{fill:#789bb0;font-size:5.4px;font-family:inherit}
#homePage .nc-reference-chart-6179 .nc-ref-import{fill:none;stroke:#159cff;stroke-width:1.45;stroke-linejoin:round;stroke-linecap:round}
#homePage .nc-reference-chart-6179 .nc-ref-market{fill:none;stroke:#ff465d;stroke-width:1.45;stroke-linejoin:round;stroke-linecap:round}
#homePage .nc-reference-chart-6179 .nc-ref-mix{fill:none;stroke:#2bd891;stroke-width:1.45;stroke-linejoin:round;stroke-linecap:round}
#homePage .nc-reference-chart-6179 .nc-ref-dot-i{fill:#159cff}.nc-reference-chart-6179 .nc-ref-dot-m{fill:#ff465d}.nc-reference-chart-6179 .nc-ref-dot-x{fill:#2bd891}

/* Produktionspreis-Vorschau kompakter, aber vollständig lesbar und einklappbar. */
#homePage .nc-master-price-preview{min-height:0!important;height:auto!important}
#homePage .nc-master-price-preview>header{height:46px!important;min-height:46px!important;padding:6px 9px!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important}
#homePage .nc-master-price-preview .nc-master-table-scroll{max-height:174px!important;overflow:auto!important}

/* Import-Erinnerungen: großer ruhiger Info-Block, nicht mehr gequetscht. */
#homePage>.nc-home-priority-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
#homePage .nc-home-imports{
  min-height:300px!important;padding:15px 16px!important;border-radius:11px!important;
  background:linear-gradient(180deg,#0b1c2b 0%,#091825 100%)!important;
  border:1px solid rgba(76,164,220,.20)!important;box-shadow:none!important;
}
#homePage .nc-home-imports .dashboard-head{min-height:54px!important;margin-bottom:10px!important;align-items:flex-start!important}
#homePage .nc-home-imports .dashboard-kicker{font-size:9px!important;letter-spacing:.12em!important}
#homePage .nc-home-imports h3{font-size:20px!important;line-height:24px!important;margin:3px 0 2px!important}
#homePage .nc-home-imports p{font-size:12px!important;color:#8da8ba!important}
#homePage .nc-home-imports .import-reminder-summary{display:flex!important;gap:8px!important;margin-bottom:10px!important;flex-wrap:wrap!important}
#homePage .nc-home-imports .import-reminder-list{max-height:360px!important;min-height:195px!important;overflow:auto!important;overscroll-behavior:contain!important;padding-right:3px!important}
#homePage .nc-home-imports .import-reminder-company{border-radius:9px!important;background:rgba(78,53,12,.50)!important;border-color:rgba(213,161,54,.24)!important}
#homePage .nc-home-imports .import-reminder-row{min-height:58px!important;padding:9px 11px!important}
#homePage .nc-home-imports .import-reminder-row strong{font-size:12px!important}
#homePage .nc-home-imports .import-reminder-row span{font-size:10.5px!important}

/* Ref.-Auflösung: feste Pixelgeometrie aus Referenz-Bild.png (1186×666). */
@media (width:1186px) and (height:666px){
  #homePage .nc-master-mid-grid{grid-template-columns:393px 374px!important;width:775px!important}
  #homePage .nc-master-kpi-panel{width:374px!important;height:185px!important}
  #homePage .nc-master-price-changes{width:393px!important;height:185px!important}
}
@media(max-width:1080px){
  #homePage .nc-master-mid-grid{grid-template-columns:1fr!important}
  #homePage .nc-master-price-changes,#homePage .nc-master-kpi-panel{width:100%!important;height:auto!important;min-height:181px!important}
  #homePage .nc-master-kpi-panel{grid-template-rows:34px auto 116px!important}
  #homePage .nc-master-chart{height:116px!important}.nc-reference-chart-6179{height:92px!important}
}

@media (width:1186px) and (height:666px){
  #homePage .nc-master-kpi-panel>header{height:25px!important;min-height:25px!important;padding:4px 7px!important}
  #homePage .nc-master-kpi-panel>header strong{font-size:10px!important;line-height:12px!important}
  #homePage .nc-master-kpi-panel .nc-master-chart{width:374px!important}
  #homePage .nc-master-kpi-panel .nc-reference-chart-6179{width:332px!important;height:68px!important;justify-self:center!important}
}
