/* Keep <li> tight */
.dt-paging-button.page-item {
  padding: 0 !important;
  margin: 0;                 /* optional */
}

/* Make the link fill the visible button area without forcing full row width */
.dt-paging-button.page-item > a,
.dt-paging-button.page-item > .page-link {
  display: block;            /* <-- key */
  padding: 0.5rem 0.75rem;   /* adjust */
  cursor: pointer;
}

/* Optional: ensure the <li> doesn't stretch if some CSS makes list items flex */
.dt-paging nav ul,
.dt-paging .pagination {
  display: flex;
  flex-wrap: wrap;
}

.dt-paging-button.page-item {
  flex: 0 0 auto;            /* prevents "one item per row" */
}