.container {
  display: flex;
  flex-direction: column;
  height: 750px;
  background: #F1F5FF;
  border-radius: 0 0 12Px 12Px;
  padding-left: 27px;

  .iconBack {
    width: 36px;
    height: 36px;
  }

  .separator {
    width: 9px;
    height: 15px;
    margin: 0 16px;
  }


}

.containerDetail {
  display: flex;
  flex-direction: column;
  height: 75vh;
  // background: #F1F5FF;
  border-radius: 0 0 12Px 12Px;
  padding-left: 27px;

  &.detailPreview {
    height: 100%;
    background-color: #fff;
    // max-width: 1024px;
    margin: 0 auto;
    border-radius: 0;
    padding-left: 0;


    .contentWrap {
      width: 80%;
      margin: 0 auto;
      position: initial;
    }

    .changeSizeSection {
      right: 85px;
    }
  }
}

.wrap {
  padding-top: 15px;
  flex: 1;
  transition: padding .3s;
  overflow: hidden;

  &.wrapBottom {
    padding-bottom: 108px;

  }
}

.contentWrap {
  position: relative;
  flex: 1;
  display: flex;
  padding: 0 55px 0 0;
  overflow: hidden;
  gap: 0 16px;
}

.content {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 20px;
  // max-height: 90vh;
}

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

  .scrollBar {
    margin: 17px 0;
    padding: 0 17px;
    // max-height: calc(100% - 64px - 52px - 36px);

    &.empty {
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }


  .directoryList {
    width: 350px;
    background: #FFFFFF;
    border-radius: 17px;
    flex-shrink: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;

    &::-webkit-scrollbar {
      width: 0;
      display: none;
    }
  }

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

  .treeChild {
    line-height: 54px;
  }

  .treeItem {
    position: relative;
    display: flex;
    align-items: center;
    line-height: 54px;
    border-radius: 10px;
    padding: 0 0 0 15px;
    cursor: pointer;
    border-radius: 10px;
    font-size: max(15px, 13Px);

    // &:hover {
    //   background: #EAEDF2;
    // }

    .title {
      padding-left: 8px;
      color: rgba(0, 0, 0, .5);
      display: flex;
      align-items: center;

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

      p {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 180px !important;
      }

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

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

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

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

    .childArrow {
      width: 12px;
    }

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

      margin: 0 10px;

      .title {
        color: #131415;
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: block;
      }
    }

    &.childSelect {
      background: #EAEDF2;

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

.musicStaff {
  // display: flex;
  // flex-direction: column;
  position: relative;
  // left: -8px;
  flex: 1;
  background-color: #fff;
  border-radius: 16px;
  // height: 100%;
  z-index: 1;
  // overflow: hidden;
  padding: 54px 0 27px 27px;

  &::-webkit-scrollbar {
    width: 0;
    display: none;
  }

  .empty {
    :global {
      .n-spin-content {
        min-height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }
  }

  :global {
    .n-spin-container {
      // overflow-y: auto;
      height: 100%;
    }
    .n-spin-content {
      height: 100%;
    }
  }

  .musicTitle {
    padding: 27px 27px 13px;
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    line-height: 30px;
    text-align: center;
  }

  .musicContent {
    flex: 1;
    overflow-y: auto;
    height: 100%;
    // padding: 27px;
    padding-right: 27px;
    position: relative;
    user-select: text;
    position: relative;

    ::selection {
      background-color: #E1F0FF;
    }

    &:focus-visible {
      border: none !important;
      outline: none !important;
      ;
    }

    :global {
      // .highlight {
      //   color: #0378EC;
      //   background-color: #E1F0FF;
      // }

      .speak-label {
        cursor: pointer;
      }
    }

    &>img {
      width: 100%;
    }

    section,
    &>div {
      font-size: inherit !important;
    }
  }
}

.changeSizeSection {
  position: absolute;
  right: 10px;
  bottom: 50%;
  width: 35px;
  transform: translate(0, 50%);
  background: #fff;
  border-radius: 7px;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 13px 0;

  .iconT {
    width: 15px;
    height: 15px;
  }

  .iconAddT,
  .iconPlusT {
    width: 23px;
    height: 23px;
    cursor: pointer;
  }

  .iconAddT {
    margin-top: 13px;
    margin-bottom: 8px;
  }

  .iconPlusT {
    margin-top: 8px;
  }

  :global {
    .n-slider {
      height: 125px;
      --n-handle-size: 15px !important;
      --n-rail-height: 0 !important;
    }

    .n-slider.n-slider--vertical .n-slider-rail {
      border-radius: 10px;

    }

    .n-slider .n-slider-rail .n-slider-rail__fill {
      border-radius: 10px;
    }

    .n-slider.n-slider--vertical .n-slider-handles {
      top: 3px !important;
      bottom: 3px !important;
    }
  }
}

.btnGroup {
  padding: 20px 0;

  :global {
    .n-button {
      height: 47px;
      min-width: 156px;
    }
  }
}

.treeParentSelected {
  background-color: #F8F8F8;
  border-radius: 8px;
  padding-bottom: 10px;

  .parentItem {
    // border-bottom: 1px solid #E7E8E8;
    position: relative;
    margin-bottom: 10px;

    &::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      display: block;
      width: 100%;
      height: 1px;
      background-color: #E7E8E8;
    }
  }
}


.checkbox {
  position: absolute;
  right: 20px;
}

.childItem {
  .checkbox {
    right: 10px;
  }
}

.musicTitleRight {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 9;

  .textRead,
  .textClose {
    padding: 7px 8px;
    background: #E8F4FF;
    border-radius: 13px;
    font-weight: 500;
    font-size: max(13px, 12Px);
    color: #0378EC;
    line-height: 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
  }

  .icon {
    display: inline-block;
    margin-right: 5px;
    width: 15px;
    height: 15px;
  }

  .textRead {
    .icon {
      background: url('../../../content-information/images/icon-speak-sound.png');
      background-size: contain;
    }
  }

  .textClose {
    .icon {
      background: url('../../../content-information/images/icon-speak-close.png');
      background-size: contain;
    }
  }
}

.selectionCouser {
  display: flex;
  align-items: center;
  position: absolute;

  &.hide {
    opacity: 0;
    visibility: hidden;
  }

  .textStart,
  .textReadOnly {
    cursor: pointer;
    background: #1A8CFF;
    border-radius: 13px;
    font-weight: 600;
    font-size: max(13px, 12Px);
    color: #FFFFFF;
    line-height: 18px;
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    flex-shrink: 0;

    .icon {
      margin-left: 4px;
      display: inline-block;
    }
  }

  .textStart {
    .icon {
      width: 8px;
      height: 10px;
      background: url('../../../content-information/images/icon-speak-arrow.png') no-repeat center;
      background-size: contain;
    }
  }

  .textReadOnly {
    margin-left: 10px;

    .icon {

      width: 9px;
      height: 9px;
      background: url('../../../content-information/images/icon-speak-line.png') no-repeat center;
      background-size: contain;
    }
  }
}