@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
@import './reset.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;
}

ul {
  padding: 0;
}

label {
  // font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

li {
  list-style: none;
}

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

code {
  background: #eef1f6;
  padding: 15px 16px;
  margin-bottom: 20px;
  display: block;
  line-height: 36px;
  font-size: 15px;
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  a {
    color: #337ab7;
    cursor: pointer;
    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

.warn-content {
  background: rgba(66, 185, 131, .1);
  border-radius: 2px;
  padding: 16px;
  padding: 1rem;
  line-height: 1.6rem;
  word-spacing: .05rem;
  a {
    color: #42b983;
    font-weight: 600;
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
  background: #fff;
  margin: 0 15px 15px 15px;
  min-height: calc(100vh - 178px);
}

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

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

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

.DetailsTit {
  border-bottom: 1px #e5e5e5 solid;
  text-align: center;
  span {
    height: 50px;
    line-height: 50px;
    color: $main-color;
    position: relative;
    font-size: 16px;
    width: 120px;
    margin: 0 auto;
    display: inline-block;
    font-weight: 700;
    &::before,
    &::after {
      content: '';
      display: block;
      position: absolute;
      top: 23px;
      width: 10px;
      height: 2px;
      background: $main-color;
    }
    &::before {
      left: 10px;
    }
    &::after {
      right: 10px;
    }
  }
}

.middleLine {
  background: #f5f7fa;
  height: 18px;
}

.plate {
  margin: 12px 100px 0 100px;
  padding-bottom: 14px;
  @include box-sizing;
  @include display-flex;
  @include align-items-center;
  @include justify-content-between; // border-bottom: 1px #e6e6e6 dashed;
  ul {
    li {
      font-size: 15px;
      line-height: 30px;
      label {
        color: #34495e;
      }
      .content {
        color: $main-color;
      }
      .unit {
        color: $font-color;
      }
    }
  }
}

.note {
  font-size: 14px;
  color: $pgh-color;
  margin: 0 100px;
  line-height: 50px;
  border-top: 1px #e5e5e5 dashed;
  span {
    color: $main-color;
  }
}

.el-dialog__body {
  max-height: calc(100vh - 290px) !important;
  overflow-y: scroll !important;
  margin-right: 8px;
  /* 针对缺省样式 (必须的) */
  &::-webkit-scrollbar {
    width: 6px;
    height: 10px;
  }
  /* 滚动条的滑轨背景颜色 */
  &::-webkit-scrollbar-track {
    background-color: #fff;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
  }
  /* 滑块颜色 */
  &::-webkit-scrollbar-thumb {
    background: #d7dce2;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
  }
  /*内层轨道的颜色*/
  &::-webkit-scrollbar-track-piece {
    background-color: #fff;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
  }
  /* 滑轨两头的监听按钮颜色 */
  &::-webkit-scrollbar-button {
    background-color: #eee;
    width: 0;
    height: 0;
  }
  /* 横向滚动条和纵向滚动条相交处尖角的颜色 */
  &::-webkit-scrollbar-corner {
    background-color: #eee;
  }
}

.NoData {
  width: 180px;
  margin: 40px auto;
  img {
    width: 100%;
  }
}

.el-menu-item,
.el-submenu__title {
  height: 46px !important;
  line-height: 46px !important;
  padding: 0 15px !important;
}

.el-menu-item {
  min-width: 0;
}

.position {
  background: #f6f8f9;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

// 筛选全局样式
.app-container {
  .cell.clearfix {
    margin: 0px 0 12px 0;
    display: flex;
    align-items:center;
    justify-content: flex-start;
    box-sizing: border-box;
    color: #333;
    .el-button--primary{
      margin-left: 6px;
    }
    .title {
      width: 80px;
      display: inline-block;
      font-weight: normal;
      color: #909399;
      padding: 6px 0;
      .name {
        width: 60px;
        text-align: justify;
        text-justify: distribute-all-lines;
        text-align-last: justify;
        -moz-text-align-last: justify;
        -webkit-text-align-last: justify;
        display: inline-block;
        font-size: 14px;
      }
    }
    .time {
      // -webkit-box-flex: 1;
      // -ms-flex: 1;
      // flex: 1;
      ul {
        margin: 0;
        // padding-left: 5px;
        li {
          float: left;
          list-style: none;
          cursor: pointer;
          padding: 6px 20px;
          color: #606266;
          border-radius: 4px;
          margin: 0 8px 0 0;
          font-size: 14px;
          // width: 70px;
          text-align: center;
          &:hover {
            background: #f5f7fa;
          }
        }
        .active {
          background: #409eff;
          color: #fff;
        }
      }
    }
  }
}

// 表格
.el-table {
  th,
  td {
    .cell {
      margin: 0;
      padding: 0 12px;
    }
  }
  td {
    .cell {
      padding: 0 12px;
    }
  }
}

// 标题线
.dataTitle {
  color: #303133;
  font-size: 14px;
  border-bottom: 2px #E4E7ED solid;
  height: 36px;
  line-height: 36px;
  margin: 0 0 25px 0;
  position: relative;
  &::before {
    position: absolute;
    left: 0;
    bottom: -2px;
    content: "";
    width: 60px;
    height: 2px;
    background: #409eff;
  }
}


.el-dialog__wrapper{
  // z-index: 2012 !important;
}

.el-dialog{
  left: 50% !important;
  position: fixed !important;
  top: 50% !important;
  transform: translate(-50%,-50%) !important;
  margin-top: 0 !important;
}

.el-dialog__wrapper{
  // z-index: 9999!important;
}
.el-message{
  z-index: 99999!important;
}
.el-select-dropdown{
  // z-index: 2003!important;
}
// .patient-app-container {
//   margin-bottom: 4px;
//   height: 36px;
//   line-height: 36px;
// }
.patient-app-container {
  margin-left: 180px;
  margin-right: 0;
  background: #fff;
}
.patient-name{
  color: #606266;
  font-size: 14px;
  padding: 15px 0 15px 0;
  display: block;
  border-bottom: 1px #E4E7ED solid;
  margin: 0 18px;
  flex: 1;
}
.el-button+.el-button{
  // margin-left: 0;
}
// 病人管理-病程管理
.filter_title {
  font-size: 14px;
  color: gray;
  margin-right: 6px;
}
.Total{
 margin:0 0 10px 0;
 float: right;
}
.cellLine{
  color: #C0C4CC;
  padding: 0 3px;
}

// 微网站-新增模块
.feature {
  ul {
    border: 1px solid #eaeefb;
    float: left;
    width: 100%;
    li {
      width: 33.3%;
      float: left;
      text-align: center;
      height: 120px;
      color: #666;
      font-size: 13px;
      border-right: 1px solid #eee;
      border-bottom: 1px solid #eee;
      margin-right: -1px;
      margin-bottom: -1px;
      span {
        vertical-align: middle;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 120px;
        cursor: pointer;
        img {
          display: inline-block;
          font-size: 32px;
          margin-bottom: 15px;
          color: #606266;
          transition: color 0.15s linear;
          vertical-align: middle;
        }
        .title {
          display: inline-block;
          padding: 0 3px;
          height: 30px;
          vertical-align: middle;
        }
      }
    }
  }
}