.EZTable {
  position: relative;
  min-width: 200px;
}

.EZTableHeader {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  box-sizing: border-box;
  border: 1px solid var(--table-border-color);
  border-bottom: none;
  background-color: white;
  min-height: 54px;
}

.EZTableHeader .Left,
.EZTableHeader .Right {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 5px;
  align-items: center;
}
.EZTableHeader .Left {
  margin-left: 10px;
  justify-content: flex-start;
}
.EZTableHeader .Right {
  margin-right: 10px;
  justify-content: flex-end;
}
.EZTableHeader .Left > *,
.EZTableHeader .Right > * {
  margin-bottom: 5px;
}

.EZTableHeader .SearchInput {
  justify-self: flex-start;
  width: 150px;
  margin-right: 10px;
}

.EZTableBody {
  border: 1px solid var(--table-border-color);
}

.EZTableFooter {
  background-color: white;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  box-sizing: border-box;
  border: 1px solid var(--table-border-color);
  border-top: none;

  min-height: 35px; /* regular table*/
  max-height: 45px; /* table with pagination */
}

/**************************************/

/* Icons */
.Icon {
  height: 20px;
  width: 20px;
  fill: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.Icon:hover,
/* Firefox doesn't trigger hover on button's children!*/
button:hover .Icon {
  height: 20px;
  width: 20px;
  fill: #5d525b;
  cursor: pointer;
}

.IconButton {
  box-sizing: content-box;
  padding: 2px;
  height: 24px;
  width: 24px;
  border: none;
  border-radius: 2px;
  margin: 0;
}

.IconButton:focus {
  border-color: var(--input-focus-border-color);
  box-shadow: var(--input-focus-shadow);
  outline: none;
}

.Icon.SortingIcon {
  height: 10px;
  width: 10px;
  position: absolute;
  right: 2px;
  top: 13px;
}

.Icon.SortingIcon.SortingIconASC :global .cls-2 {
  fill: rgba(0, 0, 0, 0.8);
}

.Icon.SortingIcon.SortingIconDESC :global .cls-1 {
  fill: rgba(0, 0, 0, 0.8);
}

.Separator {
  width: 1px;
  height: 30px;
  border-right: 2px solid #f6f6f6;
  margin-left: 10px;
  margin-right: 10px;
}

/**************************************/

.Row.HeaderRow {
  position: relative; /* enables z-index */
  z-index: 2; /* for shadow to be visible! */
  background-color: var(--table-header-background);
  color: var(--table-header-color);
  box-shadow: 0 1px 1px var(--table-border-color);
  font-size: 11px;
  font-weight: bold;
}

.HeaderRowHighlighted {
  background-color: #fbd3d8 !important;
}

.TableGridWrapper {
  border-top: none;
}

/**************************************/

/*.EZTable :global .ReactVirtualized__Table__rowColumn {*/
.HeaderLabelWrapper {
  overflow-x: hidden;
}
.EZTable .HeaderCellWrapper,
.EZTable .BodyCellWrapper {
  position: relative; /* to position drag handler and tuncable ellipsis span */
  margin-right: 0;
  border-right: 1px solid var(--table-border-color);
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
.EZTable .HeaderCellWrapper {
  padding-left: 5px;
  padding-right: 5px;
}
.EZTable .BodyCellWrapper {
  padding-left: 5px;
  padding-right: 5px;
}
.EZTable .BodyCellWrapper {
  font-size: 12px;
}

.EZTable .HeaderCellWrapper {
  font-size: 11px;
  text-transform: none;
  display: flex;
  align-items: center;
}

.EZTable .HeaderCellWrapper:last-child,
.EZTable .BodyCellWrapper:last-child {
  border: none;
}

.EZTable .HeaderCellWrapper:first-child,
.EZTable .BodyCellWrapper:first-child {
  margin: 0;
}

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

.CheckboxWrapper {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none; /* prevent selecting text in adjacent columns on double click */
}

.EditableBodyCellWrapper {
  left: 0;
  right: 0;
  height: 100%;
  padding: 0 5px;
}

.EditableBodyCellWrapper:focus-within {
  outline-style: solid;
  outline-color: rgba(var(--primary-color-rgb), 0.3);
  outline-offset: -3px;
  outline-width: 3px;
}

.EditableBodyCellWrapperWithError {
  background-color: var(--table-base-error-background);
}
.EditableBodyCellInputWrapper {
}
.EditableBodyCellTextWrapper {
  text-decoration: underline;
  cursor: pointer;

  display: block; /* required to show ellipsis */
  overflow: hidden;
  text-overflow: ellipsis;
}
.EditableBodyCellTextWrapper.EditableBodyCellDisabled {
  text-decoration: unset;
  cursor: unset;
}
.EditableBodyCellInput {
  outline: 0;
  border: none;
  width: 100%;
}
.EditableBodyCellPlaceholder {
  font-style: italic;
}

/**************************************/

.DragHandle {
  position: absolute;
  right: -1px;
  top: 0;
  cursor: col-resize;
  width: 1px;
  background-color: var(--table-border-color);
  height: 100%;
}

.DragHandle:hover,
.DragHandleActive {
  background-color: #20bea7;
}

/**************************************/

.Row {
  box-sizing: border-box;
  color: var(--table-body-cell-color);
}

.NoRowsRow {
  display: flex;
  padding-left: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--table-body-cell-color);
  background-color: white;
}

.FirstRow {
  /*box-shadow: inset 0 1px 1px table-border-color;*/
}

.LoadMoreRow {
  padding: 10px;
  display: flex;
  justify-content: center;
  background-color: white !important;
}
.ClickableRow.LoadMoreRow {
  cursor: auto;
}
.LoadMoreButton {
}

.EvenRow {
  background-color: var(--even-row-background);
}

.OddRow {
  background-color: var(--odd-row-background);
}

.SelectedRow {
  background-color: rgba(var(--primary-color-rgb), 0.1);
}

.HoveredRow {
  background-color: var(--table-hovered-row-color);
}

.LastSelectedRow {
  background-color: var(--table-last-selected-row-background);
}

.ClickableRow {
  cursor: pointer;
}

/**************************************/

.CustomRowWrapper {
  flex: 1 1;

  height: 100%;
  width: 100%;
  padding: 0;
}

.SelectedRowsCount {
  margin-right: 10px;
  font-size: 14px;
}
