.reporting-page {
  max-width: 80rem;
}

.reporting-page-departmental {
  max-width: none;
  padding-top: var(--space-4);
}

.reporting-panel-heading,
.reporting-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.reporting-panel h2,
.reporting-section h2,
.reporting-section h3 {
  margin: 0;
  color: var(--color-text-primary);
}

.reporting-domain-label {
  color: var(--color-selected-text);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.reporting-panel-heading p,
.reporting-section-heading p,
.reporting-summary p,
.reporting-alert p {
  margin: var(--space-1) 0 0;
  color: var(--color-text-secondary);
}

.reporting-demo-note {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  white-space: nowrap;
}

.reporting-context-actions {
  display: grid;
  flex: 0 0 auto;
  margin-left: auto;
  justify-items: end;
  gap: var(--space-3);
}

.reporting-intro-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.reporting-period-control,
.reporting-scope {
  min-height: var(--target-size-touch);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-secondary);
}

.reporting-period-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: 10.5rem;
  min-width: 10.5rem;
}

.reporting-period-control > .icon:first-child {
  margin-left: var(--space-3);
}

.reporting-period-control > .icon:last-child {
  margin-right: var(--space-3);
  pointer-events: none;
}

.reporting-period-control select {
  width: 100%;
  min-width: 0;
  min-height: calc(var(--target-size-touch) - 2px);
  padding: 0 var(--space-2);
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--color-text-primary);
  cursor: pointer;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
}

.reporting-period-control:focus-within {
  outline: var(--focus-ring-width) solid var(--color-focus-ring);
  outline-offset: var(--focus-ring-offset);
}

.reporting-period-control select:focus-visible {
  outline: 0;
}

.reporting-scope {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-3);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}

.reporting-domain + .reporting-domain {
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-subtle);
}

.reporting-page-departmental .reporting-domain + .reporting-domain {
  margin-top: var(--space-4);
  padding-top: 0;
  border-top: 0;
}

.reporting-domain-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.reporting-domain-heading h2 {
  margin: var(--space-1) 0 0;
  color: var(--color-text-primary);
  font-size: var(--font-size-xl);
}

.reporting-domain-heading p {
  max-width: 48rem;
  margin: var(--space-1) 0 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.reporting-domain-note {
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  background: var(--color-surface-subtle);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  white-space: nowrap;
}

.reporting-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 var(--space-6);
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.reporting-summary > div {
  min-width: 0;
  padding: var(--space-4);
  border-right: 1px solid var(--color-border-subtle);
}

.reporting-summary > div:last-child {
  border-right: 0;
}

.reporting-summary dt,
.reporting-table-head,
.reporting-table-row span,
.reporting-people-row span {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.reporting-summary dd {
  margin: var(--space-1) 0 0;
  color: var(--color-text-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

.reporting-revenue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.reporting-project-empty {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.reporting-project-empty > .icon {
  flex: 0 0 auto;
  color: var(--color-status-info-text);
}

.reporting-project-empty h3,
.reporting-project-empty p {
  margin: 0;
}

.reporting-project-empty h3 {
  color: var(--color-text-primary);
  font-size: var(--font-size-lg);
}

.reporting-project-empty p {
  margin-top: var(--space-1);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.reporting-panel h3 {
  margin: 0;
  color: var(--color-text-primary);
  font-size: var(--font-size-lg);
}

.reporting-bars {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}

.reporting-bar-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
}

.reporting-bar-copy > span {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
}

.reporting-bar-copy > span:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
}

.reporting-bar-copy strong {
  display: inline-grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 50%;
  background: var(--color-selected-bg);
  color: var(--color-selected-text);
  font-size: var(--font-size-xs);
}

.reporting-bar-copy small {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-regular);
}

.reporting-bar-track {
  display: block;
  overflow: hidden;
  height: .5rem;
  margin-top: var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--color-surface-panel);
}

.reporting-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--color-selected);
}

.reporting-revenue-panel:nth-child(2) .reporting-bar-track i {
  background: var(--color-status-info-solid);
}

.reporting-project-data {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.reporting-project-data table {
  font-variant-numeric: tabular-nums;
}

.reporting-summary p {
  font-size: var(--font-size-xs);
}

.reporting-summary-trend {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.reporting-summary-trend-arrow {
  flex: 0 0 auto;
  font-size: var(--font-size-md);
  line-height: 1;
}

.reporting-summary .reporting-summary-trend-success {
  color: var(--color-status-success-text);
}

.reporting-summary .reporting-summary-trend-danger {
  color: var(--color-status-danger-text);
}

.reporting-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(18rem, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.reporting-insight-grid-departmental {
  align-items: start;
  grid-template-columns: minmax(18rem, 1fr) minmax(0, 1.7fr);
}

.reporting-panel,
.reporting-section {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.reporting-panel {
  padding: var(--space-4);
}

.reporting-panel h2,
.reporting-section h2,
.reporting-section h3 {
  font-size: var(--font-size-lg);
}

.reporting-panel-heading p,
.reporting-section-heading p {
  font-size: var(--font-size-sm);
}

.reporting-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
}

.reporting-legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.reporting-legend i {
  display: inline-block;
  width: 1.25rem;
  border-top: 2px solid var(--color-status-info-solid);
}

.reporting-legend .reporting-legend-created {
  border-color: var(--color-status-review-solid);
}

.reporting-chart-layout {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.reporting-chart-plot {
  min-width: 0;
}

.reporting-axis {
  position: relative;
  min-width: 2.5ch;
  height: 13rem;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
}

.reporting-axis span {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
}

.reporting-axis span:nth-child(1) { top: 8%; }
.reporting-axis span:nth-child(2) { top: 31%; }
.reporting-axis span:nth-child(3) { top: 54%; }
.reporting-axis span:nth-child(4) { top: 77%; }
.reporting-axis span:nth-child(5) { top: 100%; }

.reporting-chart {
  display: block;
  width: 100%;
  height: 13rem;
  overflow: visible;
}

.reporting-area {
  fill: url("#reportingAreaGradient");
  stroke: none;
}

.reporting-area-start {
  stop-color: var(--color-status-info-solid);
  stop-opacity: 0.28;
}

.reporting-area-end {
  stop-color: var(--color-status-review-solid);
  stop-opacity: 0;
}

.reporting-gridline {
  fill: none;
  stroke: var(--color-border-subtle);
  stroke-dasharray: 2 3;
  stroke-width: 1;
}

.reporting-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}

.reporting-line-completed {
  filter: drop-shadow(0 0 2px var(--color-status-info-solid));
  stroke: var(--color-status-info-solid);
}

.reporting-line-created {
  filter: drop-shadow(0 0 2px var(--color-status-review-solid));
  stroke: var(--color-status-review-solid);
}

.reporting-chart-labels {
  display: grid;
  margin-top: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  text-align: center;
}

.reporting-chart-labels span:first-child {
  text-align: left;
}

.reporting-chart-labels span:last-child {
  text-align: right;
}

.reporting-data-table {
  margin-top: var(--space-4);
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
}

.reporting-data-table summary {
  cursor: pointer;
  color: var(--color-link);
  font-weight: var(--font-weight-semibold);
}

.reporting-data-table table {
  width: 100%;
  margin-top: var(--space-3);
  border-collapse: collapse;
}

.reporting-data-table th,
.reporting-data-table td {
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-border-subtle);
  text-align: right;
}

.reporting-data-table td {
  font-variant-numeric: tabular-nums;
}

.reporting-data-table th:first-child {
  text-align: left;
}

.reporting-alerts ul {
  display: grid;
  gap: 0;
  margin: var(--space-4) 0 0;
  padding: 0;
  border-top: 1px solid var(--color-border-subtle);
  list-style: none;
}

.reporting-alert {
  position: relative;
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-subtle);
}

.reporting-alert:last-child {
  border-bottom: 0;
}

.reporting-alert::before {
  position: absolute;
  inset-block: var(--space-2);
  inset-inline-start: 0;
  width: .1875rem;
  border-radius: 999px;
  content: "";
}

.reporting-alert svg {
  flex: 0 0 auto;
  margin-top: .0625rem;
}

.reporting-alert-danger {
  background: var(--color-status-danger-bg);
}

.reporting-alert-danger svg {
  color: var(--color-status-danger-text);
}

.reporting-alert-danger::before {
  background: var(--color-status-danger-solid);
}

.reporting-alert-warning svg {
  color: var(--color-status-warning-text);
}

.reporting-alert-warning::before {
  background: var(--color-status-warning-solid);
}

.reporting-alert-info svg {
  color: var(--color-status-info-text);
}

.reporting-alert-info::before {
  background: var(--color-status-info-solid);
}

.reporting-alert strong {
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
}

.reporting-alert p {
  font-size: var(--font-size-xs);
}

.reporting-section {
  margin-top: var(--space-4);
}

.reporting-insight-grid + .reporting-department-summary {
  margin-top: 0;
}

.reporting-department-summary {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) auto minmax(0, 2.4fr);
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
}

.reporting-department-summary-copy h3,
.reporting-department-summary-copy p,
.reporting-department-summary-metrics {
  margin: 0;
}

.reporting-department-summary-copy p {
  margin-top: var(--space-1);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.reporting-department-summary .reporting-ring {
  width: 4.75rem;
  margin: 0;
}

.reporting-department-summary .reporting-ring strong {
  font-size: var(--font-size-lg);
}

.reporting-department-summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reporting-department-summary-metrics > div {
  min-width: 0;
  padding: var(--space-2) var(--space-4);
  border-left: 1px solid var(--color-border-subtle);
}

.reporting-department-summary-metrics dt {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.reporting-department-summary-metrics dd {
  margin: var(--space-1) 0 0;
  color: var(--color-text-primary);
  font-size: var(--font-size-lg);
  font-variant-numeric: tabular-nums;
  font-weight: var(--font-weight-semibold);
}

.reporting-department-summary-metrics dd.has-overdue {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-status-warning-text);
}

.reporting-section-heading {
  align-items: center;
  padding: var(--space-4);
}

.reporting-section-heading > div:first-child {
  min-width: 0;
}

.reporting-section-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--space-2);
}

.reporting-view-switcher {
  padding: 0;
  overflow: hidden;
}

.reporting-view-switcher button {
  min-height: var(--control-height-sm);
  border-radius: 0;
  font-weight: var(--font-weight-semibold);
}

.reporting-view-switcher button + button {
  border-left: 1px solid var(--color-border-subtle);
}

.reporting-sort-trigger {
  min-height: var(--control-height-sm);
}

.reporting-view-panel-visual {
  border-top: 1px solid var(--color-border-subtle);
}

.reporting-department-visual {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.reporting-department-card {
  min-width: 0;
  padding: var(--space-4);
}

.reporting-department-card + .reporting-department-card {
  border-left: 1px solid var(--color-border-subtle);
}

.reporting-department-card h4,
.reporting-person-card h4 {
  margin: 0;
  color: var(--color-text-primary);
  font-size: var(--font-size-md);
}

.reporting-department-card h4 {
  text-align: center;
}

.reporting-ring {
  position: relative;
  display: grid;
  width: 6.5rem;
  aspect-ratio: 1;
  margin: var(--space-3) auto var(--space-4);
  place-items: center;
}

.reporting-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.reporting-ring circle {
  fill: none;
  stroke-width: 4;
}

.reporting-ring-track {
  stroke: var(--color-surface-panel);
}

.reporting-ring-value {
  stroke: var(--color-status-info-solid);
  stroke-linecap: round;
}

.reporting-ring-review .reporting-ring-value {
  stroke: var(--color-status-review-solid);
}

.reporting-ring > span {
  position: relative;
  display: grid;
  justify-items: center;
  line-height: 1.1;
  text-align: center;
}

.reporting-ring strong {
  color: var(--color-text-primary);
  font-size: var(--font-size-2xl);
  font-variant-numeric: tabular-nums;
}

.reporting-ring small {
  margin-top: var(--space-1);
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
}

.reporting-visual-metrics,
.reporting-person-bars {
  display: grid;
  gap: var(--space-3);
}

.reporting-visual-progress {
  display: grid;
  gap: var(--space-2);
}

.reporting-visual-progress > span,
.reporting-overdue,
.reporting-resolution {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
}

.reporting-visual-progress strong,
.reporting-overdue > span,
.reporting-resolution > span {
  font-weight: var(--font-weight-regular);
}

.reporting-visual-progress b,
.reporting-overdue strong,
.reporting-resolution strong {
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
  font-weight: var(--font-weight-semibold);
}

.reporting-visual-progress progress {
  width: 100%;
  height: .4rem;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-surface-panel);
  accent-color: var(--color-status-info-solid);
}

.reporting-visual-progress progress::-webkit-progress-bar {
  border-radius: inherit;
  background: var(--color-surface-panel);
}

.reporting-visual-progress progress::-webkit-progress-value {
  border-radius: inherit;
  background: var(--color-status-info-solid);
}

.reporting-visual-progress progress::-moz-progress-bar {
  border-radius: inherit;
  background: var(--color-status-info-solid);
}

.reporting-visual-progress-review progress {
  accent-color: var(--color-status-review-solid);
}

.reporting-visual-progress-review progress::-webkit-progress-value,
.reporting-visual-progress-review progress::-moz-progress-bar {
  background: var(--color-status-review-solid);
}

.reporting-overdue strong {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-status-success-text);
}

.reporting-overdue.has-overdue strong {
  color: var(--color-status-warning-text);
}

.reporting-resolution {
  align-items: flex-start;
  flex-direction: column;
  gap: var(--space-1);
}

.reporting-people-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reporting-person-card {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(8rem, 1fr) auto minmax(9rem, 1.2fr);
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
}

.reporting-person-card:nth-child(even) {
  border-left: 1px solid var(--color-border-subtle);
}

.reporting-person-card:nth-child(n + 3) {
  border-top: 1px solid var(--color-border-subtle);
}

.reporting-person-avatar {
  display: grid;
  width: 2.75rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--color-selected-bg);
  color: var(--color-selected-text);
  font-weight: var(--font-weight-bold);
}

.reporting-person-identity {
  min-width: 0;
}

.reporting-person-identity p,
.reporting-person-identity time {
  display: block;
  margin: var(--space-1) 0 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-xs);
}

.reporting-person-identity time {
  color: var(--color-text-muted);
}

.reporting-person-card .reporting-ring {
  width: 5.75rem;
  margin: 0;
}

.reporting-department-summary .reporting-ring small,
.reporting-person-card .reporting-ring small {
  margin-top: 0;
}

.reporting-person-card .reporting-ring strong {
  font-size: var(--font-size-xl);
}

.reporting-table {
  overflow: clip;
  border-top: 1px solid var(--color-border-subtle);
}

.reporting-table-head {
  position: sticky;
  top: var(--layout-topbar-height);
  z-index: var(--z-sticky);
}

.reporting-table-head,
.reporting-table-row {
  display: grid;
  grid-template-columns: var(--table-columns, minmax(12rem, 1.7fr) repeat(4, minmax(5rem, 1fr)));
  gap: var(--space-3);
  align-items: center;
}

.reporting-table-row {
  min-height: var(--layout-row-height);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border-subtle);
}

.reporting-table-row:first-of-type {
  border-top: 0;
}

.reporting-table-row strong {
  color: var(--color-text-primary);
}

.reporting-table-row span {
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}

.reporting-people-head,
.reporting-people-row {
  grid-template-columns: var(--table-columns, minmax(10rem, 1.45fr) minmax(8rem, 1fr) minmax(9rem, 1.15fr) repeat(3, minmax(5rem, .75fr)));
}

/* Responsive reporting overrides. */
@media (max-width: 74rem) {
  .reporting-insight-grid {
    grid-template-columns: 1fr;
  }

  .reporting-department-visual {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reporting-department-card:nth-child(4) {
    border-left: 0;
  }

  .reporting-department-card:nth-child(n + 4) {
    border-top: 1px solid var(--color-border-subtle);
  }
}

@media (max-width: 62rem) {
  .reporting-revenue-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .reporting-table {
    overflow: visible;
  }

  .reporting-table-head {
    position: static;
  }

  .reporting-context-actions {
    width: 100%;
    justify-items: start;
  }
}

@media (max-width: 46rem) {
  .reporting-page-departmental {
    padding-top: var(--space-6);
  }

  .reporting-domain-heading,
  .reporting-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .reporting-summary > div:nth-child(2) {
    border-right: 0;
  }

  .reporting-summary > div:nth-child(n + 3) {
    border-top: 1px solid var(--color-border-subtle);
  }

  .reporting-domain-note {
    white-space: normal;
  }

  .reporting-bar-copy {
    align-items: flex-start;
  }

  .reporting-bar-copy > span:last-child {
    align-items: flex-end;
    flex-direction: column;
    gap: 0;
  }

  .reporting-chart {
    height: 10rem;
  }

  .reporting-axis {
    height: 10rem;
  }

  .reporting-data-table {
    overflow-x: auto;
  }

  .reporting-table-head {
    display: none;
  }

  .reporting-table-row,
  .reporting-people-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2) var(--space-3);
  }

  .reporting-table-row strong {
    grid-column: 1 / -1;
  }

  .reporting-table-row span {
    display: flex;
    justify-content: space-between;
    gap: var(--space-2);
  }

  .reporting-table-row span::before {
    color: var(--color-text-muted);
    content: attr(data-label);
    font-size: var(--font-size-xs);
  }

  .reporting-section-actions {
    width: 100%;
    flex-wrap: nowrap;
  }

  .reporting-view-switcher {
    min-width: 0;
    flex: 1 1 0;
  }

  .reporting-view-switcher button {
    flex: 1 1 0%;
    min-height: var(--target-size-touch);
    justify-content: center;
  }

  .reporting-sort-trigger {
    flex: 0 1 auto;
    min-height: var(--target-size-touch);
    padding-inline: var(--space-3);
  }

  .reporting-department-visual,
  .reporting-people-visual {
    grid-template-columns: minmax(0, 1fr);
  }

  .reporting-department-summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-4);
  }

  .reporting-department-summary-metrics {
    grid-column: 1 / -1;
    border-top: 1px solid var(--color-border-subtle);
  }

  .reporting-department-summary-metrics > div {
    padding: var(--space-3);
  }

  .reporting-department-summary-metrics > div:first-child {
    border-left: 0;
  }

  .reporting-department-card + .reporting-department-card,
  .reporting-department-card:nth-child(4),
  .reporting-person-card:nth-child(even) {
    border-left: 0;
  }

  .reporting-department-card:nth-child(n + 2),
  .reporting-person-card:nth-child(n + 2) {
    border-top: 1px solid var(--color-border-subtle);
  }

  .reporting-person-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .reporting-person-bars {
    grid-column: 1 / -1;
  }

  .reporting-data-table {
    overflow: visible;
  }

  .reporting-demo-note {
    white-space: normal;
  }

  .reporting-data-table table,
  .reporting-data-table tbody,
  .reporting-data-table tr {
    display: block;
    width: 100%;
  }

  .reporting-data-table thead {
    display: none;
  }

  .reporting-data-table tr {
    padding: var(--space-3);
    border-top: 1px solid var(--color-border-subtle);
  }

  .reporting-data-table th {
    display: block;
    padding: 0 0 var(--space-2);
  }

  .reporting-data-table td {
    display: grid;
    grid-template-columns: minmax(5rem, 1fr) auto;
    gap: var(--space-2);
    padding: var(--space-1) 0;
    text-align: right;
  }

  .reporting-data-table td::before {
    color: var(--color-text-muted);
    content: attr(data-label);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-align: left;
  }

  .reporting-intro-controls {
    justify-content: flex-start;
    width: 100%;
  }

  .reporting-period-control {
    flex: 0 0 10.5rem;
  }

  .reporting-scope {
    flex: 1 1 auto;
    justify-content: center;
  }
}
