/* Customer List only: protect this register from broad table stabilization rules. */
.customer-register.customer-register-compact {
  min-width: 0;
}

.customer-register.customer-register-compact .customer-register-panel,
.customer-register.customer-register-compact .customer-filter-grid,
.customer-register.customer-register-compact .customer-filter-grid > *,
.customer-register.customer-register-compact .customer-table-wrap {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.customer-register.customer-register-compact .customer-filter-grid input,
.customer-register.customer-register-compact .customer-filter-grid select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.customer-register.customer-register-compact .customer-table-wrap {
  overflow-x: auto !important;
  overflow-y: visible;
  scrollbar-gutter: stable;
}

.customer-register.customer-register-compact .customer-table-wrap > .customer-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.customer-register.customer-register-compact .customer-table :is(th, td) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-register.customer-register-compact .customer-table thead th {
  white-space: normal;
}

.customer-register.customer-register-compact .customer-table td {
  vertical-align: middle;
}

.customer-register.customer-register-compact .customer-table .link-button,
.customer-register.customer-register-compact .customer-table .subtext,
.customer-register.customer-register-compact .customer-table .whatsapp-link {
  max-width: 100%;
}

.customer-register.customer-register-compact .pagination-bar {
  min-width: 0;
  justify-content: flex-end;
}

.customer-register.customer-register-compact .pagination-count {
  margin-right: auto;
}

@media screen and (max-width: 1280px) and (min-width: 761px) {
  .customer-register.customer-register-compact .customer-table-wrap > .customer-table {
    min-width: 1120px;
  }

  .customer-register.customer-register-compact .customer-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-register.customer-register-compact .customer-filter-grid .search-wide,
  .customer-register.customer-register-compact .customer-filter-buttons {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 760px) {
  .customer-register.customer-register-compact .customer-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-register.customer-register-compact .customer-filter-grid .search-wide,
  .customer-register.customer-register-compact .customer-filter-buttons {
    grid-column: auto;
  }

  .customer-register.customer-register-compact .customer-filter-buttons .btn {
    flex: 1 1 140px;
  }

  .customer-register.customer-register-compact .pagination-bar {
    align-items: stretch;
  }

  .customer-register.customer-register-compact .pagination-count {
    width: 100%;
  }
}
