// home
.home {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  &-head {
    flex-grow: 0;
    flex-shrink: 0;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 16px 10px;
    border-bottom: 1px solid @border-color1;

    .head-no {
      display: inline-block;
      height: 24px;
      line-height: 24px;
      background: linear-gradient(135deg, #fdd62d 0%, #faad14 100%);
      border-radius: 4px;
      border: 1px solid #ffc53d;
      color: #fff;
      padding: 0 8px;
    }
    .head-mode {
      line-height: 22px;
    }
    .head-name {
      height: 24px;
      font-weight: 500;
      font-size: 16px;
      line-height: 24px;
    }
  }
  &-body {
    flex-grow: 2;
    background-image: url(../assets/imgs/cur_exam_bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;

    .audit-box {
      height: 222px;
      background: #ffffff;
      border-radius: 8px;
      border: 1px solid @border-color1;
      margin: 0 8px;

      display: flex;
      flex-direction: column;
      justify-content: space-between;

      &-head,
      &-foot {
        flex-grow: 0;
        flex-shrink: 0;
      }

      &-head {
        padding: 16px 16px 0 16px;
      }

      &-foot {
        padding: 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      &-head {
        h4 {
          font-weight: 500;
          font-size: 16px;
          line-height: 24px;
        }
      }

      &-body {
        flex-grow: 2;
        padding: 0 16px;

        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
      }

      &.img-check {
        .audit-card {
          height: 86px;
          &:first-child {
            margin-right: 16px;
          }
        }

        .audit-box-foot {
          color: @text-color2;
          border-top: 1px solid @border-color1;
          .ant-input {
            width: 40px;
            background: #f3f4f6;
            padding-left: 5px;
            padding-right: 5px;
            text-align: center;
          }
          .ant-btn {
            padding-left: 12px;
            padding-right: 12px;
          }
          .ant-tag {
            line-height: 32px;
            font-size: 14px;
          }
          .anticon {
            color: #bfbfbf;
          }
        }
      }
    }

    .audit-card {
      width: 244px;
      height: 114px;
      border-radius: 6px;
      border: 1px solid @border-color1;
      padding: 30px 16px;

      display: flex;
      justify-content: space-between;
      align-items: center;

      &-icon,
      &-action {
        flex-grow: 0;
        flex-shrink: 0;
      }
      &-icon {
        width: 54px;
        height: 54px;
        padding: 15px 16px;
        border-radius: 6px;
        margin-right: 12px;

        &.audit-wait {
          background: #fff7e8;
          background-image: url(../assets/imgs/icon-wait.png);
          background-repeat: no-repeat;
          background-size: 22px 24px;
          background-position: 16px 16px;
        }
        &.audit-done {
          background-color: #e8ffea;
          background-image: url(../assets/imgs/icon-done.png);
          background-repeat: no-repeat;
          background-size: 22px 24px;
          background-position: 16px 16px;
        }
      }
      &-content {
        flex-grow: 2;

        > p:nth-of-type(1) {
          height: 22px;
          font-weight: 400;
          font-size: 14px;
          color: @text-color2;
          line-height: 22px;
        }
        > p:nth-of-type(2) {
          height: 26px;
          font-weight: 500;
          font-size: 18px;
          color: @text-color1;
          line-height: 26px;
          margin-top: 6px;
        }
      }

      &-action {
        margin-left: 8px;
        color: @brand-color;
        font-weight: 400;
        cursor: pointer;

        &:hover {
          opacity: 0.8;
        }
      }
    }
  }
}

// arbitrate
.arbitrate {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;

  &-title {
    flex-grow: 0;
    flex-shrink: 0;
    padding: 11px 16px;
    height: 54px;
    position: relative;
  }

  &-back {
    position: absolute;
    top: 11px;
    left: 16px;
    z-index: 9;
  }
  &-stat {
    height: 100%;
    text-align: center;
    line-height: 32px;

    > p {
      display: inline-block;

      &:first-child {
        margin-right: 25px;
      }

      .anticon {
        margin-right: 5px;
      }
    }
  }

  &-body {
    flex-grow: 2;
    overflow: hidden;
    background-color: @background-color;
    position: relative;
  }

  &-img {
    height: 100%;
    overflow: auto;
    img {
      display: block;
      width: calc(100% - 150px * 2);
      margin: 0 auto;
      height: auto;
      max-height: none;
    }
  }

  &-img-thumb {
    position: absolute;
    border-radius: 8px;
    border: 8px solid rgba(89, 89, 89, 0.6);
    background-color: #fff;
    width: 136px;
    height: auto;
    min-height: 80px;
    z-index: 9;
    bottom: 0;
    right: 0;
  }

  &-img-area {
    position: absolute;
    border: 4px solid @error-color;
    width: 100%;
    height: 40px;
    z-index: auto;
    cursor: move;
    top: 0;
  }

  &-modal {
    position: absolute;
    width: 1002px;
    height: 216px;
    top: 8px;
    left: 50%;
    margin-left: -501px;
    background: #f2f3f5;
    box-shadow: 0px 10px 10px 0px rgba(54, 61, 89, 0.2);
    border-radius: 12px;
    border: 1px solid @background-color;
    padding: 16px;

    .modal-box {
      height: 88px;
      background: #ffffff;
      border-radius: 6px;
      border: 1px solid #e5e5e5;
      padding: 16px;
      color: @text-color1;

      .box-title {
        height: 22px;
        font-weight: 400;
        font-size: 14px;
        color: @text-color3;
        line-height: 22px;
        margin-bottom: 6px;
      }
      .box-cont {
        height: 28px;
        font-weight: 500;
        font-size: 20px;
        line-height: 28px;
      }
    }

    .modal-origin {
      background-color: @background-color;
    }

    .modal-options {
      line-height: 54px;
      text-align: center;
      .ant-btn {
        margin: 0 8px;
        padding-left: 8px;
        padding-right: 8px;
        text-align: center;
        min-width: 32px;
      }
    }
  }
}

// review
.review {
  height: 100%;
  overflow: hidden;
  position: relative;

  &-head {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 11px 16px 10px;
    height: 54px;
    z-index: 9;
    background-color: #fff;
    border: 1px solid @background-color;

    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  &-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 32px;
    font-size: 14px;
    padding-left: 30px;
    width: calc(50% - 100px);

    background-image: url(../assets/imgs/bg-student.png);
    background-size: 22px 22px;
    background-position: 0 5px;
    background-repeat: no-repeat;
  }

  &-prev {
    text-align: right;
    width: calc(50% - 120px);
  }

  &-stat {
    width: 240px;
    text-align: center;
    line-height: 32px;

    > p {
      display: inline-block;

      &:first-child {
        margin-right: 25px;
      }

      .anticon {
        margin-right: 5px;
      }
    }
  }

  &-body {
    position: absolute;
    top: 54px;
    left: 0;
    bottom: 0;
    right: 278px;
    background-color: @background-color;
  }

  // action
  &-action {
    position: absolute;
    width: 278px;
    top: 54px;
    right: 0;
    bottom: 0;
    z-index: 9;

    .review-tabs {
      height: 46px;
      font-size: 0;
      border-bottom: 1px solid @border-color1;
    }
    .review-tab {
      position: relative;
      display: inline-block;
      vertical-align: middle;
      line-height: 46px;
      width: 50%;
      text-align: center;
      font-size: 14px;
      color: @text-color3;
      cursor: pointer;

      &:hover {
        color: @text-color1;
      }

      &.is-active {
        color: @text-color1;

        &::after {
          content: "";
          display: block;
          position: absolute;
          width: 56px;
          height: 4px;
          background: #165dff;
          bottom: 0;
          left: 50%;
          transform: translateX(-50%);
        }
      }
    }

    .review-tbody {
      position: absolute;
      top: 46px;
      bottom: 0;
      left: 0;
      right: 0;
      overflow: auto;
      z-index: 9;

      &.tbody-history {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;

        .review-tabs,
        .ant-collapse,
        .history-footer {
          flex-grow: 0;
          flex-shrink: 0;
        }
        .history-footer {
          padding: 8px 16px;
          color: @text-color2;
        }
        .history-list {
          flex-grow: 2;
          overflow-x: hidden;
          overflow-y: auto;
          border-top: 1px solid @border-color1;
          border-bottom: 1px solid @border-color1;
          padding: 0 8px;

          .table {
            width: 100%;
            border-spacing: 0;
            border-collapse: collapse;
            text-align: left;
            color: @text-color1;
            line-height: 22px;

            th {
              color: @text-color2;
              padding: 8px 8px 8px 12px;
              font-weight: 400;
            }
            td {
              padding: 0 8px 0 12px;
              line-height: 24px;
            }
            tbody {
              tr {
                border-radius: 6px;
                cursor: pointer;
                &:hover,
                &.is-active {
                  background: #e8f3ff;
                }
              }
            }
          }
        }
      }

      .ant-collapse-item:first-child {
        .ant-collapse-header {
          border-top: none;
        }
      }
    }
  }

  // mark-pan
  &-mark-pan {
    position: absolute;
    top: 200px;
    left: 200px;
    width: 212px;
    width: 212px;
    z-index: 19;
    background: #f2f3f5;
    box-shadow: 0px 10px 10px 0px rgba(54, 61, 89, 0.2);
    overflow: hidden;

    .pan-head {
      height: 22px;
      background: linear-gradient(180deg, #ffffff 0%, #f2f3f5 100%);
      border-radius: 8px 8px 0px 0px;
      border-bottom: 1px solid @border-color1;
      text-align: center;
      line-height: 20px;
      font-size: 0;
      cursor: move;

      &::before {
        content: "";
        display: inline-block;
        vertical-align: middle;

        width: 40px;
        height: 6px;
        background: #d9d9d9;
        box-shadow: inset 0px 1px 3px 0px rgba(0, 0, 0, 0.2);
        border-radius: 3px;
      }
    }
    .pan-body {
      padding: 16px;

      > p {
        font-weight: 500;
        font-size: 16px;
        color: @warning-color;
        line-height: 24px;
        margin-bottom: 8px;

        &:nth-last-of-type(1) {
          margin-bottom: 16px;
        }
      }
    }
  }

  // image
  &-image {
    height: 100%;
    padding: 8px;

    &-box {
      padding: 8px;
    }

    &-item {
      height: 100%;
      overflow: auto;

      img {
        display: block;
        max-height: none;
        height: auto;
      }
    }
  }

  // ant
  .ant-collapse {
    border-radius: 0;

    &-item {
      border-radius: 0 !important;
      border: none !important;
    }

    &-header {
      height: 34px;
      line-height: 22px !important;
      padding: 5px 16px !important;
      border-top: 1px solid @border-color1;
      border-bottom: 1px solid @border-color1;
      background: linear-gradient(180deg, #ffffff 0%, #f2f3f5 100%);
    }

    &-header-text {
      .anticon {
        color: #bfbfbf;
        margin-right: 8px;
      }
    }

    &-expand-icon {
      display: none !important;
    }

    &-content {
      background-color: #fff !important;
    }

    &-content-box {
      padding: 10px 0 10px 16px !important;
    }
  }
  .ant-btn {
    padding-left: 12px;
    padding-right: 12px;
  }
}
