.business-reports {
  display: grid;
  gap: 1.05rem;
  min-width: 0;
}

.workspace-app .business-reports .page-heading {
  margin-bottom: .15rem;
}

.business-reports h2 {
  font-size: 1.42rem;
  line-height: 1.15;
}

.business-reports .reports-controls {
  display: grid;
  gap: 1rem;
  background: #fcf6ff;
}

.reports-current,
.reports-presets {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.reports-current {
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.reports-current p,
.reports-series-heading p,
.reports-empty p {
  margin-top: .25rem;
  color: var(--secondary);
  line-height: 1.45;
}

.reports-current p {
  border-radius: .3rem;
  font-weight: 750;
}

.reports-presets .btn {
  min-height: 2.7rem;
  border: 1px solid #e1cfe9;
  background: #fff;
  font-size: .95rem;
}

.reports-presets .btn[aria-pressed='true'] {
  border-color: #ab8bd7;
  background: #f0e3fd;
  color: #512777;
}

.reports-range {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .6rem;
}

.reports-range label {
  flex: 1 1 9rem;
  max-width: 12rem;
  color: #463050;
  font-size: 1rem;
}

.reports-range input,
.reports-range .btn {
  min-height: 3.1rem;
}

.reports-metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: .85rem;
  margin: 0;
}

.reports-metrics .report-metric {
  display: grid;
  align-content: start;
  gap: .55rem;
  min-width: 0;
  padding: clamp(.9rem,1.5vw,1.2rem);
  background: #fff;
}

.reports-metrics .report-metric:nth-child(2) { background: #f4e9fd; }
.reports-metrics .report-metric:nth-child(3) { background: #f0faf4; }
.reports-metrics .report-metric:nth-child(4) { background: #fff2dd; }

.report-metric dt {
  display: flex;
  align-items: center;
  gap: .36rem;
  color: #463050;
  font-weight: 800;
  line-height: 1.2;
}

.report-metric dt .ico {
  width: 1.14rem;
  height: 1.14rem;
  color: #6e4090;
}

.report-metric dd { margin: 0; }

.report-metric dd strong {
  display: block;
  overflow-wrap: anywhere;
  color: #2f193d;
  font-family: var(--display);
  font-size: clamp(1.45rem,2.2vw,2.1rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.06;
}

.report-metric dd span {
  display: block;
  margin-top: .42rem;
  color: var(--secondary);
  line-height: 1.4;
}

.reports-breakdowns {
  display: grid;
  grid-template-columns: minmax(12rem,.36fr) minmax(0,.64fr);
  align-items: start;
  gap: .85rem;
}

.reports-stages ul {
  display: grid;
  gap: .9rem;
  margin: .95rem 0 0;
  padding: 0;
  list-style: none;
}

.reports-stages li > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: .36rem;
}

.reports-stages .stage-pill { font-size: .92rem; }

.reports-stage-bar {
  display: block;
  width: 100%;
  height: .5rem;
  appearance: none;
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  background: #f0e7f1;
  accent-color: #8854b0;
  color: #8854b0;
}

.reports-stage-bar.enquiry { color: #cf666e; }
.reports-stage-bar.quoted { color: #8854b0; }
.reports-stage-bar.provisional { color: #b87935; }
.reports-stage-bar.confirmed { color: #3c966b; }
.reports-stage-bar.completed { color: #6e5f82; }
.reports-stage-bar.cancelled { color: #b94c69; }
.reports-stage-bar::-webkit-progress-bar { background: #f0e7f1; }
.reports-stage-bar::-webkit-progress-value { background: currentColor; }
.reports-stage-bar::-moz-progress-bar { background: currentColor; }

.reports-series { min-width: 0; }
.reports-series-heading { margin-bottom: .65rem; }

.reports-table {
  max-height: 26rem;
  overflow: auto;
}

.reports-table th {
  position: sticky;
  top: 0;
  background: #f8f0fc;
  color: #4f3861;
  font-size: .96rem;
  letter-spacing: 0;
  text-transform: none;
}

.reports-table :is(th,td):not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.reports-table td { white-space: nowrap; }

.reports-empty {
  display: grid;
  justify-items: center;
  gap: .55rem;
  text-align: center;
}

.reports-empty .btn { margin-top: .35rem; }

@media (max-width: 1180px) {
  .reports-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .reports-breakdowns { grid-template-columns: minmax(0,1fr); }
}

@media (max-width: 480px) {
  .business-reports > .page-heading { align-items: start; }
  .reports-range label { max-width: none; }
  .reports-metrics { gap: .55rem; }
  .report-metric dt { align-items: start; }
}
