
/* Fullscreen the entire document so every app dialog remains in the fullscreen top layer. */
html:fullscreen,html:-webkit-full-screen{width:100vw!important;height:100vh!important;background:var(--bg)!important}
html:fullscreen body,html:-webkit-full-screen body{width:100vw!important;height:100vh!important;overflow:hidden!important;background:var(--bg)!important}
/* Templates, project info, NFPA settings, calculators, risk/report dialogs must remain usable in MAX. */
body.lc-working-max .modal,html:fullscreen .modal,html:-webkit-full-screen .modal{z-index:2147483000!important}
body.lc-working-max .modal.show,html:fullscreen .modal.show,html:-webkit-full-screen .modal.show{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
body.lc-working-max .dialog,html:fullscreen .dialog,html:-webkit-full-screen .dialog{position:relative!important;z-index:2147483001!important}
/* Keep command reference above ordinary dialogs. */
body.lc-working-max #lcShortcutOverlay,html:fullscreen #lcShortcutOverlay,html:-webkit-full-screen #lcShortcutOverlay{z-index:2147483200!important}
/* Keep results and temporary drawers usable without covering modal dialogs. */
body.lc-working-max .coverage-results-drawer,html:fullscreen .coverage-results-drawer{z-index:13000!important}
body.lc-working-max .library,body.lc-working-max .properties,html:fullscreen .library,html:fullscreen .properties{z-index:12000!important}
