/**
 * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
 * SPDX-License-Identifier: MIT
 */

.gedit-m-display-schema-tree-row {
  display: flex;
  align-items: center;

  & .tree-icon {
    margin-right: 8px;
    width: 14px;
    height: 14px;
  }

  height: 27px;
  white-space: nowrap;
}

.gedit-m-display-schema-tree-horizontal-line {
  position: relative;

  &::before,
  &::after {
    content: "";
    position: absolute;
    background-color: var(--semi-color-text-3);
  }

  &::after {
    top: 0px;
    right: 6px;
    width: 15px;
    height: 1px;
  }
}

.gedit-m-display-schema-tree-title {
  /* overflow: hidden;
  text-overflow: ellipsis; */
}

.gedit-m-display-schema-tree-level {
  padding-left: 30px;
  position: relative;

  /* &::before {
    content: '';
    position: absolute;
    background-color: var(--semi-color-text-3);
    top: 0px;
    bottom: 0px;
    left: -22px;
    width: 1px;
  } */
}

.gedit-m-display-schema-tree-item {
  position: relative;

  &::before {
    content: "";
    position: absolute;
    background-color: var(--semi-color-text-3);
  }

  &:not(:last-child)::before {
    width: 1px;
    top: 0;
    bottom: 0;
    left: -22px;
  }

  &:last-child::before {
    width: 1px;
    top: 0;
    height: 14px;
    left: -22px;
  }

  &.depth-0::before {
    width: 0px !important;
  }
}
