.scrollable-table-wrapper {
  max-height: 300px;
  overflow-y: auto;
  border-radius: 1rem;
  border: 1px solid #dee2e6;
}

/* Apply consistent border and fix collapsing */
.scrollable-table-wrapper table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0;
  table-layout: fixed;
}

/* Sticky thead with visual elevation */
.scrollable-table-wrapper thead th {
  position: sticky;
  top: 0;
  background-color: #f8f9fa;
  z-index: 2;
  border-bottom: 2px solid #dee2e6;
  text-align: left;
  padding: 0.75rem 1rem;
}

/* Table cell styling */
.scrollable-table-wrapper td,
.scrollable-table-wrapper th {
  padding: 0.75rem 1rem;
  border-right: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
  background-color: white;
  word-wrap: break-word;
}

/* Remove right border from last column */
.scrollable-table-wrapper td:last-child,
.scrollable-table-wrapper th:last-child {
  border-right: none;
}

/* Round bottom corners on last row */
.scrollable-table-wrapper tbody tr:last-child td:first-child {
  border-bottom-left-radius: 1rem;
}
.scrollable-table-wrapper tbody tr:last-child td:last-child {
  border-bottom-right-radius: 1rem;
}

/* Remove default padding when needed */
.card-body.p-0 {
  padding: 0 !important;
}

.card-header {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.card {
  border-radius: 1rem;
  overflow: hidden;
}

/* Hover effect */
tr:hover {
  background-color: #f1f3f5;
}

.table-hover tbody tr:hover td {
  background-color: #f1f3f5;
}
