/* TestOnCall v10: independent admin scrolling; never lock the public website. */
html.toc-admin-route,html.toc-admin-route body{height:100%;min-height:0;overflow:hidden!important}
html.toc-admin-route #root{height:100%;min-height:0;overflow:hidden}
html.toc-admin-route #root > div:has(> main){height:100dvh!important;max-height:100dvh!important;min-height:0!important;overflow:hidden!important;display:flex}
html.toc-admin-route #root > div > aside{height:100dvh;max-height:100dvh;min-height:0;overflow:hidden;position:relative}
html.toc-admin-route #root > div > aside > nav{min-height:0;overflow-y:auto;overscroll-behavior:contain}
html.toc-admin-route #root > div > main{height:100dvh;max-height:100dvh;min-height:0;overflow-y:auto!important;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}
html.toc-admin-route #root > div > main > header{position:sticky;top:0;z-index:15}
html.toc-admin-route #root > div > main > div{min-width:0;flex:none}
@media(max-width:1023px){
 html.toc-admin-route #root > div > aside{position:fixed;inset:0;z-index:50;width:min(320px,100vw)}
 html.toc-admin-route #root > div > aside.hidden{display:none}
 html.toc-admin-route #root > div > main{width:100%;max-width:100%}
}

/* v18: mobile drawer must use flex layout; nav scrolls independently of header/footer. */
@media (max-width: 1023px){
 html.toc-admin-route #root > div > aside:not(.hidden){
   display:flex!important;flex-direction:column!important;
   position:fixed!important;inset-block:0!important;left:0!important;right:auto!important;
   width:min(86vw,320px)!important;height:100dvh!important;max-height:100dvh!important;
   overflow:hidden!important;z-index:50;
 }
 html.toc-admin-route #root > div > aside > div{flex-shrink:0}
 html.toc-admin-route #root > div > aside > nav{
   flex:1 1 0%!important;min-height:0!important;height:0!important;
   overflow-y:auto!important;overflow-x:hidden!important;
   overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;
   padding-bottom:calc(16px + env(safe-area-inset-bottom));
 }
 html.toc-admin-route #root > div > main{min-width:0!important;max-width:100vw!important;overflow-x:hidden!important}
 html.toc-admin-route #root > div > main > div{min-width:0!important;max-width:100%!important}
}
