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

.quick-reference-container {
  padding: 1.5rem 2rem;
}

.quick-reference-placeholder {
  padding: 1rem 1.25rem;
  border: 1px dashed #e3e8f0;
  border-radius: 10px;
  background: #fafbfc;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.quick-reference-placeholder p {
  margin: 0;
  font-size: 0.95rem;
}

.quick-reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.quick-reference-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.quick-reference-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: #dee2e6;
}

.quick-reference-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f3f4;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}

.quick-reference-avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.quick-reference-avatar span {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
}

.quick-reference-title {
  flex: 1;
  min-width: 0;
}

.quick-reference-title h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #212529;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.quick-reference-classification {
  display: inline-block;
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.25rem 0.625rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.quick-reference-link {
  color: #667eea;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.quick-reference-link:hover {
  background: #f0f4ff;
  color: #4c63d2;
}

.quick-reference-content {
  padding: 1.5rem;
  flex: 1;
}

.quick-reference-content p {
  margin-bottom: 1rem;
  color: #495057;
  line-height: 1.6;
  font-size: 0.9375rem;
}

.quick-reference-content p:last-child {
  margin-bottom: 0;
}

.quick-reference-content ul,
.quick-reference-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: #495057;
  line-height: 1.6;
}

.quick-reference-content li {
  margin-bottom: 0.5rem;
}

.quick-reference-content strong {
  color: #212529;
  font-weight: 600;
}

.quick-reference-content a {
  color: #667eea;
  text-decoration: none;
}

.quick-reference-content a:hover {
  text-decoration: underline;
}

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

.data-section {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e9ecef;
  background: #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-header h2 {
  font-size: 1.25rem;
  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.875rem;
  margin: 0;
}

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

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

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

.data-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: #495057;
  font-size: 0.875rem;
  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: 1rem 1.5rem;
  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: 32px;
  height: 32px;
  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.875rem;
  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;
  }

  .quick-reference-container {
    padding: 1rem;
  }

  .quick-reference-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .quick-reference-card-header {
    padding: 1rem;
  }

  .quick-reference-content {
    padding: 1rem;
  }

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

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

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