$base-text: #1d6ced;

@import "./element-ui.scss";

body {
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
  -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;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}
.cursor {
  cursor: pointer;
}

/*蓝色竖线公共样式*/
.commonly-used {
  padding-top: 50px;
  padding-bottom: 10px;
}

/*蓝色共通*/
.label-box {
  display: block;

  .label-title {
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
    padding-bottom: 20px;

    &::before {
      content: "|";
      font-size: 13px;
      padding-right: 3px;
      border-left: 4px solid #1d6ced;
      color: #fff;
    }
  }
}

/*input框共通*/
.font {
  display: inline-block;
  width: 108px;
  text-align: right;
  padding-right: 12px;
  font-size: 14px;
  color: #666666;
  margin-bottom: 25px;
}

.star:before {
  content: "*";
  color: red;
  margin-right: 5px;
}

.ontent {
  display: inline-block;
  font-size: 12px;
  margin-right: 25px;
  color: #333333;
}

.operaction {
  display: inline-block;
  color: #1d6ced;
  font-size: 12px;
  cursor: pointer;
}

// form共通样式
.two-form {
  display: flex;
  .el-form {
    width: 100%;
  }
  .el-form-item {
    width: 50%;
    margin-bottom: 25px;
    display: flex;
    overflow: hidden;
    float: left;
  }
}

.one-form {
  margin-left: -15px;
  display: flex;
  .el-form {
    width: 100%;
  }
  .el-form-item {
    width: 50%;
    margin-bottom: 25px;
    display: flex;
    overflow: hidden;
  }
}

.three-form {
  padding: 20px 0;
  display: flex;
  .el-form {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
  }
  .el-form-item {
    width: 33.33%;
    margin-bottom: 25px;
    display: flex;
    overflow: hidden;
  }
}

/*共通*/
.box-body {
  position: relative;
  max-width: 1200px;
  width: 100%;
  height: calc(90vh);
  overflow: auto;
  background: #fff;
  padding: 0 10px;
  margin: 10px 0;
  .button-float {
    display: inline-block;
    text-align: right;
    float: right;
    width: 900px;
  }
}
.main-content {
  background: #fff;
  position: relative;
  max-width: 1200px;
  width: 100%;
  height: calc(90vh);
  overflow: hidden;
  background: #fff;
  margin: 10px auto;
  margin-bottom: 0;
  padding: 0;

  .box-left {
    width: 260px;
    float: left;
  }
  .box-right {
    border-left: 1px solid #cccccc;
    position: relative;
    width: 100%;
    max-width: 920px;
    padding: 20px;
    padding-top: 0;
    float: right;
    height: calc(90vh);
    overflow-y: auto;

    .button-float {
      display: inline-block;
      text-align: right;
      float: right;
      width: 500px;
    }

    .button-common {
      padding-left: 10px;
      background: #f6f6f6;
      height: 48px;
    }

    .two-text {
      .el-button {
        padding: 8px 22px;
        margin: 9px 5px 0 0;
      }
    }

    .el-submenu .el-menu-item {
      width: 25%;
      float: left;
    }

    .one-menu {
      .el-submenu__title {
        background-color: #f6f6f6;
      }
    }

    .two-menu {
      .el-menu {
        border-bottom: 1px dashed #ccc;

        .el-menu-item {
          .el-checkbox {
            width: 23%;
          }
        }
      }

      .el-submenu__title {
        border-bottom: 1px dashed #ccc;
        background-color: #fff;
      }
    }

    .el-icon-arrow-down {
      display: inline-block;
      width: 15px;
      height: 15px;
      line-height: 15px;
      border: 1px solid;
      text-align: center;
      color: #9f9f9f;
      border-radius: 25px;
    }

    .one-menu.is-opened .el-icon-caret-right {
      -webkit-transform: rotateZ(90deg);
      -moz-transform: rotateZ(90deg);
      -o-transform: rotateZ(90deg);
      -ms-transform: rotateZ(90deg);
      transform: rotateZ(90deg);
    }

    .el-icon-caret-right-two-menu:before {
      content: "\E60E";
    }

    .two-menu.is-opened .el-icon-caret-right-two-menu {
      -webkit-transform: rotateZ(90deg);
      -moz-transform: rotateZ(90deg);
      -o-transform: rotateZ(90deg);
      -ms-transform: rotateZ(90deg);
      transform: rotateZ(90deg);
    }

    .el-icon-arrow-down {
      display: none;
    }

    .el-menu-item,
    .el-submenu__title {
      height: 40px;
      line-height: 40px;
    }

    .el-submenu {
      padding-bottom: 4px;
    }

    .el-menu {
      border-right: none;
    }
  }
}

.red {
  color: #e74c3c;
  font-size: 12px;
}

// 共通tabs
.common-tabs {
  .el-tabs__nav {
    height: 50px;
    padding-left: 20px;
  }

  .el-tabs__nav-wrap {
    width: 100%;
  }
  .el-tabs__nav-wrap::after {
    height: 2px;
    background-color: #cccccc38;
  }

  .el-tabs__header {
    position: relative;
    margin: 0;
  }

  .el-tabs__item {
    height: 50px;
    line-height: 50px;
  }

  .el-tabs__content {
    padding: 10px;
    padding-top: 0px;
  }

  .el-tabs__item.is-active {
    color: #1d6ced;
    font-weight: bold;
    border-bottom: 2px solid #1d6ced;
  }
  .el-tabs__item {
    padding: 0 20px !important;
    margin-right: 15px;
  }

  .el-tabs__active-bar {
    opacity: 0;
  }

  .el-tabs__item:hover {
    color: #1d6ced;
    cursor: pointer;
  }
}

// 搜索
.search-box {
  display: flex;
  justify-content: space-between;
  position: relative;
  .search-info {
    position: relative;
    font-size: 14px;
    height: 33px;
    padding-left: 10px;
    .el-input,
    .el-select {
      width: 200px;
    }
    .search-keyword {
      margin-right: 30px;
      width: 170px;
    }
  }
  .searchIcon {
    height: 33px;
    width: 50px;
    position: absolute;
    right: -8px;
    top: 1px;
  }
  .el-select {
    width: 150px;
  }
  .search-common {
    display: flex;
  }
}
/*组织架构共通*/
.org-box {
  background: #eee;
  position: absolute;
  height: calc(92vh);
  width: 100%;
  left: 0;
  top: 61px;
  position: absolute;

  .org-nav {
    background: #fff;
    position: fixed;
    width: 100%;
    height: 50px;
    z-index: 990;

    .org-title {
      height: 50px;
      line-height: 50px;
      font-size: 14px;
      width: 420px;
      margin: 0 auto;
      text-align: center;

      a {
        color: #666 !important;
      }

      a:nth-child(1) {
        padding-right: 100px;
        border-right: 1px solid #ccc;
      }

      a:nth-child(2) {
        padding-left: 100px;
      }

      .activeLink {
        font-weight: bold;
        color: #1d6ced !important;
      }
    }
  }

  .org-main {
    background: #fff;
    position: relative;
    max-width: 1200px;
    width: 100%;
    height: calc(86vh);
    overflow: hidden;
    background: #fff;
    margin: 10px auto;
    margin-top: 60px;
    margin-bottom: 0;
    padding: 0;
  }
}

.organization-container {
  display: -webkit-box;
  overflow: hidden;
  height: inherit;

  .organization-box {
    border-left: 1px solid #cccccc;
    position: relative;
    width: 100%;
    max-width: 940px;
    padding: 20px;

    .button-common {
      padding-left: 10px;
      background: #f6f6f6;
      height: 48px;
    }

    .two-text {
      .el-button {
        padding: 8px 22px;
        margin: 9px 5px 0 0;
      }
    }

    .el-submenu .el-menu-item {
      width: 25%;
      float: left;
    }

    .one-menu {
      .el-submenu__title {
        background-color: #f6f6f6;
      }
    }

    .two-menu {
      .el-menu {
        border-bottom: 1px dashed #ccc;

        .el-menu-item {
          .el-checkbox {
            width: 23%;
          }
        }
      }

      .el-submenu__title {
        border-bottom: 1px dashed #ccc;
        background-color: #fff;
      }
    }

    .el-icon-arrow-down {
      display: inline-block;
      width: 15px;
      height: 15px;
      line-height: 15px;
      border: 1px solid;
      text-align: center;
      color: #9f9f9f;
      border-radius: 25px;
    }

    .one-menu.is-opened .el-icon-caret-right {
      -webkit-transform: rotateZ(90deg);
      -moz-transform: rotateZ(90deg);
      -o-transform: rotateZ(90deg);
      -ms-transform: rotateZ(90deg);
      transform: rotateZ(90deg);
    }

    .el-icon-caret-right-two-menu:before {
      content: "\E60E";
    }

    .two-menu.is-opened .el-icon-caret-right-two-menu {
      -webkit-transform: rotateZ(90deg);
      -moz-transform: rotateZ(90deg);
      -o-transform: rotateZ(90deg);
      -ms-transform: rotateZ(90deg);
      transform: rotateZ(90deg);
    }

    .el-icon-arrow-down {
      display: none;
    }

    .el-menu-item,
    .el-submenu__title {
      height: 40px;
      line-height: 40px;
    }

    .el-submenu {
      padding-bottom: 4px;
    }

    .el-menu {
      border-right: none;
    }
  }
}

/*默认显示*/
.default-box {
  width: 100%;
  padding-top: 100px;

  img {
    margin: 0 auto;
    display: block;
  }

  p {
    font-size: 12px;
    color: #666;
    text-align: center;
  }
}

.hide-box .hide-button {
  margin: 10px auto;
  display: block;
  text-align: center;

  .el-button {
    margin: 0 5px;
  }
}

.adddepartment1 .is-disabled {
  display: none;
}

.adddepartment1 .el-tree-node__expand-icon {
  margin-right: 12px;
}

.el-input.is-disabled .el-input__inner {
  background-color: #eeeeee;
  border-color: #e4e7ed;
  color: #666666;
  cursor: not-allowed;
}

.adddepartment1 {
  overflow-y: auto;
}

.adddepartment2 {
  overflow-y: auto;
}

/*登录页样式*/
.demo-ruleForm .el-form-item--medium .el-form-item__content {
  margin-left: 0px !important;
}

// wzh 专用页面布局
.centerAuto {
  position: relative;
  color: #333333;
  width: 100%;
  height: calc(91vh);
  overflow-y: auto;
  overflow-x: hidden;
}

.centerName {
  padding: 20px 20px;
}

//Tooltip 文字提示
.el-tooltip__popper {
  max-width: 300px !important;
  line-height: 20px;
}
.el-form-item__label {
  min-width: 150px;
}
.el-form-item__content {
  padding: 0;
  /deep/ .el-input {
    // width: 220px;
  }
}
