/* Klever v47 — Bitrix public editor safe stacking.
   Important: do not override Bitrix dialog z-index values. Bitrix itself must manage
   the order of the page editor, media gallery and upload windows. */
html body.klever-bitrix-admin-mode header.klever-home-header,
html body.klever-bitrix-admin-mode header.klever-site-header,
html body.klever-bitrix-admin-mode #menu,
html body.klever-bitrix-admin-mode #menu.default,
html body.klever-bitrix-admin-mode #menu.fixed,
html body.klever-bitrix-admin-mode #menu .navbar,
html body.klever-bitrix-admin-mode #menu .navbar-inverse,
html body.klever-bitrix-admin-mode #menu .navbar > .container,
html body.klever-bitrix-admin-mode #klever-desktop-more-panel {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  inset: auto !important;
  z-index: 0 !important;
  transform: none !important;
}

html body.klever-bitrix-admin-mode .klever-mobile-inline-menu-toggle,
html body.klever-bitrix-admin-mode #klever-mobile-menu-button,
html body.klever-bitrix-admin-mode .go_top {
  position: relative !important;
  z-index: 1 !important;
}

@media (max-width: 767.98px) {
  html body.klever-bitrix-admin-mode #menu #klever-mobile-menu-state ~ .navbar-collapse,
  html body.klever-bitrix-admin-mode #menu #klever-mobile-menu-state ~ .navbar-collapse.collapse,
  html body.klever-bitrix-admin-mode #menu #klever-mobile-menu-state ~ .navbar-collapse.in,
  html body.klever-bitrix-admin-mode #menu #klever-mobile-menu-state ~ .navbar-collapse.collapsing {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    z-index: 0 !important;
  }
}

/* The site may never create a stacking context above Bitrix dialogs. */
html body.klever-bitrix-admin-mode #panel,
html body.klever-bitrix-admin-mode .content_page,
html body.klever-bitrix-admin-mode #block-search {
  isolation: auto !important;
  transform: none !important;
}
