/* Workspace charts share the existing palette and remain readable without JavaScript. */
.stat-grid .stat-heading {
  gap: 8px;
}
.stat-grid .stat-heading > span {
  min-width: 0;
}
.stat-grid .stat-heading > svg {
  flex: 0 0 17px;
}
.dashboard-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 27px;
}
.dashboard-chart-grid > .panel {
  min-width: 0;
  margin: 0;
}
.dashboard-chart-wide {
  grid-column: 1 / -1;
}
.dashboard-chart-caption {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.dashboard-donut-layout {
  display: grid;
  grid-template-columns: minmax(140px, 0.85fr) minmax(150px, 1fr);
  align-items: center;
  gap: 22px;
}
.dashboard-donut {
  display: block;
  width: min(100%, 225px);
  margin: 0 auto;
  overflow: visible;
}
.dashboard-donut-track {
  fill: none;
  stroke: #eef2f5;
  stroke-width: 5;
}
.dashboard-donut-segment {
  fill: none;
  stroke-width: 5;
}
.dashboard-state-healthy {
  stroke: #288d80;
}
.dashboard-state-expiring {
  stroke: #d8a34c;
}
.dashboard-state-pending {
  stroke: #4d83b8;
}
.dashboard-state-expired {
  stroke: #aa6c83;
}
.dashboard-state-revoked {
  stroke: #8796a5;
}
/* Chart text must not inherit the outline used by the shared SVG icons. */
.dashboard-donut text,
.dashboard-bars text {
  stroke: none;
}
.dashboard-donut-number {
  fill: var(--ink);
  font-size: 5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.dashboard-donut-label {
  fill: var(--muted);
  font-size: 2.5px;
}
.dashboard-chart-legend {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dashboard-chart-legend li {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0;
  color: #536572;
  font-size: 12px;
}
.dashboard-chart-legend strong {
  margin-left: auto;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dashboard-chart-swatch {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}
.dashboard-chart-swatch.dashboard-state-healthy {
  background: #288d80;
}
.dashboard-chart-swatch.dashboard-state-expiring {
  background: #d8a34c;
}
.dashboard-chart-swatch.dashboard-state-pending {
  background: #4d83b8;
}
.dashboard-chart-swatch.dashboard-state-expired {
  background: #aa6c83;
}
.dashboard-chart-swatch.dashboard-state-revoked {
  background: #8796a5;
}
.dashboard-bar-scroll {
  max-width: 100%;
  overflow-x: auto;
}
.dashboard-bars {
  width: 100%;
  min-width: 560px;
  height: auto;
  display: block;
}
.dashboard-chart-gridline {
  stroke: #e6edf0;
  stroke-width: 1;
}
.dashboard-bar {
  fill: #288d80;
}
.dashboard-bar-expiry {
  fill: #d8a34c;
}
.dashboard-chart-value,
.dashboard-chart-label,
.dashboard-chart-axis {
  fill: #536572;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.dashboard-chart-value {
  fill: var(--ink);
  font-weight: 600;
}
.dashboard-chart-dataset {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
}
.dashboard-chart-dataset span {
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 1100px) {
  .dashboard-chart-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .dashboard-donut-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .dashboard-donut {
    width: 180px;
  }
}
