/*
 * SKOGUR ERP host compatibility: inline order editor scroll (ERP-006).
 *
 * Legacy design.css locks the document with `body:has(dialog[open]) { overflow: hidden }`.
 * prototype-order-editor.js opens #editor non-modally (editor.show()) as an inline page
 * (.poe-page-editor), so that lock hides the editor footer/save button.
 *
 * This override restores natural vertical scrolling ONLY while the inline editor is open
 * non-modally AND no real modal dialog is open AND no other host lock class is active.
 * Load after the existing host styles. No !important: print and other rules stay intact.
 */
body:has(#editor.poe-page-editor[open]:not(:modal)):not(:has(dialog:modal)):not(.nav-open):not(.mobile-chat-open):not(.auth-locked) {
  overflow: visible;
}
