@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.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;
}
.el-message {
  width: 240px;
  height: 48px;
  background: #f6fff7;
  box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
  border-radius: 24px;
}
label {
  font-weight: 700;
}

html,
.scrollbar {
  height: 100%;
  box-sizing: border-box;
  &::-webkit-scrollbar {
    width: 8px;
  }
  &::-webkit-scrollbar-thumb {
    background: #b6bac3;
    border-radius: 2px;
  }
}

#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;
}
li {
  list-style-type: none;
}
.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

.noIsPower {
  margin-right: 0;
}

.cursor {
  cursor: pointer;
}

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

/*弹框输入框*/
.dialog-public-background {
  .el-input__inner,
  .el-textarea__inner {
    background: #f5f7fa;
    border: 1px solid #ebeef5;
    border-radius: 6px;
  }
  .el-input__inner {
    height: 40px;
    line-height: 40px;
  }
}

/*公用元素边框*/
.box-public-shadow {
  background: #ffffff;
  box-shadow: 0px 6px 7px 0px rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 30px;
  .relative {
    position: relative;
    width: 100%;
    height: 100%;
  }
}

.npd {
  padding: 0;
}

.flex {
  display: flex;
  justify-content: space-between;
}

.flex-wrap {
  display: flex;
  flex-wrap: wrap;
}

.h100 {
  height: 100%;
}

.l22 {
  margin-left: 22px;
}

.r24 {
  margin-right: 24px;
}

.right {
  text-align: right;
}

.t30 {
  margin-top: 30px;
}

.flex1 {
  flex: 1;
}

.center {
  text-align: center;
}
/*公用按钮阴影*/
.button-public-shadow {
  height: 48px;
  line-height: 48px;
  text-align: center;
  background: linear-gradient(0deg, #777dba, #6983be);
  box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  border: none;
  outline: none;
  margin-bottom: 32px;
  width: 100%;
  cursor: pointer;
  font-size: 16px;
  font-family: Microsoft YaHei;
  font-weight: bold;
  color: #ffffff;
  &:last-child {
    margin-bottom: 0;
  }
}
/*修改checkbox选中样式*/
.el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
  background-color: #747ebb;
  border-color: #747ebb;
}
/*修改tree children布局*/
.el-tree-node.is-expanded > .el-tree-node__children {
  // display: flex;
}
.el-tree-node__label {
  margin-left: 10px;
}
/*修改radio选中样式*/
.el-radio__input.is-checked .el-radio__inner {
  border-color: #6f81bc;
  background: #6f81bc;
}
.el-radio__input.is-checked + .el-radio__label {
  color: #303133;
}
/*修改tree背景样式*/
.el-tree {
  background: initial;
}
/*按钮默认样式*/
.btn-default {
  background: #f5f7fa;
  border: 1px solid #b4b7cb;
  border-radius: 8px;
  font-size: 14px;
  font-family: Microsoft YaHei;
  font-weight: bold;
  color: #6f81bc;
  &:focus {
    border-color: #6983be;
    color: #fff;
    background: linear-gradient(0deg, #777dba, #6983be);
  }
  &:hover {
    background: #94a6e0;
    border-color: #94a6e0;
    color: #fff;
  }
}
/*取消按钮*/
.btn-cancel {
  background: #ffffff;
  border: 1px solid #e3e5e8;
  border-radius: 6px;
  font-size: 16px;
  font-family: Microsoft YaHei;
  font-weight: 300;
  color: #303133;
  margin-left: 24px !important;
  &:focus {
    border-color: #6983be;
    color: #fff;
    background: linear-gradient(0deg, #777dba, #6983be);
  }
  &:hover {
    background: #94a6e0;
    border-color: #94a6e0;
    color: #fff;
  }
}
/*提交按钮*/
.el-button--primary {
  border-color: #6983be;
  background: linear-gradient(0deg, #6983be, #777dba);
  border-radius: 6px;
  font-family: Microsoft YaHei;
  font-weight: bold;
  color: #ffffff;
  &:focus {
    background: #566696;
    border-color: #566696;
    color: #fff;
  }
  &:hover {
    background: #94a6e0;
    border-color: #94a6e0;
    color: #fff;
  }
}
/*二级弹框背景*/
.ej-dialog-bg {
  background: #f5f7fa !important;
  box-shadow: none !important;
}
