/* NovaCore 6.1.77 – Praxis-Hotfix nach Live-Abnahme
   - Import ohne Scroll-/content-visibility-Leerzustand
   - Export-Standorte als feste rechte Seitenleiste
   - lesbare Typografie
   - kompakter Produktionspreis-Inspector
   - Import-Erinnerungen wieder sichtbar
*/
:root{
  --nc-copy-xs:11px;
  --nc-copy-sm:12.5px;
  --nc-copy-md:14px;
  --nc-copy-lg:16px;
}

/* Startseite: 6.1.50-Erinnerungen wieder sichtbar. */
#homePage>.nc-home-priority-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
#homePage #homeAttentionPanel{display:none!important}
#homePage .nc-home-imports{display:block!important;min-width:0!important}
#homePage .nc-home-imports .dashboard-kicker{font-size:var(--nc-copy-xs)!important}
#homePage .nc-home-imports h3{font-size:20px!important}
#homePage .nc-home-imports p,#homePage .nc-home-imports .import-reminder-list{font-size:var(--nc-copy-sm)!important}

/* Import: Der obere/strukturelle Bereich darf nie content-visibility:auto verwenden.
   Nur die einzelnen Angebotszeilen dürfen später lazy/progressiv ergänzt werden. */
#importPage,#importPage .import-layout,#importPage .import-main,#importPage #importResults,
#importPage .import-company-section,#importPage .running-company-section{
  content-visibility:visible!important;
  contain:none!important;
  min-width:0!important;
}
#importPage{width:100%!important;max-width:none!important;margin:0!important;padding-left:0!important;padding-right:0!important}
#importPage .import-layout{display:block!important;width:100%!important;max-width:none!important;margin:0!important}
#importPage .import-sidebar{display:none!important}
#importPage .import-main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
#importPage #importResults{width:100%!important;max-width:none!important;margin:0!important}
#importPage .import-company-section{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important}
#importPage .import-offer-row,#importPage .import-offer-card{content-visibility:auto;contain-intrinsic-size:86px;contain:layout style paint}

/* Export: Standortliste rechts, unabhängig vom Inhalt scrollbar. */
#exportPage .workspace{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(300px,360px)!important;
  gap:14px!important;
  align-items:start!important;
  width:100%!important;
}
#exportPage .workspace>.content{grid-column:1!important;grid-row:1!important;min-width:0!important;width:100%!important}
#exportPage .workspace>.sidebar{
  grid-column:2!important;grid-row:1!important;
  position:sticky!important;
  top:calc(var(--nc-chrome-h,104px) + 10px)!important;
  width:100%!important;min-width:0!important;max-width:none!important;
  height:calc(100vh - var(--nc-chrome-h,104px) - 22px)!important;
  max-height:calc(100vh - var(--nc-chrome-h,104px) - 22px)!important;
  overflow:hidden!important;
  align-self:start!important;
}
#exportPage .workspace>.sidebar .side-panel{height:100%!important;display:grid!important;grid-template-rows:auto auto auto minmax(0,1fr)!important;overflow:hidden!important}
#exportPage .station-nav{
  display:grid!important;grid-template-columns:1fr!important;gap:6px!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  max-height:none!important;min-height:0!important;
  padding-right:5px!important;
}
#exportPage .station-nav>*{min-width:0!important;width:100%!important}
#exportPage .station-filter-note{font-size:var(--nc-copy-xs)!important}

/* Produktionspreis-Inspector: kompakte Karte statt fast voller Fensterhöhe. */
.pp-material-panel-card{
  top:calc(var(--nc-chrome-h,104px) + 12px)!important;
  right:14px!important;bottom:auto!important;left:auto!important;
  width:min(410px,calc(100vw - var(--nc-main-nav-w,54px) - 34px))!important;
  height:auto!important;
  max-height:min(540px,calc(100vh - var(--nc-chrome-h,104px) - 28px))!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  border-radius:14px!important;
}
.pp-material-panel-scroll{overflow-y:auto!important;overscroll-behavior:contain!important;max-height:330px!important}
.pp-material-panel-head{min-height:unset!important;padding:12px 14px!important}
.pp-material-panel-head h4{font-size:20px!important}
.pp-material-panel-kicker,.pp-material-panel-head p,.pp-material-panel-status,.pp-active-price-hero span,.pp-panel-price-field>span:first-child{font-size:10.5px!important}
.pp-active-price-hero strong{font-size:22px!important}
.pp-source-summary small,.pp-source-badge,.pp-material-panel-editor>small{font-size:9.5px!important}
.pp-source-summary b{font-size:13px!important}
.pp-material-panel-actions .btn{font-size:11.5px!important;min-height:36px!important;height:36px!important}
.pp-panel-price-control input{font-size:13px!important;height:38px!important}

/* Lesbarkeit: spätere Pixel-CSS hatte viele Texte auf 6–10px reduziert. */
body{font-size:var(--nc-copy-md)!important}
.nc-main-nav .nc-nav-label strong{font-size:13px!important;line-height:1.25!important}
.nc-main-nav .nc-nav-label small{font-size:10.5px!important;line-height:1.3!important}
.nc-nav-section-label{font-size:9.5px!important;letter-spacing:.12em!important}
button,.btn,.toolbar-btn,.quick-chip,select,input,textarea{font-size:12.5px!important}
.panel p,.muted,.note,.side-sub,.dashboard-head p,.nc-home-lead p{font-size:12px!important;line-height:1.5!important}
table th,.table th,.data-table th{font-size:10.5px!important}
table td,.table td,.data-table td{font-size:12.5px!important}
.business-state,.pill,.badge,.nc-key{font-size:9.5px!important}
.pp-material-row,.pp-material-row strong,.factory-row,.factory-row strong{font-size:12px!important}

/* Die alte StateV-Firmenübersichts-Leiste darf nur in echten RPITS-Views erscheinen. */
body:not(.erp-business-active) .erp-appbar,
body:not(.erp-business-active) .erp-business-nav,
body:not(.erp-business-active) .business-suite-header{display:none!important}

@media(max-width:1100px){
  #exportPage .workspace{grid-template-columns:minmax(0,1fr) 300px!important}
  .pp-material-panel-card{width:min(400px,calc(100vw - var(--nc-main-nav-w,54px) - 24px))!important}
}
@media(max-width:820px){
  #exportPage .workspace{display:block!important}
  #exportPage .workspace>.sidebar{position:relative!important;top:auto!important;height:auto!important;max-height:380px!important;margin-top:12px!important}
  #exportPage .station-nav{max-height:280px!important}
}

/* Zusätzliche Lesbarkeitskorrekturen für die im Live-Test besonders kleinen Bereiche. */
#importPage .import-sync-note,#importPage .import-sync-status,#importPage .side-sub{font-size:11.5px!important}
#importPage .import-offer-name,#importPage .import-basis-price,#importPage .import-purchase-price strong,#importPage .import-offer-weight{font-size:12.5px!important}
#importPage .import-purchase-price span,#importPage .import-reminder-row small{font-size:10.5px!important}
#storagePage .factory-section-tab,#storagePage .factory-group-tab{font-size:12px!important}
#storagePage .factory-status,#storagePage .factory-intake-import-source,#storagePage .live-import-badge{font-size:10.5px!important}
#storagePage .factory-intake-price-row strong,#storagePage .factory-intake-price-row input{font-size:13px!important}
#companyProfitPage .pp-standalone-material strong,#companyProfitPage .pp-standalone-table td,
#companyProfitPage .pp-material-row strong{font-size:12.5px!important}
#companyProfitPage .pp-standalone-material small,#companyProfitPage .pp-standalone-details,
#companyProfitPage .pp-standalone-table th{font-size:10.5px!important}
#productionTimesPage .production-times-card strong,#recipesPage .recipe-card strong{font-size:13px!important}
#productionTimesPage .production-times-card small,#recipesPage .recipe-card small{font-size:10.5px!important}
.vehicle-inventory-modal,.vehicle-inventory-modal input,.vehicle-inventory-modal select,.vehicle-inventory-modal button{font-size:13px!important}
.vehicle-inventory-modal h2{font-size:22px!important}.vehicle-inventory-modal h3{font-size:16px!important}
