.task-dashboard-page {
  position: fixed;
  left: 0;
  top:0;
  width: 100%;
  background-color: #e5e5e5;
  height: 100%;
  .dashboard-content {
    position: absolute;
    left: 26px;
    right: 35px;
    top:0;
    padding-top: 54px;
    bottom: 70px;
    @media(max-width:@screen-xs-max) {
      right: 15px!important;
      left: 15px;
    }
    .dashboard-header {
      position: absolute;
      top:0;
      left: 0;
      right: 0;
      height: 54px;
      line-height: 54px;
      color:@gray;
      font-size: 16px;
      z-index: 1;
      overflow: hidden;
      .back-link {
        color: @gray-dark;
        padding-right: 20px;
        border-right: 1px solid @gray-medium;
        margin-right: 20px;
        i {
          font-size: 22px;
          line-height: 1;
        }
        &:hover {
          color: @brand-primary;
        }
      }
      @media(max-width:@screen-xs-max) {
        z-index: 0;
      }
    }
    .dashboard-footer {
      position: absolute;
      bottom: -70px;
      left: 0;
      right: 0;
      height: 70px;
      padding: 18px 0;
      color:@gray;
      z-index: 1;
      text-align: right;
      @media(max-width: @screen-xs-min) {
        &.dashboard-footer--audio {
          padding-top: 6px;
        }
        .audio-convert-tip {
          margin-bottom: 4px;
          width: 100%;
          text-align: left;
          font-size: 12px;
          line-height: 1;
        }
      }
    }
    .dashboard-body {
      position: relative;
      background-color: #fff;
      height: 100%;
      overflow: hidden;

      .task-content-iframe.fullscreen {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9999;
      }
    }
    .play-continue-switch {
      position: relative;
      top: 2px;
      .cd-switch {
        position: relative;
        top: 5px;
      }
      color: @gray-dark;
      @media(max-width:@screen-xs-max) {
        display: none;
      }
    }
    .state-opration {
      position: relative;
      display: inline-block;
      height: 31px;
      text-align: right;
      vertical-align: middle;
      min-width: 150px;
      @media(max-width:@screen-xs-max) {
        min-width: 20px;
      }
      >.btn {
        position: absolute;
        top: 60px;
        right: 0;
        &.open {
          top:0;
        }
        &.moveup {
          -webkit-animation: moveUp 1s;
          -moz-animation: moveUp 1s;
          animation: moveUp 1s;
          top:0;
        }
      }
    }
    .btn-learn {
      .doing {
        display: inline;
      }
      .done {
        display: none;
      }
      &.active {
        .doing {
          display: none;
        }
        .done {
          display: inline;
        }
      }
    }
  }
  .dashboard-sidebar {
    position: absolute;
    right: 0;
    top:0;
    bottom: 0;
    width: 360px;
    right: -360px;
    @media(max-width:@screen-xs-max) {
      z-index: 4;
    }
    @media(max-width:@screen-xs-max) and (min-width:400px) {
      width: 300px;
      right: -300px;
    }
    @media(max-width:400px) {
      width: 260px;
      right: -260px;
    }
    background-color: #fff;
    .box-shadow(-1px 0 5px rgba(0,0,0,0.1));
  }
  .dashboard-toolbar {
    position: absolute;
    top: 50%;
    left: -32px;
    margin-top: -24px;
    width: 32px;
    height: 48px;
    border-radius: 100px 0px 0px 100px;
    cursor: pointer;
    background: @brand-primary;

    i {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-40%, -60%);
      color: #fff;
      font-size: 24px;
    }

    &.active i {
      transform: translate(-36%, -36%) rotate(180deg);
    }
  }

  .dashboard-nav {
    padding: 0;
    margin: 0;
    height: 56px;
    list-style: none;
    text-align: center;
    border-bottom: 1px solid #f5f5f5;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    line-height: 56px;

    &__item {
      position: relative;
      cursor: pointer;

      &.active::after {
        content: "";
        display: block;
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 2px;
        border-radius: 1px;
        background: @brand-primary;
      }
    }
  }

  .dashboard-pane {
    overflow: hidden;
    height: 100%;
  }
  .task-list-pane {
    position: absolute;
    top: 57px;
    bottom: 0;
    width: 100%;
    overflow-y: hidden;
    overflow-x: hidden;
    .task-list-pane-body {
      padding: 15px 0;
    }
  }
  .note-pane {
    height: 100%;
    overflow: hidden;
    // .task-note-plugin-form {
    //   background-color: #333;
    // }
    .note-pane-body {
      padding: 15px;
    }
  }
  .question-pane {
    height: 100%;
    overflow: hidden;
    // background-color: #272727;
    .task-question-plugin-form {
      margin-bottom: 0;
      padding: 15px;
      // background-color: #333;
    }
    .task-question-plugin-pane {
      padding: 15px;
    }
    .media-list {
      margin-top: 0;
      // background-color: #272727;
      .media {
        // background-color: #272727;
        border-bottom: 1px solid @border-color;
      }
    }
  }

  .task-question-plugin-pane-header {
    margin-bottom: 24px;
    padding-left: 14px;
  }

  .task-question-plugin-pane-header__btn {
    padding: 6px 9px;
    background:#f1f1f1;
    border: 1px solid @gray-light;
    .border-radius(2px);
    color: #b1b1b1;
    font-size: 12px;
    line-height: 1;
  }

  .task-question-plugin-pane-thread {
    padding: 0 14px;
  }

  .task-question-plugin-pane-thread__title {
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    color: @gray-darker;
    .post-tag-success {
      color: #fff;
      background-color: @brand-success;
    }
  }
  .task-question-plugin-pane-thread__info {
    font-size: 12px;
    line-height: 1;
    color: @gray;
    .nickname {
      font-weight: 600;
    }
  }
  .task-question-plugin-pane-thread__content {
    font-size: 14px;
    line-height: 24px;
    max-height: 76px;
    letter-spacing: 1px;
    overflow: hidden;
    &.active {
      max-height: none;
    }
    p {
      margin: 0;
    }
  }

  .task-question-plugin-pane-thread__item {
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f1f1;
    &:last-child {
      border: none;
    }
    .more {
      display: none;
    }
  }
  .task-question-plugin-pane-post-form {
    margin-top: 16px;
    padding: 8px 14px;
  }
}
.screen-full {
  position: fixed;
  left: 0;
  top:0;
  z-index: 999;
}

.iframe-modal.modal {
  overflow-y: auto;
}

.all-wrapper {
  position: relative;
  height: 100%;
  &.mobile-scroll-wrapper {
    @media (max-width: @screen-sm-max) {
      -webkit-overflow-scrolling: touch;
      overflow-y: scroll;
    }
  }
}

@-webkit-keyframes moveUp {
  0% {
    top: 100%;
    opacity: 0;
  }
  100% {
    opacity: 1;
    top:0;
  }
}

@-moz-keyframes moveUp {
  0% {
    top: 100%;
    opacity: 0;
  }
  100% {
    opacity: 1;
    top: 0;
  }
}

@keyframes moveUp {
  0% {
    top: 100%;
    opacity: 0;
  }
  100% {
    opacity: 1;
    top:0
  }
}