.dashboard {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem 1rem;
}

.data-sections {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.data-section {
  background: #f8fafc;
  border: 1px solid #e5e9f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
}

.section-header {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid #e5e9f0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #212529;
  margin: 0 0 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-header h2 i {
  color: #2845ae;
}

.section-header p {
  color: #6c757d;
  font-size: 0.8rem;
  margin: 0;
}

.dashboard .app-collapsible .section-header .app-collapsible-toggle {
  top: calc(50% + 2px);
}

.data-table-container {
  overflow-x: auto;
}

.dashboard .data-section .data-table-container.app-table-surface {
  margin: 0.65rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.data-table thead {
  background: #f8fafc;
  border-bottom: 1px solid #dfe6ef;
}

.data-table th {
  padding: 0.65rem 0.85rem;
  text-align: left;
  font-weight: 600;
  color: #495057;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tbody tr {
  border-bottom: 1px solid #f1f3f5;
  transition: background-color 0.15s ease-in-out;
}

.data-table tbody tr:hover {
  background-color: #f8f9fa;
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

.data-table td {
  padding: 0.7rem 0.85rem;
  vertical-align: middle;
  color: #212529;
}

.institution-info, .account-info, .entity-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.institution-avatar, .account-avatar, .entity-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.account-institution {
  font-size: 0.875rem;
  color: #6c757d;
}

/* .entity-badge and .status-badge are now global */

.entity-badge span:first-child {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.no-entity {
  color: #6c757d;
  font-style: italic;
}

@media (max-width: 768px) {
  .dashboard {
    padding: 0 0.5rem;
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .data-table {
    font-size: 0.875rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.75rem 1rem;
  }
}