.l-tree {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
  font: var(--td-font-body-medium);
  color: var(--td-text-color-primary);
  position: relative;
}
.l-tree.l-is-disabled {
  color: var(--td-text-color-disabled);
}
.l-tree.l-is-disabled .t-icon {
  color: var(--td-text-color-disabled);
}
.l-tree.l-is-disabled .l-tree__item.l-is-active {
  background-color: var(--td-bg-color-container-hover);
  color: var(--td-text-color-disabled);
}
.l-tree.l-is-disabled .l-tree__item .t-icon {
  color: var(--td-text-color-secondary);
}
.l-tree__empty {
  color: var(--td-text-color-disabled);
}
.l-tree__branch {
  display: block;
}
.l-tree__item {
  --level: 0;
  --hscale: 2;
  will-change: opacity, max-height;
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  padding: 0 0 0 calc(var(--td-comp-margin-xxl) * var(--level));
  cursor: default;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000;
}
.l-tree__item .t-icon,
.l-tree__item .l-loading {
  display: inline-block;
  position: relative;
  z-index: 2;
  font-size: calc(var(--td-font-size-body-medium) + 2px);
}
.l-tree__item .t-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 .t-icon {
  transform: rotate(0);
}
.l-tree__item--open .t-icon {
  color: var(--td-text-color-brand);
}
.l-tree__item--open .l-tree__icon--default .t-icon {
  transform: rotate(90deg);
}
.l-tree__item--clickable {
  cursor: pointer;
}
.l-tree__item--locked {
  color: var(--td-text-color-disabled);
}
.l-tree__item--matched {
  color: inherit;
}
.l-tree__item--draggable {
  cursor: pointer;
}
.l-tree__item--draggable:hover {
  background-color: var(--td-bg-color-container-hover);
  background-clip: content-box;
}
.l-tree__item--draggable::after {
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  display: block;
  height: 2px;
  border-radius: 1px;
  content: "";
  padding: inherit;
  background-clip: content-box;
}
.l-tree__item--tip-top::after {
  background-color: var(--td-brand-color);
}
.l-tree__item--tip-bottom::after {
  top: unset;
  bottom: -1px;
  background-color: var(--td-brand-color);
}
.l-tree__item--tip-highlight {
  background-color: var(--td-brand-color-light);
  background-clip: content-box;
}
.l-tree__item::before {
  content: "";
  display: block;
  width: 0;
  flex: 0 0 auto;
  height: 34px;
}
.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: var(--td-comp-margin-xxl);
  --iconSize: 16px;
  position: absolute;
  left: calc(var(--td-comp-margin-xxl) * var(--level) - var(--td-comp-margin-l));
  bottom: var(--td-comp-margin-l);
  width: 1px;
  height: 34px;
  pointer-events: none;
}
.l-tree__line::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  height: 34px;
  width: var(--td-comp-margin-m);
  border-left: 1px solid var(--color);
  border-bottom: 1px solid var(--color);
}
.l-tree__line--first::before {
  height: var(--td-line-height-body-medium);
}
.l-tree__line--leaf::before {
  width: var(--td-comp-margin-m);
}
.l-tree__icon {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  text-align: center;
  width: calc(var(--td-font-size-body-medium) + 2px);
  font-size: 0;
  user-select: none;
  cursor: pointer;
}
.l-tree__icon::after {
  content: "";
  display: block;
  position: absolute;
  left: -2px;
  top: -2px;
  width: calc(calc(var(--td-font-size-body-medium) + 2px) + 4px);
  height: calc(calc(var(--td-font-size-body-medium) + 2px) + 4px);
  border-radius: var(--td-radius-default);
}
.l-tree__icon:not(:empty):hover {
  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: var(--td-comp-paddingTB-xxs) var(--td-comp-paddingLR-xs);
  margin-left: var(--td-comp-margin-xs);
  border-radius: var(--td-radius-default);
  cursor: pointer;
  white-space: nowrap;
  word-wrap: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
.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 .t-icon {
  cursor: pointer;
}
.l-tree__item.l-is-disabled {
  color: var(--td-text-color-disabled);
  cursor: default;
}
.l-tree__item.l-is-disabled .l-checkbox {
  cursor: default;
}
.l-tree__item--hidden {
  display: none;
}
.l-tree--transition .l-tree__label {
  transition: background-color 0.24s cubic-bezier(0.38, 0, 0.24, 1);
}
.l-tree--transition .l-tree__icon {
  transition: color, transform 0.24s cubic-bezier(0.38, 0, 0.24, 1);
}
.l-tree--transition .l-tree__icon::after {
  transition: 0.2s linear;
}
.l-tree--transition .l-tree__icon:not(:empty):hover {
  transition: 0.2s linear;
}
.l-tree--transition .l-tree__icon--default .t-icon {
  transition: color, transform cubic-bezier(0.38, 0, 0.24, 1) 0.2s;
}
.l-tree--transition .l-tree__item--visible {
  display: flex;
  max-height: calc(34px * var(--hscale) + 0px);
  opacity: 1;
  transition: opacity 150ms linear 150ms, max-height 150ms linear 0s;
}
.l-tree--transition .l-tree__item--hidden {
  display: flex;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  animation: initial;
  transition: opacity 150ms linear 0s, max-height 150ms linear 150ms;
}
.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__vscroll {
  overflow-y: auto;
}
.l-tree__lazyload {
  overflow-y: auto;
}
.l-tree__vscroll-cursor {
  position: absolute;
  width: 1px;
  height: 1px;
  transition: transform 0.2s;
}
.l-tree--scrolling .l-tree__item {
  will-change: initial;
}
.l-tree--scrolling .v-enter,
.l-tree--scrolling .v-leave,
.l-tree--scrolling .l-tree__item--visible,
.l-tree--scrolling .l-tree__item--hidden,
.l-tree--scrolling .l-tree__item--enter,
.l-tree--scrolling .l-tree__item--enter-active,
.l-tree--scrolling .l-tree__item--enter-to,
.l-tree--scrolling .l-tree__item--leave,
.l-tree--scrolling .l-tree__item--leave-active .l-tree__item--leave-to {
  animation: none;
  transition: none;
}
.l-tree--scrolling .l-tree__item--visible {
  max-height: initial;
}
.l-tree--scrolling .l-tree__item--enter-to,
.l-tree--scrolling .l-tree__item--enter-active {
  max-height: initial;
}
.l-tree--scrolling .l-tree__item--leave-to,
.l-tree--scrolling .l-tree__item--leave-active {
  max-height: 0;
}
@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);
  }
}
