.directoryList {
  height: 100%;
  padding: 24px 0;

  :global {
    .n-scrollbar-container {
      max-height: 100%;
    }
  }

  .scrollBar {
    margin-top: 12px;
    padding: 0 20px;
    max-height: calc(100% - 152px - 12px);
  }
}

.select-directory {
  height: 49px;
  line-height: 49px;
  background: #E8F4FF;
  border-radius: 10px;
  padding: 0 16px;
  margin: 0 20px 12px;
  font-size: max(18px, 13Px);
  font-weight: 600;
  color: #131415;
  line-height: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;

  &>span {
    max-width: 240px;
  }

  .iconArrow {
    font-size: 12px
  }
}

.theTooltip {
  max-width: 300px !important;
}

.select-directory-info {
  display: flex;
  align-items: center;
  padding: 0 0 32px 0;
  margin: 0 24px;
  border-bottom: 1px solid #F2F2F2;

  .itemImg {
    position: relative;
    width: 85px;
    height: 120px;
    // margin: auto;
    background-color: #EDEFF2;
    background-image: url('./images/icon_default.svg');
    background-repeat: no-repeat;
    background-position: center center;
    margin-right: 18px;
    flex-shrink: 0;
    transition: transform .2s ease;
    cursor: pointer;

    &:hover {
      transform: scale(1.02);
      transition: transform .2s ease;
    }

    &::before {
      content: '';
      position: absolute;
      top: 4px;
      right: -4px;
      width: 4px;
      height: calc(100% - 8px);
      background-color: #C5C5C5;
      z-index: 1;
    }

    &::after {
      content: '';
      position: absolute;
      top: 2px;
      right: -2px;
      width: 4px;
      height: calc(100% - 4px);
      background-color: #E7E7E7;
      z-index: 2;
    }

    .itemBg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 4;
      background-repeat: no-repeat;
      background-image: linear-gradient(to right, rgba(0, 0, 0, 0.2) 0, rgba(255, 255, 255, 0.08) 0%, transparent 0.5%), linear-gradient(to right, rgba(0, 0, 0, 0.1) 0.3%, rgba(255, 255, 255, 0.09) 1.1%, transparent 1.3%);
      background-size: 50% 100%, 50% 100%;
      background-position: 0% top, 9% top;
    }

    :global {
      .n-image {
        position: relative;
        width: 100%;
        height: 100%;
        z-index: 3;
      }
    }

    img {
      transition: opacity .3s;
      opacity: 0;
    }

    img[data-loaded="true"] {
      opacity: 1;
    }

  }

  .itemContent {
    h2 {
      font-weight: 600;
      font-size: max(18px, 14Px);
      color: #131415;
      line-height: 25px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 200px;
    }

    

    .subjects {
      font-size: max(14px, 11Px);
      color: #777777;
      line-height: 20px;
      padding: 11px 0 15px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 200px;
    }

    .changeDir {
      position: relative;
      background: #E8F4FF;
      border-radius: 18px;
      font-weight: 500;
      font-size: max(14px, 11Px);
      color: #0378EC;
      line-height: 20px;
      padding: 4px 12px;
      display: inline-flex;
      align-items: center;
      cursor: pointer;

      &:hover {

        // background-color: #ecf4fa;
        // color: #1888f7;
        &::before {
          content: '';
          position: absolute;
          inset: 0;
          background-color: rgba(255, 255, 255, 0.2);
        }
      }

      svg {
        width: max(11px, 9Px);
        height: max(10px, 8Px);
        margin-right: 4px;
        flex-shrink: 0;
      }
    }
  }
}

.treeParent {
  transition: height 1s ease-in-out;
}

.treeChild {
  line-height: 54px;
}

.treeItem {
  display: flex;
  align-items: center;
  line-height: 54px;
  border-radius: 10px;
  padding: 0 5px;
  cursor: pointer;
  border-radius: 10px;
  font-size: max(17px, 12Px);
  font-weight: 600;
  margin-bottom: 8px;

  &.childItem:hover {

    // background: #E8F4FF;

    .title {
      color: var(--n-color);
    }
  }

  .title {
    padding-left: 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 280px !important;
    color: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;

    .dir {
      flex-shrink: 0;
      display: inline-block;
      width: 16px;
      height: 18px;
      background: url('./images/icon-d.png') no-repeat center;
      background-size: contain;
      margin-right: 6px;
    }

    &.titleSelect {
      color: var(--n-color);
      // font-weight: bold;

      .dir {
        background: url('./images/icon-d-active.png') no-repeat center;
        background-size: contain;
      }
    }
  }

  .arrow {
    display: inline-block;
    width: 14px;
    height: 15px;
    background: url('./images/arrow-default.png') no-repeat center;
    background-size: contain;

    &.arrowSelect {
      background: url('./images/arrow-active.png') no-repeat center;
      background-size: contain;
    }
  }

  .childArrow {
    width: 12px;
  }

  &.childItem {
    padding-left: 30px;
    font-size: max(15px, 12Px);


    .title {
      color: #131415;
    }
  }

  &.childSelect {
    background: #E8F4FF;

    .title {
      color: var(--n-color);
      // font-weight: bold;
    }
  }
}

.coursewareModal {
  width: 1150px;
}