/* NovaCore 6.1.82 – Import/Aktuelles/Export Hotfix
   Live-Test 25.09.2026: Import darf beim Scrollen nicht mehr zurückspringen,
   Tabellenzeilen werden im Import nicht per content-visibility virtualisiert,
   Aktuelles erhält eine eigene große Arbeitsseite und Export-Standorte bleiben stehen. */

/* IMPORTÜBERSICHT ---------------------------------------------------------
   Chromium/Electron kann content-visibility auf <tr> in Tabellen mit Sticky-Headern
   falsch vermessen. Das war im Live-Video als riesige Leerfläche sichtbar: einzelne
   Zellen lagen am oberen Rand, während die Tabellenzeile fast den Viewport belegte. */
body[data-nc-page="imports"] .main{
  overflow-x:hidden!important;
  overflow-y:visible!important;
}
#importPage.hidden{display:none!important}
#importPage{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  align-content:start!important;
  gap:10px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  overflow:visible!important;
  contain:none!important;
}
#importPage .import-layout,
#importPage .import-layout>.content,
#importPage #importResults{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  align-content:start!important;
  overflow:visible!important;
  contain:none!important;
}
#importPage .controls-panel{
  position:relative!important;
  top:auto!important;
  z-index:2!important;
  width:100%!important;
  max-width:100%!important;
}
#importPage .import-company-section{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  overflow:hidden!important;
  content-visibility:visible!important;
  contain:none!important;
  contain-intrinsic-size:auto!important;
}
#importPage .tablewrap{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  overflow-x:auto!important;
  overflow-y:visible!important;
  overscroll-behavior-x:contain!important;
  scrollbar-gutter:stable!important;
}
#importPage .import-table{
  width:100%!important;
  min-width:840px!important;
  max-width:none!important;
  table-layout:fixed!important;
}
#importPage .import-table th:nth-child(1),#importPage .import-table td:nth-child(1){width:29%!important}
#importPage .import-table th:nth-child(2),#importPage .import-table td:nth-child(2){width:15%!important}
#importPage .import-table th:nth-child(3),#importPage .import-table td:nth-child(3){width:24%!important}
#importPage .import-table th:nth-child(4),#importPage .import-table td:nth-child(4){width:13%!important}
#importPage .import-table th:nth-child(5),#importPage .import-table td:nth-child(5){width:19%!important}
#importPage .import-table tbody tr,
#importPage #importResults tbody tr{
  content-visibility:visible!important;
  contain:none!important;
  contain-intrinsic-size:auto!important;
  height:auto!important;
  min-height:0!important;
}
#importPage .import-table td{
  height:auto!important;
  min-height:0!important;
  vertical-align:middle!important;
}
#importPage .import-order-cell .nc-inline-actions{display:flex!important;justify-content:flex-end!important;gap:7px!important;flex-wrap:nowrap!important}
#importPage .import-offer-name{display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}
#importPage .import-offer-name .statev-product-thumb{flex:0 0 auto!important}

/* AKTUELLES --------------------------------------------------------------- */
#currentPage{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;align-content:start!important;width:100%!important;max-width:none!important;min-width:0!important}
#currentPage.hidden{display:none!important}
#currentPage .nc-current-page-header{margin:0!important}
#currentPage .nc-current-page-header h1{font-size:24px!important;line-height:1.18!important;margin:4px 0!important}
#currentPage .nc-current-page-header p{font-size:12.5px!important;line-height:1.45!important}
#currentPage .nc-current-panel{width:100%!important;max-width:none!important;min-width:0!important;overflow:hidden!important;border-radius:12px!important}
#currentPage .nc-current-panel>header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;padding:14px 16px!important;border-bottom:1px solid rgba(78,165,221,.15)!important;background:rgba(7,24,39,.78)!important}
#currentPage .nc-current-panel>header h2{font-size:19px!important;line-height:1.2!important;margin:3px 0!important;color:#edf8ff!important}
#currentPage .nc-current-panel>header p{font-size:12px!important;line-height:1.4!important;margin:0!important;color:#829fb3!important}
#currentPage .nc-current-head-actions{display:flex!important;align-items:center!important;gap:8px!important;flex:0 0 auto!important}
#currentPage .nc-current-table-scroll{width:100%!important;min-width:0!important;overflow:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important}
#currentPage .nc-current-price-changes .nc-current-table-scroll{min-height:240px!important;max-height:340px!important}
#currentPage .nc-current-price-preview .nc-current-table-scroll{min-height:410px!important;max-height:calc(100vh - var(--nc-chrome-h,98px) - 210px)!important}
#currentPage table{width:100%!important;min-width:980px!important;border-collapse:collapse!important}
#currentPage th{height:38px!important;padding:9px 13px!important;font-size:10.5px!important;letter-spacing:.07em!important}
#currentPage td{height:auto!important;min-height:48px!important;padding:10px 13px!important;font-size:12.5px!important;vertical-align:middle!important}
#currentPage tbody tr{content-visibility:visible!important;contain:none!important;contain-intrinsic-size:auto!important}
#currentPage .nc-price-product img{width:38px!important;height:38px!important;border-radius:8px!important;object-fit:cover!important}
#currentPage .nc-price-product strong{font-size:13px!important}
#currentPage .nc-price-product small{font-size:10px!important}
#currentPage .nc-current-price-preview{min-height:520px!important}

/* EXPORT -----------------------------------------------------------------
   Die Seite selbst bleibt im Viewport. Nur der linke Inhaltsbereich scrollt;
   die rechte Standortspalte bleibt vollständig an derselben Position. */
body[data-nc-page="exports"] .main{overflow:hidden!important;height:calc(100vh - var(--nc-chrome-h,98px))!important;padding-bottom:8px!important}
body[data-nc-page="exports"] #exportPage{height:100%!important;min-height:0!important;overflow:hidden!important;contain:none!important;display:grid!important;grid-template-rows:auto auto minmax(0,1fr) auto!important;align-content:stretch!important}
body[data-nc-page="exports"] #exportPage .workspace{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) clamp(300px,22vw,360px)!important;
  gap:14px!important;
  align-items:stretch!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:var(--nc-export-workspace-h,520px)!important;
  max-height:var(--nc-export-workspace-h,520px)!important;
  overflow:hidden!important;
}
body[data-nc-page="exports"] #exportPage .workspace>.content{
  grid-column:1!important;grid-row:1!important;
  width:100%!important;min-width:0!important;min-height:0!important;
  max-height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior:contain!important;scrollbar-gutter:stable!important;
  padding-right:2px!important;
}
body[data-nc-page="exports"] #exportPage .workspace>.sidebar{
  grid-column:2!important;grid-row:1!important;
  position:relative!important;top:auto!important;right:auto!important;
  width:100%!important;min-width:0!important;height:100%!important;max-height:100%!important;
  align-self:stretch!important;overflow:hidden!important;
}
body[data-nc-page="exports"] #exportPage .workspace>.sidebar .side-panel{height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important}
body[data-nc-page="exports"] #exportPage .station-nav{min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important}
body[data-nc-page="exports"] #exportPage>.foot{margin-top:6px!important;padding:0 4px!important;min-height:20px!important}

@media(max-width:900px){
  #currentPage .nc-current-panel>header{align-items:flex-start!important;flex-direction:column!important}
  #currentPage .nc-current-price-preview .nc-current-table-scroll{max-height:520px!important}
  body[data-nc-page="exports"] .main{overflow-y:auto!important;height:auto!important}
  body[data-nc-page="exports"] #exportPage{height:auto!important;overflow:visible!important;display:block!important}
  body[data-nc-page="exports"] #exportPage .workspace{display:block!important;height:auto!important;max-height:none!important;overflow:visible!important}
  body[data-nc-page="exports"] #exportPage .workspace>.content{max-height:none!important;overflow:visible!important}
  body[data-nc-page="exports"] #exportPage .workspace>.sidebar{height:auto!important;max-height:380px!important;margin-top:12px!important}
}
