.dashboard-page {
  padding-bottom: 32px;
}

.state-card {
  border-radius: 8px;
  border: 1px solid var(--danger-border);
  background: var(--danger-bg);
  text-align: center;
  padding: 8px 0 4px;
}

.state-title {
  font-size: 14px;
  font-weight: 750;
  color: var(--danger-text);
  margin-bottom: 6px;
}

.state-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.overview-board {
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.overview-board :deep(.el-card__body) {
  padding: 20px 22px 16px;
}

.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: -4px 0 14px;
  flex-wrap: wrap;
}

.board-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.dash-updated {
  font-size: 11px;
  color: #9b9489;
}

.kpi-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.kpi-primary {
  grid-template-columns: repeat(4, 1fr);
}

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

.kpi-cell {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: #fbfaf7;
}

.kpi-cell.compact {
  padding: 10px 12px;
}

.kpi-cell--link {
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.kpi-cell--link:hover,
.kpi-cell--link:focus-visible {
  border-color: #d5cfc3;
  background: var(--accent-hover);
  outline: none;
}

.kpi-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.kpi-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: 0;
}

.kpi-value.sm {
  font-size: 17px;
}

.kpi-sub {
  display: block;
  font-size: 11px;
  color: #9b9489;
  margin-top: 4px;
}

.kpi-delta {
  display: inline-block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 750;
  color: var(--text-muted);
  padding: 2px 6px;
  border-radius: 4px;
  background: #f0ede6;
}

.kpi-delta.up {
  color: var(--success-text);
  background: var(--success-bg);
}

.kpi-delta.down {
  color: var(--danger-text);
  background: var(--danger-bg);
}

.charts-stack {
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
}

.chart-main-caption {
  font-size: 11px;
  color: #9b9489;
  text-align: center;
  margin: -8px 0 8px;
}

.charts-stack :deep(.chart-panel) {
  border: none;
  background: transparent;
  padding: 8px 0 0;
}

.charts-stack :deep(.chart-title:empty) {
  display: none;
}

.chart-dist {
  margin-top: 4px;
}

@media (max-width: 1200px) {
  .kpi-primary,
  .kpi-secondary {
    grid-template-columns: repeat(2, 1fr);
  }
}

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