# Overlay and CMS workspace fix

The administrator and client layouts now load `public/adm/css/platforma-overlays.css` and `public/adm/js/platforma-overlays.js` after the compiled Bootstrap theme.

The JavaScript manager temporarily moves an active modal or offcanvas to `document.body`, preventing parent stacking contexts from placing the application header or a backdrop above the form. After the Bootstrap `hidden` event, it returns the element to its original DOM location so dynamically generated CMS editors can still be replaced safely.

Stack order:

1. Application shell and navigation
2. Offcanvas backdrop
3. Offcanvas surface
4. Modal backdrop
5. Modal surface
6. Select2, Bootstrap Select, date/time pickers and dropdowns
7. SweetAlert, notifications and toasts

Critical data-entry surfaces use a static backdrop so clicks outside the form do not discard work. The close and cancel buttons continue to dismiss them normally.
