/* Fixed outer window, independent record viewport. */
html,body{
 height:100%;min-height:0;overflow:hidden;overscroll-behavior:none;
}
html{scrollbar-gutter:auto}
.shell{
 display:flex;flex-direction:column;
 height:calc(100dvh - 24px);min-height:0;overflow:hidden;
}
.shell>.top{flex:0 0 auto}
.shell>main{
 box-sizing:border-box;
 width:100%;flex:1 1 auto;min-height:0;
 margin:0 auto;overflow:auto;overscroll-behavior:contain;
}
@media(max-width:850px){.shell{height:calc(100dvh - 16px);min-height:0}}
@media(max-width:540px){.shell{height:calc(100dvh - 12px);min-height:0}}
/* Desktop: only list contents move. The search, filter and page controls are outside this viewport. */
@media(min-width:1100px) and (min-height:600px){
 .shell>main{overflow:hidden;display:flex;flex-direction:column}
 #customer-page,#account-page{min-height:0;flex:1 1 auto;display:flex;flex-direction:column}
 #customer-page>.intro,#account-page>.intro,.metrics,.account-banner,.account-stats{flex:0 0 auto}
 .desk{
  flex:1 1 auto;min-height:0;
  grid-template-columns:minmax(0,1.35fr) minmax(305px,1fr);
  align-items:stretch;
 }
 .listing{display:flex;flex-direction:column;min-height:0}
 .listing>.tools,.listing>.filters,.listing>.pagination{flex:0 0 auto}
 #records,#account-list{min-height:0;flex:1 1 auto;overflow:auto;overscroll-behavior:contain}
 #records:focus-visible,#account-list:focus-visible{outline-offset:-3px}
 .listing .table-shell{overflow:visible}
 .listing table{min-width:0}
 .listing td:nth-child(2){overflow-wrap:anywhere}
 .listing th{position:sticky;top:0;z-index:1;box-shadow:0 1px 0 #ccd8e8}
 .listing>.pagination{box-shadow:0 -1px 0 #c7d7eb84;z-index:1}
 .profile{min-height:0;overflow:auto;overscroll-behavior:contain}
}
.shell>main,#records,#account-list,.profile{
 scrollbar-width:thin;scrollbar-color:#526c8777 transparent;
}
@supports selector(::-webkit-scrollbar){
 .shell>main,#records,#account-list,.profile{scrollbar-width:auto;scrollbar-color:auto}
 .shell>main::-webkit-scrollbar,#records::-webkit-scrollbar,#account-list::-webkit-scrollbar,.profile::-webkit-scrollbar{width:8px;height:7px}
 .shell>main::-webkit-scrollbar-thumb,#records::-webkit-scrollbar-thumb,#account-list::-webkit-scrollbar-thumb,.profile::-webkit-scrollbar-thumb{
  background:#526c8780;border:2px solid transparent;background-clip:padding-box;border-radius:999px;
 }
 .shell>main::-webkit-scrollbar-thumb:hover,#records::-webkit-scrollbar-thumb:hover,#account-list::-webkit-scrollbar-thumb:hover,.profile::-webkit-scrollbar-thumb:hover{background-color:#3e638d9c}
 .shell>main::-webkit-scrollbar-track,#records::-webkit-scrollbar-track,#account-list::-webkit-scrollbar-track,.profile::-webkit-scrollbar-track{background:transparent}
 .shell>main::-webkit-scrollbar-button,#records::-webkit-scrollbar-button,#account-list::-webkit-scrollbar-button,.profile::-webkit-scrollbar-button{display:none}
}

