/* v12.6.3 – Startseite: EIN echter Scroll-Container im rechten Arbeitsbereich.
   Architektur des Ortsgruppenbüros bleibt eine Vollbild-Web-App:
   Topbar + linke Navigation fest, nur .nfe-clean-main scrollt. */
html.nfe-office-standalone-html,
html:has(body.nfe-office-home),
body.nfe-office-home{
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  overscroll-behavior:none!important;
}

body.nfe-office-home .nfe-clean-app,
body.nfe-office-home .nfe-clean-root{
  position:static!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
}

/* Kopf bleibt oben fest. */
body.nfe-office-home .nfe-clean-topbar{
  position:fixed!important;
  top:0!important;
  right:0!important;
  left:0!important;
  height:60px!important;
  z-index:1000!important;
}

/* Navigation hat ihren eigenen Scrollbereich. */
body.nfe-office-home .nfe-clean-sidebar{
  position:fixed!important;
  top:60px!important;
  bottom:0!important;
  left:0!important;
  width:255px!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
}

/* DAS ist der einzige Scrollbereich für "Start – Übersicht & offene Aufgaben". */
body.nfe-office-home .nfe-clean-main,
body.nfe-office-home main.nfe-clean-main.nfe-clean-dashboard{
  position:fixed!important;
  top:60px!important;
  right:0!important;
  bottom:0!important;
  left:255px!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:24px 22px 56px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
  scrollbar-gutter:stable!important;
}

/* Kein Kind darf den Haupt-Scrollcontainer wieder abschneiden. */
body.nfe-office-home .nfe-clean-dashboard,
body.nfe-office-home .nfe-clean-dashboard > *,
body.nfe-office-home .nfe-dashboard-block,
body.nfe-office-home .nfe-clean-open-grid,
body.nfe-office-home .nfe-dashboard-status,
body.nfe-office-home .nfe-dashboard-rules{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
}

/* Breite der Navigation aus dem bestehenden responsiven Layout übernehmen. */
@media (max-width:1000px) and (min-width:761px){
  body.nfe-office-home .nfe-clean-sidebar{width:220px!important;}
  body.nfe-office-home .nfe-clean-main,
  body.nfe-office-home main.nfe-clean-main.nfe-clean-dashboard{left:220px!important;}
}

/* Mobil ist die linke Navigation ohnehin ausgeblendet. */
@media (max-width:760px){
  body.nfe-office-home .nfe-clean-topbar{height:56px!important;}
  body.nfe-office-home .nfe-clean-sidebar{display:none!important;}
  body.nfe-office-home .nfe-clean-main,
  body.nfe-office-home main.nfe-clean-main.nfe-clean-dashboard{
    top:56px!important;
    left:0!important;
    padding:20px 10px 40px!important;
  }
}
