/* RUSH PATCH 180 — Staff/back-office desktop width and table containment */
body.ui-staff-shell .ui-main--staff,
body.ui-staff-shell .ui-main--staff > * { min-width:0; max-width:100%; box-sizing:border-box; }
body.ui-staff-shell .ui-main--staff { overflow-x:clip; }
body.ui-staff-shell .ui-main--staff > section,
body.ui-staff-shell .ui-main--staff > div:not(.ui-staff-page-tools):not(.ui-page-loader):not(.ui-toast-region){width:100%;max-width:100%;min-width:0;}
body.ui-staff-shell .ui-main--staff > section > .max-w-7xl,
body.ui-staff-shell .ui-main--staff > section > .max-w-6xl,
body.ui-staff-shell .ui-main--staff > section > .max-w-5xl,
body.ui-staff-shell .ui-main--staff > section > .max-w-\[96rem\],
body.ui-staff-shell .ui-main--staff > section > .max-w-\[90rem\],
body.ui-staff-shell .ui-main--staff > section > .max-w-\[88rem\]{width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;}
body.ui-staff-shell .ui-main--staff :where(.grid,.flex,article,section,form,fieldset,.glass-card) > *{min-width:0;}
body.ui-staff-shell .ui-global-table-scroll{display:block;width:100%;max-width:100%;min-width:0;overflow-x:auto!important;overflow-y:visible;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;border-radius:1rem;scrollbar-gutter:stable;}
body.ui-staff-shell .ui-global-table-scroll > table{max-width:none!important;min-width:100%;}
@media (min-width:1200px){
 body.ui-staff-shell .ui-main--staff > section,
 body.ui-staff-shell .ui-main--staff > div:not(.ui-staff-page-tools):not(.ui-page-loader):not(.ui-toast-region){padding-left:clamp(1rem,1.6vw,1.75rem)!important;padding-right:clamp(1rem,1.6vw,1.75rem)!important;}
 body.ui-staff-shell .ui-main--staff .ui-global-table-scroll > table{width:max-content;min-width:100%;}
}
@media (max-width:760px){body.ui-staff-shell .ui-global-table-scroll{overflow:visible!important;}}
/* Fluidise the page-level max-width wrappers used throughout admin views.
   Only direct page wrappers are targeted; narrow inner forms/modals retain their limits. */
body.ui-staff-shell .ui-main--staff > section > [class*="max-w-"],
body.ui-staff-shell .ui-main--staff > div:not(.ui-staff-page-tools):not(.ui-page-loader):not(.ui-toast-region) > [class*="max-w-"] {
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  min-width:0!important;
}
