/* v6.26: One scroll context for the embedded content; keep independent sidebar scrolling.
   Only active iframe views are locked. The public home page remains a normal document. */
html:has(body.o112cp-body .o112cp.is-content-view){
  overflow:hidden!important;
  height:100%!important;
}
body.o112cp-body:has(.o112cp.is-content-view){
  height:100dvh!important;
  min-height:0!important;
  max-height:100dvh!important;
  overflow:hidden!important;
  overscroll-behavior:none;
}
body.admin-bar.o112cp-body:has(.o112cp.is-content-view){
  height:calc(100dvh - 32px)!important;
  max-height:calc(100dvh - 32px)!important;
}
body.o112cp-body .o112cp.is-content-view{
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  grid-template-rows:minmax(0,1fr);
  overflow:hidden!important;
}
body.o112cp-body .o112cp.is-content-view .o112cp-sidebar{
  position:relative!important;
  top:auto!important;
  height:100%!important;
  max-height:100%!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
}
body.o112cp-body .o112cp.is-content-view .o112cp-workspace{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  overflow:hidden!important;
}
body.o112cp-body .o112cp.is-content-view .o112cp-top{flex:0 0 auto;}
body.o112cp-body .o112cp.is-content-view .o112cp-main{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow:hidden!important;
}
body.o112cp-body .o112cp.is-content-view .o112cp-view{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  overflow:hidden!important;
}
body.o112cp-body .o112cp.is-content-view .o112cp-view-head{flex:0 0 auto;}
body.o112cp-body .o112cp.is-content-view .o112cp-frame-wrap,
body.o112cp-body .o112cp.is-content-view.is-map-view .o112cp-frame-wrap{
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow:hidden!important;
}
body.o112cp-body .o112cp.is-content-view .o112cp-frame-wrap iframe{
  display:block!important;
  width:100%!important;
  height:100%!important;
  border:0!important;
}
/* The footer remains available on the standalone home, not inside a dashboard view. */
body.o112cp-body:has(.o112cp.is-content-view) > .o112-sitefoot{display:none!important;}
@media(max-width:780px){
  body.admin-bar.o112cp-body:has(.o112cp.is-content-view){
    height:calc(100dvh - 46px)!important;
    max-height:calc(100dvh - 46px)!important;
  }
  body.o112cp-body .o112cp.is-content-view{display:block!important;position:relative;}
  body.o112cp-body .o112cp.is-content-view .o112cp-workspace{height:100%!important;}
  body.o112cp-body .o112cp.is-content-view .o112cp-sidebar{
    position:fixed!important;
    top:0!important;
    height:100dvh!important;
    max-height:100dvh!important;
    overflow-y:auto!important;
  }
  body.o112cp-body .o112cp.is-content-view .o112cp-main{flex:1 1 auto!important;min-height:0!important;}
}
