/* 客服员工可搜索下拉选择组件 (Searchable Staff Select) 样式模块 */
.staff-combobox-wrap {
  position: relative !important;
  width: 100%;
}

.staff-combobox-input {
  cursor: pointer;
  background-color: #fff !important;
}

.staff-combobox-input:focus {
  cursor: text;
}

.staff-combobox-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8c9ba5;
  pointer-events: none;
  font-size: 11px;
  transition: transform .2s ease, color .2s ease;
}

.staff-combobox-wrap.open .staff-combobox-arrow {
  transform: translateY(-50%) rotate(180deg);
  color: #5265de;
}

.staff-dropdown-menu {
  display: none;
  position: absolute !important;
  top: calc(100% + 5px) !important;
  left: 0 !important;
  min-width: 100% !important;
  width: max-content;
  max-width: 320px;
  max-height: 250px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #dbe2ef;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(25, 38, 65, 0.16);
  z-index: 99999 !important;
  padding: 4px 0;
  box-sizing: border-box;
  user-select: none;
}

.staff-dropdown-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 13px;
  color: #24324b;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
  line-height: 1.4;
}

.staff-dropdown-item:hover,
.staff-dropdown-item.highlighted {
  background: #eff1ff;
  color: #4961d3;
}

.staff-dropdown-item.selected {
  background: #f0f3ff;
  color: #4355d6;
  font-weight: 600;
}

.staff-dropdown-item .staff-name {
  font-weight: 500;
  margin-right: 4px;
}

.staff-dropdown-item .staff-userid {
  font-size: 12px;
  color: #8c9ba5;
  font-family: monospace;
}

.staff-dropdown-item:hover .staff-userid,
.staff-dropdown-item.highlighted .staff-userid,
.staff-dropdown-item.selected .staff-userid {
  color: #6377e8;
}

.staff-combobox-wrap.open .staff-dropdown-menu {
  display: block;
}

.staff-dropdown-item.is-hidden {
  display: none !important;
}

.staff-empty-item {
  display: none;
  padding: 14px 12px;
  text-align: center;
  color: #9aa4b8;
  font-size: 12px;
}

.staff-empty-item.is-visible {
  display: block;
}
