@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
* {
  padding: 0;
  margin: 0;
}
$primaryColor: #2d8cf0;
$successColor: #19be6b;
$infoColor: #2db7f5;
$warningColor: #f90;
$dangerColor: #ed4014;
.c1 {
  color: $primaryColor!important;
}
.c2 {
  color: $successColor!important;
}
.c3 {
  color: $infoColor!important;
}
.c4 {
  color: $warningColor!important;
}
.c5 {
  color: $dangerColor!important;
}
.bgc1 {
  background: $primaryColor!important;
  color: #fff;
}
.bgc2 {
  background: $successColor!important;
  color: #fff;
}
.bgc3 {
  background: $infoColor!important;
  color: #fff;
}
.bgc4 {
  background: $warningColor!important;
  color: #fff;
}
.bgc5 {
  background: $dangerColor!important;
  color: #fff;
}
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;
}
i {
  font-style: normal;
}
#app {
  height: 100%;
}

.el-message-box__message {
  max-height: 500px;
  overflow-y: auto;
}

*,
*: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;
  }
}
.err-tips {
  color: #f00;
  font-size: 12px;
  display: inline-block;
  width: 100%;
  line-height: 14px;
}

// main-container global css
.app-container {
  margin: 10px;
  padding: 10px;
  &:hover {
    box-shadow: 0 0 8px 0 rgba(232,237,250,.6),0 2px 4px 0 rgba(232,237,250,.5);
  }
}
/**
 * 20190615
*/

$borderColor: #ebebeb;
.noborderbottom-table {
  td {
    border-bottom: 0!important;
    padding: 5px 0!important;
  }
}
.xl-table {
  border-top: 1px solid $borderColor;
  border-right: 1px solid $borderColor;
  border-left: 1px solid $borderColor;
  th {
    background-color: #f7f8f9;
    border-bottom: 0;
    // font-weight: normal;
  }
}
.xl-pagination {
  .xl-form {
    float: left;
    padding-top: 10px;
    .xl-form-btn {
      min-width: 50px;
      height: 30px;
    }
  }
  .el-pagination {
    padding-top: 10px;
    float: right;
  }
  .el-pagination.is-background .el-pager li:not(.disabled).active {
    background-color: $primaryColor;
  }
}

/** 20191024 **/
.xl-page-more {
  .el-pager li {
    display: none!important;
    &.active {
      display: inline-block!important;
    }
  }
}
/****/
/**/
$bc: #dcdcdc;
.xl-form {
  .el-input.is-active .el-input__inner, .el-input__inner:focus,
  .el-select .el-input.is-focus .el-input__inner,
  .el-textarea__inner:focus {
    border-color: $bc;
  }
  .el-form-item__label {
    padding-top: 10px;
    line-height: 20px;
    float: left;
  }
  ::v-deep .el-switch {
    margin-top: 10px;
  }
  .el-form-item__content {
    align-items: flex-start!important;
  }
  .el-textarea__inner {
    border-color: $bc;
    border-radius: 0;
    resize: none;
    height: 78px;
  }
  .el-input__inner {
    border-color: $bc;
    border-radius: 0;
    resize: none;
    height: 36px;
    line-height: 36px;
  }
  .el-input-number {
    height: 36px;
    line-height: 36px;
    user-select: none;
  }
  .el-input-number__decrease, .el-input-number__increase {
    width: 34px;
    height: 34px;
  }
  .el-input-number__decrease:hover:not(.is-disabled)~.el-input .el-input__inner:not(.is-disabled), .el-input-number__increase:hover:not(.is-disabled)~.el-input .el-input__inner:not(.is-disabled) {
    border-color: #d9d9d9;
  }
  .el-input-number__decrease:hover, .el-input-number__increase:hover {
    color: #666;
  }
  .el-select, .el-cascader {
    width: 100%;
  }
  &.inputw190 {
    .el-input__inner {
      width: 190px;
    }
  }
  .el-range-editor.el-input__inner {
    width: 280px;
    .el-range-separator {
      width: 30px;
    }
  }
  .el-select {
    &.full {
      width: 100%;
    }
  }
  .el-form-item {
    margin-bottom: 10px;
    &.col-2 {
      float: left;
      width: 50%;
    }
    &.col-3 {
      float: left;
      width: 33.3333%;
    }
    &.col-4 {
      float: left;
      width: 25%;
    }
    &.col-5 {
      float: left;
      width: 20%;
    }
  }
  .el-input-group__append {
    border: 0;
    background: transparent;
    padding: 0;
    padding-left: 10px;
  }
  .xl-form-section {
    padding: 10px;
    float: left;
    width: 50%;
    &.full {
      width: 100%;
    }
    &.col-3 {
      width: 33.3333%;
    }
    &.col-4 {
      width: 25%;
    }
    &.col-5 {
      width: 20%;
    }
  }
  .el-form-item.textarea-long .el-textarea__inner {
    height: 180px;
  }
  .xl-form-title {
    font-size: 16px;
  }
  .xl-form-footer {
    text-align: center;
    padding-bottom: 10px;
    box-sizing: border-box;
    &.fixed {
      background: #fff;
      width: 100%;
      position: fixed;
      bottom: 0;
      z-index: 2;
    }
    &.padding20 {
      padding: 20px;
    }
  }
  .xl-form-btn {
    border-radius: 0;
    color: #fff;
    border: none;
    background: $sysColor; /*深蓝色*/
    min-width: 80px;
    height: 36px;
    cursor: pointer;
    outline: none;
    padding: 0 10px;
    &.xs {
      min-width: 40px;
      height: 26px;
      font-size: 12px;
    }
    &~* {
      // margin-right: 10px;
    }
    &.t2 {/*灰色*/
      color: #999;
      background: #f9f9f9;
      border: 1px solid #dcdcdc;
      margin: 0 10px;
    }
    &.t3 {/*绿色*/
      background: $busiColor;
    }
    &.t4 {/*红色*/
      background: #dd504c;
    }
  }
}

.xl-drawer {
  padding: 0 20px 20px;
  overflow-y: auto;
  .el-drawer__header {
    span {
      outline: none!important;
    }
  }
}

.xl-dialog {
  &.el-dialog {
    border-radius: 0;
  }
  .el-dialog__header {
    padding: 0;
    height: 50px;
    line-height: 50px;
  }
  .el-dialog__body {
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    &::-webkit-scrollbar-track-piece {
      border-radius: 20px;
      background: #fff;
    }
    &::-webkit-scrollbar {
      width: 2px;
    }
    &::-webkit-scrollbar-thumb {
      background: #fff;
      border-radius: 20px;
    }
  }
}

.xl-detail {
  box-sizing: border-box;
  font-size: 14px;
  .xl-pane-box {
    width: 420px;
    border: 1px solid #d9d9d9;
    box-sizing: border-box;
    margin-right: 20px;
    margin-bottom: 20px;
    display: inline-block;
    vertical-align: top;
    &:last-child {
      margin-right: 0;
    }
  }
  .xl-pane-head {
    height: 40px;
    line-height: 40px;
    color: #fff;
    padding-left: 10px;
    margin: -1px -1px 20px -1px;
  }
  .xl-pane-head1 {
    margin-bottom: 0;
  }
  .xl-pane-head.ph1 {
    background: #5fbad1;
  }
  .xl-pane-head.ph2 {
    background: #44454a;
  }
  .xl-pane-head.ph3 {
    background: #c5ab6b;
  }
  .xl-pane-head.ph4 {
    background: #3ebd7f;
  }
  .xl-pane-box .el-form-item {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
  .xl-pane-box .pane-item {
    line-height: 40px;
    padding: 0 10px;
  }
  .xl-pane-box .pane-item .label{
    float: left;
    width: 100px;
    color: #999;
  }
  .xl-pane-box .pane-item .text{
    margin-left: 100px;
    line-height: 26px;
    padding: 10px 0;
    color: #304156;
  }
  .xl-pane-box .pane-item:nth-child(2n) {
    background: #fafafa;
  }
}

.g-table-count {
  padding: 10px 0;
  color: #f00;
  font-size: 14px;
  .link {
    text-decoration: underline;
    padding-left: 50px;
    cursor: pointer;
    color: #0c78b1;
  }
}
.el-dialog__title {
  font-size: 16px;
}

/***
 * el-button按钮样式修改  
**/
.el-button {
  border-radius: 0;
}
.el-table .cell {
  font-size: 12px;
  line-height: 18px;
}
.el-table td, .el-table th {
  padding: 10px 0;
}
.el-button--mini, .el-button--mini.is-round {
  padding: 6px 8px;
  font-size: 12px;
}
.el-button--primary, .el-tag--dark {
  background-color: $primaryColor;
  border-color: $primaryColor;
  color: #fff;
}
.el-button--success, .el-tag--success {
  background-color: $successColor;
  border-color: $successColor;
  color: #fff;
}
.el-button--info, .el-tag--info {
  background-color: $infoColor;
  border-color: $infoColor;
  color: #fff;
}
.el-button--info:focus, .el-button--info:hover {
  background-color: #56cbff;
  border-color: #56cbff;
  color: #fff;
}
.el-button--warning, .el-tag--warning {
  background-color: $warningColor;
  border-color: $warningColor;
  color: #fff;
}
.el-button--danger, .el-tag--danger {
  background-color: $dangerColor;
  border-color: $dangerColor;
  color: #fff;
}


.shelves-box {
  padding: 10px;
  .s-item {
    float: left;
    width: 200px;
    border: 1px solid #dcdcdc;
    margin-right: 20px;
    margin-bottom: 20px;
    position: relative;
    &:hover {
      .s-hover-area {
        visibility: visible;
      }
    }
  }
  .s-header {
    height: 40px;
    line-height: 40px;
    padding: 0 10px;
    background: #f7f7f7;
    .l {
      display: inline-block;
      vertical-align: middle;
      color: #2db7f5;
      font-size: 14px;
      font-weight: bold;
    }
    .r {
      color: #666;
      float: right;
      font-size: 14px;
      width: 100px;
      text-align: right;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
  .s-body {
    text-align: center;
    padding: 10px 10px 0;
    .img {
      max-width: 150px;
      height: 150px;
      display: inline-block;
    }
    .p1 {
      text-align: left;
      color: #f00;
      height: 34px;
      line-height: 34px;
    }
    .b {
      float: right;
      color: #2d8cf0;
      height: 24px;
      line-height: 24px;
      padding: 0 10px;
      border: 1px solid #2d8cf0;
      background: #fff;
      font-size: 14px;
      margin-top: 2px;
      cursor: pointer;
      user-select: none;
    }
    .b2 {
      float: right;
      height: 24px;
      line-height: 24px;
      padding: 0 10px;
      font-size: 14px;
      margin-top: 5px;
      color: #666;
    }
    .s {
      float: right;
      height: 24px;
      line-height: 24px;
      padding: 0;
      font-size: 14px;
      margin-top: 5px;
      color: #409eff;
      &.t2 {
        color: #f90;
      }
    }
  }
  .s-footer {
    border-top: 1px solid #eaeaea;
    padding: 0 10px;
    height: 40px;
    line-height: 40px;
    .l {
      display: inline-block;
      font-size: 14px;
      color: #999;
    }
    .r {
      float: right;
      font-size: 14px;
      color: #999;
    }
  }
  .s-hover-area {
    position: absolute;
    visibility: hidden;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    &.show {
      visibility: visible;
    }
    .bg {
      background: #000;
      opacity: .3;
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
    }
    .t {
      position: absolute;
      background: #2d8cf0;
      color: #fff;
      border: 1px solid #fff;
      left: 50%;
      bottom: 110px;
      text-align: center;
      cursor: pointer;
      z-index: 1;
      height: 30px;
      line-height: 30px;
      width: 100px;
      margin-left: -50px;
      &.t2 {
        background: $dangerColor;
      }
    }
  }
}


.top-collapse {
  margin-bottom: 20px;
  .el-collapse {
    border: 0;
    // .el-collapse-item__wrap {
    //   border: 0;
    // }
    .el-collapse-item__content {
      padding-bottom: 0;
    }
  }
}

.el-step {
  cursor: pointer;
  user-select: none;
}
