.dashboard {
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.title-icon {
  width: 44px;
  height: 44px;
  background-color: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
}

.welcome {
  color: #64748b;
  font-size: 0.9375rem;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

.summary-card {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.summary-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1e293b;
  font-weight: 500;
}

.summary-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.summary-link {
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.success {
  background-color: #dcfce7;
  color: #166534;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: relative;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blue .stat-icon-wrapper {
  background-color: #eff6ff;
  color: #3b82f6;
}

.purple .stat-icon-wrapper {
  background-color: #f5f3ff;
  color: #8b5cf6;
}

.green .stat-icon-wrapper {
  background-color: #f0fdf4;
  color: #22c55e;
}

.stat-change-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: #f0f9ff;
  color: #0369a1;
  margin-right: 3.5rem;
}

.purple .stat-change-badge {
  background-color: #faf5ff;
  color: #7e22ce;
}

.green .stat-change-badge {
  background-color: #f0fdf4;
  color: #15803d;
}

.progress-container {
  margin-bottom: 1.25rem;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 6px;
  background-color: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
}

.blue .progress-fill {
  background-color: #3b82f6;
}

.purple .progress-fill {
  background-color: #8b5cf6;
}

.green .progress-fill {
  background-color: #22c55e;
}

.stat-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: #64748b;
}

.view-all {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary);
  font-weight: 500;
}

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

.table-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.table-header {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f1f5f9;
}

.table-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.title-icon-small {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-icon-small.blue {
  background-color: #eff6ff;
  color: #3b82f6;
}

.title-icon-small.purple {
  background-color: #f5f3ff;
  color: #8b5cf6;
}

.title-icon-small.blue-light {
  background-color: #f1f5f9;
  color: #64748b;
}

.table-title h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.table-title p {
  font-size: 0.75rem;
  color: #94a3b8;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8125rem;
}

.btn-secondary {
  background-color: #6366f1;
  color: white;
}

.thead {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 0.75rem 1.5rem;
  background-color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
}

.table-body {
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-text {
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Dashboard Table Styles */
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table th {
  text-align: left;
  padding: 0.75rem 1.5rem;
  background-color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid #f1f5f9;
}

.dashboard-table td {
  padding: 0.75rem 1.5rem;
  color: #334155;
  font-size: 0.875rem;
  border-bottom: 1px solid #f1f5f9;
}

.dashboard-table tr:last-child td {
  border-bottom: none;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  transition: color 0.2s;
  padding: 0.25rem;
}

.btn-icon:hover {
  color: var(--primary);
}

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