.assign-item-for-modal {
  width: min(420px, calc(100vw - (2 * var(--spacing-md))));
  max-width: 420px;
  overflow-x: hidden;
}

.assign-item-for-modal-field {
  margin-bottom: var(--spacing-sm);
  width: 100%;
  min-width: 0;
}

.assign-item-for-dropdown {
  position: relative;
  width: 100%;
  min-width: 0;
}

.assign-item-for-dropdown-trigger {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xs);
  padding: var(--input-padding-y) var(--input-padding-x);
  border: var(--border-width-thin) solid var(--input-border-color);
  border-radius: var(--input-border-radius);
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  font-size: var(--font-size-base);
  text-align: left;
  cursor: pointer;
}

.assign-item-for-dropdown-trigger.is-open,
.assign-item-for-dropdown-trigger:focus-visible {
  outline: none;
  border-color: var(--input-focus-border-color);
  box-shadow: var(--input-focus-shadow);
}

.assign-item-for-dropdown-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assign-item-for-dropdown-caret {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.assign-item-for-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 3;
  max-height: 180px;
  overflow-y: auto;
  background: var(--color-bg-surface);
  border: var(--border-width-thin) solid var(--input-border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
}

.assign-item-for-dropdown-option {
  width: 100%;
  display: block;
  text-align: left;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 10px var(--input-padding-x);
  background: transparent;
  color: var(--color-text-primary);
  cursor: pointer;
}

.assign-item-for-dropdown-option:hover {
  background: var(--color-bg-hover);
}

.assign-item-for-dropdown-option.is-selected {
  background: var(--color-primary-light);
}

.assign-item-for-modal-empty {
  margin: 0 0 var(--spacing-sm) 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}
