/* Keep dashboard headers, section tabs and footers outside the content scroller. */
body.fixed-dashboard{height:100dvh;overflow:hidden;display:flex;flex-direction:column}
.fixed-dashboard>header,.fixed-dashboard>.site-footer{flex:none}
.fixed-dashboard .home-shell{flex:1;min-height:0;overflow:hidden;padding-top:14px;padding-bottom:0}
.fixed-dashboard #home-app{height:100%;min-height:0;display:flex;flex-direction:column}
.fixed-dashboard #home-app[hidden],.fixed-dashboard #app[hidden]{display:none!important}
.fixed-dashboard .home-welcome,.fixed-dashboard .home-tabs{flex:none}
.fixed-dashboard .home-welcome{margin-bottom:12px}
.fixed-dashboard .home-tabs{margin-bottom:12px}
.dashboard-scroll-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 8px 20px 0}
.fixed-dashboard #app.layout{flex:1;min-height:0;width:min(1280px,calc(100% - 44px));margin:0 auto;padding:16px 0 0;overflow:hidden;align-items:stretch;grid-template-rows:minmax(0,1fr)}
.fixed-dashboard #app>.sidebar{min-height:0;overflow:auto;align-self:stretch;padding-bottom:15px}
.fixed-dashboard #app>.main{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 8px 20px 0}
@media(max-width:1000px){.fixed-dashboard #app.layout{grid-template-rows:auto minmax(0,1fr)}.fixed-dashboard #app>.sidebar{overflow-x:auto;overflow-y:hidden;max-height:64px}}
@media(max-width:600px){.fixed-dashboard .home-shell{padding-top:8px}.fixed-dashboard .home-welcome{margin-bottom:8px}.fixed-dashboard .home-tabs{flex-wrap:nowrap;overflow:auto;white-space:nowrap;padding-bottom:6px;gap:5px}.fixed-dashboard .home-tabs button{flex:none}.fixed-dashboard #app.layout{width:calc(100% - 28px);padding-top:8px}.dashboard-scroll-body{padding-right:3px}}

/* Customer dashboards use the browser page scrollbar. Owner dashboard stays fixed. */
body.customer-dashboard{height:auto;min-height:100dvh;overflow:visible}
.customer-dashboard .dashboard-scroll-body{flex:none;min-height:auto;overflow:visible;overscroll-behavior:auto;scrollbar-gutter:auto;padding-right:0}
