html,
body {
  min-height: 100%;
}

body {
  margin: 0;
}

.min-w-0 {
  min-width: 0;
}

.app-layout {
  display: flex;
  min-height: calc(100vh - 57px);
  background: #f8f9fa;
}

.app-sidebar {
  flex: 0 0 320px;
  width: 320px;
  max-width: 320px;
  height: calc(100vh - 57px);
  position: sticky;
  top: 57px;
  overflow: auto;
  border-right: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  z-index: 1010;
}

.app-sidebar-hidden {
  display: none;
}

.project-selector-panel {
  padding: 1rem;
}

.app-main {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--bs-body-bg);
}

.app-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(33, 37, 41, 0.35);
  z-index: 1040;
}

.app-mobile-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(86vw, 340px);
  overflow: auto;
  background: var(--bs-body-bg);
  border-right: 1px solid var(--bs-border-color);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  z-index: 1050;
}

.app-navbar-toggler-icon {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 991.98px) {
  .app-layout {
    display: block;
  }

  .app-sidebar {
    display: none;
  }
}
