.report-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}

.report-range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.report-range__label {
  font-weight: 600;
  color: var(--color-body);
}

.report-range .input {
  width: 148px;
  font-variant-numeric: tabular-nums;
}

.table td.negative {
  color: var(--tone-danger-fg);
}

.table .table__total td {
  border-top: 1px solid var(--color-border);
  border-bottom: 0;
  background: var(--color-surface);
  color: var(--color-ink);
  font-weight: 600;
}

.table tbody .table__total:hover td {
  background: var(--color-surface);
}

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
}

.share__ring {
  position: relative;
  flex: 0 0 168px;
  width: 168px;
  height: 168px;
}

.share__ring svg {
  width: 100%;
  height: 100%;
}

.share__track,
.share__slice {
  fill: none;
  stroke-width: 5;
}

.share__track {
  stroke: var(--color-surface);
}

.share-1 {
  stroke: var(--chart-primary);
  background: var(--chart-primary);
}

.share-2 {
  stroke: var(--chart-second);
  background: var(--chart-second);
}

.share-3 {
  stroke: var(--chart-third);
  background: var(--chart-third);
}

.share-4 {
  stroke: var(--chart-fourth);
  background: var(--chart-fourth);
}

.share-5 {
  stroke: var(--chart-fifth);
  background: var(--chart-fifth);
}

.share-6 {
  stroke: var(--chart-sixth);
  background: var(--chart-sixth);
}

.share__total {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.share__total-value {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-ink);
}

.share__total-label {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.share__legend {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.share__item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto 56px;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
}

.share__item:last-child {
  border-bottom: 0;
}

.share__swatch {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-badge);
}

.share__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--color-body);
}

.share__value {
  color: var(--color-ink);
  font-weight: 600;
}

.share__percent {
  text-align: right;
  color: var(--color-muted);
}
