// grading-group-manage
.grading-group-manage {
  .ivu-tag {
    cursor: move;
  }
  .group-user {
    min-height: 76px;
    padding: 20px 20px 10px;
    position: relative;
  }
  .group-user-list {
    margin-right: 130px;
    .ivu-btn {
      margin-bottom: 10px;
    }
  }
  .group-user-action {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: auto;
  }
}
.group-list {
  font-size: 0;
  margin: -10px;

  .group-box {
    display: inline-block;
    vertical-align: top;
    font-size: 14px;
    width: 25%;
    padding: 10px;
  }

  &-1 {
    .group-box {
      width: 100%;
    }
  }
  &-2 {
    .group-box {
      width: 50%;
    }
  }
  &-3 {
    .group-box {
      width: 33.33%;
    }
  }
  .group-container {
    border-radius: @box-border-radius;
    background-color: @white;
  }
  .group-head {
    height: 56px;
    padding: 15px;
    border-bottom: 1px solid #f3f3f3;
    font-size: 18px;
    font-weight: 600;
    line-height: 25px;
    text-align: center;
    position: relative;
  }
  .group-del {
    position: absolute;
    top: 15px;
    right: 10px;
    height: 24px;
    width: 24px;
    line-height: 24px;
    font-size: 18px;
    text-align: center;
    color: @dark-color-lighter;
    background-color: @background-color;
    border-radius: @box-border-radius;
    cursor: pointer;

    &:hover {
      background-color: @error-color;
      color: @white;
    }
  }
  .group-body {
    padding: 15px;
    height: 200px;
  }
  .group-drag {
    height: 100%;
  }
}
.group-action {
  text-align: center;
  margin-top: 20px;
  .ivu-btn {
    width: 100px;
  }
}

// grading
.grading-subnav {
  .grading-title {
    float: left;
    padding: 0 32px;

    > h1 {
      display: inline-block;
      vertical-align: middle;
      font-size: 20px;
      font-weight: 600;
      margin-right: 20px;
    }
    > span {
      display: inline-block;
      vertical-align: middle;
      margin-right: 15px;
      color: @dark-color-light;
    }
  }
  .home-navs {
    float: right;
  }
}

// grading-progress
.progress-table {
  height: 100%;
  .progress-line {
    width: 230px;
  }
  td:first-child {
    font-weight: 600;
    color: @dark-color;
  }
}
// progress-line
.progress-line {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 12px;
  text-align: center;
  border-radius: 6px;
  background-color: @background-color;
  font-size: 12px;
  color: @dark-color;
  line-height: 1;
  .progress-part {
    position: absolute;
    height: 100%;
    > span {
      display: inline-block;
      vertical-align: middle;
      line-height: 1;
    }
  }
  .progress-rate {
    position: absolute;
    height: 100%;
    left: 0;
    background-color: @info-color;
    border-radius: 6px;
    text-align: center;
  }
  .progress-current {
    display: inline-block;
    vertical-align: middle;
  }

  .progress-remain {
    display: block;
    position: absolute;
    height: 100%;
    right: 5px;
    z-index: 9;
  }
}
// modify-unformal-grading-task
.modify-unformal-grading-task {
  .task-body {
    height: 90px;
    text-align: center;
  }
  .task-action {
    overflow: hidden;
    > button {
      float: right;

      &:first-child {
        float: left;
      }
    }
  }
}

// grade-step
.grade-step {
  font-size: 0;
  margin-bottom: 26px;
  &-level {
    white-space: nowrap;
    overflow-x: scroll;
    overflow-y: visible;
  }
  &-other {
    float: right;
  }
  .step-item {
    display: inline-block;
    vertical-align: top;
    padding: 10px;
    min-width: 90px;
    height: 86px;
    margin-right: 10px;
    background-color: @white;
    border-radius: @box-border-radius-small;
    color: @dark-color-light;
    text-align: center;
    cursor: pointer;
    &:hover {
      box-shadow: 0px 20px 20px 0px rgba(34, 192, 255, 0.3);
    }
    p {
      font-size: 12px;
      height: 17px;
      line-height: 17px;
    }
    .step-name {
      color: @dark-color;
      font-size: 24px;
      font-weight: 600;
      height: 32px;
      line-height: 32px;
    }

    &.step-analysis {
      width: 72px;
      min-width: auto;
      margin-right: 20px;
      .step-name {
        font-size: 20px;
      }
    }
    &.step-other {
      width: 72px;
      min-width: auto;
      margin-left: 10px;
      margin-right: 0;
      float: right;
    }

    &.step-act {
      background-color: @info-color;
      color: @white;
      box-shadow: 0px 20px 20px 0px rgba(34, 192, 255, 0.3);
      .step-name {
        color: @white;
      }
    }
  }
}

// grading-detail
.grading-detail {
  .grading-head {
    .ivu-form-item {
      margin-bottom: 0;
    }
  }
  .detail-body {
    min-height: 500px;

    &-2 {
      .detail-papers-list {
        width: 100%;
      }
    }
  }
  .detail-action {
    float: right;
    width: 280px;
    padding: 32px;
    min-height: 540px;
    background-color: @white;
    border-radius: @box-border-radius;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .detail-action-fullscreen {
    position: fixed;
    width: 290px;
    top: 125px;
    right: 0;
    bottom: 0;
    z-index: 98;
    background-color: @white;
    border-radius: 0;
    min-height: auto;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .detail-papers {
    padding: 20px;
    margin-right: 300px;
    background-color: @white;
    border-radius: @box-border-radius;
    font-size: 0;

    &-carousel {
      display: inline-block;
      vertical-align: top;
      font-size: 14px;
    }
    &-list {
      display: inline-block;
      vertical-align: top;
      font-size: 14px;
      min-height: 500px;
      .image-view-list {
        margin: 0;
      }
    }
    &-none {
      padding-top: 200px;
      text-align: center;
      font-size: 24px;
      color: @dark-color-lighter;
    }

    &-col-3 {
      .detail-papers-carousel {
        width: 33.33%;
      }
      .detail-papers-list {
        width: 66.66%;
      }
    }
    &-col-4 {
      .detail-papers-carousel {
        width: 25%;
      }
      .detail-papers-list {
        width: 75%;
      }
    }
    &-col-5 {
      .detail-papers-carousel {
        width: 20%;
      }
      .detail-papers-list {
        width: 80%;
      }
    }
    &-col-6 {
      .detail-papers-carousel {
        width: 16.66%;
      }
      .detail-papers-list {
        width: 83.33%;
      }
    }

    .ivu-page {
      text-align: center;
    }
  }
  &-image-preview {
    .ivu-modal-mask,
    .ivu-modal-wrap {
      left: 0;
      bottom: 0;
      top: 125px;
      right: 290px;
    }
  }
}

// .grade-history-paper
.grade-history-paper {
  width: 100%;
  padding: 10px;

  .carousel-title {
    text-align: center;
    height: 32px;
    line-height: 32px;
    margin-bottom: 13px;
    > h3 {
      font-size: 16px;
    }
  }
}
// grade-standard-paper
.grade-standard-paper {
  position: relative;
  padding: 10px;
  // margin
  .carousel-title {
    text-align: center;
    margin-bottom: 13px;

    > h3 {
      display: inline-block;
      vertical-align: middle;
      margin-right: 15px;
      font-weight: 600;
      font-size: 20px;
      line-height: 32px;
    }
    .ivu-select {
      width: 80px;
      min-width: auto;
    }
  }
  .carousel-loading {
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background-color: rgba(255, 255, 255, 0.3);
    text-align: center;

    > i {
      font-size: 24px;
      position: relative;
      top: 50%;
      margin-top: -15px;
    }
  }
}

// .grade-action
.grade-action {
  font-size: 14px;
  text-align: center;
  .action-search {
    margin-bottom: 32px;
    text-align: left;

    .search-select {
      display: block;
      width: 100px;
      min-width: auto;
      margin-bottom: 10px;
    }
    .search-input {
      display: inline-block;
      vertical-align: top;
      margin-right: 15px;
      width: 140px;
    }
    .search-btn {
      display: inline-block;
      vertical-align: top;
      width: 60px;
    }
  }
  .action-paper-state {
    display: inline-block;
    color: @dark-color-light;
    background: @background-color;
    border-radius: @box-border-radius-small;
    font-size: 20px;
    line-height: 32px;
    padding: 6px 12px;
    margin-bottom: 32px;
  }

  .action-paper-info {
    font-size: 16px;
    line-height: 30px;
    margin-bottom: 32px;
    color: @dark-color-light;
    line-height: 25px;
    text-align: left;

    p {
      margin-bottom: 4px;
    }

    span:last-child {
      color: @dark-color;
      font-size: 18px;
    }
  }

  .action-grade-info {
    margin-bottom: 32px;
    background-color: @success-color;
    color: @white;
    padding: 9px;
    border-radius: @box-border-radius;

    .grade-info-name {
      display: inline-block;
      vertical-align: middle;
      height: 67px;
      line-height: 69px;
      font-size: 60px;
      text-align: center;
      border-radius: 50%;
      color: #fff;
    }
    .grade-info-range {
      display: inline-block;
      vertical-align: middle;
      margin-left: 20px;
      font-size: 12px;
      text-align: left;
      p:last-child {
        font-size: 22px;
      }

      > span {
        margin: 0 2px;
      }
    }
  }
  .action-grade-list {
    font-size: 0;
    margin: -5px -5px 32px;
  }
  .action-grade-item {
    display: inline-block;
    vertical-align: top;
    width: 33.33%;
    padding: 5px;
    font-size: 12px;
    color: @dark-color-light;

    &-content {
      padding: 10px;
      background: @background-color;
      border-radius: @box-border-radius;
      cursor: pointer;

      &:hover {
        color: @primary-color;
      }
    }

    p {
      line-height: 14px;

      &:first-child {
        font-size: 24px;
        line-height: 28px;
      }
    }
  }
  .action-grade-history {
    text-align: left;
    > h3 {
      font-size: 18px;
      font-weight: 600;
      line-height: 25px;
      margin-bottom: 20px;
    }
    .grade-history-list {
      font-size: 0;
      margin: 0 -5px;
    }
    .grade-history-item {
      display: inline-block;
      vertical-align: top;
      margin: 0 5px;
      padding: 4px;
      background-color: @background-color;
      color: @dark-color-light;
      border-radius: 16px;
      width: 62px;
      font-size: 14px;
      text-align: center;

      p:first-child {
        height: 26px;
        white-space: nowrap;
        word-break: keep-all;
      }
      p:last-child {
        height: 26px;
        line-height: 26px;
        border-radius: 8px;
        background-color: @white;
        font-size: 16px;
      }
    }
  }
}
.mark-action {
  .mark-info {
    font-size: 30px;
  }
  .action-mark-list {
    .action-grade-list-item {
      padding: 5px;
      width: 20%;
      > p {
        margin: 0 auto;
        width: 40px;
        height: 40px;
        line-height: 40px;
        border-radius: 50%;
        background-color: #e0e0e0;
        cursor: pointer;
        &:hover {
          background-color: @main-color;
          color: #fff;
        }
      }
    }
  }
}

// .grade-analysis
.grade-analysis {
  .analysis-chart {
    margin-top: 20px;
    padding: 10px;
  }
}

// mark-task
.mark-task {
  &-action {
    text-align: center;

    > span {
      margin-right: 15px;
    }
  }
}
