@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 {
  min-height: calc(100vh - 125px);

  padding: 20px;
  margin: 20px;
  background: #ffffff;
  //overflow-x: scroll;
  min-width: 900px;
}

.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;
  }
}
.el-submenu {
  .nest-menu {
    background-color: #54948c !important;
  }
}
.nest-menu {
  // padding-left: 125px !important;
  .el-submenu__title {
    // padding-left: 0px !important;
  }
  li {
    // padding: 0 !important;
    .nest-menu {
      // padding-left: 0px !important;
      a {
        li {
          // padding: 0px 0 0 17px !important;
        }
      }
    }
  }
}
.el-submenu .el-menu-item {
  // height: 60px;
  // line-height: 60px;
  // font-size: 24px;
  min-width: 200px !important ;
}
.submenu-title-noDropdown {
  // padding-left: 60px !important;
  // font-size: 24px;
}
// .el-submenu__title {
//   // height: 70px;
//   // line-height: 70px;
//   height: auto !important;
//   line-height: 31px !important ;
//   font-size: 24px;
//   // padding-left: 60px !important;
//   padding: 20px 0 20px 85px !important;
//   font-family: PingFang-SC-Medium;
//   box-sizing: border-box !important;
//   span {
//     vertical-align: baseline !important;
//   }
// }
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.el-submenu__title i {
  color: #fff;
}
.el-button--primary.is-plain {
  background-color: #17c7b1;
  color: #fff;
  border-radius: 8px;
}
.el-button--danger.is-plain.is-disabled,
.el-button--danger.is-plain.is-disabled:hover,
.el-button--danger.is-plain.is-disabled:focus,
.el-button--danger.is-plain.is-disabled:active {
  background-color: #17c7b1;
  color: #fff;
  // border-radius: 10px;
}
.el-button--primary,
.el-button + .el-button,
.el-button--medium {
  border-radius: 8px;
}
.add-box {
  .el-form-item {
    width: 740px;
    margin: 30px auto;
  }
  .el-form-item__label {
    width: 200px;
  }
  .el-input--medium .el-input__inner {
    width: 440px;
    height: 60px;
  }
  .el-textarea {
    width: 440px;
    height: 60px;
  }
  .el-form-item--medium .el-form-item__label {
    line-height: 60px;
    font-size: 24px;
    font-weight: 400;
    width: 150px !important;
  }
  .el-form-item--medium .el-form-item__content {
    margin-left: 150px !important;
  }
  .el-button--medium {
    width: 220px;
    height: 60px;
  }
  .el-button {
    width: 220px;
    height: 60px;
    font-size: 24px;
  }
  .el-radio-group {
    height: 60px;
    line-height: 60px;
  }
  .el-radio {
    font-size: 24px;
  }
  .el-radio__label {
    font-size: 24px;
  }
  .el-radio__inner {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    background-image: url("../images/radio.png") !important;
    background-position: 1px 1px !important;
    background-repeat: no-repeat !important;
  }
  .el-radio__inner::after {
    width: 0 !important;
    height: 0 !important;
  }
}
.el-submenu__icon-arrow {
  font-size: 20px;
}
/* 子元素-平均分栏 */
.flex1 {
  -webkit-box-flex: 1; /* OLD - iOS 6-, Safari 3.1-6 */
  -moz-box-flex: 1; /* OLD - Firefox 19- */
  width: 20%; /* For old syntax, otherwise collapses. */
  -webkit-flex: 1; /* Chrome */
  -ms-flex: 1; /* IE 10 */
  flex: 1; /* NEW, Spec - Opera 12.1, Firefox 20+ */
}
/* 父元素-横向排列（主轴） */
.flex-h {
  //display: box; /* OLD - Android 4.4- */

  display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */
  display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */
  display: -ms-flexbox; /* TWEENER - IE 10 */
  display: -webkit-flex; /* NEW - Chrome */
  display: flex; /* NEW, Spec - Opera 12.1, Firefox 20+ */

  /* 09版 */
  -webkit-box-orient: horizontal;
  /* 12版 */
  -webkit-flex-direction: row;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
}
/* 父元素-横向换行 */
.flex-hw {
  /* 09版 */
  /*-webkit-box-lines: multiple;*/
  /* 12版 */
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  -o-flex-wrap: wrap;
  flex-wrap: wrap;
}
/* 父元素-水平居中（主轴是横向才生效） */
.flex-hc {
  /* 09版 */
  -webkit-box-pack: center;
  /* 12版 */
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
  /* 其它取值如下：
      align-items     主轴原点方向对齐
      flex-end        主轴延伸方向对齐
      space-between   等间距排列，首尾不留白
      space-around    等间距排列，首尾留白
   */
}
/* 父元素-纵向排列（主轴） */
.flex-v {
  //display: box; /* OLD - Android 4.4- */

  display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */
  display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */
  display: -ms-flexbox; /* TWEENER - IE 10 */
  display: -webkit-flex; /* NEW - Chrome */
  display: flex; /* NEW, Spec - Opera 12.1, Firefox 20+ */

  /* 09版 */
  -webkit-box-orient: vertical;
  /* 12版 */
  -webkit-flex-direction: column;
  -moz-flex-direction: column;
  -ms-flex-direction: column;
  -o-flex-direction: column;
  flex-direction: column;
}
/* 父元素-纵向换行 */
.flex-vw {
  /* 09版 */
  /*-webkit-box-lines: multiple;*/
  /* 12版 */
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  -o-flex-wrap: wrap;
  flex-wrap: wrap;
}
/* 父元素-竖直居中（主轴是横向才生效） */
.flex-vc {
  /* 09版 */
  -webkit-box-align: center;
  /* 12版 */
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
}
/* 子元素-显示在从左向右（从上向下）第1个位置，用于改变源文档顺序显示 */
.flex-1 {
  -webkit-box-ordinal-group: 1; /* OLD - iOS 6-, Safari 3.1-6 */
  -moz-box-ordinal-group: 1; /* OLD - Firefox 19- */
  -ms-flex-order: 1; /* TWEENER - IE 10 */
  -webkit-order: 1; /* NEW - Chrome */
  order: 1; /* NEW, Spec - Opera 12.1, Firefox 20+ */
}
/* 子元素-显示在从左向右（从上向下）第2个位置，用于改变源文档顺序显示 */
.flex-2 {
  -webkit-box-ordinal-group: 2; /* OLD - iOS 6-, Safari 3.1-6 */
  -moz-box-ordinal-group: 2; /* OLD - Firefox 19- */
  -ms-flex-order: 2; /* TWEENER - IE 10 */
  -webkit-order: 2; /* NEW - Chrome */
  order: 2; /* NEW, Spec - Opera 12.1, Firefox 20+ */
}
.el-table .el-table__header-wrapper th,
.el-table .el-table__fixed-header-wrapper th {
  // font-size: 20px !important;
}
.el-button--danger {
  border-radius: 8px;
}
.el-table th.is-leaf {
  font-size: 16px;
}
.el-button--primary {
  // height: 44px;
  border-radius: 10px;
  // font-size: 18px;
  font-family: PingFang SC;
  font-weight: 500;
  color: #ffffff;
}
.el-button--default {
  // height: 44px;
  border-radius: 8px;
  // font-size: 18px;
  font-family: PingFang SC;
  font-weight: 500;
}
.el-input--small .el-input__inner {
  // height: 44px;
  background: #ffffff;
  border-radius: 8px;
}
.el-button--danger.is-plain.is-disabled,
.el-button--danger.is-plain.is-disabled:hover,
.el-button--danger.is-plain.is-disabled:focus,
.el-button--danger.is-plain.is-disabled:active {
  // height: 44px;
  border-radius: 8px;
  // font-size: 18px;
  font-family: PingFang SC;
  font-weight: 500;
}
.query-box {
  height: 60px;
  &__left {
    float: left;
  }
  &__right {
    float: right;
  }
}
.mb8 {
  margin: 10px 0;
}
.el-input--medium .el-input__inner {
  // height: 44px;
  border-radius: 8px;
  height: 30px;
  line-height: 30px;
}
.el-input--medium .el-input__icon {
  line-height: 30px;
}
.tree_box {
  .el-form-item--medium {
    .el-form-item__content {
      .el-tree {
        display: flex;
        align-items: center;
        min-height: 36px;
      }
    }
  }
}
.el-table .el-table__header-wrapper th,
.el-table .el-table__fixed-header-wrapper th {
  border-right: 1px dashed #dfe6ec;
}
.el-table--enable-row-transition .el-table__body td {
  border-right: 1px dashed #dfe6ec;
}

.el-menu-item{
  word-break: break-all;
}

.select-table { border-collapse: collapse;}
.select-table td { border: 1px solid #ccc; line-height: 32px; width: 100px; padding-left: 10px;}
.el-table th { user-select: auto;}
label { font-weight: normal;}