/* DataTable Production Fixes - Balanced Layout */

/* React Data Table Component specific fixes */
.rdt_TableCol,
.rdt_TableCell {
  overflow: visible !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  max-width: 200px !important;
  min-height: 40px !important;
  padding: 8px 12px !important;
  vertical-align: top !important;
  border-bottom: 1px solid #e9ecef !important;
}

/* Table cell content */
.rdt_TableCell > div,
.rdt_TableCol > div {
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  max-width: 100% !important;
  line-height: 1.4 !important;
  padding: 4px 0 !important;
}

/* Table headers */
.rdt_TableHead {
  background-color: #f8f9fa !important;
  font-weight: bold !important;
  color: #333 !important;
  border-bottom: 2px solid #dee2e6 !important;
}

.rdt_TableHead .rdt_TableCol {
  padding: 12px 8px !important;
  min-height: 50px !important;
  vertical-align: middle !important;
}

/* Table row hover */
.rdt_TableRow:hover {
  background-color: #f8f9fa !important;
}

/* Ensure table is responsive */
.rdt_Table {
  width: 100% !important;
  table-layout: auto !important;
  border-collapse: collapse !important;
}

/* Table body */
.rdt_TableBody {
  border-top: 1px solid #dee2e6 !important;
}

/* Row styling */
.rdt_TableRow {
  border-bottom: 1px solid #e9ecef !important;
  min-height: 40px !important;
}

/* Badge styles for status columns */
.badge {
  font-size: 10px !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  display: inline-block !important;
  margin: 2px !important;
}

.badge-success {
  background-color: #28a745 !important;
  color: white !important;
}

.badge-secondary {
  background-color: #6c757d !important;
  color: white !important;
}

.badge-primary {
  background-color: #007bff !important;
  color: white !important;
}

.badge-info {
  background-color: #17a2b8 !important;
  color: white !important;
}

.badge-danger {
  background-color: #dc3545 !important;
  color: white !important;
}

/* Generic cell overflow fix - more specific */
[class*="emItGs"] div:first-child,
[class*="bozQpI"] div:first-child,
.data-table-cell div:first-child,
.data-table-cell {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  padding: 4px 0 !important;
  line-height: 1.4 !important;
}

/* Override any inline styles that might hide text */
[style*="overflow: hidden"] {
  overflow: visible !important;
}

[style*="text-overflow: ellipsis"] {
  text-overflow: unset !important;
}

[style*="white-space: nowrap"] {
  white-space: normal !important;
}

/* Ensure proper spacing */
.rdt_TableCell,
.rdt_TableCol {
  position: relative !important;
}

/* Fix for any absolute positioning issues */
.rdt_TableCell > *,
.rdt_TableCol > * {
  position: relative !important;
}
