// 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: 22px;
      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-number {
            width: 50px;
          }
          .ant-input-number-input {
            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;
        }
      }

      .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 {
    &-expand-icon {
      display: none !important;
    }

    &-content-box {
      padding: 10px 0 10px 16px !important;
    }
  }
}

.task-list {
  color: @text-color1;
  line-height: 22px;
  padding: 0 8px;

  ul {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
  }

  li {
    font-size: 14px;

    &.li-grow {
      flex-grow: 2;
    }
  }

  .list-head {
    li {
      color: @text-color2;
      padding: 8px 4px 5px 12px;
      font-weight: 400;
    }
  }
  .list-body {
    ul {
      margin-bottom: 4px;
      border-radius: 6px;
      cursor: pointer;

      &:hover,
      &.is-active {
        background: #e8f3ff;
      }
    }

    li {
      padding: 0 4px 0 12px;
      line-height: 24px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
}
// audit
.audit {
  height: 100%;
  position: relative;

  &.is-wait {
    display: flex;
    justify-content: center;
    align-items: center;
    color: @text-color3;

    img {
      display: block;
      height: 56px;
      width: 56px;
      margin: 0 auto 12px;
    }
  }

  &-head {
    position: absolute;
    width: 100%;
    height: 54px;
    top: 0;
    left: 0;
    z-index: 9;
    border-bottom: 1px solid @border-color1;
    padding: 11px 8px 10px;
    line-height: 32px;
    text-align: center;
    color: @text-color2;
    overflow: hidden;

    .ant-col {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .ant-col:not(:last-child) {
      &::after {
        content: "";
        display: block;
        position: absolute;
        height: 22px;
        border-right: 1px solid @border-color1;
        right: 0;
        top: 50%;
        margin-top: -11px;
      }
    }
    .head-label {
      color: @text-color3;
    }
  }

  &-body {
    position: absolute;
    top: 54px;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: @background-color;
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  &-topinfo {
    position: fixed;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9;

    height: 32px;
    background: @background-color;
    color: @text-color2;
    border-radius: 6px;
    padding: 5px 12px;
    line-height: 22px;
  }
}
// intime
.intime {
  &-side {
    position: absolute;
    width: 357px;
    top: 54px;
    bottom: 0;
    left: 0;
    z-index: 9;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    &-body {
      flex-grow: 2;
      overflow: auto;
    }

    &-foot {
      flex-grow: 0;
      flex-shrink: 0;
      padding: 12px 16px;
      border-top: 1px solid @border-color1;
      background-color: #fff;

      .ant-btn {
        width: 146px;
      }
    }
  }

  .audit-body {
    left: 357px;

    &-imgs {
      height: 100%;
      overflow-x: hidden;
      overflow-y: auto;
    }

    .paper-img {
      display: block;
      width: 100%;
      max-width: none;
      height: auto;
      max-height: none;
      margin-bottom: 10px;
    }
  }
}
// audit-image-check
.audit-image-check {
  .remain-time {
    margin-right: 16px;
    color: @error-color;
    min-width: 30px;
    display: inline-block;
  }
  .audit-body {
    padding: 0;
    img {
      display: block;
      height: 100%;
      width: auto;
      margin: 0 auto;
    }
  }
}

// data-check
.data-check {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: stretch;

  .check-menu {
    flex-grow: 0;
    flex-shrink: 0;
    width: 278px;
    border-right: 1px solid @border-color1;

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

    &-body {
      flex-grow: 2;
      padding: 8px;
      overflow-x: hidden;
      overflow-y: auto;

      li {
        height: 24px;
        line-height: 24px;
        padding: 0 8px;
        border-radius: 6px;
        margin-bottom: 4px;
        cursor: pointer;

        &.is-active,
        &:hover {
          background: #e8f3ff;
        }
      }
    }
    &-page {
      flex-grow: 0;
      flex-shrink: 0;
      padding: 8px 16px;
      border-top: 1px solid @border-color1;
    }
  }
  .check-action {
    flex-grow: 0;
    flex-shrink: 0;
    width: 382px;
    border-left: 1px solid @border-color1;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #fff;

    .exam-number {
      position: relative;
      width: 195px;
      display: inline-block;
      vertical-align: middle;

      .ant-input {
        padding-right: 58px;
      }

      .number-suffix {
        position: absolute;
        color: @text-color3;
        height: 22px;
        line-height: 22px;
        top: 5px;
        right: 5px;
        z-index: 8;
      }
    }

    .ant-form-item {
      margin-bottom: 8px;
    }
    .ant-form-item-label > label {
      color: @text-color2;
    }
  }
  .check-body {
    flex-grow: 2;
    background-color: @background-color;
  }
}

// recog-edit-dialog
.recog-edit-dialog {
  // left: calc(277px + (100% - 278px - 382px) / 2);
  top: 60px !important;
  left: calc(50% - 52px) !important;
  transform: translateX(-50%);
  width: 718px !important;
  height: 216px !important;
  overflow: hidden !important;
  border-radius: 12px;
  box-shadow: 0px 10px 10px 0px rgba(54, 61, 89, 0.2);

  .ant-modal {
    width: auto !important;
    transform-origin: 0 !important;
    top: 0 !important;
  }
  .ant-modal-body {
    padding: 0;
  }
}
.recog-edit {
  width: 718px;
  height: 216px;
  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 @border-color1;
    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;
    }
  }
}

.cut-image-dialog {
  .ant-modal-content {
    border-radius: 0;
    background-color: transparent;
  }
  .ant-modal-body {
    overflow: hidden;
    padding: 0;
  }
  .cut-image {
    position: relative;
    height: 100%;

    &-body {
      position: absolute;
      top: 0;
      left: 0;
      z-index: 8;
      > img {
        display: block;
        width: 100%;
        height: 100%;
      }
    }

    .image-selection {
      position: absolute;
    }

    .cut-close {
      position: absolute;
      width: 48px;
      height: 48px;
      top: 20px;
      right: 20px;
      z-index: 9;
      background: rgba(89, 89, 89, 0.8);
      border-radius: 24px;
      text-align: center;
      line-height: 48px;
      font-size: 20px;
      color: #fff;
      cursor: pointer;
      &:hover {
        opacity: 0.8;
      }
    }

    .cut-save {
      position: absolute;
      width: 48px;
      height: 48px;
      bottom: 20px;
      right: 20px;
      z-index: 9;
      background: linear-gradient(180deg, #3196ff 0%, #165dff 100%);
      border-radius: 24px;
      border: 1px solid #4080ff;
      text-align: center;
      line-height: 46px;
      font-size: 20px;
      color: #fff;
      cursor: pointer;
      &:hover {
        opacity: 0.8;
      }
    }
  }
}
