.legacy-flask-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 300px;
}

.legacy-flask-main-row {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  min-height: 100vh;
}

.legacy-flask-sidebar {
  align-self: stretch;
  height: auto !important;
  min-height: 100%;
  position: relative;
  z-index: 1200;
}

.legacy-flask-sidebar.sidebar-open {
  z-index: 3200;
}

body.modal-open .legacy-flask-sidebar,
body.modal-open .legacy-flask-sidebar.sidebar-open {
  z-index: 1030 !important;
}

body.modal-open .legacy-flask-content {
  position: relative;
  z-index: 30000;
}

.legacy-flask-sidebar .sidebar-container {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  min-height: 0;
}

.legacy-flask-content {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 100vh;
  position: relative;
  z-index: 0;
}

@media (max-width: 600px) {
  .legacy-flask-content {
    min-width: 0;
  }
}
