/* Runtime corrections validated against the real ERP screens. */
.erp-nav,.erp-content,.tabs,.table-wrap,.detail-card,.dialog-body,.erp-dialog{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
.erp-nav::-webkit-scrollbar,.erp-content::-webkit-scrollbar,.tabs::-webkit-scrollbar,.table-wrap::-webkit-scrollbar,.detail-card::-webkit-scrollbar,.dialog-body::-webkit-scrollbar,.erp-dialog::-webkit-scrollbar{
  width:0!important;
  height:0!important;
  display:none!important;
  background:transparent!important;
}
.erp-shell,.erp-sidebar,.erp-main,.erp-content,.card,.detail-card,.page-head,.page-actions,.toolbar,.action-grid,.primary-actions{min-width:0!important;}

/* Keep ERP dialogs inside the viewport. Their content scrolls internally without showing a rail. */
dialog.erp-dialog{max-height:90dvh!important;overflow:hidden!important}
dialog.erp-dialog .dialog-head{position:sticky!important;top:0!important;z-index:2!important;background:#fff!important}
dialog.erp-dialog .dialog-body{max-height:calc(90dvh - 74px)!important;overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-width:none!important}
dialog.erp-dialog .dialog-body::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
.erp-brand img,.login-card img{object-fit:contain!important;object-position:center!important;background:transparent!important;border:0!important}
@media(max-width:760px){dialog.erp-dialog{width:calc(100vw - 20px)!important;max-height:92dvh!important}dialog.erp-dialog .dialog-body{max-height:calc(92dvh - 70px)!important}.erp-brand img{object-position:left center!important}}
