html {
  height: 100%;
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  height: 100%;
  font-size: 14px;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Microsoft YaHei;
}
:root {
  --el-menu-base-level-padding: 16px !important;
  --el-menu-level-padding: 12px !important;
}

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

ul,
li {
  list-style: none;
}
img {
  vertical-align: middle;
}

.margin-top {
  margin-top: 12px;
}
.margin-right {
  margin-right: 12px;
}
.margin-bottom {
  margin-bottom: 12px;
}
.margin-left {
  margin-left: 12px;
}
.padding-top {
  padding-top: 12px;
}
.padding-right {
  padding-right: 12px;
}
.padding-bottom {
  padding-bottom: 12px;
}
.padding-left {
  padding-left: 12px;
}

.flex {
  display: flex;
}
.flex-between {
  display: flex;
  justify-content: space-between;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-center-align {
  display: flex;
  align-items: center;
}
.flex-end {
  display: flex;
  justify-content: flex-end;
}
.flex-column {
  display: flex;
  flex-direction: column;
}
.flex-1 {
  flex: 1;
  overflow: hidden;
}

.align-left {
  text-align: left;
}
.align-center {
  text-align: center;
}
.align-right {
  text-align: right;
}
.position-relative {
  position: relative;
}
.bg-white {
  background: #fff;
}
.b {
  font-weight: bold;
}
.red {
  color: var(--el-color-danger);
}
.green {
  color: var(--el-color-success);
}
.cursor-pointer {
  cursor: pointer;
}
.block {
  display: block !important;
}
.border-radius {
  border-radius: 5px;
}
.text-overflow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 百分百高度 */
.h-full {
  height: 100%;
}
.w-full {
  width: 100% !important;
}
.h-full.el-tabs > .el-tabs__content {
  flex: 1;
}

/* element ui */
.el-tabs--border-card > .el-tabs__content {
  padding: 12px;
}
.el-dialog__body {
  border-top: 1px solid #dcdfe6;
  padding: 16px 0 0;
}
.el-dialog__headerbtn {
  top: 4px !important;
}
.el-form > .el-form-item:last-child {
  margin-bottom: 0;
}
.el-scrollbar,
.el-scrollbar__wrap {
  box-sizing: initial;
}
.el-radio {
  --el-radio-input-width: 20px !important;
  --el-radio-input-height: 20px !important;
}
.el-radio__inner:after {
  width: 8px !important;
  height: 8px !important;
}
.el-scrollbar {
  --el-scrollbar-opacity: 0.5;
  --el-scrollbar-hover-bg-color: var(--el-text-color-regular);
}
.el-scrollbar__bar.is-horizontal {
  height: 8px;
}
.el-scrollbar__bar.is-vertical {
  width: 8px;
}
.el-scrollbar__wrap {
  scroll-behavior: smooth;
}

/* 搜索宽度 */
.search-box .el-select,
.search-box .el-cascader,
.search-width-small {
  width: 160px !important;
}
.search-width {
  width: 260px !important;
}

.el-pagination .btn-next {
  margin-right: 0 !important;
}

.el-form-item__content {
  color: #606266;
}
.el-form .el-form-item:last-child {
  margin-bottom: 0;
}

/* 图片底部有空白 */
.el-image {
  line-height: 0;
  display: flex !important;
}
.table-image-32 {
  max-height: 32px;
  max-width: 32px;
}
.el-table .table-image-32 {
  max-height: 24px;
  max-width: 24px;
}
.table-image-32 + .table-image-32 {
  margin-right: 5px;
}
.table-image-32 img {
  vertical-align: middle;
}

/* table */
.table-box .el-button + .el-button {
  margin-left: 8px;
}
.table-box .el-table--border {
  border: none;
}
.table-box .el-table--border th {
  background: #f5f7fa !important;
  z-index: initial;
}
.table-box .el-table--border td {
  background: var(--el-table-tr-bg-color) !important;
  z-index: initial;
}
.table-box .el-table--border .el-table__row--striped td {
  background: var(--el-fill-color-lighter) !important;
}
.table-box .el-table--border tr {
  background: none;
}
.table-box .el-table .cell {
  line-height: 20px;
}
.table-box .el-table thead {
  color: #333;
  background: #f5f7fa;
}
.table-box .el-table a {
  color: #409eff;
  text-decoration: none;
}
.table-box .el-table a + a {
  margin-left: 8px;
}
.table-box .el-switch {
  height: initial;
  line-height: initial;
}

.content-view {
  max-height: 60vh;
  overflow: hidden;
  overflow-y: auto;
  white-space: pre;
}
.content-view img {
  max-width: 100%;
}

.el-popper {
  max-width: min(800px, 80vw);
}
