.subject-tree-wrap {
  @apply h-full;
  background: #fff;
  border: 1px solid #e8eaec;

  .tabs {
    @apply flex;
    border-bottom: 1px solid #e8eaec;
    height: 35px;

    .tab {
      @apply flex-1 text-center cursor-pointer select-none;
      height: 100%;
      line-height: 35px;
      font-size: 14px;

      &:hover {
        color: #1e93ff;
      }

      &.active {
        color: #1e93ff;
      }

      &:first-child {
        @apply relative;
        &::after {
          @apply absolute;
          content: "";
          width: 1px;
          height: 24px;
          background: #e8eaec;
          right: 0;
          top: 6px;
        }
      }
    }
  }

  .tree-wrap {
    width: 100%;
    padding: 8px;
    height: calc(100% - 36px);
    overflow: hidden;

    .subject-tree {
      ::v-deep .el-tree-node {
        width: 100%;

        &.is-current {
          > .el-tree-node__content {
            > .custom-tree-node {
              color: $text-primary;

              > .subject-icon {
                color: $text-primary;
              }

              > .share-icon {
                color: $text-primary;
              }
            }
          }
        }

        > .el-tree-node__content {
          width: 100%;
          height: 28px;

          > .el-tree-node__expand-icon {
            display: inline-block;
            width: 26px;
            height: 26px;
            font-size: 14px;
            padding: 6px;
            margin: 0;

            &.is-leaf {
              color: transparent;
            }
          }

          > .custom-tree-node {
            display: flex;
            align-items: center;
            width: calc(100% - 30px);
            height: 32px;
            line-height: 32px;
            border-radius: 0;
            user-select: none;
            padding-right: 7px;
            margin-left: 4px;
            overflow: hidden;

            > .subject-icon {
              flex: 0 0 auto;
              margin-right: 5px;
            }

            > .text-wrap {
              flex: 1 1 auto;
              overflow: hidden;
              text-overflow: ellipsis;
              white-space: nowrap;

              .text {
                height: 13px;
                line-height: 13px;
              }
            }

            > .share-icon {
              flex: 0 0 16px;
              line-height: 16px;
              color: $primary;
            }
          }
        }
      }
    }
  }
}
