.dropdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--dark-background);
  padding: 3px 5px;
  margin-top: 5px;
  margin-bottom: 5px;
  cursor: pointer;
  transition: background-color 0.1s;
  height: calc(1em + 4px);
  min-width: calc(1em + 4px);
  user-select: none;
  position: relative;
}

.dropdown:first-child {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  margin-left: 5px;
}

.dropdown:last-child {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  margin-right: 5px;
}

.dropdown:hover {
  background-color: var(--dark-active);
}

.dropdown-popup {
  position: absolute;
  z-index: 100;
  min-width: calc(100% - 6px);
  left: 0;
  top: 100%;
  background-color: var(--dark-background);
  border-radius: 5px;
  z-index: 100;
  padding: 3px;
  display: flex;
  flex-direction: column;
}

.dropdown-popup-background {
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: default;
}

.dropdown-item {
  border-radius: 5px;
  padding: 3px 5px;
  display: flex;
  white-space: nowrap;
  align-items: center;
  transition: background-color 0.1s;
}

.dropdown-item:hover {
  background-color: var(--dark-active);
}

.item-icon {
  width: 1em;
  height: 1em;
}

.item-text {
  margin-left: 5px;
  margin-right: 5px;
  overflow: hidden;
  text-wrap: nowrap;
}
