.dashboard-head {
  align-items: center;
}

.dashboard-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  gap: 16px;
  margin-bottom: 16px;
}

.overview-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  min-height: 230px;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(22, 119, 255, 0.10), rgba(19, 194, 194, 0.06)),
    #fff;
}

.overview-kicker {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e6f4ff;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 12px;
}

.overview-copy h2 {
  margin: 18px 0 8px;
  color: #0f1f35;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
}

.overview-copy p {
  max-width: 560px;
  margin: 0;
  color: var(--color-muted);
  line-height: 1.8;
}

.overview-rings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.ring-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 14px 8px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.ring-card strong {
  font-size: 13px;
}

.ring {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) calc(var(--value) * 1%), #edf2f7 0);
}

.ring::before {
  content: "";
  position: absolute;
}

.ring span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: #0f1f35;
  font-weight: 800;
}

.overview-side {
  overflow: hidden;
}

.overview-img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.metric-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-weight: 800;
}

.metric-icon.blue {
  background: #e6f4ff;
  color: #1677ff;
}

.metric-icon.cyan {
  background: #e6fffb;
  color: #13c2c2;
}

.metric-icon.green {
  background: #f6ffed;
  color: #52c41a;
}

.metric-icon.orange {
  background: #fff7e6;
  color: #fa8c16;
}

.metric-trend {
  margin-top: 6px;
  font-size: 12px;
}

.metric-trend.up {
  color: #52c41a;
}

.metric-trend.warn {
  color: #faad14;
}

.metric-trend.danger {
  color: #ff4d4f;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-grid.bottom {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

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

.panel-head .section-title {
  margin: 0;
}

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

.column-chart {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  height: 236px;
}

.chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 4px 0 28px;
  color: var(--color-muted);
  font-size: 12px;
}

.chart-plot {
  position: relative;
  min-width: 0;
  padding-top: 8px;
}

.chart-gridline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: #edf1f7;
}

.chart-gridline:nth-child(1) {
  top: 8px;
}

.chart-gridline:nth-child(2) {
  top: 52px;
}

.chart-gridline:nth-child(3) {
  top: 96px;
}

.chart-gridline:nth-child(4) {
  top: 140px;
}

.chart-gridline:nth-child(5) {
  top: 184px;
}

.chart-bars {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(32px, 1fr));
  gap: 18px;
  align-items: end;
  height: 214px;
  padding: 0 6px;
}

.column-item {
  display: grid;
  grid-template-rows: 20px 166px 20px;
  gap: 6px;
  justify-items: center;
  align-items: end;
  height: 100%;
  color: var(--color-muted);
  font-size: 12px;
}

.column-item strong {
  color: #3b4a5f;
  font-size: 12px;
  font-weight: 700;
}

.column {
  width: min(42px, 74%);
  min-height: 12px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #69b1ff 0%, #1677ff 100%);
  box-shadow: 0 6px 14px rgba(22, 119, 255, 0.18);
}

.donut-wrap {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: center;
  min-height: 220px;
}

.donut {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(#1677ff 0 52%, #13c2c2 52% 70%, #52c41a 70% 94%, #fa8c16 94% 100%);
  position: relative;
}

.donut::after {
  content: "业务结构";
  position: absolute;
  inset: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--color-muted);
  font-weight: 700;
  font-size: 13px;
}

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

.legend-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--color-muted);
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
}

.legend-dot.blue {
  background: #1677ff;
}

.legend-dot.cyan {
  background: #13c2c2;
}

.legend-dot.green {
  background: #52c41a;
}

.legend-dot.orange {
  background: #fa8c16;
}

.todo-list,
.risk-list,
.entry-list {
  display: grid;
  gap: 10px;
}

.todo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-align: left;
}

.todo-item:hover {
  border-color: #91caff;
  background: #f5faff;
}

.todo-item strong,
.todo-item em {
  display: block;
}

.todo-item em {
  margin-top: 4px;
  color: var(--color-muted);
  font-style: normal;
  font-size: 12px;
}

.risk-item {
  padding: 12px;
  border-left: 3px solid #1677ff;
  border-radius: 6px;
  background: #f7fbff;
}

.risk-item strong,
.risk-item span {
  display: block;
}

.risk-item span {
  margin-top: 5px;
  color: var(--color-muted);
  font-size: 12px;
}

.risk-item.danger {
  border-left-color: #ff4d4f;
  background: #fff2f0;
}

.risk-item.warn {
  border-left-color: #faad14;
  background: #fffbe6;
}

.risk-item.info {
  border-left-color: #1677ff;
  background: #e6f4ff;
}

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

.activity-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.activity-item:last-child {
  border-bottom: 0;
}

@media (max-width: 1280px) {
  .dashboard-overview,
  .overview-main,
  .dashboard-grid,
  .dashboard-grid.bottom {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .metric-grid,
  .overview-rings,
  .donut-wrap {
    grid-template-columns: 1fr;
  }
}
