/* Inline SVG charts, report heatmap/bars, OKR rollup flow diagram. Tokens live in site.css. */

/* Simple inline SVG charts (no external JS libs) */
.hits-donut {
  width: 7.25rem;
  height: 7.25rem;
}

.hits-donut__track {
  fill: none;
  stroke: rgba(15, 23, 42, 0.1);
  stroke-width: 12;
}

.hits-donut__value {
  fill: none;
  stroke: var(--hits-primary);
  stroke-width: 12;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
  stroke-dasharray: 0 999;
}

.hits-donut__label {
  font-weight: 800;
  font-size: 16.2px;
  fill: #0f172a;
}

.hits-mini-bars {
  width: 100%;
  height: auto;
}

.hits-mini-bars__axis {
  stroke: rgba(15, 23, 42, 0.12);
  stroke-width: 2;
}

.hits-mini-bars__bar {
  fill: rgba(var(--hits-primary-rgb), 0.22);
  stroke: rgba(var(--hits-primary-rgb), 0.65);
  stroke-width: 2;
}

.hits-mini-bars__value {
  font-weight: 800;
  font-size: 12.6px;
  fill: #0f172a;
}

.hits-mini-bars__caption {
  font-size: 10.8px;
  fill: #64748b;
}

.chart-bars {
  height: 12rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.75rem;
}

.chart-bars span {
  display: inline-block;
  width: 2rem;
  min-height: 1rem;
  background: linear-gradient(180deg, var(--hits-primary), var(--hits-navy));
  border-radius: 0.35rem 0.35rem 0 0;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.75rem;
}

.heatmap-cell {
  display: flex;
  min-height: 8rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.85rem;
  text-align: left;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 0.75rem;
}

/* OKR delivery rollup explainer (tasks → initiatives → KR) */
.okr-flow-diagram {
  --okr-flow-muted: rgba(15, 23, 42, 0.55);
}

.okr-flow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.25rem;
}

.okr-flow-box {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: #fff;
  white-space: nowrap;
}

.okr-flow-arrow {
  color: var(--okr-flow-muted);
  font-size: 0.75rem;
  user-select: none;
}

[data-bs-theme="dark"] .hits-donut__label,
[data-bs-theme="dark"] .hits-mini-bars__value {
  fill: var(--bs-body-color);
}

[data-bs-theme="dark"] .hits-mini-bars__caption {
  fill: var(--bs-secondary-color);
}

[data-bs-theme="dark"] .hits-mini-bars__axis {
  stroke: var(--bs-border-color);
}

[data-bs-theme="dark"] .chart-bars {
  background: var(--bs-secondary-bg);
}

[data-bs-theme="dark"] .heatmap-cell,
[data-bs-theme="dark"] .okr-flow-box {
  background: var(--bs-secondary-bg);
  border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .okr-flow-diagram {
  --okr-flow-muted: var(--bs-secondary-color);
}
