/* NovaCore 6.1.85 – Rechte-Trennung / KPI / Import / Export Feinschliff */

/* STARTSEITE – Referenz-KPI 374×185 px */
#homePage .nc-master-price-changes,#homePage .nc-master-price-preview{display:none!important}
#homePage .nc-master-mid-grid{display:grid!important;grid-template-columns:minmax(0,374px) minmax(0,1fr)!important;gap:10px!important;align-items:start!important}
#homePage .nc-master-kpi-panel{
  grid-column:1!important;width:374px!important;max-width:100%!important;height:185px!important;min-height:185px!important;
  display:grid!important;grid-template-rows:25px 52px 108px!important;overflow:hidden!important;
  border:1px solid rgba(80,166,222,.18)!important;border-radius:10px!important;
  background:linear-gradient(180deg,#081a2c 0%,#071725 100%)!important;
  box-shadow:0 12px 32px rgba(0,0,0,.24)!important
}
#homePage .nc-master-kpi-panel>header{height:25px!important;min-height:25px!important;padding:4px 8px!important;border-bottom:0!important}
#homePage .nc-master-kpi-panel>header small{display:none!important}
#homePage .nc-master-kpi-panel>header strong{font-size:10px!important;line-height:12px!important;font-weight:900!important;color:#f3f7fb!important}
#homePage .nc-master-kpis{height:52px!important;padding:2px 6px 5px!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;display:flex!important;align-items:center!important;gap:6px!important;
  padding:4px 6px!important;border-radius:7px!important;border:1px solid rgba(83,164,216,.11)!important;
  background:linear-gradient(180deg,#0c2034,#0a1b2c)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.018)!important
}
#homePage .nc-master-kpis article .nc-master-card-icon{
  width:25px!important;height:25px!important;min-width:25px!important;display:grid!important;place-items:center!important;
  border-radius:8px!important;font-size:11px!important;font-weight:900!important;color:#fff!important;border:1px solid rgba(255,255,255,.08)!important
}
#homePage .nc-master-kpis article.nc-kpi-blue .nc-master-card-icon{background:linear-gradient(180deg,#0e7cec,#075ebd)!important;box-shadow:0 0 12px rgba(24,137,255,.24)!important}
#homePage .nc-master-kpis article.nc-kpi-green .nc-master-card-icon{background:linear-gradient(180deg,#27ba64,#128745)!important;box-shadow:0 0 12px rgba(53,218,120,.18)!important}
#homePage .nc-master-kpis article.nc-kpi-red .nc-master-card-icon{background:linear-gradient(180deg,#d4415c,#a72540)!important;box-shadow:0 0 12px rgba(255,83,113,.18)!important}
#homePage .nc-master-kpis article.nc-kpi-gold .nc-master-card-icon{background:linear-gradient(180deg,#c98b2f,#98631b)!important;box-shadow:0 0 12px rgba(255,185,58,.17)!important}
#homePage .nc-master-kpis article>span:last-child{min-width:0!important}
#homePage .nc-master-kpis article strong{font-size:12px!important;line-height:13px!important;font-weight:900!important;color:#f7fbff!important;font-variant-numeric:tabular-nums!important}
#homePage .nc-master-kpis article small{font-size:6.1px!important;line-height:7.2px!important;color:#8aa4b7!important;white-space:normal!important}
#homePage .nc-master-chart{height:108px!important;min-height:108px!important;padding:2px 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:8.7px!important;line-height:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;color:#e9f0f7!important}
#homePage .nc-pixel-chart-legend{display:flex!important;align-items:center!important;gap:7px!important;font-size:5.7px!important;line-height:7px!important;color:#7390a4!important;white-space:nowrap!important}
#homePage .nc-pixel-chart-legend span{display:inline-flex!important;align-items:center!important;gap:3px!important}
#homePage .nc-pixel-chart-legend i{width:4px!important;height:4px!important;border-radius:50%!important;display:inline-block!important}
#homePage .nc-reference-chart-6179{width:332px!important;height:68px!important;display:block!important;justify-self:center!important;margin:0!important;overflow:visible!important}
#homePage .nc-ref-grid{stroke:rgba(89,157,202,.14)!important;stroke-width:.65!important}
#homePage .nc-ref-axis{stroke:rgba(122,184,220,.22)!important;stroke-width:.65!important}
#homePage .nc-ref-label{fill:#7c98aa!important;font-size:4.7px!important}
#homePage .nc-ref-import{fill:none!important;stroke:#19a8ff!important;stroke-width:1.6!important}
#homePage .nc-ref-market{fill:none!important;stroke:#ff4760!important;stroke-width:1.6!important}
#homePage .nc-ref-mix{fill:none!important;stroke:#2cd57b!important;stroke-width:1.6!important}
#homePage .nc-ref-dot-i{fill:#19a8ff!important}#homePage .nc-ref-dot-m{fill:#ff4760!important}#homePage .nc-ref-dot-x{fill:#2cd57b!important}

/* IMPORT – beim Öffnen oben, saubere Proportionen mit Firmenleiste links */
body[data-nc-page="imports"] .main{overflow-x:hidden!important;overflow-y:visible!important;height:auto!important;min-height:calc(100vh - var(--nc-chrome-h,98px))!important}
#importPage{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-content:start!important;gap:10px!important;margin:0!important;padding:0!important;min-height:0!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;box-sizing:border-box!important}
#importPage .premium-strip{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin-bottom:0!important}
#importPage .import-layout{
  display:grid!important;grid-template-columns:clamp(245px,18vw,310px) minmax(0,1fr)!important;gap:12px!important;
  width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;align-items:start!important;overflow:visible!important
}
#importPage .import-sidebar{display:block!important;position:sticky!important;top:calc(var(--nc-chrome-h,98px) + 10px)!important;height:auto!important;max-height:calc(100vh - var(--nc-chrome-h,98px) - 20px)!important;overflow:auto!important;align-self:start!important}
#importPage .import-sidebar .side-panel{height:auto!important;max-height:none!important;padding:13px!important}
#importPage .import-company-list{max-height:calc(100vh - var(--nc-chrome-h,98px) - 150px)!important;overflow:auto!important}
#importPage .import-layout>.content{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important;width:100%!important;min-width:0!important;max-width:100%!important;overflow:visible!important}
#importPage .controls-panel{position:relative!important;top:auto!important;z-index:2!important;margin:0!important;border-radius:14px!important}
#importPage #importResults{width:100%!important;min-width:0!important;max-width:100%!important;overflow:visible!important}
#importPage .import-company-section{width:100%!important;min-width:0!important;max-width:100%!important;margin:0 0 10px!important}
#importPage .tablewrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:visible!important}
#importPage .import-table{width:100%!important;min-width:760px!important;table-layout:fixed!important}

/* EXPORT – rechte Standortspalte bleibt fest, Such-/Filterleiste scrollt mit */
body[data-nc-page="exports"] #exportPage .controls-panel{position:relative!important;top:auto!important;z-index:2!important;margin:0 0 10px!important;padding:12px 14px!important}
body[data-nc-page="exports"] #exportPage .workspace>.content{scroll-padding-top:0!important}
body[data-nc-page="exports"] #exportPage .tools{grid-template-columns:minmax(340px,1.45fr) repeat(2,minmax(155px,.55fr))!important;gap:9px!important;align-items:stretch!important}
body[data-nc-page="exports"] #exportPage .search,body[data-nc-page="exports"] #exportPage .select{height:46px!important;border-radius:12px!important}
body[data-nc-page="exports"] #exportPage .quickbar{margin-top:9px!important;padding-top:9px!important}
body[data-nc-page="exports"] #exportPage .premium-strip{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;margin-bottom:10px!important}
/* ausdrücklich beibehalten: Export-Standorte rechts fest */
body[data-nc-page="exports"] #exportPage .workspace>.sidebar{position:sticky!important;top:86px!important;right:auto!important;align-self:start!important;max-height:calc(100vh - 102px)!important;overflow:auto!important}


@media(max-width:1100px){
  #homePage .nc-master-mid-grid{grid-template-columns:minmax(0,1fr)!important}
  #importPage .import-layout{grid-template-columns:1fr!important}
  #importPage .import-sidebar{position:relative!important;top:auto!important;max-height:none!important}
  #importPage .import-company-list{max-height:320px!important}
}
@media(max-width:760px){
  #homePage .nc-master-kpi-panel{width:100%!important;height:auto!important;min-height:185px!important}
  #homePage .nc-master-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;height:auto!important;min-height:96px!important}
  #homePage .nc-master-kpi-panel{grid-template-rows:25px auto 108px!important}
  #importPage .premium-strip,body[data-nc-page="exports"] #exportPage .premium-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body[data-nc-page="exports"] #exportPage .tools{grid-template-columns:1fr!important}
}
