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

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;
}

.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;
}

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

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

.block {
  display: block;
}

.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: 16px;
}

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

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.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;
  }
}

// 自定义全局样式
.flex-box {
  display: flex !important;
  flex-direction: row;
  align-items: center;
}

.a-link{
  color: #0081FF;
  &:hover{
    color: #0081FF;
    text-decoration: underline;
  }
}

.text-cl1{
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

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

.app-main{
  background-color: #f5f5f5;
}
.app-container {
  margin: 12px 24px;
  background-color: #f5f5f5;
  .el-input__inner{
    border-color: #D9D9D9;
    color: #232323;
    &::placeholder {
      color: rgba(35,35,35,0.5);
    }
  }
  .el-select .el-input .el-select__caret{
    color: #232323;
  }
  .query-box{
    justify-content: space-between;
  }
  .query-params {
    .form-content-width {
      width: 160px;
    }
    .el-form{
      &.el-form--inline .el-form-item{
        margin-right: 16px;
      }
      .el-form-item--mini.el-form-item, .el-form-item--small.el-form-item{
        margin-bottom: 8px;
        margin-top: 8px;
      }
    }
  }
  .query-ability{
    span{
      font-size: 14px;
      color: #232323;
      line-height: initial;
      margin-left: 20px;
      cursor: pointer;
      &:hover{
        color: #0081FF;
      }
      &:first-child{
        margin-left: 0;
      }
      img{
        width: 18px;
        height: 18px;
        margin-right: 5px;
      }
    }
  }
}

.container-box {
  padding: 16px;
}

.table-item{
  width: 100%;
  .el-table{
    font-size: 12px;
    color: #232323;
    th{
      font-size: 12px !important;
      font-weight: 400 !important;
    }
    .cell{
      padding-right: 12px !important;
      padding-left: 12px !important;
      line-height: 18px;
    }
    thead{
      color: rgba(35,35,35,0.7);
    }
    .sort-caret.ascending{
      border-bottom-color: rgba(0,129,255,0.5);
    }
    .ascending .sort-caret.ascending{
      border-bottom-color: #0081FF;
    }
    .sort-caret.descending{
      border-top-color: rgba(0,129,255,0.5);
    }
    .descending .sort-caret.descending{
      border-top-color: #0081FF;
    }
    .el-table__header-wrapper{
      th{
        background: #F0F3FA;
        text-align: left;
      }
    }
    .el-table__fixed-header-wrapper{
      th{
        background: #F0F3FA;
      }
    }
    .caret-wrapper{
      width: 10px;
    }
    .el-table__body-wrapper{
      &::-webkit-scrollbar {
        width: 16px; //竖轴宽度
        height: 16px; //横轴宽度
      }
      &::-webkit-scrollbar-track {
        background-color: #F3F4F5;
        border-radius: 0;
      }
      &::-webkit-scrollbar-thumb {
        background-color: rgba(98,110,126,0.2);
        border: 4px solid #F3F4F5;
        border-radius: 10px;
      }
      &::-webkit-scrollbar-corner {
        background: #F3F4F5;
        /*border-left: 1px solid #E0EAF2;*/
      }
      tr{
        &.current-row>td{
          background-color: initial;
        }
        &:nth-child(2n) {
          background: #F8FBFF;
        }
      }
    }
  }
}

.common-title{
  font-size: 16px;
  color: #232323;
  font-weight: 700;
  line-height: 0.9;
  position: relative;
  padding: 0 0 0 8px;
  &:before{
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 14px;
    background: #445781;
    content:"";
  }
}

.pagination-box{
  text-align: right;
  padding: 16px 0;
  .el-pagination{
    font-weight: normal;
    padding: 0;
    button, span:not([class*=suffix]){
      height: 24px;
      line-height: 24px;
    }
    &.is-background .btn-next,
    &.is-background .btn-prev,
    &.is-background .el-pager li{
      height: 24px;
      line-height: 24px;
      min-width: 24px;
      padding: 0 6px;
      margin: 0 4px;
      font-size: 12px;
      color: rgba(35,35,35,0.7);
      background-color: #F3F4F5;
    }
    &.is-background .el-pager li:not(.disabled):hover{
      background-color: rgba(0,129,255,0.3);
      color: #FFFFFF;
    }
    &.is-background{
      .el-pager{
        li:not(.disabled){
          &.active{
            background-color: $systemColor;
            color: #FFFFFF;
          }
        }
      }
      .el-pagination__jump{
        margin-left: 8px;
        color: #3D3D3D;
        .el-input{
          font-size: 12px;
        }
        .el-pagination__editor{
          height: 24px;
          margin: 0 8px;
        }
        .el-pagination__editor.el-input .el-input__inner{
          height: 24px;
          border-color: #CDD1D9;
          border-radius: 2px;
        }
      }
    }
  }
}

.el-drawer{
  .el-drawer__header{
    padding: 16px 2px 16px 16px;
    margin-bottom: 0;
    border-bottom: 1px solid #E1E1E1;
  }
  .el-drawer__body{
    overflow-y: auto;
    &::-webkit-scrollbar {
      width: 16px; //竖轴宽度
      height: 16px; //横轴宽度
    }
    &::-webkit-scrollbar-track {
      background-color: #F3F4F5;
      border-radius: 0;
    }
    &::-webkit-scrollbar-thumb {
      background-color: rgba(98,110,126,0.2);
      border: 4px solid #F3F4F5;
      border-radius: 10px;
    }
    &::-webkit-scrollbar-corner {
      background: #F3F4F5;
      /*border-left: 1px solid #E0EAF2;*/
    }
  }
}

//组件公用样式
//
// 无边框、阴影card
.el-card.noborder{
  border-color: #f5f5f5;
  box-shadow: none;
  margin-bottom: 12px;
  color: #232323;
  .el-card__body{
    padding: 0;
  }
}
//el-tabs
.tabpane{
  &.w100{
    .el-tabs__nav-scroll{
      padding-left: 16px;
    }
    .el-tabs__content{
      padding: 16px;
    }
  }
  .el-tabs__header{
    margin: 0;
  }
  .el-tabs__nav-wrap::after{
    background-color: #EFEFEF;
    height: 1px;
  }
  .el-tabs__item{
    font-size: 16px;
    color: #232323;
    line-height: 50px;
    height: 50px;
  }
  .is-active{
    color: #0081FF;
    font-weight: bold;
  }
}
//按钮
.btn{
  margin-left: 8px;
  border-radius: 4px;
  display: inline-block;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  &.h28 {
    height: 28px;
    padding: 0 10px;
  }
  &.h32 {
    height: 32px;
    padding: 0 16px;
  }
  &.h34{
    width: 80px;
    height: 34px;
  }
  .img{
    height: 100%;
    float: left;
    width: 16px;
  }
}
.btnsmall{
  display: inline-block;
  font-size: 12px;
  border-radius: 2px;
  width: 72px;
  text-align: center;
  margin: 0 4px;
  cursor: pointer;
}
.btn_default{
  border: 1px solid #0081FF;
  color: #0081FF;
  background: #FFFFFF;
  &.h28{
    line-height: 26px;
  }
  &.h32 {
    line-height: 30px;
  }
  &.h34{
    line-height: 32px;
  }
  &:hover{
    color: #f;
    border-color: #006AD1;
  }
}
.btn_primary{
  background-color: #0081FF;
  color: #fff;
  &.btn_disabled{
    background: #D3D3D3;
    cursor: auto;
    &:hover{
      background: #D3D3D3;
    }
  }
  &.btn_shallow{
    color: #0081FF;
    background: rgba(0, 129, 255, 0.16);
    &:hover{
      background: #0081FF;
      color: #fff;
    }
  }
  &.h28{
    line-height: 28px;
  }
  &.h32{
    line-height: 32px;
  }
  &.h34{
    line-height: 34px;
  }
  &.h36{
    line-height: 36px;
  }
  &:hover{
    background-color: #006AD1;
  }
}
.btn_cancel{
  border: 1px solid #CCCCCC;
  color: #4f4f4f;
  &.h28{
    line-height: 26px;
  }
  &.h32 {
    line-height: 30px;
  }
  &.h34{
    line-height: 32px;
  }
  &:hover{
    color: #4f4f4f;
    border-color: #CCCCCC;
    background-color: #F4F4F4;
  }
}

//搜索框
.searchInput{
  width: 590px;
  height: 32px;
  border-radius: 2px 0px 0px 2px;
  opacity: 1;
  border: 1px solid #EFEFEF;
  position: relative;
  overflow: hidden;
  .el-input{
    margin-top: -1px;
    //line-height: 32px;
    .el-input__inner{
      line-height: 32px;
      height: 32px;
      border: 0;
    }
  }
  .btn{
    background: #F5F5F5;
    color: #0081FF;
    cursor: pointer;
    width: 60px;
    line-height: 32px;
    height: 32px;
    text-align: center;
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 0;
    &:hover{
      color: #FFFFFF;
      background: #0081FF;
    }
  }
}
//导出EXCEL
.btn-export{
  display: inline-block;
  color: #232323;
  font-size: 14px;
  height: 24px;
  line-height: 24px;
  cursor: pointer;
  img{
    margin-right: 5px;
    float: left;
    width: 18px;
    height: 18px;
    margin-top: 2px;
  }
  &:hover{
    color: #0081FF;
  }
}
//有链接字体颜色
.wordprimary{
  color: #0081FF;
  cursor: pointer;
}
//分割线
.el-divider--horizontal{
  margin: 0;
}
.el-divider{
  background-color: #efefef;
}

.flex{
  display: flex;
}
//消息提示框
.el-message{
  border-radius: 0;
  padding: 10px;
}
