input::-webkit-input-placeholder,
input::-moz-placeholder,
input:-ms-input-placeholder,
input:-moz-placeholder {
  font-size: 14px;
  font-weight: 400;
  color: #8c94ac;
}
/* browse style */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: transparent;
}
::-webkit-scrollbar-button {
  display: none;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: #999;
}
::-webkit-scrollbar-corner {
  background: transparent;
}
::-webkit-scrollbar-resizer {
  background: transparent;
}

body {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
}

// fomate
.color-primary {
  color: #1886fe;
}
.color-success {
  color: #1cd1a1;
}
.color-danger {
  color: #fe5863;
}

// part-box
.part-box {
  padding: 20px;
  margin-bottom: 20px;
  background-color: #fff;
  border-radius: 6px;

  &-head {
    margin-bottom: 20px;
    line-height: 32px;

    &::after {
      content: "";
      display: block;
      clear: both;
      visibility: hidden;
    }

    &-left {
      float: left;

      > h1 {
        color: #202b4b;
        font-size: 18px;
        font-weight: 600;
        margin: 0;
      }
    }
    &-right {
      float: right;
    }
  }
}
.part {
  &-filter {
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 6px;

    > div[class^="part-filter"]:nth-of-type(2) {
      border-top: 1px solid #f0f4f9;
    }
    .line-split {
      display: inline-block;
      margin: 0 5px;
      color: #ccd4e2;
      font-weight: 600;
    }

    &-info {
      display: flex;
      align-items: stretch;
      justify-content: space-between;
      padding: 10px 20px;

      &-sub {
        padding-left: 20px;
      }
    }

    &-form {
      display: flex;
      align-items: stretch;
      justify-content: space-between;
      padding: 20px 20px 10px;

      &-action {
        padding-bottom: 15px;
        white-space: nowrap;
        display: flex;
        align-items: flex-end;
      }

      .el-form-item {
        margin-bottom: 15px;
      }
      .el-form-item__label {
        margin-bottom: 0;
      }
      .el-button {
        vertical-align: top;
      }
    }
  }
}

.part-page {
  margin-top: 20px;
  text-align: right;
  &::after {
    content: "";
    display: block;
    clear: both;
    visibility: hidden;
  }

  .page-info {
    float: left;
    line-height: 32px;
  }
  .el-pagination {
    float: right;
    padding: 0;
  }
}

.clear-float {
  &::after {
    content: "";
    display: block;
    clear: both;
    visibility: hidden;
  }
}

// other
.echarts {
  height: 100% !important;
  width: 100% !important;
}
.el-icon-btn {
  &.el-button {
    padding: 8px;
  }
  i.icon {
    margin: 0;
  }
}
// avarar
.avatar-default {
  width: 100%;
  height: 100%;
  background-color: #e8edf3;
  position: relative;

  > i {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    color: #8c94ac;
  }
}
// tips-info
.tips-info {
  position: relative;
  padding-left: 30px;

  > i {
    position: absolute;
    display: block;
    left: 0;
    top: 3px;
    font-size: 20px;
  }
  > p {
    margin: 0;
    line-height: 20px;
    font-size: 14px;
    font-weight: 400;
  }
}
.tips-error {
  color: rgba(254, 88, 99, 1);
}
.tab-footer {
  padding: 30px;
  background-color: #fff;
  border-radius: 0 0 6px 6px;
  .el-button {
    width: 83px;
  }
}

// :fullscreen
.app-fullscreen {
  .nav-bar,
  .side-bar,
  .app-footer {
    display: none;
  }
  .main-container {
    margin: 0;
    padding: 0;
  }
}
// summary-line
.summary-line {
  font-size: 0;
  min-height: 32px;
  padding: 6px 10px 6px 0;
  &-item {
    font-size: 14px;
    display: inline-block;
    vertical-align: middle;
    margin: 0 30px 0 0;
    line-height: 20px;
    color: #202b4b;

    > .icon {
      margin-right: 8px;
      margin-top: -2px;
    }

    span.line-name {
      color: #626a82;
      margin-right: 8px;
    }
    > span:last-child {
      color: #202b4b;
      font-weight: 600;
    }

    i.line-point {
      display: inline-block;
      vertical-align: middle;
      width: 8px;
      height: 8px;
      border: 2px solid #202b4b;
      margin-right: 6px;
      margin-top: -3px;
      border-radius: 50%;
    }

    i.line-point-primary {
      border-color: #1886fe;
    }
    i.line-point-info {
      border-color: #5fcafc;
    }
    i.line-point-success {
      border-color: #1cd1a1;
    }
    i.line-point-danger {
      border-color: #fe5863;
    }
  }
}
.el-popover.warning-popover {
  background: #ff9f43;
  box-shadow: 0px 0px 6px 0px rgba(255, 158, 59, 0.5);
  border-radius: 6px;
  padding: 6px 10px;
  color: #fff;
  font-size: 12px;
  line-height: 17px;
  &[x-placement^="bottom"] .popper__arrow::after {
    border-bottom-color: #ff9f43 !important;
  }
  &[x-placement^="top"] .popper__arrow::after {
    border-top-color: #ff9f43 !important;
  }
}

// realtim-monitoring msg-monitor
.msg-monitor {
  color: #202b4b;
  > span {
    display: inline-block;
    vertical-align: middle;
    > b {
      margin: 0 3px;
    }
  }
  &-icon {
    height: 36px;
    width: 36px;
    background-color: #fe5863;
    padding-top: 6px;
    text-align: center;
    border-radius: 50%;
    margin-right: 10px;
    > i {
      width: 18px;
      height: 17px;
    }
  }
  &-action {
    color: #1886fe;
    cursor: pointer;

    &:hover {
      font-weight: 600;
    }
  }
}
.msg-monitor-magbox {
  width: 400px;
  .el-notification__closeBtn {
    top: 25px;
  }
  .el-notification__content {
    margin: 0;
  }
}

// warning-detail
.warning-detail {
  &-head {
    margin: -30px -30px 0;
    padding: 30px;
    background: #fff;
    border: 1px solid #f0f4f9;
  }
  &-title {
    overflow: hidden;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f4f9;
    > h2 {
      float: left;
      font-weight: 600;
      font-size: 18px;
      line-height: 28px;
      margin: 0;
    }
    > .el-button {
      float: right;
    }
  }
}
.warning-detail-student {
  .student-head {
    padding: 20px 0;
    overflow: hidden;
    &-left {
      float: left;
      > p {
        display: inline-block;
        vertical-align: middle;
        margin: 0;
        line-height: 28px;
        height: 28px;
        margin-right: 15px;

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

        > span {
          color: #626a82;

          &:last-child {
            color: #202b4b;
            margin-left: 5px;
            font-weight: 600;
          }
        }
      }
    }
    &-right {
      float: right;
    }
  }
  .student-views {
    height: 240px;
    margin: 0 -15px;
  }
  .student-avatar {
    padding: 0 15px;
    width: 210px;
    height: 100%;
    float: left;
    > img {
      display: block;
      width: 100%;
      height: 100%;
      border-radius: 6px;
      background-color: #e8edf3;
    }
  }
  .student-video {
    margin-left: 210px;
    height: 240px;
    font-size: 0;
    position: relative;

    &-item {
      position: relative;
      display: inline-block;
      vertical-align: top;
      font-size: 14px;
      padding: 0 15px;
      width: 50%;
      height: 100%;
    }
    video {
      display: block;
      width: 100%;
      height: 100%;
      border-radius: 6px;
      box-shadow: 0 0 1px #333;
      background: #606060;
    }

    &-main {
      position: absolute;
      top: 0;
      left: 15px;
      right: 15px;
      bottom: 0;
      z-index: 9;
      border-radius: 6px;
    }

    &-none {
      height: 100%;
      background: #606060;
      border-radius: 6px;
      font-size: 50px;
      text-align: center;
      padding-top: 90px;
      color: #202b4b;
    }
  }
  .student-exception {
    margin-top: 30px;
    ul,
    li {
      margin: 0;
      padding: 0;
    }
    ul {
      white-space: nowrap;
      font-size: 0;
    }
    li {
      display: inline-block;
      vertical-align: top;
      font-size: 14px;
      position: relative;
      padding: 0 15px 0 38px;
      width: 33.33%;

      > i {
        display: block;
        position: absolute;
        font-size: 29px;
        line-height: 1;
        color: #d9dfe8;
        top: 3px;
        left: 5px;
        z-index: 9;
        font-style: normal;

        &::after {
          content: "";
          display: block;
          position: absolute;
          background: #fff;
          width: 15px;
          height: 15px;
          transform: rotate(45deg);
          bottom: -2px;
          right: -10px;
          z-index: 9;
        }
      }

      &:not(:last-child):after {
        content: "";
        display: block;
        position: absolute;
        background-image: url(../assets/bg-split-line.png);
        background-position: 100% 100%;
        width: 30px;
        height: 52px;
        top: 6px;
        right: 10px;
        z-index: 9;
      }
      h4 {
        font-size: 16px;
        font-weight: 600;
        color: #202b4b;
        line-height: 22px;
        margin-bottom: 4px;
      }
      p {
        margin: 0;
        font-weight: 400;
        color: #626a82;
        line-height: 20px;
        white-space: normal;
      }
    }
  }
}
.warning-detail-body {
  margin-top: 30px;
  border-radius: 6px;
  background: #fff;
}
.warning-body-head {
  border-bottom: 1px solid #f0f4f9;
  padding: 20px;
  &-action {
    float: left;
    > h3 {
      line-height: 32px;
      display: inline-block;
      vertical-align: middle;
      font-size: 18px;
      font-weight: 600;
      margin: 0 30px 0 0;
    }

    .el-button >>> i.icon {
      margin: 0;
    }
  }
  &-call {
    margin: 0 10px;
  }
  &-info {
    float: right;
    padding: 0;
    > p {
      height: 32px;
      line-height: 32px;
      margin-right: 20px;
    }
    .el-button {
      vertical-align: middle;
    }
  }
}
.warning-body-main {
  min-height: 400px;
  padding: 15px;
}
.warning-history {
  display: flex;
  min-height: 100px;
  align-items: center;
  &-info {
    padding: 15px 30px 15px 0;
    text-align: right;
    width: 210px;
    flex-shrink: 0;
    > h3 {
      font-size: 16px;
      font-weight: 600;
      color: #202b4b;
      line-height: 22px;
      margin-bottom: 4px;
    }

    > h5 {
      font-size: 13px;
      font-weight: 600;
      color: #626a82;
      line-height: 18px;
      margin-bottom: 4px;
    }

    > p {
      font-size: 12px;
      font-weight: 400;
      color: #626a82;
      line-height: 17px;
      margin: 0;
    }
  }

  &-type {
    position: relative;
    width: 36px;
    height: 36px;
    padding-top: 5px;
    text-align: center;
    border-radius: 50%;
    border: 2px solid #1cd1a1;
    background-color: #fff;
    z-index: 9;
    flex-shrink: 0;
    &.type-exception {
      border-color: #fe5863;
    }
    > i {
      width: 18px;
      height: 17px;
    }
    i.icon-current-step {
      width: 12px;
    }
  }

  &-media {
    padding: 10px 0 10px 20px;
    position: relative;
    min-height: 100px;
    z-index: 8;

    &::before {
      content: "";
      display: block;
      position: absolute;
      height: 100%;
      border-left: 1px solid #f0f4f9;
      left: -18px;
      top: 0;
    }
  }
  .media-list {
    padding: 0;
    margin: 0;
    list-style: none;

    li {
      display: inline-block;
      vertical-align: top;
      width: 160px;
      height: 100px;
      margin: 5px 10px;
      border-radius: 6px;
      background-color: #e8edf3;
      overflow: hidden;

      > img {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }
    }
  }
}

// communication-dialog
.communication-dialog {
  &.el-dialog {
    background-color: transparent;
  }

  .communication-box {
    width: 600px;
    height: 720px;
    background: #000;
    margin: 0 auto;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    video {
      display: block;
      width: 100%;
      height: 100%;
    }

    .communication-host {
      position: relative;
      height: 100%;
    }
    .communication-guest {
      position: absolute;
      width: 90px;
      height: 120px;
      border-radius: 6px;
      top: 10px;
      right: 10px;
      z-index: 99;
      background: #000;
    }
    .communication-action {
      position: absolute;
      width: 100%;
      bottom: 40px;
      left: 0;
      z-index: 99;
      text-align: center;
    }
    .communication-info {
      position: absolute;
      width: 100%;
      bottom: 0;
      height: 40px;
      line-height: 40px;
      padding: 0 20px;
      color: #fff;

      > span {
        display: block;
        float: left;

        &:last-child {
          float: right;
        }
      }
    }
  }

  .communication-wait {
    width: 460px;
    height: 511px;
    background: #fff;
    margin: 100px auto 0;
    position: relative;
    border-radius: 6px;
    text-align: center;
    padding: 40px;

    &-tips {
      font-size: 16px;
      font-weight: 600;
      color: rgba(28, 209, 161, 1);
      line-height: 22px;
    }

    &-avatar {
      width: 180px;
      height: 180px;
      border-radius: 50%;
      overflow: hidden;
      margin: 20px auto 12px;
      > img {
        display: block;
        width: 100%;
        height: auto;
      }
    }
    &-username {
      font-size: 18px;
      font-weight: 600;
      color: rgba(32, 43, 75, 1);
      line-height: 25px;
      margin-bottom: 100px;
    }
  }
  // element
  .el-dialog__footer,
  .el-dialog__header {
    display: none;
  }
}

// handle-rollup-dialog
.handle-rollup-dialog {
  .tips-info {
    margin-bottom: 30px;
  }
}

// student-breach-dialog
.student-breach-dialog {
  .student-info {
    margin: 30px 0 20px;
    &-item {
      display: inline-block;
      vertical-align: top;

      &:not(:last-child) {
        margin-right: 20px;
        color: #626a82;
      }
      span:nth-of-type(2) {
        color: #202b4b;
        font-weight: 600;
      }
    }
  }
}

// exam-batch-dialog
.exam-batch-dialog {
  .el-radio {
    color: #202b4b;
    margin-bottom: 20px;
    margin-right: 0;
    line-height: 20px;
    font-weight: 400;
  }
}

// student-log-detail-dialog
.student-log-detail-dialog {
  .el-dialog {
    background: #f0f4f9;
  }
  .el-dialog__footer {
    display: none;
  }
}

// gray-dialog
.gray-dialog {
  .el-dialog {
    background: #f0f4f9;
    .el-dialog__body {
      padding-top: 5px;
    }
  }
}
