.l-tree {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: var(--td-font-size-body-medium);
  font-family: var(--td-font-family);
  list-style: none;
  font: var(--td-font-body-medium);
  color: var(--td-text-color-primary);
}
.l-tree.l-is-disabled {
  color: var(--td-border-level-2-color);
}
.l-tree.l-is-disabled .l-icon {
  color: var(--td-border-level-2-color);
}
.l-tree.l-is-disabled .l-tree__item.l-is-active {
  background-color: var(--td-bg-color-container-hover);
  color: var(--td-border-level-2-color);
}
.l-tree.l-is-disabled .l-tree__item .l-icon {
  color: var(--td-text-color-secondary);
}
.l-tree__empty {
  color: var(--td-text-color-disabled);
}
.l-tree__branch {
  display: block;
}
.l-tree__children {
  --hscale: 1;
  will-change: opacity, max-height;
}
.l-tree__item {
  --level: 0;
  --hscale: 1;
  will-change: opacity, max-height;
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  padding: 4px 0 4px calc(24px * var(--level) + 8px);
  cursor: default;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000;
  line-height: 22px;
}
.l-tree__item .l-icon,
.l-tree__item .l-loading {
  display: inline-block;
  position: relative;
  z-index: 2;
  font-size: var(--td-font-size-body-large);
}
.l-tree__item .l-icon {
  color: var(--td-text-color-secondary);
}
.l-tree__item .l-checkbox {
  align-items: center;
  font-size: 0;
}
.l-tree__item .l-tree__icon--default .l-icon {
  transition: color, transform cubic-bezier(0.38, 0, 0.24, 1) 0.2s;
  transform: rotate(0);
}
.l-tree__item--open .l-icon {
  color: var(--td-text-color-brand);
}
.l-tree__item--open .l-tree__icon--default .l-icon {
  transform: rotate(90deg);
}
.l-tree__item--clickable {
  cursor: pointer;
}
.l-tree__item--draggable {
  cursor: pointer;
}
.l-tree__item--draggable::before {
  position: absolute;
  top: -2px;
  right: 0;
  left: 0;
  display: block;
  height: 2px;
  border-radius: 1px;
  content: "";
  padding: inherit;
  background-clip: content-box;
}
.l-tree__item--draggable:hover {
  background-color: var(--td-bg-color-container-hover);
  background-clip: content-box;
}
.l-tree__item--tip-top::before {
  background-color: var(--td-brand-color-6);
}
.l-tree__item--tip-bottom::before {
  top: unset;
  bottom: -2px;
  background-color: var(--td-brand-color-6);
}
.l-tree__item--tip-highlight {
  background-color: var(--td-brand-color-light);
  background-clip: content-box;
}
.l-tree--block-node .l-tree__label {
  flex: 1;
}
.l-tree--hoverable .l-tree__label:not(.l-is-active):not(.l-is-checked):hover {
  background-color: var(--td-bg-color-container-hover);
}
.l-tree__line {
  --level: 0;
  --color: var(--td-border-level-1-color);
  --space: 24px;
  --iconSize: 16px;
  position: absolute;
  left: calc(24px * var(--level) - 8px);
  bottom: 17px;
  width: 1px;
  height: 34px;
  pointer-events: none;
}
.l-tree__line::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  height: 34px;
  width: 12px;
  border-left: 1px solid var(--color);
  border-bottom: 1px solid var(--color);
}
.l-tree__line--first::before {
  height: 22px;
}
.l-tree__line--leaf::before {
  width: 12px;
}
.l-tree__icon {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  text-align: center;
  width: 16px;
  font-size: 0;
  user-select: none;
  cursor: pointer;
  transition: color, transform 0.24s cubic-bezier(0.38, 0, 0.24, 1);
}
.l-tree__icon .l-icon-loading-blue {
  color: var(--td-text-color-brand);
}
.l-tree__icon::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: var(--td-radius-default);
}
.l-tree__icon:not(:empty):hover::after {
  background-color: var(--td-bg-color-container-hover);
}
.l-tree__icon:empty {
  cursor: initial;
}
.l-tree__label {
  --ripple-color: var(--td-bg-color-container-active);
  flex-wrap: nowrap;
  flex: 0 0 auto;
  padding: 2px 4px;
  margin-left: 4px;
  border-radius: var(--td-radius-default);
  cursor: pointer;
  transition: background-color 0.24s cubic-bezier(0.38, 0, 0.24, 1);
}
.l-tree__label.l-is-checked {
  font-weight: 500;
  color: var(--td-text-color-primary);
  background-color: var(--td-brand-color-light);
}
.l-tree__label::selection {
  background-color: transparent;
}
.l-is-active .l-tree__label {
  font-weight: 500;
  color: var(--td-text-color-primary);
  background-color: var(--td-brand-color-light);
}
.l-tree__space {
  display: block;
  flex: 1 0 auto;
}
.l-tree__operations {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
}
.l-tree__operations .l-icon {
  cursor: pointer;
}
.l-tree__item.l-is-disabled {
  color: var(--td-border-level-2-color);
  cursor: default;
}
.l-tree__item.l-is-disabled .l-checkbox {
  cursor: default;
}
.l-tree--vscroll {
  overflow-y: auto;
}
.l-tree__item--hidden {
  display: none;
}
.l-tree__children--hidden {
  display: none;
}
.l-tree--transition .l-tree__item--visible {
  opacity: 1;
}
.l-tree--transition .l-tree__item--hidden {
  display: flex;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}
.l-tree--transition .l-tree__children--visible {
  opacity: 1;
}
.l-tree--transition .l-tree__children--hidden {
  display: block;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}
.l-tree--transition .l-tree__item--enter-active {
  animation: t-tree-toggle 300ms linear;
}
.l-tree--transition .l-tree__item--leave-active {
  animation: t-tree-toggle 300ms reverse linear forwards;
}
.l-tree--transition .l-tree__item--visible {
  transition: opacity 150ms linear 150ms, max-height 150ms linear 0s;
}
.l-tree--transition .l-tree__item--hidden {
  animation: none;
  transition: opacity 150ms linear 0s, max-height 150ms linear 150ms;
}
.l-tree--transition .l-tree__children--visible {
  transition: opacity 150ms linear 150ms, max-height 150ms linear 0s;
}
.l-tree--transition .l-tree__children--hidden {
  animation: none;
  transition: opacity 150ms linear 0s, max-height 150ms linear 150ms;
}
@keyframes t-tree-toggle {
  0% {
    opacity: 0;
    max-height: 0;
  }
  50% {
    opacity: 0;
    max-height: calc(34px * var(--hscale) + 0px);
  }
  100% {
    opacity: 1;
    max-height: calc(34px * var(--hscale) + 0px);
  }
}
.l-tree-select.l-single-suffix {
  padding-right: 20px;
}
.l-tree-select.l-tag-prefix {
  padding-left: 4px;
}
