/* AI Project Universe V6.12 — single translate control and clean Incident mobile dashboard */

/* Keep exactly one custom language trigger on mobile; desktop keeps the native selector. */
.viewer #apuV612LanguageTrigger{display:none}
.viewer .apu-v612-language-menu{
  position:fixed!important;
  z-index:2147483647!important;
  display:none!important;
  width:min(290px,calc(100vw - 20px))!important;
  max-height:min(440px,calc(100dvh - 92px))!important;
  padding:10px!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  border:3px solid #fff!important;
  border-radius:14px!important;
  background:#07111f!important;
  background-image:none!important;
  color:#fff!important;
  opacity:1!important;
  box-shadow:0 24px 70px rgba(0,0,0,.72)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
}
.viewer .apu-v612-language-menu.is-open{display:grid!important;gap:7px!important}
.viewer .apu-v612-language-option{
  display:grid!important;
  grid-template-columns:46px minmax(0,1fr)!important;
  align-items:center!important;
  width:100%!important;
  min-height:48px!important;
  padding:8px 11px!important;
  border:1px solid #34516f!important;
  border-radius:10px!important;
  background:#12243d!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  text-align:left!important;
  opacity:1!important;
  cursor:pointer!important;
}
.viewer .apu-v612-language-option:hover,
.viewer .apu-v612-language-option:focus-visible,
.viewer .apu-v612-language-option[aria-current="true"]{
  background:#1f5b9c!important;
  border-color:#78b9ff!important;
  outline:none!important;
}
.viewer .apu-v612-language-code{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:30px!important;
  padding:0 5px!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#07111f!important;
  -webkit-text-fill-color:#07111f!important;
  font:900 11px/1 system-ui,-apple-system,"Segoe UI",sans-serif!important;
}
.viewer .apu-v612-language-name{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font:800 14px/1.25 system-ui,-apple-system,"Segoe UI",sans-serif!important;
}

@media (max-width:760px){
  .viewer .viewer__language-control{display:none!important}
  .viewer #apuV612LanguageTrigger{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 48px!important;
    width:48px!important;
    min-width:48px!important;
    max-width:48px!important;
    height:44px!important;
    min-height:44px!important;
    padding:0!important;
    margin:0!important;
    border:3px solid #111!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#111!important;
    -webkit-text-fill-color:#111!important;
    font:900 22px/1 system-ui,-apple-system,"Segoe UI",sans-serif!important;
    opacity:1!important;
  }
  .viewer .apu-v69-language-button:not(#apuV612LanguageTrigger),
  .viewer .apu-v611-language-trigger:not(#apuV612LanguageTrigger),
  .viewer .apu-v69-language-menu:not(.apu-v612-language-menu),
  .viewer .apu-v611-language-menu{display:none!important}
}

/* Incident Monitoring: mobile shows the dashboard directly below the shared navbar. */
@media (max-width:1023px){
  html[data-scroll-theme="incident-monitoring"] #root aside,
  html[data-scroll-theme="incident-monitoring"] #root > div > aside,
  html[data-scroll-theme="incident-monitoring"] #root .apu-v612-incident-sidebar,
  html[data-scroll-theme="incident-monitoring"] #root [data-apu-final-original-sidebar="true"],
  html[data-scroll-theme="incident-monitoring"] #root [data-apu-v610-incident-sidebar="true"],
  html[data-scroll-theme="incident-monitoring"] #root [data-apu-v611-incident-sidebar="true"],
  html[data-scroll-theme="incident-monitoring"] #root [data-apu-v612-incident-sidebar="true"]{
    display:none!important;
    visibility:hidden!important;
    width:0!important;
    min-width:0!important;
    max-width:0!important;
    flex:0 0 0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
  }
  html[data-scroll-theme="incident-monitoring"] #root,
  html[data-scroll-theme="incident-monitoring"] #root > div,
  html[data-scroll-theme="incident-monitoring"] #root .apu-v612-incident-shell{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:calc(100dvh - 76px)!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
  }
  html[data-scroll-theme="incident-monitoring"] #root main,
  html[data-scroll-theme="incident-monitoring"] #root > div > main,
  html[data-scroll-theme="incident-monitoring"] #root .apu-v612-incident-main{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    min-height:calc(100dvh - 76px)!important;
    margin:0!important;
    padding-left:0!important;
    overflow-x:hidden!important;
    overflow-y:visible!important;
  }
  html[data-scroll-theme="incident-monitoring"] .apu-final-mobile-bar{
    grid-template-columns:auto minmax(0,1fr)!important;
    padding-right:14px!important;
  }
  html[data-scroll-theme="incident-monitoring"] .apu-final-mobile-exit,
  html[data-scroll-theme="incident-monitoring"] [data-apu-incident-mobile-exit="true"],
  html[data-scroll-theme="incident-monitoring"] .apu-v612-incident-exit{
    display:none!important;
    visibility:hidden!important;
    width:0!important;
    min-width:0!important;
    max-width:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
  }
  /* The drawer remains available from the hamburger, but without the bulky identity header or an X button. */
  html[data-scroll-theme="incident-monitoring"] .apu-final-mobile-drawer .apu-final-drawer-head,
  html[data-scroll-theme="incident-monitoring"] .apu-final-mobile-drawer .apu-final-drawer-close{
    display:none!important;
  }
  html[data-scroll-theme="incident-monitoring"] .apu-final-mobile-drawer{
    padding-top:12px!important;
  }
  html[data-scroll-theme="incident-monitoring"] .apu-final-mobile-links{
    padding-top:0!important;
  }
}
