$bg_color : #3C64DC;

html,
body {
  height: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
body,
html,
ul,
ol,
li {
  margin: 0;
  padding: 0;
}

ul,
ol,
li {
  outline: none;
  list-style: none;
}

.overflow {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

// 前台公共样式
a {
  color: #333333;
  text-decoration: none;
}

.center {
  width: 1200px;
  margin: 0 auto;
  height: 100%;
}

.overflow {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

/*定义滚动条的样式*/
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

/*定义滚动条滑块的样式*/
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/*定义滚动条轨道的背景颜色*/
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

// 表格样式
.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
  background: #F9FAFE;
}

.el-table {

  th.el-table__cell.is-leaf,
  td.el-table__cell {
    border-bottom: 1px solid #f3f4f5;;
  }

  th.gutter {
    display: table-cell !important;
  }

  .el-table__fixed-right {
    height: 100% !important;
  }

  .el-table__fixed {
    height: 100% !important;
  }

  .el-table__header-wrapper,
  .el-table__fixed-header-wrapper {
    th {
      word-break: break-word;
      background-color: #ECEFF6;
      ;
      color: #515a6e;
      height: 45px;
    }
  }

  // 滚动条的宽度
  .el-table__body-wrapper::-webkit-scrollbar {
    width: 10px; // 横向滚动条
    height: 10px; // 纵向滚动条 必写
  }

  // 滚动条的滑块
  .el-table__body-wrapper::-webkit-scrollbar-thumb {
    background-color: #DDDEE0; //颜色
    border-radius: 5px; //圆角
  }

  .el-table__body-wrapper {
    position: relative;

    .el-table__empty-text {
      display: inline-block;
      line-height: 25px;
      position: absolute;
      left: 50%;
      top: 30px;
      transform: translateX(-50%);
      color: #999;
      overflow: hidden;
    }
  }

  .el-table-column--selection .cell {
    padding-left: 10px;
  }

  .el-table__empty-block {
    min-height: 150px;
  }
}

// 集团公告发布页面tip
.notice-testtooltip {
  padding: 2px 8px;
  color: #666;
}

// 面包屑导航
.app-breadcrumb.el-breadcrumb {
  line-height: 40px;
  margin-left: 20px;
  color: #616161;

  .no-redirect {
    color: $bg_color;
    cursor: text;
  }

  .el-breadcrumb__separator {
    color: #898989;
  }
}

// 对话框顶部样式
.el-dialog__header {
  border-bottom: 1px solid #ddd;

  .el-dialog__title {
    font-size: 16px;
    font-weight: 700;

    &::before {
      content: '';
      width: 4px;
      height: 16px;
      margin-right: 4px;
      display: inline-block;
      vertical-align: middle;
      background-color: $bg_color;
      margin-top: -3px;
    }
  }
}

// 富文本编辑器样式
.editor-css {
  ul {
    li {
      list-style: disc;
    }
  }

  ol {
    li {
      list-style: decimal;
    }
  }
}

// 公共div外部样式
.common-box {
  padding: 20px;
  background-color: #fff;
  border-radius: 6px;
}

// 卡片，标题样式
.common-card {
  position: relative;
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;

  h3 {
    padding-left: 5px;
    margin-bottom: 15px;
    color: #101010;
    font-size: 16px;
    font-weight: 800;
    border-left: 5px solid $bg_color;
  }

  .right-type {
    position: absolute;
    right: 15px;
    top: 10px;
  }
}

// 顶部搜索区域-有操作按钮则靠右，上边加横线
.right-button {
  text-align: right;
  padding: 10px 0;
  border-top: 1px solid rgb(235, 238, 245);
}

// 对话框底部按钮居中
.el-dialog__footer {
  text-align: center;

  .el-button {
    min-width: 80px;
    margin-right: 10px;
    letter-spacing: 0.3em;
  }
}

// 页面底部按钮统一样式居中
.foot-button {
  width: 100%;
  text-align: center;
  margin: 20px 0;

  .el-button {
    min-width: 100px;
    margin: 0 25px;
    letter-spacing: 0.3em;
  }
}

// 底部价格展示样式
.price-css {
  color: #333;
  margin-top: 20px;
  font-size: 14px;

  span {
    display: inline-block;
    width: 100px;
  }
}

// 表格式的form样式
.grid-form-class {


  .form-body {
    border-top: 1px solid #cecece;

    &:not(.form-flow) .is-error.el-form-item .el-form-item__content {
      border: 1px solid #f56c6c !important;
      border-left: 1px solid #cecece;
    }

    .flex-css {
      display: flex;
      border-bottom: 1px solid #cecece;
      border-right: 1px solid #cecece;
    }

    .el-form-item {
      box-sizing: border-box;
      margin: 0;
      position: relative;
      flex: 1;
    }

    .el-form-item__label {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      padding: 8px;
      box-sizing: border-box;
      background-color: #f5f7fa;
      border-left: 1px solid #cecece;
      text-align: right;
      font-size: 13px;
      color: #606266;
      font-weight: 800;
      height: 100%;
    }


    .el-form-item__content {
      position: relative;
      box-sizing: border-box;
      height: 100%;
      border-left: 1px solid #cecece;
      display: flex;
      align-items: center;
      flex-wrap: wrap;

      // 展示内容
      .content {
        line-height: 22px;
        // color: #303133;
        color: #666;
        padding: 10px;
        font-size: 13px;
      }
    }

    .el-form-item__error {
      position: absolute;
      bottom: 0;
      left: auto;
      top: auto;
      right: 15px;
    }

    .el-select {
      width: 100%;
      height: 100%;
    }

    .el-checkbox {
      margin-left: 10px;
      padding-top: 4px;
    }

    .el-radio {
      margin-left: 10px;
    }

    .el-date-editor.el-input {
      width: 100%;
    }

    .el-input {
      height: 100%;
    }

    .el-input__inner {
      box-sizing: border-box;
      height: 100%;
      border-radius: 0px;
      color: #303133;
      background-color: #fff;
      border: none;
    }

    .el-textarea__inner {
      border: none;
      margin: 8px 0;
    }
  }


}

// tab栏竖型分布样式
.vertical-tab {
  .el-tabs--left .el-tabs__header.is-left {
    width: 100%;
  }

  .el-tabs--left .el-tabs__item.is-left {
    text-align: left;
  }

  .el-tabs__item.is-active {
    background: #ecf5ff;
  }

  .el-tabs__item:hover {
    background: #ecf5ff;
  }

  // 竖线靠左
  .el-tabs--left .el-tabs__nav-wrap.is-left::after {
    right: auto;
    left: 0;
  }

  .el-tabs--left .el-tabs__active-bar.is-left {
    right: auto;
    left: 0;
  }
}

// 左右结果布局，左边18%，右边82%
.left-list-box {
  width: 18%;
  margin-right: 20px;
  border-radius: 6px;
  background-color: #fff;
  height: 100%;
  overflow-y: auto;
}

// 左右结果布局，左边18%，右边82%
.right-common-box {
  width: 82%;
  padding: 20px;
  background-color: #fff;
  border-radius: 6px;
  overflow-y: auto;
}

// 药品信息三行显示公共样式
.drug-name {
  white-space: nowrap;
}

// 按钮湖蓝色----------新增按钮
.lake-Blue {
  background: #52C8CC;
  border: #52C8CC;

  &:hover {
    background: #52C8CC;
    border: #52C8CC;
    opacity: 0.8;
  }

  &:focus {
    background: #52C8CC;
    border: #52C8CC;
  }

  &.is-disabled {
    background: #52C8CC;
    border: #52C8CC;
    opacity: 0.8;

    &:hover {
      background: #52C8CC;
      border: #52C8CC;
      opacity: 0.8;
    }
  }
}

// 表格内按钮颜色---------------开始-------------------------------------------
// 不加类名，默认蓝色(详情，查看，启用等)

// 绿色（新增，保存等）
.green {
  color: #67c23a;

  &:hover {
    color: #67c23a;
  }

  &:focus {
    color: #67c23a;
  }
}

// 青色(编辑等)
.cyan {
  color: #52c8cc;

  &:hover {
    color: #52c8cc;
    opacity: 0.8;
  }

  &:focus {
    color: #52c8cc;
  }

}

// 红色（删除等）
.red {
  color: #f56c6c;

  &:hover {
    color: #f56c6c;
    opacity: 0.8;
  }

  &:focus {
    color: #f56c6c;
  }
}

// 橘黄色（设置,申请退货等）
.orange {
  color: #e6a23c;

  &:hover {
    color: #e6a23c;
    opacity: 0.8;
  }

  &:focus {
    color: #e6a23c;
  }
}

// 灰色（禁用,停用等）
.grey {
  color: #909399;

  &:hover {
    color: #909399;
    opacity: 0.8;
  }

  &:focus {
    color: #909399;
  }
}

// 耗材信息三行显示公共样式
.mcs-name {
 white-space: nowrap; 
 line-height: 16px;
}

// -----------------------------------结束------------------------------------