.datatables-transaction {
  width: 100% !important;
}

/* Default state: text is wrapped */
.table-wrap-enabled td.datatable-body-cell {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Nowrap state: text is truncated with ellipsis */
.table-nowrap-enabled td.datatable-body-cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Exclude actions column from wrapping control */
.table-wrap-enabled td.zz-col-actions,
.table-nowrap-enabled td.zz-col-actions {
  white-space: nowrap;
  overflow: visible;
}

/* Header cells should not wrap by default */
.table-wrap-enabled th,
.table-nowrap-enabled th {
  white-space: nowrap;
}

/* Toggle radio button styling */
#btn-wrap-toggle-container,
[id^='btn-wrap-toggle-'],
[id^='wrap-toggle-'] {
  white-space: nowrap;
}

[id^='wrap-toggle-'] {
  padding: 0;
  margin: 0;
}

[id^='wrap-toggle-'] .form-check {
  margin-bottom: 0;
  padding-left: 1.75rem;
  min-height: auto;
  display: flex;
  align-items: center;
}

[id^='wrap-toggle-'] .form-check-label {
  cursor: pointer;
  font-size: 0.75rem;
  color: #4a5568;
  font-weight: 400;
  user-select: none;
  line-height: 1;
  margin-bottom: 0;
}

[id^='wrap-toggle-'] .form-check-input {
  cursor: pointer;
  margin-top: 0;
  margin-right: 0.2rem;
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  min-height: 1.125rem;
  flex-shrink: 0;
  border: 2px solid #cbd5e0;
  transition: all 0.15s ease-in-out;
  border-radius: 50% !important;
}

[id^='wrap-toggle-'] .form-check-input:hover {
  border-color: #a0aec0;
}

[id^='wrap-toggle-'] .form-check-input:checked {
  background-color: #3b82f6;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

[id^='wrap-toggle-'] .form-check-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Position toggle button in DataTables filter */
.dataTables_filter {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.5rem;
}

.dataTables_filter label {
  display: flex !important;
  align-items: center !important;
  margin-bottom: 0 !important;
}

.cell-value, .cell-value:hover {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
  transform: none;
  box-shadow: none;
}
