@charset "UTF-8";
/**
 * YH-UI Sass Variables
 * 原具体的 CSS 变量输出规则 (:root, html.dark 等) 已移至 root.scss，以防止各组件样式编译时产生重复的全局变量 CSS 冗余。
 */
.yh-tree {
  --yh-tree-node-height: var(--yh-tree-node-height, 28px);
  --yh-tree-text-color: var(--yh-tree-label-text-color, var(--yh-text-color-primary, #1d1d1f));
  --yh-tree-hover-bg: var(--yh-tree-node-hover-bg-color, var(--yh-color-primary-light-9, #ecf5ff));
  --yh-tree-current-bg: var(
    --yh-tree-node-selected-bg-color,
    var(--yh-color-primary-light-8, #d9ecff)
  );
}
html.dark .yh-tree {
  --yh-tree-hover-bg: var(--yh-tree-node-hover-bg-color, rgba(255, 255, 255, 0.06));
  --yh-tree-current-bg: var(--yh-tree-node-selected-bg-color, rgba(255, 255, 255, 0.12));
}
.yh-tree {
  font-size: 14px;
  color: var(--yh-tree-text-color);
  user-select: none;
}
.yh-tree__node {
  position: relative;
}
.yh-tree__node.is-disabled .yh-tree__label {
  color: var(--yh-text-color-disabled, #c0c4cc);
  cursor: not-allowed;
}

.yh-tree__node.is-dragging {
  opacity: 0.5;
}

.yh-tree__node.is-drop-inner {
  background-color: var(--yh-color-primary-light-9, #ecf5ff);
}
.yh-tree__node.is-drop-inner .yh-tree__content {
  background-color: var(--yh-color-primary-light-8, #d9ecff);
}

.yh-tree__node.is-drop-before::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--yh-color-primary, #409eff);
  z-index: 10;
}

.yh-tree__node.is-drop-after::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--yh-color-primary, #409eff);
  z-index: 10;
}

.yh-tree__content {
  display: flex;
  align-items: center;
  height: var(--yh-tree-node-height);
  padding-right: 8px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.yh-tree__content:hover {
  background-color: var(--yh-tree-hover-bg);
}
.yh-tree__node.is-current > .yh-tree__content {
  background-color: var(--yh-tree-current-bg);
  color: var(--yh-color-primary, #409eff);
  font-weight: 500;
}

.yh-tree__expand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--yh-text-color-placeholder, #c0c4cc);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}
.yh-tree__expand-icon:hover {
  color: var(--yh-color-primary, #409eff);
}
.yh-tree__expand-icon.is-expanded {
  color: var(--yh-text-color-secondary, #86868b);
}

.yh-tree__expand-icon.is-loading {
  animation: yh-tree-rotate 1s linear infinite;
  color: var(--yh-color-primary, #409eff) !important;
}

.yh-tree__expand-icon svg {
  transition: fill 0.3s ease;
}

.yh-tree__expand-placeholder {
  display: inline-block;
  width: 24px;
}

.yh-tree__label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: var(--yh-tree-node-height);
}

.yh-tree__icon {
  margin-right: 4px;
  color: var(--yh-text-color-secondary);
}

.yh-tree__empty {
  padding: 20px;
  text-align: center;
  color: var(--yh-text-color-secondary);
  font-size: 13px;
}

.yh-tree--show-line .yh-tree__node {
  position: relative;
}
.yh-tree--show-line .yh-tree__node::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0;
  height: 100%;
  width: 1px;
  background-color: var(--yh-border-color-light, #dcdfe6);
}
.yh-tree--show-line .yh-tree__node:last-child::before {
  height: 14px;
}
.yh-tree--show-line .yh-tree__content::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 14px;
  width: 12px;
  height: 1px;
  background-color: var(--yh-border-color-light, #dcdfe6);
}
.yh-tree--show-line > .yh-tree__node::before {
  display: none;
}
.yh-tree--show-line > .yh-tree__node > .yh-tree__content::before {
  display: none;
}

.yh-tree .yh-checkbox {
  margin-right: 8px;
}

@keyframes yh-tree-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}