.sidebar {
  background: var(--tenant-sidebar-background-color);
  bottom: 0;
  color: var(--tenant-sidebar-foreground-color);
  display: flex;
  gap: 0.25rem;
  height: 4rem;
  left: 0;
  padding: 0.75rem;
  position: fixed;
  right: 0;
  z-index: 20;
}

.sidebar__brand,
.sidebar__item,
.sidebar__profile-button {
  align-items: center;
  border-radius: 6px;
  color: inherit;
  display: inline-flex;
  gap: 0.625rem;
  min-height: 2.5rem;
  padding: 0.5rem;
  text-decoration: none;
}

.sidebar__brand {
  flex: 0 0 auto;
}

.sidebar__item:hover,
.sidebar__profile-button:hover {
  background: var(--tenant-sidebar-hover-background-color);
  color: var(--tenant-sidebar-hover-foreground-color);
}

.sidebar__nav {
  display: flex;
  flex: 1 1 auto;
  gap: 0.25rem;
}

.sidebar__item span,
.sidebar__profile-button span,
.sidebar__logo--full {
  display: none;
}

.sidebar__logo--mark {
  height: 2rem;
  width: 2rem;
}

.sidebar__profile {
  margin-left: auto;
}

.sidebar__profile-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.profile-menu {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  bottom: 4.5rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
  min-width: 14rem;
  padding: 0.5rem;
  position: fixed;
  right: 0.75rem;
  z-index: 30;
}

.profile-menu__item {
  align-items: center;
  border-radius: 6px;
  color: #111827;
  display: flex;
  gap: 0.625rem;
  padding: 0.75rem;
  text-decoration: none;
  width: 100%;
}

.profile-menu__item:hover {
  background: #f3f4f6;
}

.profile-menu__button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

@media (min-width: 800px) {
  .sidebar {
    bottom: auto;
    flex-direction: column;
    height: 100vh;
    padding: 1.25rem 1rem;
    right: auto;
    top: 0;
    width: 16rem;
  }

  .sidebar__brand {
    margin-bottom: 1.5rem;
  }

  .sidebar__logo--full,
  .sidebar__item span,
  .sidebar__profile-button span {
    display: inline;
  }

  .sidebar__logo--full {
    height: 3rem;
    max-width: 13rem;
    object-fit: contain;
  }

  .sidebar__logo--mark {
    display: none;
  }

  .sidebar__nav {
    flex-direction: column;
  }

  .sidebar__profile {
    margin: auto 0 0;
  }

  .profile-menu {
    bottom: 5rem;
    left: 1rem;
    right: auto;
  }
}
