.lm-base-tree-component {
  padding: 10px 0;
  user-select: none;
  .ant-tree-switcher {
    position: relative;
    top: -2px;
    left: 8px;
    z-index: 2;
    margin-right: 5px;
  }
  .ant-tree-title {
    font-size: var(--fs-small);
    flex: 1 1;
  }
  .ant-tree-treenode {
    width: 100%;
    white-space: nowrap;
    font-size: var(--fs-small);
    min-width: max-content;
    position: relative;
    display: inline-flex;
    width: calc(100% - 32px);
    padding-top: 4px;
    span.ant-tree-node-content-wrapper {
      font-size: var(--fs-small);
      min-width: max-content;
      position: relative;
      display: inline-flex;
      width: calc(~'100% - 32px');
      &:hover,
      &.ant-tree-node-selected {
        background: transparent;
        color: var(--primary);
        position: relative;
        &:after {
          content: '';
          width: calc(~'100% - 24px');
          bottom: 0;
          left: 12px;
          position: absolute;
          border-bottom: 1px solid var(--primary);
        }
        .ant-tree-switcher,
        .ant-tree-iconEle {
          color: var(--primary);
          .anticon {
            color: var(--primary);
          }
        }
      }
    }
  }
  .ant-tree-treenode-switcher-open,
  .ant-tree-treenode-switcher-close {
    padding-bottom: 0;
    .ant-tree-switcher,
    .ant-tree-iconEle {
      color: var(--icon);
    }
    .ant-tree-iconEle {
      position: relative;
      top: 0px;
    }
    &:first-child {
      padding-top: 0;
    }
    &:last-child {
      padding-bottom: 0;
    }
  }
}
