.dashboard-page {
  width: 100%;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.kpi-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.kpi-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 8px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f9fafb;
}

@media (max-width: 900px) {
  .kpi-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }
}





.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.analytics-grid .wide {
  grid-column: 1 / -1;
}

.chart-panel {
  min-height: 360px;
}

.chart-panel canvas {
  width: 100% !important;
  height: 280px !important;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-header h3 {
  margin: 0;
}

.chart-filter {
  max-width: 240px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

@media (max-width: 900px) {
  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .chart-filter {
    max-width: 100%;
  }
}