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

$min-width: 1280px;
$min-height: 720px;

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

label {
  font-weight: 700;
}

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

#app {
  height: 100%;
}

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

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

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

div:focus {
  outline: none;
}

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

// main-container global css
.app-container {
  padding: 20px;
}

.fl {
  float: left;
}
.fr {
  float: right;
}
.tl {
  text-align: left;
}
.tr {
  text-align: right;
}

.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ellipsis-2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

//多选框未选中样式
.el-checkbox__inner {
  border: 1px solid #409eff;
}
// 筛选区域样式
.screen-container {
  background: #ffffff;
  .el-form-item {
    margin-bottom: 10px;
  }
  .top {
    height: 40px;
    .title {
      font-size: 16px;
      color: #333;
      font-weight: 600;
    }
    .control {
      font-size: 14px;
      color: #4e73df;
      cursor: pointer;
    }
  }
  // 选择器
  .el-select {
    width: 100%;
  }
  // 时间选择器
  .el-date-editor.el-input,
  .el-date-editor.el-input__inner {
    width: 100%;
    height: 29px;
  }
  .el-range-editor--small .el-range-separator {
    line-height: 28px;
  }

  //.el-col:last-child .el-form-item__content {
  //  margin-left: 0 !important;
  //}

  // .el-form-item__label {
  //   font-size: 13px;
  // }
}

.table {
  margin: 15px 0;
  // .el-button {
  //   padding: 0;
  // }
  .el-button--mini {
    padding: 7px 10px;
  }
  .el-button--text {
    padding: 0;
    font-size: 13px;
  }
  .el-table {
    font-size: 13px;
  }
  .el-table td,
  .el-table th {
    padding: 5px 0;
  }
  input[type='number'] {
    text-align: right;
  }
}

// 主要内容区域样式
.mymain-container {
  // margin-top: 15px;
  // margin-bottom: 20px;
  .btn-group {
    .text {
      font-size: 16px;
      color: #666;
      line-height: 32px;
    }
  }
  // 导入
  .import-btn {
    position: relative;
  }
  .el-upload-list {
    position: absolute;
    top: 20px;
    left: 0;
  }
}

// 抽屉样式
.el-drawer {
  // 整体
  .el-drawer__body {
    overflow-y: scroll;
  }
  .drawer__content {
    padding: 0 20px;
  }
  .drawer__footer {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
  }
  .drawer__content .el-date-editor {
    width: 100%;
  }

  // 选择器
  .el-select {
    width: 100%;
  }

  // 图片墙
  .el-upload-list--picture-card .el-upload-list__item {
    width: 100px;
    height: 100px;
  }
  .el-upload--picture-card {
    width: 100px;
    height: 100px;
    line-height: 100px;
    .avatar-uploader-icon {
      font-size: 28px;
      color: #8c939d;
      width: 100px;
      height: 100px;
      line-height: 100px;
      text-align: center;
    }
  }
}
.el-popover-left {
  margin-left: 10px;
}
// 上传照片样式
.avatar-uploader .el-upload {
  border: 1px dashed #d9d9d9;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.avatar-uploader .el-upload:hover {
  border-color: #409eff;
}
.avatar-uploader .el-upload-list {
  position: relative;
  top: unset;
  left: unset;
}
.avatar-uploader-icon {
  font-size: 28px;
  color: #8c939d;
  width: 120px;
  height: 120px;
  line-height: 120px;
  text-align: center;
}
.avatar {
  width: 120px;
  height: 120px;
  display: block;
}

// 系统设置
.setting_title {
  font-size: 18px;
  padding-left: 15px;
  font-weight: 600;
}
.page-footer {
  height: 70px;
  .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 9;
    width: 100%;
    background: #fff;
    padding: 15px 40px;
    box-sizing: border-box;
    transition: all 0.28s;
    text-align: right;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 50%), 0 2px 5px 0 rgb(0 0 0 / 10%);
    &.hideSidebar {
      margin-left: 54px;
      width: calc(100vw - 54px);
    }
    &.openSidebar {
      margin-left: 210px;
      width: calc(100vw - 210px);
    }
  }
}

.diy-table-1 {
  border: 1px solid #ebeef5;
  border-right: none;
  border-bottom: none;
  .item {
    display: flex;
    border-bottom: 1px solid #ebeef5;
    &.file {
      .label {
        height: 100px;
      }
      .value {
        height: 100px;
      }
      .file-list {
        display: flex;
        .file-item {
          // margin-top: 10px;
          margin-right: 10px;
        }
      }
      .img {
        width: 70px;
        height: 70px;
        display: block;
        border: 1px solid #e4e7ed;
      }
      .box2 {
        flex: 1;
        display: flex;
        padding: 10px;
        align-items: center;
        border: 1px solid #e4e7ed;
        width: 240px;
        height: 70px;
        cursor: pointer;
        img {
          width: 40px;
          height: 40px;
          display: block;
        }
        .name {
          flex: 1;
          color: #222;
          font-weight: 600;
          margin-left: 10px;
        }
      }
    }
    .label {
      width: 120px;
      height: 34px;
      display: flex;
      align-items: center;
      padding: 0 10px;
      box-sizing: border-box;
      background: #f5f7fa;
      border-right: 1px solid #ebeef5;
      font-size: 14px;
      color: #333333;
    }
    .value {
      flex: 1;
      height: 34px;
      display: flex;
      align-items: center;
      padding: 0 10px;
      box-sizing: border-box;
      border-right: 1px solid #ebeef5;
      font-size: 14px;
      color: #333333;
      input {
        border: none;
        padding: 0;
        height: 34px;
      }
    }
  }
}
.diy-table-2 {
  font-size: 14px;
  margin-top: 20px;
  margin-bottom: 20px;
  .el-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border: 1px solid #ebeef5;
    border-right: none;
  }
  .el-col {
    padding-top: 14px;
    padding-bottom: 14px;
    border-right: 1px solid #ebeef5;
  }
  .head {
    color: #909399;
    font-weight: bold;
    background: #f5f7fa;
  }
  .body {
    color: #333333;
    .el-row {
      border-top: none;
    }
  }
  .foot {
    color: #333333;
    .el-row {
      border-top: none;
    }
  }
}

.diy-form-1 {
  .item {
    display: flex;
    height: 34px;
    .label {
      width: 100px;
      display: flex;
      align-items: center;
      padding-right: 10px;
      box-sizing: border-box;
      font-size: 14px;
      color: #606266;
      font-weight: 700;
    }
    .value {
      flex: 1;
      display: flex;
      align-items: center;
      box-sizing: border-box;
      font-size: 14px;
      color: #333333;
      input {
        border: none;
        padding: 0;
      }
    }
  }
}

input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.main-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  border-bottom: 1px solid #dcdfe6;
  margin-top: 20px;
  margin-bottom: 20px;
  .title {
    font-size: 16px;
    font-weight: 600;
    padding-left: 10px;
  }
}
.hiprint-printElement-text-content {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media print {
  .hiprint-printElement-text-content {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
//解决最后一行多出横线问题
.el-table--border::after,
.el-table--group::after,
.el-table::before,
.el-table__fixed:before,
.el-table__fixed-right:before {
  background-color: transparent;
}

//解决表格行出现遮挡问题
.el-table__fixed,
.el-table__fixed-right {
  height: 100% !important;
}
