.workbook-chart[data-dashboard-visual] {
  height: auto;
  min-width: 0;
}
.dashboard-visual-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-bottom: 16px;
}
.dashboard-visual-heading h3 {
  margin: 0 0 4px;
  font-size: 1.125rem;
  font-weight: 650;
  color: #19334c;
}
.dashboard-visual-heading p,
.dashboard-visual-foot {
  margin: 0;
  font-size: .8125rem;
  line-height: 1.45;
  color: #4b655a;
}
.dashboard-visual-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dashboard-visual-controls label {
  display: grid;
  gap: 3px;
  color: #3e594e;
  font-size: .75rem;
}
.dashboard-visual-controls select,
.dashboard-overview-button {
  border: 1px solid #b4c8bc;
  border-radius: 3px;
  background: #f8fbf7;
  padding: 5px 8px;
  color: #173b31;
  font: inherit;
  font-size: .875rem;
}
.dashboard-overview-button {
  align-self: flex-start;
  margin: 0 0 10px;
  cursor: pointer;
}
.dashboard-visual-controls select:focus-visible,
.dashboard-overview-button:focus-visible,
.retention-grid-scroll:focus-visible {
  outline: 2px solid #146b58;
  outline-offset: 2px;
}
.dashboard-visual-foot { margin-top: 12px; }

.retention-grid-scroll { overflow-x: auto; }
.retention-grid {
  width: 100%;
  min-width: 41rem;
  border-collapse: separate;
  border-spacing: 2px;
  table-layout: fixed;
  font-size: .6875rem;
  font-variant-numeric: tabular-nums;
}
.retention-grid th,
.retention-grid td {
  text-align: center;
  padding: .3rem .12rem;
  white-space: nowrap;
}
.retention-grid th {
  background: #edf2ec;
  color: #23473a;
}
.retention-grid th:first-child {
  width: 4.9rem;
  position: sticky;
  left: 0;
  z-index: 1;
  background: #edf2ec;
}
.retention-band-0 { background: #eff4eb; color: #13332b; }
.retention-band-1 { background: #daeadd; color: #13332b; }
.retention-band-2 { background: #b4d7c1; color: #13332b; }
.retention-band-3 { background: #89bfa5; color: #13332b; }
.retention-band-4 { background: #5aa88b; color: #102b23; }
.retention-band-5 { background: #137763; color: #fff; }
.retention-missing {
  background: repeating-linear-gradient(135deg, #f7f8f5 0 4px, #e8eee7 4px 5px);
  color: #576c60;
}
.retention-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin-top: 9px;
  font-size: .6875rem;
  color: #3d584c;
}
.retention-legend i { display: block; width: 13px; height: 11px; }
.retention-ramp,
.retention-legend-missing {
  display: inline-flex;
  align-items: center;
}
.retention-legend-missing { gap: 4px; margin-left: 5px; }

.expense-treemap,
.expense-remaining { display: grid; min-width: 0; min-height: 0; }
.expense-treemap { height: clamp(14rem, 25vw, 18rem); }
.expense-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #fff;
  padding-inline: clamp(8px, 2vw, 24px);
}
.expense-color-0 { background: #19384f; color: #fff; }
.expense-color-1 { background: #147762; color: #fff; }
.expense-color-2 { background: #c0dcc8; color: #173a30; }
.expense-tile span { font-size: clamp(.75rem, 1.45vw, .9375rem); line-height: 1.25; }
.expense-tile strong { font-size: clamp(1.125rem, 3vw, 2rem); line-height: 1; }
.expense-tile small { font-size: .75rem; }
.expense-small-labels { margin: 6px 0 0; padding-left: 1rem; font-size: .8125rem; }

.acquisition-funnel {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.acquisition-funnel li {
  display: grid;
  grid-template-columns: minmax(8.7rem, .9fr) minmax(0, 2.7fr) minmax(7rem, .7fr);
  align-items: center;
  column-gap: 16px;
  min-height: 54px;
  border-bottom: 1px solid #e6ede5;
  color: #183d31;
}
.funnel-stage-name { font-size: .875rem; font-weight: 600; }
.funnel-track {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30px;
  background: #f1f5f0;
}
.funnel-track i { display: block; height: 100%; }
.funnel-band-0 { background: #19384f; }
.funnel-band-1 { background: #245b6a; }
.funnel-band-2 { background: #28796f; }
.funnel-band-3 { background: #3f906c; }
.funnel-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-variant-numeric: tabular-nums;
}
.funnel-value strong { font-size: 1rem; }
.funnel-value small { color: #4b655a; font-size: .6875rem; white-space: nowrap; }
@media (max-width: 640px) {
  .acquisition-funnel li {
    grid-template-columns: minmax(0, 1fr) max-content;
    row-gap: 4px;
    padding: 3px 0 6px;
  }
  .funnel-track { grid-area: 2 / 1 / 3 / -1; height: 16px; }
  .funnel-value { grid-area: 1 / 2 / 2 / 3; }
}

.cash-waterfall {
  --cash-axis-width: 3.3rem;
  --cash-plot-height: clamp(10rem, 18vw, 14rem);
  position: relative;
  margin-top: 8px;
  padding-left: var(--cash-axis-width);
}
.cash-waterfall-axis {
  position: absolute;
  inset: 0 0 auto var(--cash-axis-width);
  height: var(--cash-plot-height);
}
.cash-waterfall-gridline {
  position: absolute;
  inset-inline: 0;
  border-top: 1px solid #dfe9df;
}
.cash-waterfall-gridline span {
  position: absolute;
  right: calc(100% + 6px);
  top: 0;
  transform: translateY(-50%);
  color: #456458;
  white-space: nowrap;
  font-size: .6875rem;
}
.cash-waterfall-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.cash-waterfall-plot { position: relative; height: var(--cash-plot-height); }
.cash-waterfall-bar {
  position: absolute;
  left: 22%;
  width: 56%;
  min-height: 2px;
}
.cash-waterfall-total { background: #19384f; }
.cash-waterfall-inflow { background: #147762; }
.cash-waterfall-outflow { background: #a24d3a; }
.cash-waterfall-connector {
  position: absolute;
  left: 78%;
  width: 44%;
  border-top: 1px dashed #779083;
}
.cash-waterfall-caption {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 2px;
  padding: 7px 2px 0;
  text-align: center;
  color: #27463c;
  font-size: .75rem;
  line-height: 1.25;
}
.cash-waterfall-caption span { min-height: 2.5em; }
.cash-waterfall-caption strong { white-space: nowrap; font-variant-numeric: tabular-nums; }

.sales-bullet-chart {
  --sales-bullet-columns: minmax(6rem, .7fr) minmax(0, 3fr) minmax(11rem, 1fr);
  color: #183e32;
}
.sales-bullet-chart ol { margin: 0; padding: 0; list-style: none; }
.sales-bullet-row,
.sales-bullet-scale {
  display: grid;
  grid-template-columns: var(--sales-bullet-columns);
  align-items: center;
  column-gap: 14px;
  padding-inline: 4px;
}
.sales-bullet-row {
  min-height: 64px;
  border-bottom: 1px solid #e4ebe3;
}
.sales-bullet-label { font-size: .875rem; }
.sales-bullet-track {
  position: relative;
  display: block;
  height: 28px;
  background: linear-gradient(to right, #e4eee7 var(--bookings-goal), #f1f5f0 var(--bookings-goal));
}
.sales-bullet-booked {
  position: absolute;
  top: 25%;
  left: 0;
  height: 50%;
  background: #167761;
}
.sales-bullet-goal {
  position: absolute;
  left: var(--bookings-goal);
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: #19384f;
}
.sales-bullet-readout {
  display: grid;
  gap: 2px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}
.sales-bullet-readout strong { font-size: .875rem; }
.sales-bullet-readout small,
.sales-bullet-scale { color: #456458; font-size: .6875rem; }
.sales-bullet-scale > div {
  grid-column: 2;
  position: relative;
  min-height: 25px;
  margin-top: 4px;
}
.sales-bullet-scale span {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}
.sales-bullet-scale span:first-child { transform: none; }
.sales-bullet-scale span:last-child { transform: translateX(-100%); }
.sales-bullet-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  margin-top: 4px;
  color: #456458;
  font-size: .75rem;
}
.sales-bullet-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sales-bullet-legend i { width: 14px; height: 7px; background: #167761; }
.sales-bullet-legend span:last-child i { width: 3px; height: 12px; background: #19384f; }

@media (max-width: 640px) {
  .cash-waterfall { --cash-axis-width: 2.35rem; }
  .cash-waterfall-caption { padding-inline: 1px; font-size: .625rem; }
  .cash-waterfall-caption span { min-height: 3.75em; overflow-wrap: anywhere; }
  .cash-waterfall-caption strong { font-size: .625rem; letter-spacing: -.038em; }
  .cash-waterfall-gridline span { right: calc(100% + 3px); font-size: .5625rem; }
  .sales-bullet-row,
  .sales-bullet-scale { grid-template-columns: minmax(0, 1fr) max-content; padding-inline: 0; }
  .sales-bullet-row { min-height: 0; padding-block: 10px; gap: 6px 10px; }
  .sales-bullet-readout { grid-area: 1 / 2; }
  .sales-bullet-track { grid-area: 2 / 1 / 3 / -1; height: 21px; }
  .sales-bullet-scale > div { grid-column: 1 / -1; }
}

@media (max-width: 360px) {
  .cash-waterfall { --cash-axis-width: 0rem; }
  .cash-waterfall-gridline span { display: none; }
  .cash-waterfall-caption { padding-inline: 0; }
  .cash-waterfall-caption span { letter-spacing: -.03em; overflow-wrap: normal; }
}

.dashboard-x-axis {
  position: relative;
  height: 1.2rem;
  margin-top: 6px;
  color: #456458;
  font-size: .6875rem;
  line-height: 1.2;
}
.dashboard-x-axis > span {
  position: absolute;
  white-space: nowrap;
  transform: translateX(-50%);
}
.dashboard-x-axis .at-start { transform: none; }
.dashboard-x-axis .at-end { transform: translateX(-100%); }
.dashboard-xy { --dashboard-axis-gutter: 3.6rem; padding: 5px 8px 0 var(--dashboard-axis-gutter); }
.dashboard-xy-panel {
  position: relative;
  height: clamp(10rem, 21vw, 15rem);
  background: #f8faf7;
  border-left: 1px solid #c7d4c8;
}
.dashboard-y-line {
  position: absolute;
  inset-inline: 0;
  border-top: 1px solid #e0e8df;
}
.dashboard-y-line.at-zero { border-color: #9ab0a4; }
.dashboard-y-line span {
  position: absolute;
  top: 0;
  right: calc(100% + 6px);
  transform: translateY(-50%);
  white-space: nowrap;
  color: #456458;
  font-size: .6875rem;
}

.pricing-dumbbell, .capex-gantt { color: #183e32; }
.pricing-dumbbell { --pricing-columns: minmax(4.4rem, .7fr) minmax(0, 3.6fr) minmax(11rem, 1fr); }
.pricing-dumbbell ol, .capex-gantt ol, .workforce-area-legend { margin: 0; padding: 0; list-style: none; }
.pricing-dumbbell li, .pricing-axis-row {
  display: grid;
  grid-template-columns: var(--pricing-columns);
  gap: 14px;
  align-items: center;
}
.pricing-dumbbell li { min-height: 61px; border-bottom: 1px solid #e4ebe3; }
.pricing-plan-name { font-size: .875rem; }
.pricing-dumbbell-track {
  position: relative;
  height: 24px;
  margin: 0 5px;
  background: linear-gradient(#e0e8df,#e0e8df) center / 100% 1px no-repeat;
}
.pricing-dumbbell-connector, .pricing-dumbbell-dot { position: absolute; top: 50%; }
.pricing-dumbbell-connector { height: 3px; transform: translateY(-50%); background: #639882; }
.pricing-dumbbell-dot { width: 11px; height: 11px; border-radius: 50%; transform: translate(-50%,-50%); }
.pricing-current { border: 2px solid #19384f; background: #fff; }
.pricing-proposed { background: #147762; }
.pricing-policy-values {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  text-align: right;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}
.pricing-policy-values > span { display: grid; gap: 2px; }
.pricing-policy-values small { font-size: .6875rem; color: #456458; }
.pricing-axis-row .dashboard-x-axis { grid-column: 2; margin-inline: 5px; }
.pricing-dumbbell-legend, .capex-gantt-legend, .portfolio-scatter-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  margin-top: 6px;
  color: #456458;
  font-size: .75rem;
}
.pricing-dumbbell-legend span, .capex-gantt-legend span, .portfolio-scatter-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pricing-dumbbell-legend i, .portfolio-scatter-legend i { width: 9px; height: 9px; border-radius: 50%; }

.workforce-area { --dashboard-axis-gutter: 2.3rem; }
.workbook-chart .workforce-area svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.workforce-month-guide { position: absolute; inset-block: 0; width: 0; border-left: 2px dashed #253c39; }
.workforce-band-0 { fill: #19384f; background: #19384f; }
.workforce-band-1 { fill: #26836e; background: #26836e; }
.workforce-band-2 { fill: #a7ceae; background: #a7ceae; }
.workforce-area-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 7px 0 0;
  color: #183e32;
  font-size: .75rem;
}
.workforce-area-legend li { display: inline-flex; align-items: center; gap: 5px; }
.workforce-area-legend i { width: 10px; height: 10px; }

.capex-gantt { --capex-timeline-columns: minmax(10.5rem, .95fr) minmax(0, 3fr); }
.capex-gantt li, .capex-gantt-axis {
  display: grid;
  grid-template-columns: var(--capex-timeline-columns);
  column-gap: 16px;
  align-items: center;
  padding-inline: 4px;
}
.capex-gantt li { min-height: 36px; border-bottom: 1px solid #e4ebe3; }
.capex-gantt-axis .dashboard-x-axis { grid-column: 2; }
.capex-project-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; padding-block: 4px; }
.capex-project-label strong { font-size: .75rem; }
.capex-project-label small { color: #456458; font-size: .6875rem; white-space: nowrap; }
.capex-gantt-track { position: relative; height: 19px; background: #f0f5f0; }
.capex-gantt-phase, .capex-gantt-track .capex-in-service { position: absolute; top: 50%; }
.capex-gantt-phase { height: 9px; transform: translateY(-50%); }
.capex-to-delivery { background: #3f739b; }
.capex-to-service { background: #398e74; }
.capex-in-service { background: #19384f; }
.capex-gantt-track .capex-in-service { width: 8px; height: 8px; transform: translate(-50%,-50%) rotate(45deg); }
.capex-gantt-legend i { width: 12px; height: 7px; }
.capex-gantt-legend .capex-in-service { width: 7px; height: 7px; transform: rotate(45deg); }

.portfolio-axis-label { margin: 0 0 8px; color: #34574b; font-size: .75rem; font-weight: 600; }
.portfolio-x-label { margin: 0; text-align: center; }
.portfolio-scatter-point {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%,50%);
}
.portfolio-point-0 { background: #c1cfc5; }
.portfolio-point-1 { background: #167761; }
.portfolio-point-2 {
  width: 12px;
  height: 12px;
  border: 2px solid #19384f;
  background: #c9e999;
  z-index: 1;
}

@media (max-width: 640px) {
  .pricing-dumbbell li, .pricing-axis-row { grid-template-columns: minmax(0,1fr) minmax(8rem,1fr); }
  .pricing-dumbbell li { row-gap: 4px; padding: 8px 0; min-height: 0; }
  .pricing-dumbbell-track { grid-area: 2 / 1 / 3 / -1; height: 15px; }
  .pricing-policy-values { grid-area: 1 / 2; }
  .pricing-axis-row .dashboard-x-axis { grid-column: 1 / -1; }
  .capex-gantt li, .capex-gantt-axis { grid-template-columns: minmax(0,1fr); padding-inline: 2px; }
  .capex-gantt li { padding-block: 5px 8px; }
  .capex-gantt-axis .dashboard-x-axis { grid-column: 1; }
  .capex-gantt-track { height: 16px; }
  .dashboard-xy { padding-right: 5px; }
  .portfolio-scatter { --dashboard-axis-gutter: 3.15rem; }
}
