@import './variables.scss';
@import './element-variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
//设置字体
@font-face {
  font-family: 'SourceHanSans';
  src: url('fonts/SourceHanSansCN-Regular.ttf');
  font-weight: normal;
  font-style: normal;
}
* {
  font-family: 'SourceHanSans';
}
body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: #eff3f5;
}
// label {
//   font-weight: 700;
// }
// Tabs el-button-radio el-dropdown 标签页出现蓝色阴影边框解决方案
.el-tabs__item:focus.is-active.is-focus:not(:active),.el-radio-button:focus:not(.is-focus):not(:active):not(.is-disabled) {
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
}
.el-tabs__item,.el-tabs__item:focus,.el-tabs__item:focus-visible,.el-radio-button,.el-radio-button:focus,.el-radio-button:focus-visible,.el-dropdown-link,.el-dropdown-link:focus,.el-dropdown-link:focus-visible{
  outline: transparent none 0px !important;
}

html {
  height: 100%;
  box-sizing: border-box;
}
#app {
  height: 100%;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
.no-padding {
  padding: 0px !important;
}
.padding-content {
  padding: 4px 0;
}
a:focus,
a:active {
  outline: none;
  background-color: none !important;
}
a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
div:focus {
  outline: none;
}
.fr {
  float: right;
}
.fl {
  float: left;
}
.pr-5 {
  padding-right: 5px;
}
.pl-5 {
  padding-left: 5px;
}
.mb-0 {
  margin-bottom: 0px !important;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-14 {
  margin-bottom: 18px;
}
.mb-18 {
  margin-bottom: 18px;
}
.mb-20 {
  margin-bottom: 20px;
}
.mb-40 {
  margin-bottom: 40px;
}
.block {
  display: block;
}
.flex {
  display: flex;
}
.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 {
  width: 100%;
  height: calc(100vh - 140px);
  overflow-x: hidden;
  box-sizing: border-box;
  padding: 20px;
  background-color: #fff;
  border-radius: 0 0 10px 10px;
  scrollbar-width: none;

  .el-row > .el-form:first-child {
    margin-bottom: 20px;
  }
  .el-row > .el-form:first-child:after {
    content: '';
    width: calc(100% + 40px);
    height: 1px;
    background-color: #ecf0f1;
    position: absolute;
    bottom: 0;
    left: -20px;
    margin-bottom: 20px;
  }
}
.el-main{
  padding-top: 0 !important;
  overflow-x: hidden !important;
}
.desktop .el-table__body-wrapper::-webkit-scrollbar{
  height: 10px;
}
.desktop .ascroll::-webkit-scrollbar,
.desktop ~ .el-dialog__wrapper .ascroll::-webkit-scrollbar,
.desktop .app-container::-webkit-scrollbar,
.desktop .el-main::-webkit-scrollbar,
.desktop .el-dialog__wrapper .el-dialog__body::-webkit-scrollbar,
.desktop ~ .el-dialog__wrapper .el-dialog__body::-webkit-scrollbar {
  width: 10px;
  height: 6px;
}

/*滚动条滑块*/
.desktop .ascroll::-webkit-scrollbar-thumb,
.desktop .el-table__body-wrapper::-webkit-scrollbar-thumb,
.desktop ~ .el-dialog__wrapper .ascroll::-webkit-scrollbar-thumb,
.desktop .app-container::-webkit-scrollbar-thumb,
.desktop .el-main::-webkit-scrollbar-thumb,
.desktop .el-dialog__wrapper .el-dialog__body::-webkit-scrollbar-thumb,
.desktop ~ .el-dialog__wrapper .el-dialog__body::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 10px;
  box-shadow: inset 0 0 5px #b4b4b4;
  background: #e0dfe2;
}

/*滚动条轨道*/
.desktop .ascroll::-webkit-scrollbar-track,
.desktop .el-table__body-wrapper::-webkit-scrollbar-track,
.desktop ~ .el-dialog__wrapper .ascroll::-webkit-scrollbar-track,
.desktop .app-container::-webkit-scrollbar-track,
.desktop .el-main::-webkit-scrollbar-track,
.desktop.el-dialog__wrapper .el-dialog__body::-webkit-scrollbar-track,
.desktop ~ .el-dialog__wrapper .el-dialog__body::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  border-radius: 10px;
  background: #ecf0f1;
}
.components-container {
  margin: 30px 50px;
  position: relative;
}
.pagination-container {
  margin-top: 30px;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.color-primary {
  color: $--color-primary;
}
.color-success {
  color: $--color-success;
}
.color-info {
  color: $--color-info;
}
.color-red {
  color: $red;
}
.color-orenge{
	color:$orenge;
	;
}
.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: 10px;
  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}
//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}
.multiselect--active {
  z-index: 1000 !important;
}
.el-table {
  margin-top: 0 !important;
  // max-height: 600px;
  .el-table__header {
    thead {
      tr {
        th {
          background-color: #eff4fa;
          // text-align: center;
          padding: 10.5px 0;
          font-weight: normal;
          color: #606060;
          /* .cell{
            white-space: nowrap;
            text-overflow: ellipsis;
          } */
          .caret-wrapper{
            height: 19px;
            .ascending{
              top: -2px;
            }
            .descending{
              bottom: -1px;
            }
          }
        }
      }
    }
  }
  .rowbg{
	  background-color: #f5f7fa;
  }
  .el-table__row {
    td {
      // text-align: center;
      padding: 7.5px 0;
      font-size: 12px;
      color: #606060;
	  .cell{
		  min-height: 29px;
		  line-height: 29px;
	  }
    }
  }
  .el-table__fixed-right {
    height: 100% !important;
  }
}
.detail-dialog {
  font-size: 0;
}

.detail-dialog label {
  width: 100px;
  color: #1890ffc2;
}

.detail-dialog .el-form-item {
  margin-right: 0 !important;
  margin-bottom: 0;
  width: 50%;
}
.detail-dialog.el-form--inline .el-form-item__content {
  max-width: 60%;
}
.el-form-item {
  margin-bottom: 18px;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0;
}
.children-desc {
  font-size: 12px;
  color: #999;
  line-height: 24px;
}
.topnav {
  overflow: hidden;
  height: 64px;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
  width: 100%;
  background: inherit;
  .left-menu {
    height: 100%;
    font-size: 17px;
    > img {
      width: 135px;
      height: 27px;
      margin: -8px 60px 0 20px;
      float: left;
    }
  }
  ::selection{background:inherit; color:inherit;}
  ::-moz-selection{background:inherit; color:inherit;}
  ::-webkit-selection{background:inherit; color:inherit;}
}
// 重置统一样式
.el-select,.el-cascader,.select-tree {
  input {
    background-image: linear-gradient(0deg, #f1f3f7 0%, #ffffff 100%), linear-gradient(#ffffff, #ffffff);
    background-blend-mode: normal, normal;
    border-radius: 4px;
    border: solid 1px #dfe3e9;
  }
  .el-select__tags {
    input {
      display: none !important;
    }
  }
}
.el-input__inner {
  min-height: $h37;
  line-height: 1 !important;
  // border-color: #dde2ee !important;
}
.el-radio,
.el-input__inner,.el-textarea__inner {
  color: $c333;
}
.el-input.is-disabled .el-input__inner,.el-textarea.is-disabled .el-textarea__inner{
	background:red;
	color:#c0c4cc !important;
}
.el-button {
  min-width: 100px;
  &.min-width-auto {
    min-width: auto;
  }
}
.el-button--text {
  min-width: auto;
}
.el-button--primary {
  background: $bgblue, linear-gradient(#ffffff, #ffffff) !important;
  background-blend-mode: normal, normal !important;
  border-color: #fff !important;
}
.el-button--primary.is-disabled{
  opacity: .6;
}
.el-menu-item,
.el-submenu__title {
  color: #666 !important;
  font-size: 16px !important;
}
.el-table{
  color: #2d72ff !important;
}
.el-row.mb-20 {
  text-align: right;
  .list-title{
	  float: left;
	  line-height: 36px;
	  color: #333;
	  font-size: 18px;
	  font-weight: 500;
	  padding-left: 14px;
	  display:flex;
	  align-items: center;
	  .svg-icon{
		  margin-left: 10px;
		  font-size: 24px;
		  color: #2D72FF;
      cursor: pointer;
	  }
  }
  .list-title:after{
	  content: '';
	  width: 4px;
	  height: 20px;
	  background: $--color-primary;
	  position: absolute;
	  left: 0;
	  top: 0;
	  bottom: 0;
	  margin: auto;
    border-radius: 2px;
  }
}
// 分页统一样式
.el-pagination {
  white-space: break-spaces !important;
  .el-icon-arrow-left:before {
    content: '\e792' !important;
  }
  .el-icon-arrow-right:before {
    content: '\e791' !important;
  }
  .btn-prev,
  .btn-next {
    color: $c999;
  }
  .el-pagination__total,
  .btn-prev,
  .btn-next,
  .el-pager li,
  .el-pagination__jump {
    height: $h37;
    line-height: $h37;
    color: $c666;
    font-weight: 400;
  }
  .el-pager li.active + li {
    border-left: 1px solid #dde2ee !important;
  }
  .el-pager li,
  .btn-prev,
  .btn-next {
    min-width: $w37;
    background-color: $cfff;
    border: 1px solid #dde2ee;
    border-radius: 4px;
  }
  .el-pager li.active {
    color: $cfff;
    background: $bgblue;
  }
}
// 弹窗统一样式
.el-dialog__wrapper{
  display: flex;
  align-items: center;
  .el-pagination{
    margin-bottom: 18px;
  }
  .list-title{
    font-size: 14px !important;
  }
  .list-title:after{
    height: 16px !important;
    top: 0 !important;
  }
}
.el-dialog {
  max-width: 100%;
  border-radius: 6px !important;
  margin: 0 auto !important;
  .el-row > .el-form:first-child {
    margin-bottom: 0 !important;
  }
  .el-row > .el-form:first-child:after {
    height: 0 !important;
    margin-bottom: 0 !important;
  }
  .el-dialog__body {
    padding-bottom: 0;
    max-height: 80vh;
    overflow: auto;
    position: relative;
    .alert-box {
      display: block;
      background: #fcf7e3;
      height: 36px;
      line-height: 36px;
      color: #ff891e;
      font-size: 14px;
      font-weight: 400;
      padding-left: 18px;
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      right: 0;
      margin: 0;
    }
  }
  .el-form-item__label {
    font-weight: normal;
    font-stretch: normal;
    letter-spacing: 0px;
    color: $c666;
    padding:0 !important;
  }
  .el-dialog__footer {
	padding: 20px 0;
	border-top:1px solid #ECF0F1;
    text-align: center !important;
    button {
      width: 100px;
      border-radius: 4px;
      border: solid 1px #dde2ee;
    }
    .el-button + .el-button {
      margin-left: 5px;
    }
  }
  .el-form-item__content {
    color: #333;
  }
  .el-select,
  .el-cascader,
  .el-date-editor {
    width: 100% !important;
  }
}

.el-dialog__header,
.el-message-box__header {
  border-radius: 4px 4px 0px 0px;
  padding: 13px !important;
  background-image: $bgblue, linear-gradient(#ffffff, #ffffff);
  background-blend-mode: normal, normal;
  span {
    font-size: 14px;
    color: #ffffff;
  }
  .el-dialog__headerbtn {
    font-size: 10px;
    i {
      color: #fff !important;
    }
    i:hover {
      color: #fff;
    }
  }
  .el-message-box__close {
    color: #fff !important;
  }
}
.el-message-box {
  border: none !important;
  border-radius: 6px !important;
  padding-bottom: 20px !important;
  overflow: inherit !important;
  .mt16{
    margin-top: 16px;
  }
  .alert-box{
    display: block;
    background: #fcf7e3;
    height: 36px;
    line-height: 36px;
    color: #ff891e;
    font-size: 14px;
    font-weight: 400;
    padding-left: 18px;
    position: absolute;
    left: -20px;
    top: -20px;
    width: calc(100% + 40px);
    right: 0;
  }
  .el-message-box__content {
    padding: 20px !important;
  }
  .el-message-box__btns {
    text-align: center !important;
  }
  .el-message-box__message{    padding: 20px 0;word-break: break-all;max-height: 80vh;overflow: auto;  }
  .el-message-box__headerbtn .el-message-box__close{    color:#fff  }
}
.el-image__preview{
  object-fit: cover;
}
.el-image-viewer__wrapper {
  z-index: 3001 !important;
}
.el-checkbox__label{
  color: #333 !important;
}
.el-checkbox.is-bordered.is-checked{
border-color: #407BFF !important;
}
.el-checkbox__input.is-checked .el-checkbox__inner,.el-checkbox__input.is-indeterminate .el-checkbox__inner{
  border-color: #407BFF !important;
  background: linear-gradient(-90deg, #1C67FF, #5D8BFF) !important;
}
.active .el-icon-close:hover{
  background-color: rgba(255,255,255,0.4) !important;
}
.el-radio-button__orig-radio:checked+.el-radio-button__inner{
background: $bgblue !important;
border-color: #2d72ff !important;
}
// 多选下拉框的删除样式
.el-tag.el-tag--info .el-tag__close {
  background-color: #e0e0e0 !important;
  color: #c0c4cc !important;
  &:hover {
    color: #fff !important
  }
}
// 手机端样式
.mobile {
  .el-aside {
    width: 162px !important;
  }
}
#app.mobile ~ .el-dialog__wrapper {
  .el-dialog {
  }
  .el-form-item__label {
    // width: 100px !important;
  }
}

//导入界面样式
.ele_dialog {
  display: flex;
  margin: 20px;
  padding: 2px;
  border: 1px solid #DDE2EE;
  .ele_dialog_put{
    .el-input__inner{
      border: none ;
      outline: none ;
    }
  }
  .ele_dialog_btn {
    background: #FFFFFF;
    border: 1px solid #2D72FF;
    border-radius: 15px;
  }
}
.dialog_link {
  margin-left: 20px;
}
.bgimg_none{
 input{
   background-image: none;
 }
}

.el-icon-question:before{
  content: ' ' !important;
  background:url('../assets/ts.png') no-repeat;
  display: inline-block;
  width: 14px;
  height: 14px;
  position: relative;
  top: 2px;
}
.el-tooltip__popper.is-light{
  border-color: #666 !important;
  box-shadow: 0px 0px 35px 0px rgba(223, 223, 223, 0.6) !important;
  border-radius: 4px;
  color: #666;
}
.marginre{
  margin: revert;
}
.el-color-dropdown__btns{
 .el-input__inner{
  min-height: 28px !important;
 }
}
.el-message-box__wrapper {
  .disable-prompt { // 禁用prompt的输入框
    margin-top: 10px;
    .el-message-box__content {
      .el-message-box__input {
        .el-input {
          .el-input__inner {
            background-color: #F5F7FA;
            border-color: #dfe4ed;
            color: #C0C4CC;
            cursor: not-allowed;
            pointer-events:none;
          }
        }
      }
    }
  }
}
