div.gridbox_material.gridbox .xhdr table.hdr td {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  line-height: 20px;
  position: relative;
  padding: 12px;
  border-right-width: 0;
  border-bottom-color: var(--color-brand-blue-75);
  border-left-width: 0;
  background-color: var(--color-brand-blue-75);
  letter-spacing: 0.2px;
  color: var(--color-gray-900);
}

div.gridbox_material.gridbox table.hdr tr:nth-child(2) td {
  border-top-width: 0;
}

div.gridbox_material.gridbox table.hdr tr td div.hdrcell {
  padding-right: 0;
  padding-left: 0;
}

div.gridbox_material.gridbox table.hdr tr td.dhxgrid_sort_desc_col div,
div.gridbox_material.gridbox table.hdr tr td.dhxgrid_sort_asc_col div {
  padding-right: 0;
  padding-left: 0;
}

div.gridbox_material.gridbox div.xhdr {
  border-bottom: 1px solid var(--color-brand-blue-500);
}

.dhxgrid_sort_asc,
.dhxgrid_sort_desc,
div.gridbox_material.gridbox table.hdr tr td.dhxgrid_sort_asc_col,
div.gridbox_material.gridbox table.hdr tr td.dhxgrid_sort_desc_col {
  background-image: none !important;
}

div.gridbox_material.gridbox table.hdr tr td.dhxgrid_sort_desc_col .hdrcell:after {
  background-image: url(/imgs/material_icons/sorting_desc.png);
}

div.gridbox_material.gridbox table.hdr tr td.dhxgrid_sort_asc_col .hdrcell:after {
  background-image: url(/imgs/material_icons/sorting_asc.png);
}

div.gridbox_material.gridbox table.hdr tr td.dhxgrid_sort_asc_col .hdrcell:after,
div.gridbox_material.gridbox table.hdr tr td.dhxgrid_sort_desc_col .hdrcell:after,
div.gridbox_material.gridbox table.hdr tr td .hdrcell:after {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  content: '';
}

div.gridbox_material.gridbox table.hdr tr td .hdrcell {
  display: flex;
  align-items: center;
}

.grid-header__checkbox {

}

div.gridbox_material.gridbox div.objbox table.obj.row20px tr td {
  padding: 4px 12px;
  border-top-width: 0;
  border-right-width: 0;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: var(--color-gray-300);
  border-left-width: 0;
}

tr.grids__uneven {
  background-color: var(--color-white);
}

.dhxlayout_base_material div.dhx_cell_layout div.dhx_cell_hdr {
  z-index: 10;
}

.table-date {}

.table-time {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  line-height: 18px;
  letter-spacing: 0.2px;
  color: var(--color-gray-500);
}

/* Custom table */
/* Grid table */
.enquiry-table-grid,
.enquiry-table-grid * {
  box-sizing: border-box;
}

.enquiry-table-grid {
  display: grid;
}

.enquiry-table-grid.enquiry-table-grid--appointment-sum {
  grid-template-columns: auto 180px 40px;
}

.enquiry-table-grid__cell {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 4px;
}

.enquiry-table-grid__cell:empty {
  height: 0;
  padding: 0;
}

.enquiry-table-grid__cell > span:not([class]) {
  width: 100%;
}

.enquiry-table-grid__cell.enquiry-table-grid__cell--bb {
  border-bottom: 1px solid var(--color-gray-300);
}

.enquiry-table-grid__cell.enquiry-table-grid__cell--head {
  border-bottom: 1px solid var(--color-brand-blue-500);
  background-color: var(--color-brand-blue-75);
}

.enquiry-table-grid__cell.enquiry-table-grid__cell--foot {
  border-top: 1px solid var(--color-gray-900);
  border-bottom: 1px solid var(--color-gray-300);
  background-color: var(--color-gray-50);
}

.enquiry-table-grid__cell--head,
.enquiry-table-grid__cell--foot {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  line-height: 20px;
  letter-spacing: 0.2px;
}

.actions-cell > *:not(:last-child) {
  margin-right: 4px;
}

.pay-cell > *:not(:last-child) {
  margin-right: 8px;
}

div.dhxacc_base_material div.dhx_cell_acc div.dhx_cell_statusbar_def div.dhx_cell_statusbar_paging,
div.dhxlayout_base_material div.dhx_cell_layout div.dhx_cell_statusbar_def div.dhx_cell_statusbar_paging,
div.dhxtabbar_base_material div.dhx_cell_tabbar div.dhx_cell_statusbar_def div.dhx_cell_statusbar_paging,
div.dhxcarousel_base_material div.dhx_cell_carousel div.dhx_cell_statusbar_def div.dhx_cell_statusbar_paging,
div.dhxsidebar_base_material div.dhx_cell_sidebar div.dhx_cell_statusbar_def div.dhx_cell_statusbar_paging {
  position: relative;
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0;
  border-top: 1px solid var(--color-gray-300);
}

div.dhxlayout_base_material div.dhx_cell_layout div.dhx_cell_statusbar_def {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  position: absolute;
  z-index: 1;
  bottom: 0;
  box-sizing: border-box;
  width: 100%;
  padding: 0;
  background-color: var(--color-white);
  letter-spacing: 0.2px;
  overflow: hidden;
  color: var(--color-gray-900);
}

.enquiry-table-pagination,
.enquiry-table-pagination *,
.enquiry-table-pagination *:before,
.enquiry-table-pagination *:after {
  box-sizing: border-box;
}

.enquiry-table-pagination {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 10px;

  @media screen and (max-width: 601px) {
    justify-content: center;
  }
}

.enquiry-table-pagination .enquiry-select {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 20px;
  position: relative;
  z-index: 2;
  width: 160px;
  height: 28px;
  background-color: transparent;
  letter-spacing: 0.2px;
}

.enquiry-select:disabled + .pagination-select-icon {
  color: var(--color-gray-300);
}

.pagination-select-icon {
  font-size: 16px;
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 16px;
  transition: transform 0.2s ease-in-out;
  color: var(--color-gray-500);
}

.pagination-select-icon.opened {
  transform: rotate(180deg);
}

.enquiry-table {
  border-radius: 10px;
}

.grid__fl-table__opened .enquiry-table {
  border-radius: 0 10px 10px 0;
}

.enquiry-table__header {
  min-height: 52px;
  max-height: 52px;

  &.dhx_layout-cell {
    overflow: initial;
  }
}

.enquiry-table__header .dhx_layout-cell-inner_html {
  display: flex;
  align-items: center;
  flex-direction: row;
  width: 100%;
  min-height: 52px;
  max-height: 52px;
  padding: 0 12px;
  gap: 8px;

  .enquiry-table__header__filter:empty,
  .enquiry-table__header__before-title:empty,
  .enquiry-table__header__title:empty,
  .enquiry-table__header__after-title:empty,
  .enquiry-table__header__buttons:empty,
  .enquiry-table__header__mass-actions:empty {
    display: none;
  }

  .enquiry-table__header__filter {}

  .enquiry-table__header__before-title {}

  .enquiry-table__header__title {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0.2px;
    color: var(--color-gray-900);
  }

  .enquiry-table__header__after-title {}

  .enquiry-table__header__buttons {}

  .enquiry-table__header__mass-actions {
    position: absolute;
    z-index: 10;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    &:not(.show) {
      z-index: -1;
      display: none;
    }
  }
}

.enquiry-table__content {
  flex: 1 1 auto;

  .dhx_grid-header-cell {
    border-bottom: 1px solid var(--color-brand-blue-500);
    background-color: var(--color-brand-blue-75);
  }

  .dhx_grid-header.dhx_grid_fixed_left .dhx_grid-footer-cell,
  .dhx_grid-header.dhx_grid_fixed_left .dhx_grid-header-cell {
    border-left: none;
  }

  .dhx_grid_data.dhx_grid_fixed_left .dhx_grid-cell {
    border-left: none;
  }

  .dhx_grid-less-width .dhx_grid-footer-cell:last-child,
  .dhx_grid-less-width .dhx_grid-header-cell:last-child,
  .dhx_grid_border .dhx_grid-footer-cell:last-child,
  .dhx_grid_border .dhx_grid-header-cell:last-child {
    border-right: none;
  }

  .dhx_grid-cell {
    border-left: none;
  }

  .dhx_header-fixed-cols.dhx_grid__cols_right--fixed .dhx_grid-footer-cell:not(.dhx_grid-footer-cell):first-child,
  .dhx_header-fixed-cols.dhx_grid__cols_right--fixed .dhx_grid-header-cell:not(.dhx_grid-footer-cell):first-child {
    border-left: none;
  }

  .dhx_header-wrapper.dhx_grid__rows_right--fixed .dhx_grid-footer-cell:not(.dhx_span-cell):last-child,
  .dhx_header-wrapper.dhx_grid__rows_right--fixed .dhx_grid-header-cell:not(.dhx_span-cell):last-child {
    border-right: none;
  }

  .dhx_grid-footer-cell:not(.dhx_cell_first),
  .dhx_grid-header-cell:not(.dhx_cell_first) {
    border-left: none;
  }

  .dhx_grid__contains_cols_right--fixed .dhx_grid_data .dhx_grid-cell:last-child {
    border-right: none;
  }

  .dhx_header-fixed-cols.dhx_grid__cols_left--fixed .dhx_last-column-cell {
    border-right: none;
  }

  .dhx_grid__cols-border--frozen,
  .dhx_resizer_grip .dhx_resizer_grip_line {
    width: 0;
  }
}

.enquiry-table__footer {
  display: flex;
  align-items: center;
  flex-direction: row;
  width: 100%;
  min-height: 44px;
  max-height: 44px;

  .dhx_layout-cell-content,
  .dhx_layout-cell-inner_html {
    width: 100%;
  }
}

.easy-table {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: 10px;
  background-color: var(--color-white);
}

.easy-table__header {
  display: flex;
  align-items: center;
  flex-direction: row;
  min-height: 52px;
  max-height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--color-gray-200);
  gap: 8px;
}

.easy-table__grid {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.easy-table__grid__row {
  display: flex;
  align-items: center;
  flex-direction: row;
  width: 100%;
  min-height: 44px;

  &:not(:last-child) {
    border-bottom: 1px solid var(--color-gray-200);
  }

  > div {
    display: flex;
    align-items: center;
    flex: auto;
    flex-direction: row;
    padding: 0 16px;
  }

  > div:nth-child(1) {
    width: 160px;
    min-width: 160px;
    max-width: 160px;
  }

  > div:nth-child(2) {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
  }

  > div:nth-child(3) {}
}
