/* Data Table Section */
.data-section {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: visible; /* Changed from hidden to allow dropdowns to pop out */
  margin-bottom: 2rem;
}

.data-section-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.data-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-color);
}

.data-filters {
  display: flex;
  gap: 0.75rem;
}

.table-responsive {
  width: 100%;
  overflow: visible; /* Changed from overflow-x: auto to allow absolute dropdowns */
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 1rem 1.5rem;
  text-align: left;
}

th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  background-color: #fafafa;
  border-bottom: 1px solid var(--border-color);
}

td {
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

.td-id {
  font-weight: 600;
  color: var(--primary-color);
}

/* Permissions Matrix UI */
.matrix-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
.matrix-table th, .matrix-table td {
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
  text-align: center;
}
.matrix-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}
.matrix-table th:first-child, .matrix-table td:first-child {
  position: sticky;
  left: 0;
  background-color: white;
  z-index: 10;
  text-align: left;
  font-weight: 600;
  box-shadow: 2px 0 5px -2px rgba(0,0,0,0.05);
}
.matrix-table tbody tr:nth-child(even) td:first-child {
  background-color: #f8fafc;
}
