@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './theme/black/index.scss';
@import './theme/black/sidebar.scss';
@import './theme/blue/index.scss';
@import './theme/blue/sidebar.scss';
@import './theme/blue2/index.scss';
@import './theme/blue2/sidebar.scss';
@import './theme/gray/index.scss';
@import './theme/gray/sidebar.scss';
@import './theme/dark-blue/index.scss';
@import './theme/dark-blue/sidebar.scss';
@import './display-layout.scss';

body {
  overflow: hidden;
}

// 省略号
.ellipsis {
  // display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
  width: 100%;
}

// 解决el-table表头错位问题
body .el-table th.gutter {
  display: table-cell !important;
}

body .el-table colgroup.gutter {
  display: table-cell !important;
}

// 日期控件宽度不自适应问题
.formContent .el-date-editor.el-input,
.formContent .el-date-editor.el-input__input,
.formContent .el-date-editor.el-input__inner,
.grid-search-form .el-date-editor.el-input,
.grid-search-form .el-date-editor.el-input__input,
.grid-search-form .el-date-editor.el-input__inner {
  width: 100%;
}

.formContent .el-date-editor--daterange.el-input,
.formContent .el-date-editor--daterange.el-input__inner,
.formContent .el-date-editor--timerange.el-input,
.formContent .el-date-editor--timerange.el-input__inner,
.grid-search-form .el-date-editor--daterange.el-input,
.grid-search-form .el-date-editor--daterange.el-input__inner,
.grid-search-form .el-date-editor--timerange.el-input,
.grid-search-form .el-date-editor--timerange.el-input__inner {
  width: 100%;
}

// 日期选择按钮太小问题（gcommon ui）
.el-picker-panel__footer .el-button--mini {
  font-size: 16px;
}

// 显示必填标志
.is_req {
  .required__label::before {
    content: '*';
    color: #f56c6c;
    margin-right: 4px;
  }
}

.formContent .el-form-item {
  margin-bottom: 0;
}

.operation-area,
.grid-search-form .search-button,
.grid-area .grid-operation-buttons {
  .el-button:not(:first-child) {
    margin-left: 10px;
  }
}

.button-at-top {
  width: 100%;
  background: rgb(255, 255, 255);
  line-height: 72px;
  height: 72px;
  position: absolute;
  z-index: 100;
  top: 0px;
  left: 0px;
  right: 0px;
}

.button-at-bottom {
  width: 100%;
  background: rgb(255, 255, 255);
  line-height: 72px;
  height: 72px;
  position: absolute;
  bottom: 0px;
  z-index: 100;
  left: 0px;
  right: 0px;
}

.form-top-button {
  height: 72px;
  float: left;
  padding-left: 24px;
  line-height: 72px;
}

.form-bottom-button {
  height: 72px;
  float: right;
  padding-right: 24px;
  line-height: 72px;
}

// 带有tab页签的表单高度
.tab-form-container {
  height: calc(100vh - 190px);
  overflow: auto;
}

.form-container {
  height: calc(100vh - 90px);
  overflow: auto;
}

.form-container-bottom-button {
  margin-bottom: 50px;
}

.form-container .el-form .el-card {
  margin-bottom: 10px;
}

.form-container .el-form .el-card:last-child {
  margin-bottom: 0;
}

.operation-area-float {
  float: right;
  position: fixed;
  bottom: 0;
  right: 4%;
}

.el-button+.el-button {
  margin-left: 10px;
}

.el-table__cell {
  .el-input-group__append {
    padding: 0 5px
  }
}