/* 概览看板：主色 #ff434f，图表结构参考运营大屏 */
.dash-board { display: flex; flex-direction: column; gap: 16px; }
.dash-head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.dash-clock { display: flex; align-items: baseline; gap: 12px; color: var(--text-color-darker); }
.dash-clock strong { font-size: 26px; letter-spacing: 1px; color: var(--primary-color); font-weight: 600; }
.dash-clock span { font-size: 13px; color: var(--text-color-gray); }
.dash-head-mark {
  font-size: 15px; font-weight: 600; color: #fff; background: var(--primary-color);
  padding: 6px 18px 6px 14px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%);
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.dash-kpi {
  background: #fff; border-radius: 4px; padding: 16px 14px 14px;
  box-shadow: var(--card-shadow); text-align: center;
}
.dash-kpi-n {
  font-size: 28px; font-weight: 700; color: var(--primary-color); line-height: 1.2;
  border-bottom: 2px solid var(--primary-color); display: inline-block; padding: 0 6px 4px;
  min-width: 64px;
}
.dash-kpi-l { margin-top: 10px; font-size: 13px; color: var(--text-color-gray); }
.dash-kpi-s { margin-top: 4px; font-size: 12px; color: var(--text-color-light-gray, #c6c6c6); }

.dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}
.dash-grid.three { grid-template-columns: 1.2fr 1fr 1fr; }
.dash-span2 { grid-column: span 2; }

.dash-panel {
  background: #fff; border-radius: 4px; padding: 16px 16px 18px;
  box-shadow: var(--card-shadow); min-width: 0;
}
.dash-ptitle {
  display: inline-block; margin: 0 0 14px; font-size: 14px; font-weight: 600; color: #fff;
  background: linear-gradient(90deg, var(--primary-color), #ff6b75);
  padding: 5px 16px 5px 12px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
}

.dash-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; font-size: 12px; color: #727272; }
.dash-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }

.dash-vchart {
  display: flex; align-items: flex-end; gap: 8px; height: 180px;
  border-bottom: 1px solid #eef0f2; padding: 0 4px 4px; overflow-x: auto;
}
.dash-vcol { flex: 1; min-width: 36px; display: flex; flex-direction: column; align-items: center; height: 100%; }
.dash-vgroup { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 100%; }
.dash-vbar { width: 10px; border-radius: 2px 2px 0 0; min-height: 0; }
.dash-vxl { margin-top: 6px; font-size: 11px; color: #8b8b8b; white-space: nowrap; }

.dash-hbars { display: flex; flex-direction: column; gap: 8px; }
.dash-hrow { display: grid; grid-template-columns: 64px 1fr 56px; align-items: center; gap: 8px; font-size: 12px; }
.dash-hlab { color: #727272; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-htrack { height: 14px; background: #eef2f4; border-radius: 2px; overflow: hidden; }
.dash-htrack span { display: block; height: 100%; border-radius: 2px; min-width: 0; }
.dash-hval { color: var(--primary-color); font-weight: 600; text-align: right; }

.dash-rings { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-around; }
.dash-ring { width: 120px; text-align: center; }
.dash-ring svg { width: 108px; height: 108px; }
.dash-ring circle { fill: none; stroke-width: 10; }
.dash-ring circle.bg { stroke: #eef2f4; }
.dash-ring circle.fg { stroke-linecap: round; }
.dash-ring .pct { font-size: 16px; font-weight: 700; fill: var(--text-color-darker); }
.dash-ring .num { font-size: 10px; fill: #8b8b8b; }
.dash-ring-l { font-size: 12px; color: #727272; margin-top: 2px; }

.dash-meters { display: flex; flex-direction: column; gap: 14px; }
.dash-meter { display: flex; flex-direction: column; gap: 6px; }
.dash-mseg { display: flex; gap: 4px; }
.dash-mseg i {
  flex: 1; height: 14px; background: #dfe6ea; border-radius: 2px;
}
.dash-mseg i.on { box-shadow: 0 0 0 1px rgba(255,67,79,.08); }
.dash-mlab { font-size: 13px; color: #727272; }
.dash-mlab b { color: var(--primary-color); margin-left: 8px; font-size: 16px; }

.dash-feed {
  list-style: none; max-height: 280px; overflow: auto; margin: 0; padding: 0;
}
.dash-feed li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center;
  padding: 8px 0; border-bottom: 1px dashed #eef0f2; font-size: 13px;
}
.dash-ft { color: #2e2e2e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-fm { color: #8b8b8b; font-size: 12px; white-space: nowrap; }
.dash-ftag {
  font-style: normal; font-size: 12px; color: var(--primary-color);
  background: rgba(255,67,79,.1); padding: 1px 6px; border-radius: 3px; white-space: nowrap;
}

@media (max-width: 1100px) {
  .dash-grid, .dash-grid.three { grid-template-columns: 1fr; }
  .dash-span2 { grid-column: span 1; }
}
