/* IT310RESPONSIVE_DEVICE_PASS2F
   Integração final da Etapa 2 com INFOTECH Device Runtime.
   Escopo: classes globais de dispositivo, proteção de menu mobile/PWA/AVADOG e compatibilidade com PASS2E. */

html.it-device-runtime-ready body{
  --it-responsive-runtime-active:1;
}

/* Runtime como fonte oficial para mobile/tablet nas ferramentas. */
html.it-device-runtime-ready.it-dr-phone body.it-tools-bg,
html.it-device-runtime-ready.it-dr-phone-small body.it-tools-bg,
html.it-device-runtime-ready.it-dr-tablet body.it-tools-bg{
  --it-tools-mobile-nav-mode:drawer-only;
  --it-tools-mobile-bottom-nav:0;
}

html.it-device-runtime-ready.it-dr-phone body.it-tools-bg.it-sidebar-enabled .it-mobile-appbar,
html.it-device-runtime-ready.it-dr-phone-small body.it-tools-bg.it-sidebar-enabled .it-mobile-appbar,
html.it-device-runtime-ready.it-dr-tablet body.it-tools-bg.it-sidebar-enabled .it-mobile-appbar{
  display:none!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}

/* O drawer aberto domina a UI; nenhum flutuante externo concorre. */
html.it-device-runtime-ready.it-dr-phone body.it-tools-bg.it-sidebar-mobile.it-sidebar-open .it-sidebar-backdrop,
html.it-device-runtime-ready.it-dr-phone-small body.it-tools-bg.it-sidebar-mobile.it-sidebar-open .it-sidebar-backdrop,
html.it-device-runtime-ready.it-dr-tablet body.it-tools-bg.it-sidebar-mobile.it-sidebar-open .it-sidebar-backdrop{
  display:block!important;
  background:rgba(0,0,0,.82)!important;
  backdrop-filter:blur(5px) saturate(.82)!important;
  -webkit-backdrop-filter:blur(5px) saturate(.82)!important;
  z-index:10030!important;
}

html.it-device-runtime-ready.it-dr-phone body.it-tools-bg.it-sidebar-mobile.it-sidebar-open > header.it-global-header.it-sidebar-upgraded,
html.it-device-runtime-ready.it-dr-phone-small body.it-tools-bg.it-sidebar-mobile.it-sidebar-open > header.it-global-header.it-sidebar-upgraded,
html.it-device-runtime-ready.it-dr-tablet body.it-tools-bg.it-sidebar-mobile.it-sidebar-open > header.it-global-header.it-sidebar-upgraded{
  z-index:10050!important;
  background:#020817!important;
  isolation:isolate!important;
}

html.it-device-runtime-ready.it-dr-mode-pwa body .it-install-app-cta,
html.it-device-runtime-ready.it-dr-installed-known body .it-install-app-cta{
  display:none!important;
}

/* Garante que desktop/notebook preservem o layout aprovado e só usem o runtime para classe/estado. */
html.it-device-runtime-ready.it-dr-notebook body.it-tools-bg .it-sidebar-backdrop,
html.it-device-runtime-ready.it-dr-desktop body.it-tools-bg .it-sidebar-backdrop,
html.it-device-runtime-ready.it-dr-fullhd body.it-tools-bg .it-sidebar-backdrop,
html.it-device-runtime-ready.it-dr-large-monitor body.it-tools-bg .it-sidebar-backdrop{
  pointer-events:none;
}
