.tu-tree {
  color: var(--tu-color-text, #71757f);
}
.tu-tree__node {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  color: var(--tu-color-text, #71757f);
  font-size: var(--tu-font-size, 14px);
  height: 32px;
  line-height: 32px;
  cursor: pointer;
}
.tu-tree__node:not(.is-disabled) .tu-tree__title:hover {
  background-color: var(--tu-color-hover-bg, rgba(125, 125, 125, 0.1));
}

.tu-tree__node:not(.is-disabled):hover .tu-tree__drag-icon {
  opacity: 1;
}

.tu-tree__indent {
  position: relative;
  flex-shrink: 0;
  align-self: stretch;
}
.tu-tree__indent-block {
  position: relative;
  display: inline-block;
  width: 14px;
  height: 100%;
  margin-right: 6px;
}

.tu-tree__switcher {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  width: 14px;
  height: 32px;
  margin-right: 6px;
  color: var(--tu-color-text, #71757f);
  font-size: var(--tu-font-size, 14px);
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
.tu-tree__icon-hover {
  width: 100%;
  height: 100%;
  position: relative;
  margin: 0 auto;
  border-radius: 50%;
}
.tu-tree__icon-hover [class*=tu-icon] {
  height: auto;
  padding: 2px;
  transition: background-color var(--tu-transition-duration-3, 0.3s);
  border-radius: 50%;
}
.tu-tree__icon-hover:hover [class*=tu-icon] {
  background-color: var(--tu-color-hover-bg, rgba(125, 125, 125, 0.1));
}
.tu-tree__switcher-icon {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tu-tree__switcher-icon svg {
  position: relative;
  transform: rotate(-90deg);
  transition: transform var(--tu-transition-duration-2, 0.2s) cubic-bezier(0.34, 0.69, 0.1, 1);
}

.tu-tree__switcher.is-expanded svg {
  transform: rotate(0);
}

.tu-tree__title {
  position: relative;
  display: flex;
  align-items: center;
  font-size: var(--tu-font-size, 14px);
  border-radius: var(--tu-border-radius, 2px);
  transition: all var(--tu-transition-duration-2, 0.2s);
  padding: 4px 6px;
  margin: 2px 0;
  line-height: 1;
}
.tu-tree__title-text {
  display: inline-flex;
  align-items: center;
}
.tu-tree__drag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  margin-left: 10px;
  color: var(--tu-color-text, #71757f);
  transition: opacity var(--tu-transition-duration-2, 0.2s);
}

.tu-tree__custom-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.tu-tree__title--draggable::before {
  content: "";
  position: absolute;
  top: -2px;
  right: 0;
  left: 0;
  display: block;
  height: 2px;
}

.tu-tree__title--gap-bottom::before {
  top: unset;
  top: -2px;
  background-color: var(--tu-color-primary, #5e7ce0);
}

.tu-tree__title--gap-top::before {
  background-color: var(--tu-color-primary, #5e7ce0);
}

.tu-tree__title--high-light {
  color: var(--tu-color-primary, #5e7ce0);
  background-color: var(--tu-color-hover-bg, rgba(125, 125, 125, 0.1));
}

.tu-tree__title--dragging {
  color: var(--tu-color-primary, #5e7ce0);
  background-color: var(--tu-color-hover-bg, rgba(125, 125, 125, 0.1));
}
.tu-tree__title--dragging:hover {
  color: var(--tu-color-primary, #5e7ce0);
  background-color: var(--tu-color-hover-bg, rgba(125, 125, 125, 0.1));
}

.tu-tree__title.is-block {
  flex: 1;
  box-sizing: content-box;
}
.tu-tree__title.is-block .tu-tree__drag-icon {
  position: absolute;
  right: 12px;
}

.tu-tree__node.is-leaf .tu-tree__switcher svg {
  transform: rotate(0);
}

.tu-tree__node.is-selected .tu-tree__title {
  background-color: var(--tu-color-hover-bg, rgba(125, 125, 125, 0.1));
  color: var(--tu-color-primary, #5e7ce0);
  font-weight: bold;
}

.tu-tree__node.is-disabled .tu-tree__title {
  color: var(--tu-color-text-placeholder, #9b9fa8);
  cursor: not-allowed;
}

.tu-tree__node-list {
  overflow: hidden;
  transition: height var(--tu-transition-duration-2, 0.2s) cubic-bezier(0.4, 0.8, 0.74, 1);
}

.tu-tree.is-show-line .tu-tree__node .tu-tree__indent-block {
  width: 14px;
}
.tu-tree.is-show-line .tu-tree__node .tu-tree__indent-block::before {
  content: "";
  position: absolute;
  left: 50%;
  box-sizing: border-box;
  width: 1px;
  border-left: 1px solid var(--tu-color-line, rgba(128, 128, 128, 0.18));
  transform: translateX(-50%);
  top: 0px;
  bottom: 0px;
}
.tu-tree.is-show-line .tu-tree__node .tu-tree__indent-block.is-lineless::before {
  display: none;
}

.tu-tree.is-show-line .tu-tree__node.is-leaf:not(.is-tail) .tu-tree__indent::after {
  content: "";
  position: absolute;
  right: -7px;
  box-sizing: border-box;
  width: 1px;
  border-left: 1px solid var(--tu-color-line, rgba(128, 128, 128, 0.18));
  transform: translateX(50%);
  top: 27px;
  bottom: -5px;
}

.tu-tree--mini .tu-tree__node {
  font-size: var(--tu-font-size-mini, 10px);
  height: 24px;
  line-height: 24px;
}
.tu-tree--mini .tu-tree__node .tu-tree__title {
  font-size: var(--tu-font-size-mini, 10px);
}

.tu-tree--mini .tu-tree__node [class*=tu-icon] {
  font-size: var(--tu-font-size-mini, 10px);
}

.tu-tree--small .tu-tree__node {
  font-size: var(--tu-font-size-small, 12px);
  height: 28px;
  line-height: 28px;
}
.tu-tree--small .tu-tree__node .tu-tree__title {
  font-size: var(--tu-font-size-small, 12px);
}

.tu-tree--small .tu-tree__node [class*=tu-icon] {
  font-size: var(--tu-font-size-small, 12px);
}

.tu-tree--medium .tu-tree__node {
  font-size: var(--tu-font-size-medium, 14px);
  height: 32px;
  line-height: 32px;
}
.tu-tree--medium .tu-tree__node .tu-tree__title {
  font-size: var(--tu-font-size-medium, 14px);
}

.tu-tree--medium .tu-tree__node [class*=tu-icon] {
  font-size: var(--tu-font-size-medium, 14px);
}

.tu-tree--large .tu-tree__node {
  font-size: var(--tu-font-size-large, 14px);
  height: 36px;
  line-height: 36px;
}
.tu-tree--large .tu-tree__node .tu-tree__title {
  font-size: var(--tu-font-size-large, 14px);
}

.tu-tree--large .tu-tree__node [class*=tu-icon] {
  font-size: var(--tu-font-size-large, 14px);
}