@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
@import './business.scss';



body {
  margin: 0;
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Microsoft YaHei, Arial, Helvetica, PingFang SC, Hiragino Sans GB, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

ul,
li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.mt-20 {
  margin-top: 20px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mr-10 {
  margin-right: 10px;
}

.mr-20 {
  margin-right: 20px;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.color-gray {
  color: #929292;
}

.color-red {
  color: red;
}

.color-red:hover {
  color: #ff6767;
  text-decoration: underline;
}

.color-green {
  color: green;
}

.color-green:hover {
  color: #47c647;
}


.block {
  display: block;
}

.bb {
  border-bottom: 1px solid #f1f1f1;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.app-contprint {
  padding: 20px;
}

.app-contprint0 {
  padding: 0 20px 20px 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.text-center {
  text-align: center
}

.text-right {
  text-align: right
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 15px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
  }

  .filter-group {
    display: inline-block;
    vertical-align: middle;
    padding-left: 10px;

    &:last-child {
      padding-right: 20px;
    }

    .filter-lable {
      display: inline-block;
      vertical-align: middle;
      font-size: 12px;
    }

    .filter-width {
      display: inline-block;
      vertical-align: middle;
      width: 160px;
    }

    .filter-date {
      display: inline-block;
      vertical-align: middle;
    }
  }

  .filter-lable {
    display: inline-block;
    font-size: 13px;
    text-align: right;
    color: #606266;
  }

}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

// 分页和按钮组
.page-btn-group {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-top: 20px;
  align-items: flex-end;
}

.filter-btn-group {
  margin-bottom: 10px;
}

// 一行布局flex左右对齐
.inline-flex {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}


.table-ui {
  border-collapse: collapse;
  width: 100%;

  th {
    background-color: #f9f9f9;
    padding: 0.9rem 0.8rem;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid #eaeaea;
    text-align: left;

  }

  td {
    border: 1px solid #eaeaea;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.6;
  }

  .img16b9 {
    width: 200px;
    height: 113px;

    img {
      width: 100%;
      height: 100%;
    }
  }

  .bgst {
    background: #f9f9f9;
    text-align: center;
  }

  .abg {
    background: #f9f9f9;
    text-align: right;
    width: 160px;
  }

  .bbg {
    background: #f9f9f9;
    width: 120px;
    text-align: center;
  }

  .tbg {
    background: #f9f9f9;
    text-align: right;
    width: 120px;
  }

  .max-tbg {
    background: #f9f9f9;
    text-align: right;
    width: 200px;
  }


  .w-space {
    white-space: nowrap;
    text-align: center;
  }

  .cbg {
    background: #f9f9f9;
    text-align: right;
    width: 140px;
  }


  .label.label-danger {
    background: #f44236;
    color: #ffffff;
  }

  .label.label-success {
    background: #1de9b6;
    color: #ffffff;
  }

  .label.label-warning {
    background: #f4c22b;
    color: #ffffff;
  }

  .label.label-info {
    background: #3ebfea;
    color: #ffffff;
  }

  .label.label-orange {
    background: #fa7423;
    color: #ffffff;
  }
}


// 通用底部
.ui-height {
  height: 60px;
}

.ui-foot {
  position: fixed;
  width: calc(100% - 210px);
  bottom: 0;
  height: 60px;
  line-height: 60px;
  background-color: #f1f1f1;
  text-align: center;
}

// 分级标题
.level-title {
  padding-left: 10px;
  border-left: 4px solid #04a9f5;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  position: relative;

  h1 {
    font-size: 15px;
    font-weight: bold;
    margin: 0;
  }

  .level-search {
    position: absolute;
    left: 80px;
    display: flex;
    flex-direction: row;
  }

  .level-btns {
    position: absolute;
    right: 0;
  }

  .level-code {
    position: absolute;
    right: 0;
    font-size: 14px;
  }
}

.level-tree {
  margin-bottom: 20px;

  .course-management-tree {
    padding: 0;
  }

  .level-border {
    font-size: 14px;

    .el-icon-video-camera {
      display: inline-block;
      vertical-align: middle;
    }

    .title {
      width: 260px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      display: inline-block;
      vertical-align: middle;

    }
  }

  .el-tree-node__content {
    padding: 20px;
  }
}

.level-line {
  background-color: #f1f1f1;
  height: 1px;
  overflow: hidden;
  margin-bottom: 20px;
}

.table-vi {
  border-collapse: collapse;
  width: calc(100% + 2px);
  margin: -1px -2px -1px -1px;

  th {
    background-color: #f9f9f9;
    padding: 8px;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid #eaeaea;
    text-align: center;
    font-weight: normal;

  }

  td {
    border: 1px solid #eaeaea;
    padding: 8px;
    font-size: 14px;
    line-height: 1.4;
  }

  .numberbg {
    background: #f9f9f9;
    text-align: center;
  }

  .tcenter {
    text-align: center;

  }

  .select {
    width: 80px;
  }
}



// 打印选项

@page {
  /* size: landscape; */
  /* size: portrait; */
  size: A4;
  margin: 0 20px;
  width: 100%;
  // margin-top: 20px;
}

@media print {
  .noprint {
    display: none;
  }

  .print-break {
    page-break-after: always;
    padding-top: 20px
  }

  .app-contprint {
    padding: 20px 0;
  }

  .app-contprint0 {
    padding: 0;
  }

  .height-a4 {
    height: 692px;
    margin-bottom: 120px;
  }

  .print-approve {
    .level-title {
      padding-left: 0px;
      border: none;
      text-align: center;
      display: block;
      margin-bottom: 12px;
      position: relative;

      h1 {
        font-size: 24px;
        text-align: center;
        margin: 24px !important;
      }
    }

    .table-ui {

      td,
      th {
        font-size: 14px;
        line-height: 32px !important;
        padding: 10px;
      }

      .tbg {
        width: 150px;
      }
    }

    .print-approval-ul {
      li {
        line-height: 38px;
      }
    }
  }

  .print-midi {

    .level-title {
      padding-left: 6px;

      h1 {
        font-size: 12px;
      }
    }

    .table-ui {
      th {
        font-size: 12px;
        padding: 8px;
      }

      td {
        font-size: 12px;
        padding: 4px;

      }
    }

  }

  .print-work {
    .level-title {
      padding-left: 0px;
      border: none;
      text-align: center;
      display: block;
      margin-bottom: 12px;
      position: relative;

      h1 {
        font-size: 24px;
        text-align: center;
        margin: 24px !important;
      }

      .level-code {
        bottom: -15px;
      }
    }

    .table-ui {
      th {
        font-size: 12px;
        padding: 8px;
        line-height: 1.2;
      }

      td {
        font-size: 12px;
        padding: 8px;
        line-height: 1.8;

      }
    }

  }


}


// 在线学习与考试

.study-box {


  .study-banner {
    margin: 30px auto;
    width: 400px;

    img {
      width: 100%;
      height: 100%;

    }
  }

  .study-info {
    margin: 0 auto;
    width: 600px;
  }

  .study-foot {
    padding-top: 60px;
    width: 100%;
    text-align: center;

    .el-button {
      width: 200px;
      padding: 10px 0;
      font-size: 16px;

    }
  }

}

.study-papg {
  margin: 0 18px;
  font-size: 14px;

  dl {
    background-color: #fafafa;
    padding: 20px 24px;
    margin: 0 0 10px 0;

    .el-radio-group {
      width: 100%;

    }

    dt {
      line-height: 1.6;
      margin-bottom: 10px;

      .mark {
        font-size: 12px;
        border-radius: 4px;
        padding: 4px 6px;
        margin-right: 10px;
      }

      .mark-orange {
        color: #fea317;
        background-color: #f9efd2
      }

      .mark-green {
        color: #37bf77;
        background-color: #d9efe4
      }

      .mark-blue {
        color: #4574f9;
        background-color: #f1f7ff
      }

      .mark-purple {
        color: #f861d8;
        background-color: #fff2fe
      }
    }

    dd {
      display: inline-block;
      width: 20%;
      margin: 10px 0 20px 40px;
      vertical-align: top;

      &:first {
        margin-left: 0;
      }

      .el-radio {
        white-space: normal;
        line-height: 1.6;
      }
    }

    &:last-child {
      border-bottom: none;
    }

    .proper {
      margin-top: 10px;
    }
  }
}

.papg-foot {
  padding-top: 20px;
  padding-bottom: 40px;
  width: 100%;
  text-align: center;

  .el-button {
    width: 160px;
    padding: 10px 0;
    font-size: 16px;
  }
}

//视频进度条禁止拖拽 禁止快放
.vjs-progress-control {
  pointer-events: none !important;
}

.vjs-playback-rate {
  display: none !important;
}

// 新增用户
.title_super {
  border-bottom: 1px solid #f1f1f1;
  font-size: 15px;
  font-weight: bold;
  line-height: 40px;
  margin-bottom: 20px;
}

.left_border_super {
  border-left: 1px solid #f1f1f1;
  padding-right: 40px;

}

.left_super {
  padding-right: 40px;
}

.ml5 {
  margin-left: 5px;
}

.ml-10 {
  margin-left: 10px;
}

.red-tip {
  color: #ff0000;
  margin-left: 16px;
  font-size: 12px;
}

.img-size {
  width: 108px;
  height: 108px;
  border-radius: 5px;

  img {
    border-radius: 5px;
    background-size: 100% 100%;
    height: 100%;
    width: 100%;
  }
}

.a_link {
  color: #04a9f5;
  text-decoration: underline;

  &:hover {
    color: #04a9f5;
  }
}

// label换行
.singerH {
  .el-form-item__label {
    white-space: pre-wrap;
    text-align: right;
    line-height: 1.4;
  }
}

.clear_interval {
  .el-button+.el-button {
    margin-left: 0;
  }

  .el-button {
    margin-right: 10px;

    &:last-child {
      margin-right: 0;
    }
  }
}


.collection_h1 {

  h1 {
    padding: 0;
    margin: 0;
    margin-bottom: 20px;
    font-size: 16px;
  }
}

.collection_box {
  padding: 0 40px;

  .collection_card {
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100%;
    position: relative;
    margin-bottom: 20px;

    .collection_h1 {
      position: absolute;
      font-size: 14px;
      font-weight: bold;
      top: -10px;
      left: 24px;
      background-color: #fff;
      padding: 0 8px;
    }

    .collection_form {
      padding: 20px;
      padding-top: 30px;
    }
  }
}

.collection_lable {
  .el-form-item__label {
    width: auto !important;
  }

  .el-form-item__content {
    margin-left: 150px !important;
  }

}

.collection_input {
  .el-form-item__label {
    width: 400px !important;
  }

  .el-form-item__content {
    margin-left: 400px !important;
  }

}

.collection_name {
  .el-form-item__label {
    width: 110px !important;
  }

  .el-form-item__content {
    margin-left: 110px !important;
  }

}


.text-tip {
  display: flex;
  align-items: flex-start;
  font-size: 12px;
  margin: 0;
  line-height: 1.8;
  color: #909399;
  padding-top: 10px;
}