/* Keep inventory services inside their application, preserving the existing theme. */
body.inventory-service-active #inventoryPage > .erp-app-ribbon { display:none!important; }
body.inventory-service-active #inventoryPage > #inventoryServiceModal { position:static!important; inset:auto!important; width:100%!important; height:auto!important; min-height:0!important; padding:0!important; margin:0!important; background:transparent!important; backdrop-filter:none!important; z-index:auto!important; }
body.inventory-service-active #inventoryServiceModal > .inventory-service-card { width:100%!important; max-width:none!important; height:calc(100dvh - 64px)!important; max-height:calc(100dvh - 64px)!important; margin:0!important; }
@media(max-width:700px){ body.inventory-service-active #inventoryServiceModal > .inventory-service-card { height:calc(100dvh - 56px)!important; max-height:calc(100dvh - 56px)!important; } }

html body #inventoryPage:has(> #movementWorkspaceModal:not(.is-hidden)) > :not(#movementWorkspaceModal){display:none!important}
html body #inventoryPage > #movementWorkspaceModal:not(.is-hidden){position:static!important;inset:auto!important;display:block!important;width:100%!important;padding:0!important;background:transparent!important}
html body #inventoryPage > #movementWorkspaceModal .inventory-workspace-modal-card{width:100%!important;max-width:none!important;max-height:calc(100dvh - 64px)!important;margin:0!important;box-sizing:border-box!important;overflow:auto!important}
