:host {
  display: block;
}

.hb-transfer {
  display: flex;
  align-items: stretch;
  gap: 12px;
  font-size: 14px;
  color: var(--hb-color-text-regular, #606266);
}

.hb-transfer--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 单栏 */
.hb-transfer__panel {
  display: flex;
  flex-direction: column;
  width: 220px;
  max-height: 100%;
  border: 1px solid var(--hb-border-color, #dcdfe6);
  border-radius: 4px;
  background-color: var(--hb-color-white, #ffffff);
  overflow: hidden;
}

.hb-transfer__panel--disabled {
  background-color: var(--hb-fill-color-light, #f5f7fa);
}

/* 头部：全选 + 标题 */
.hb-transfer__panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--hb-border-color-lighter, #ebeef5);
  background-color: var(--hb-fill-color-light, #f5f7fa);
}

.hb-transfer__check-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.hb-transfer__check-all-input {
  margin: 0;
  cursor: pointer;
}

.hb-transfer__panel-title {
  font-weight: 600;
  color: var(--hb-color-text-primary, #303133);
}

/* 搜索框 */
.hb-transfer__panel-filter {
  padding: 8px;
  border-bottom: 1px solid var(--hb-border-color-lighter, #ebeef5);
}

.hb-transfer__filter-input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--hb-color-text-regular, #606266);
  border: 1px solid var(--hb-border-color, #dcdfe6);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s;
}

.hb-transfer__filter-input:focus {
  border-color: var(--hb-color-primary);
}

.hb-transfer__filter-input:disabled {
  background-color: var(--hb-fill-color-light, #f5f7fa);
  cursor: not-allowed;
}

/* 列表主体 */
.hb-transfer__panel-body {
  flex: 1;
  min-height: 120px;
  max-height: 246px;
  overflow-y: auto;
  padding: 4px 0;
}

.hb-transfer__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 120px;
  color: var(--hb-color-text-placeholder, #c0c4cc);
  font-size: 13px;
}

/* 列表项 */
.hb-transfer__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background-color 0.2s;
  user-select: none;
}

.hb-transfer__item:hover:not(.hb-transfer__item--disabled) {
  background-color: var(--hb-fill-color-light, #f5f7fa);
}

.hb-transfer__item--checked {
  color: var(--hb-color-primary);
}

.hb-transfer__item--disabled {
  cursor: not-allowed;
  color: var(--hb-color-text-placeholder, #c0c4cc);
}

.hb-transfer__item-input {
  margin: 0;
  cursor: pointer;
}

.hb-transfer__item-input:disabled {
  cursor: not-allowed;
}

.hb-transfer__item-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 中间操作按钮区 */
.hb-transfer__operations {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
}

.hb-transfer__operation-btn {
  width: 36px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: var(--hb-color-text-regular, #606266);
  background-color: var(--hb-color-white, #ffffff);
  border: 1px solid var(--hb-border-color, #dcdfe6);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.hb-transfer__operation-btn:hover:not(:disabled) {
  color: var(--hb-color-primary);
  border-color: var(--hb-color-primary);
}

.hb-transfer__operation-btn:disabled {
  color: var(--hb-color-text-placeholder, #c0c4cc);
  background-color: var(--hb-fill-color-light, #f5f7fa);
  cursor: not-allowed;
}
