/* Hotel Kimininga Cloud v36.1 shell reliability hotfix */
body.hk-form-mode #appView.hk-form-mode {
  position: relative !important;
  inset: auto !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  display: grid !important;
  grid-template-columns: var(--hk-sidebar-w, 272px) minmax(0, 1fr) !important;
  grid-template-rows: 1fr !important;
  overflow: hidden !important;
}

body.hk-form-mode #appView.hk-form-mode > #hkSidebar {
  position: relative !important;
  inset: auto !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: var(--hk-sidebar-w, 272px) !important;
  max-width: var(--hk-sidebar-w, 272px) !important;
  height: 100vh !important;
  min-height: 0 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.hk-form-mode #appView.hk-form-mode > .workspace {
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100vh !important;
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  overflow: hidden !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

body.hk-form-mode #appView.hk-form-mode > .workspace > .topbar {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  z-index: 5 !important;
}

body.hk-form-mode #appView.hk-form-mode > .workspace > #content.content {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: auto !important;
  transform: none !important;
  z-index: 1 !important;
}

body.hk-form-mode #appView.hk-form-mode > .workspace > footer.system-footer {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  z-index: 4 !important;
}

.hk-shell-error {
  margin: 24px auto;
  max-width: 720px;
  padding: 24px;
  border: 1px solid rgba(239, 68, 68, .34);
  border-radius: 18px;
  background: rgba(66, 18, 27, .34);
  color: #f6f8fb;
}
.hk-shell-error h2 { margin: 0 0 8px; color: #fff; }
.hk-shell-error p { margin: 0 0 16px; color: #c8d4df; }

@media (max-width: 820px) {
  body.hk-form-mode #appView.hk-form-mode {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: auto !important;
  }
  body.hk-form-mode #appView.hk-form-mode > #hkSidebar {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
  }
  body.hk-form-mode #appView.hk-form-mode > .workspace {
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
  }
}
