.dashboard {
  margin-top: 32px;
  padding: 0;
}

.dashboard__menu {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.dashboard__menu>.dashboard__menu-list {
  display: none;
}

.dashboard__menu--open>.dashboard__menu-list {
  display: flex;
}

.dashboard__menu--open>.dashboard__menu-list-overlay {
  display: flex;
}

.dashboard__menu-list {
  flex-direction: column;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 2;
  transform: translateY(calc(100% + 8px));
}

.dashboard__menu-list-overlay {
  display: none;
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-gray1);
  opacity: 0.2;
}

.dashboard__menu-item {
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.dashboard__menu-item:not(:first-child) {
  margin-top: 12px;
}

.dashboard__button.btn {
  position: relative;
  min-width: max-content;
  align-items: stretch;
  padding: 10px 20px;
  padding-left: 18px;
}

.dashboard__button .btn__text {
  display: none;
}

.dashboard-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

@media (min-width: 768px) {
  .dashboard__button .btn__text {
    display: block;
  }

  .dashboard-overlay {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
  }
}
