/* The "⋯" menu of a row whose items do not all fit (overflow.js). It lists the moved items one per line, as GitHub's
   overflow menu does, and an item's own menu opens below it inside the list instead of floating over its neighbours. */
.theme-overflow > .theme-dropdown-panel {
  width: 256px;
}

.theme-overflow-items {
  display: flex;
  flex-direction: column;
}

.ui.menu .theme-overflow-items > .item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 32px;
  height: auto;
  margin: 0;
  padding: 6px 8px;
  border-radius: var(--border-radius);
  color: var(--color-text);
  font-size: 14px;
  line-height: 20px;
}

.ui.menu .theme-overflow-items > .item:hover {
  background: var(--github-control-transparent-bgColor-hover);
}

.ui.menu .theme-overflow-items > .ui.dropdown.item > .menu {
  position: static;
  flex: 1 1 100%;
  min-width: 0;
  max-width: none;
  margin: 6px -8px -6px;
  border: 0;
  border-top: 1px solid var(--color-light-border);
  border-radius: 0;
  box-shadow: none;
}
