:root {
  --fd-sidebar-width: 280px;
}

body.app-shell {
  min-height: 100vh;
  padding-left: var(--fd-sidebar-width);
}

body.app-shell > header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--fd-sidebar-width);
  box-sizing: border-box;
  padding: 1rem;
  overflow-y: auto;
  border-right: 1px solid #d8dde6;
  z-index: 1000;
}

body.app-shell > header h1 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

body.app-shell > header > p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  opacity: 0.75;
}

body.app-shell #mainNav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.app-shell #mainNav br {
  display: none;
}

body.app-shell #mainNav a,
body.app-shell #mainNav .nav-button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0.2rem 0;
  padding: 0.45rem 0.55rem;
  text-align: left;
  text-decoration: none;
  border-radius: 0.35rem;
}

body.app-shell #mainNav a:hover,
body.app-shell #mainNav .nav-button:hover {
  background: rgba(0, 0, 0, 0.06);
}

body.app-shell #mainNav .nav-section-title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}

body.app-shell #mainNav .sidebar-brand {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #d8dde6;
}

body.app-shell #mainNav .sidebar-logo {
  font-size: 1.1rem;
  font-weight: 700;
}

body.app-shell #mainNav .sidebar-user {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  word-break: break-word;
}

body.app-shell #mainNav .sidebar-user small {
  opacity: 0.75;
}

body.app-shell #mainNav .nav-button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

body.app-shell > main.container,
body.app-shell > main.page {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 1.5rem;
}

@media (max-width: 800px) {
  body.app-shell {
    padding-left: 0;
  }

  body.app-shell > header {
    position: static;
    width: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid #d8dde6;
  }

  body.app-shell > main.container,
  body.app-shell > main.page {
    padding: 1rem;
  }
}
