@import "../base/fonts";

/**
 * @Time 2019/11/18
 * @Author Tx
 * @Description 数据统计模块-页面样式
 */
@mixin setStyleAframeStatistics($project) {
  /****** 活跃走势 ****/
  .mta-ActiveStatistics {
    .zx-charts {
      width: 100%;
      height: 240px;
      margin: 15px 0;
    }

    /***高度响应式***/
    @media screen and (max-height: 700px) {
      .zx-charts {
        margin: 5px 0;
        height: 200px;
      }
    }
  }
  /****** 人员统计 ****/
  .mta-UserStatistics {

  }
  /****** 人员详情 ****/
  .mta-UserStaDetails {
    //面包屑导航
    .mta-head-area {
      display: flex;
      flex-direction: row;

      .head-area-item {
        flex-grow: 0.5
      }

      .text-a-r {
        text-align: right;
      }
    }

    //table-row
    .management-table-row{
      margin-top: 0;
    }

    .mta-UserSta-attr {
      display: flex;
      flex: 1;
      flex-direction: column;
      margin-right: 5px;
    }

    //UserSta-attr 头部
    .top-box-row{
      display: flex;
      justify-content: space-between;
      flex-wrap:wrap;
      margin: 0;
      padding: 0;
    }

    .top-box-kaoshi,.top-box-peixun{
      height: 240px;
      background: #fff;
      display: inline-block;
      border-radius: 8px;
      padding: 30px;
      box-sizing: border-box;
      .response-title {
        margin-bottom: 20px;
        overflow: hidden;
        display: block;
      }

      .img-box {
        width: 140px;
        height: 140px;
        border: 1px solid;
        border-radius: 3px;
        float: left;
        @include setThemeColorBase('border-color', 0);

        img {
          width: 136px;
          height: 136px;
          margin: 2px;
        }
      }

      .UserSta-top-right {
        margin-left: 170px;

        h3 {
          padding: 0;
          margin: 0;
          padding-top: 10px;
          margin-bottom: 15px;
          @include setFontBase(-2);
        }

        .el-div {
          @include setFontBase(-4);
          //width: 160px;
          width: 40%;
          display: inline-block;
          margin-bottom: 10px;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
        .el-div:hover {
          cursor: default;
        }

        .dl-width {
          // width: 280px;
          width: 59%;
          padding-right: 1%;
        }
      }

      .KsSta-top-right {
        margin-top: 25px;

        > div {
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          flex-wrap: wrap;
          @include setFontBase(-4);
          margin-bottom: 18px;
        }
      }
    }
    .top-box-kaoshi {
      width: 49.4%;
    }

    .top-box-peixun{
      width: 32.6%;
    }

    .mta-UserSta-attr-body {
      background: #fff;
      margin-top: 20px;
      border-radius: 8px;
      padding: 30px;
      box-sizing: border-box;
    }
    //el-tab
    .el-tabs{
      flex: 1;
      display: flex;
      flex-direction: column;
      height: 100%;
      .el-tabs__content{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 1;
      }
    }
    .el-tabs__header {
      margin: 0 0 10px;
    }
    .el-tab-pane{
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    /***宽度响应式***/
    @media screen and (max-width: 1600px) {
      .top-box-kaoshi,.top-box-peixun{
        height: 210px;
        padding: 20px;

        .response-title {
          margin-bottom: 15px;
        }
        .img-box {
          width: 130px;
          height: 130px;

          img {
            width: 126px;
            height: 126px;
            margin: 2px;
          }
        }
        .UserSta-top-right {
          margin-left: 146px;
        }
      }
      .top-box-kaoshi{
        width: 49.2%;
      }
      .top-box-peixun{
        width: 32.4%;
      }
      .mta-UserSta-attr-body {
        padding: 20px;
      }
    }
    @media screen and (max-width: 1440px) {
      .top-box-kaoshi,.top-box-peixun{
        padding: 15px;
        height: 180px;

        .response-title {
          margin-bottom: 10px;
        }

        .img-box {
          width: 120px;
          height: 120px;

          img {
            width: 116px;
            height: 116px;
            margin: 2px;
          }
        }

        .UserSta-top-right {
          margin-left: 136px;

          h3 {
            @include setFontBase(-4);
          }

          .el-div {
            @include setFontBase(-7);
            margin-bottom: 10px;
          }

          .dl-width {
            padding-right: 1%;
          }
        }

        .KsSta-top-right {
          margin-top: 20px;

          > div {
            @include setFontBase(-7);
            margin-bottom: 15px;
          }
        }
      }
      .top-box-kaoshi{width: 49.5%;}
      .top-box-peixun{width: 32.8%;}
      .mta-UserSta-attr-body {
        margin-top: 10px;
        padding: 15px;
      }
    }
  }
  //  describe: 考试统计 author: Wgy date:2019-11-22
  .mta-ExamStatistics {
    //导航栏
    .mta-head-area {
      display: flex;
      flex-direction: row;

      .head-area-item {
        flex-grow: 0.5
      }

      .text-a-r {
        text-align: right;
      }
    }

    //用户考试排名统计
    .rankStatisticsWrap {

      .el-pagination {
        margin: 15px 0;
      }
    }

    .FraStatisticsWrap {
      padding-bottom: 25px;

      .fra-charts {
        width: 100%;
        height: 240px;
        margin: 15px 0;
      }
    }

    .mta-btn-span {
      padding: 0 5px;
    }

    .el-table__row .el-button--text.is-disabled.showColor {
      color: #C0C4CC;
    }
  }
  //  describe:错题统计  author: Wgy date:2019-11-22
  .mta-wrong-topic-statistics {

    .el-table__body-wrapper {
      height: calc(100vh - 375px);
      overflow-y: auto;
      overflow-x: hidden;

    }

    .echart-Dialog {

      .e-dl-title {
        width: 100%;
        display: inline-block;
      }

      .echart-title-wrap {
        position: relative;

        .e-dl-btn {
          font-size: 12px;
          color: #FFF;
          position: absolute;
          right: 44px;
          top: 5px;
          padding: 0;
        }
      }

      .echart-dl-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 100px;

        .dlEchart {
          height: calc(100vh - 30vh - 30vh);
        }

        .shiti-content {
          height: calc(100vh - 30vh - 56vh);
          display: flex;
          flex-direction: row;
          justify-content: flex-start;
          flex-wrap: wrap;
          overflow-y: auto;
          margin: 10px 0;

          .shiti-content-item {
            width: 180px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            margin: 10px 20px 0 0;
          }
        }
      }

      .is-fullscreen {
        .echart-dl-content {
          .shiti-content {
            height: calc(100vh - 30vh - 35vh);
          }
        }
      }
    }
    /***高度响应式***/
    @media screen and (max-height: 700px) {
      .el-table__body-wrapper {
        height: calc(100vh - 346px);

      }
    }
  }
  .mta-examDetails {

    .mta-head-area {
      display: flex;
      flex-direction: row;

      .head-area-item {
        flex-grow: 0.5
      }

      .text-a-r {
        text-align: right;
      }
    }

    .el-tabs {
      flex: 1;
      display: flex;
      flex-direction: column;

      .el-tabs__content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 1;
      }
    }

    .el-tab-pane {
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    //弹窗时间框
    .el-dialog__body {
      .el-date-editor.el-input {
        width: 100%;
      }
    }
    .el-tabs__header{margin: 0;}
  }
}

