.j-table-container {
  position: relative;
  width: 100%;
  height: 100%;
  /* height: 400px; */
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  background: #fff;
}

[tabindex="0"]:focus {
  outline: none;
}

.j-table-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: auto;
}

.j-table-body {
  position: relative;
  min-width: 100%;
  background: #fff;
  /* will-change: transform; */
  margin-top: 30px;
  /* contain: content; */
  /* contain: strict; */
  /* margin-top: 26px; */
}

.j-table-row {
  position: absolute;
  width: auto;
  /* min-width: 100%; */
  display: flex;
  align-items: center;
}

.j-table-header-container {
  position: sticky;
  top: 0;
  z-index: 11;
}

.j-table-summary-row-container {
  position: sticky;
  bottom: 0;
  z-index: 11;
}

.j-table-header-container .j-table-cell-text {
  text-align: center;
}

.j-table-cell {
  position: relative;
  height: 100%;
  border-right: 1px solid #dde2ea;
  border-bottom: 1px solid #dde2ea;
  box-sizing: border-box;
  padding: 0 5px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  color: var(--j-color-text-primary);
  box-sizing: border-box;
}

.j-table-cell input {
  color: #333;
}

.j-table-cell-selected.j-table-cell {
  white-space: unset;
  /* overflow: unset; */
  text-overflow: unset;
}

.j-table-row-selected .active-to-white,
.j-table-row-selected i {
  color: #fff !important;
}

.j-table-cell .j-datepicker-header i {
  color: rgb(96, 98, 102) !important;
}

.j-table-cell.j-table-cell-fixed {
  position: sticky;
  background-color: #fff;
  z-index: 10;
}

.j-table-header .j-table-cell.j-table-cell-fixed {
  z-index: 11;
}

.j-table-header .j-table-cell {
  background-color: #f5f7fa;
  font-weight: 700;
  justify-content: center;
  height: 30px;
  line-height: 30px;
  align-items: center;
  /* padding: 4px 5px; */
  font-size: 14px;
  z-index: 1;
  text-align: center;
}

.j-table-summary-row-container .j-table-cell {
  font-size: 12px;
  font-weight: 400;
  background: #f5f7fa;
}

/* .j-table-row-selected {
  background-color: #f0f5ff !important;
} */

.j-table-row:hover .j-table-cell {
  background-color: #eee;
  cursor: pointer;
}

.j-table-header:hover .j-table-cell {
  background-color: #f5f7fa;
  cursor: pointer;
}

.j-table-row-selected .j-table-cell {
  background-color: var(--j-color-primary) !important;
  color: #fff;
}

.j-table-cell-checkbox {
  width: 13px;
  height: 13px;
  margin: 3px 4px;
}

.j-table-cell-selected::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid red;
  pointer-events: none;
  z-index: 1;
}

.j-table-header .j-table-cell.j-table-cell-editable {
  background-color: #409eff;
  color: #fff;
  font-weight: 400;
}

.j-table-column-resize-handle {
  /* background-color: #000; */
  background-color: transparent;
  transition: background-color 0.2s;
  position: absolute;
  right: 0px;
  top: 0px;
  bottom: 0px;
  width: 5px;
  cursor: col-resize;
}

.j-table-container .common-icon {
  position: absolute;
  left: 2px;
  top: 9px;
  line-height: 1;
  color: var(--j-color-text-third);
  /* display: none; */
}

.gyd-head-menu-container {
  position: fixed;
  background-color: rgb(255, 255, 255);
  min-width: 400px;
  border: 1px solid rgb(204, 204, 204);
  box-shadow: rgba(0, 0, 0, 0.2) 2px 2px 5px;
  padding: 10px;
  z-index: 1000;
  width: 400px;
}

.col-setting-container {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: end;
}

.j-table-pagination {
  display: flex;
  justify-content: end;
  align-items: center;
  font-size: 14px;
  height: 30px;
}

.j-table-pagination button {
  outline: none;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin: 0px 3px;
  background: #fff;
}

.j-table-pagination button[disabled] {
  background: #eee;
}

.j-table-pagination label {
  font-weight: 400;
}

.input-com {
  outline: none;
  border: 1px solid #ccc;
  border-radius: 2px;
  padding: 2px 5px;
}

/* 排序图标样式 */
.j-table-cell .sort-icon {
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #409eff;
}

.j-table-cell .sort-icon.el-icon-caret-bottom {
  margin-top: 4px;
}

.j-table-cell .sort-icon.el-icon-caret-top {
  margin-top: -4px;
}

.head-menu-table th {
  font-size: 12px;
  white-space: nowrap;
}

.j-table-context-menu {
  position: fixed;
  display: block;
  background-color: rgb(255, 255, 255);
  border: 1px solid rgb(204, 204, 204);
  box-shadow: rgba(0, 0, 0, 0.2) 2px 2px 5px;
  border-radius: 5px;
  z-index: 10000;
}

.j-table-context-item {
  padding: 4px 10px;
  cursor: pointer;
  color: var(--j-color-text-primary);
  background: var(--j-background-color-base);
  text-align: center;
  border-radius: 5px;
  font-size: 14px;
}

.j-table-context-item:hover {
  background: var(--j-color-primary);
  color: #fff;
}

.j-table-select .j-table-header-container {
  display: none;
}

.j-table-select .j-table-body {
  margin-top: 0 !important;
}

.j-table-select .j-table-cell.j-table-cell-fixed {
  display: none !important;
}

.j-table-select .j-table-row,
.j-table-select .j-table-cell {
  width: 100%;
  border: none;
}
.j-table-select .j-table-cell-selected::after {
  content: none;
}