/* 触发器密度 / 悬停获焦 → assets/common/css/components.css（.sel-picker） */

.sel-picker-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sel-picker-value.is-placeholder {
  color: var(--color-text-3);
}

.sel-picker-arrow {
  flex-shrink: 0;
  margin-left: 8px;
  color: var(--color-text-3);
  font-size: 10px;
  transition: transform 0.15s;
}

.sel-picker-arrow.is-up {
  transform: rotate(180deg);
}

.sel-picker-clear {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  color: var(--color-text-2, #4e5969);
  font-size: 10px;
  line-height: 10px;
  cursor: pointer;
}

.sel-picker-clear .pro-fa-icon {
  position: relative;
  z-index: 1;
  font-size: 10px;
  width: 10px;
  height: 10px;
}

/* 与 Arco Select 清除悬停圆一致 */
.sel-picker-clear.arco-icon-hover::before {
  width: 18px;
  height: 18px;
}

.sel-picker.has-value:hover .sel-picker-clear,
.sel-picker.is-open.has-value .sel-picker-clear {
  display: inline-flex;
}

.sel-picker.has-value:hover .sel-picker-arrow,
.sel-picker.is-open.has-value .sel-picker-arrow {
  display: none;
}

.sel-picker-empty {
  grid-column: 1 / -1;
  padding: 24px 0;
  color: var(--color-text-3);
  font-size: 13px;
  text-align: center;
}

/* 分类面板 */
.sel-category-panel {
  display: flex;
  width: min(540px, 90vw);
  max-height: 320px;
  overflow: hidden;
  background: var(--color-bg-popup, #fff);
  border: 1px solid var(--color-border-2, #e5e6eb);
  border-radius: var(--wa-input-radius, 8px);
  box-shadow: var(--wa-shadow-soft);
}

.sel-category-side {
  flex: 0 0 108px;
  padding: 8px 0;
  overflow: auto;
  background: var(--color-fill-1);
  border-right: 1px solid var(--color-border-2, #e5e6eb);
}

.sel-category-l1 {
  display: block;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  color: var(--color-text-1);
  font-size: 13px;
  line-height: 36px;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
}

.sel-category-l1:hover {
  color: rgb(var(--primary-6));
}

.sel-category-l1.is-active {
  color: rgb(var(--primary-6));
  font-weight: 500;
  background: var(--color-bg-2, #fff);
}

.sel-category-main {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  overflow: auto;
}

.sel-category-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.sel-category-row:last-child {
  margin-bottom: 0;
}

.sel-category-l2 {
  flex: 0 0 48px;
  color: var(--color-text-3, #86909c);
  font-size: 13px;
  font-weight: 400;
  line-height: 28px;
}

.sel-category-items {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-width: 0;
}

.sel-category-item {
  box-sizing: border-box;
  width: 104px;
  height: 28px;
  padding: 0 8px;
  overflow: hidden;
  color: var(--color-text-1);
  font-size: 13px;
  line-height: 28px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
  border: none;
  border-radius: 2px;
  cursor: pointer;
}

.sel-category-item:hover {
  color: rgb(var(--primary-6));
  background: rgba(var(--primary-6), 0.06);
}

.sel-category-item.is-active {
  color: #fff;
  background: rgb(var(--primary-6));
}
