/* AMS V130.6 — global responsive layout repair
   Restore access to wide module content without clipping the workspace. */
html,body{max-width:100%;min-width:0}
body{overflow-x:hidden}
.app-shell{width:100%;max-width:100%;min-width:0}
.workspace{width:100%;max-width:100%;min-width:0;overflow-x:auto!important;container:ams-workspace/inline-size}
.workspace>*{min-width:0;max-width:100%;box-sizing:border-box}
.topbar{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.page-title{min-width:0}
.page-title h1{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.global-search{min-width:0}
.inventory-shell,.reports-shell,.count-shell,.administration-shell,.maintenance-shell,.system-health-dashboard{min-width:0;max-width:100%;box-sizing:border-box}
.inventory-table,.quantity-count-list,.report-results,.system-health-table-wrap{max-width:100%;overflow-x:auto}
[data-slot=dialog-content],[data-slot=sheet-content],[data-slot=alert-dialog-content],.system-health-dialog{max-width:calc(100vw - 24px)!important;max-height:calc(100vh - 24px)!important}
.system-health-dialog-shell{max-height:calc(100vh - 28px);overflow-y:auto;overflow-x:hidden}
@media (max-width:1180px){
  .app-shell{grid-template-columns:76px minmax(0,1fr)}
}
@media (max-width:760px){
  .app-shell{display:block;width:100%}
  .workspace{width:100%;max-width:100%;overflow-x:auto!important}
  .topbar{width:100%;max-width:100%}
}

/* V130.6 — sidebar viewport-height accessibility repair.
   The module rail must remain fully reachable on short displays just like the workspace. */
.sidebar{
  height:100dvh!important;
  max-height:100dvh;
  min-height:0;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  padding-bottom:24px;
}
.sidebar nav{flex:none}
.sidebar .user-block{flex:none}
.sidebar .logout{flex:none;margin-bottom:4px}
.sidebar::-webkit-scrollbar{width:8px}
.sidebar::-webkit-scrollbar-track{background:transparent}
.sidebar::-webkit-scrollbar-thumb{background:#ffffff2e;border-radius:999px}
.sidebar::-webkit-scrollbar-thumb:hover{background:#ffffff45}
@supports not (height:100dvh){.sidebar{height:100vh!important;max-height:100vh}}
