.machine-select {
  width: 100%;

  .organisation-select__trigger {
    border-radius: 14px;
  }
}

.add-employee-modal:has(.machine-select.is-open) {
  overflow: visible;
}

.machine-select__dropdown {
  z-index: 220;
}

.machine-select__list {
  max-height: min(320px, calc(100vh - 80px));
  margin-top: 0;
}

.machine-select__option {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;

  small {
    flex: 0 1 auto;
    white-space: normal;
    line-height: 1.3;
  }

  &.is-disabled {
    opacity: 0.58;
    cursor: not-allowed;

    &:hover {
      background: transparent;
      color: var(--color-text);
    }
  }
}

.machine-select__option--action {
  margin-top: 4px;
  border-top: 1px solid var(--gray20);

  flex-direction: row;
  align-items: center;
  justify-content: space-between;

  color: var(--color-primary);

  span {
    color: inherit;
    font-weight: 650;
  }

  svg {
    flex: 0 0 auto;
  }
}
