.rebalance-tax-flow {
  grid-column: 1 / -1;
  border-color: #b9cec8;
  background: #fff;
}

.rebalance-tax-flow figure {
  margin: 0;
}

.rebalance-tax-flow h2 {
  margin-bottom: 6px;
  color: #123f3a;
  font-size: 1.18rem;
}

.rebalance-tax-flow [data-rebalance-tax-flow-description] {
  margin: 0;
  color: #4f635d;
}

.rebalance-tax-flow__canvas {
  margin-top: 14px;
  overflow: hidden;
}

.rebalance-tax-flow__rotate {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-inline-start: 3px solid #6f938a;
  background: #f5f8f7;
  color: #304a45;
  font-size: 0.94rem;
  line-height: 1.45;
}

.rebalance-tax-flow .ob-sankey {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.rebalance-tax-flow .ob-sankey__link {
  fill: var(--flow-color);
  fill-opacity: 0.34;
  stroke: var(--flow-color);
  stroke-opacity: 0.48;
  stroke-width: 0.7;
}

.rebalance-tax-flow .ob-sankey__node {
  fill: var(--node-color);
}

.rebalance-tax-flow .ob-sankey__label-connector {
  fill: none;
  stroke: #879792;
  stroke-linecap: round;
  stroke-width: 1;
}

.rebalance-tax-flow .ob-sankey__label-box {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  padding: 2px 4px;
  color: #304a45;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.rebalance-tax-flow .ob-sankey__label[data-label-placement="outside-left"] .ob-sankey__label-box {
  align-items: flex-end;
  text-align: right;
}

.rebalance-tax-flow .ob-sankey__label-box strong {
  margin-top: 2px;
  color: #001f23;
  font-size: 15px;
  font-weight: 720;
}

.rebalance-tax-flow__equations {
  margin-top: 10px;
  color: #304a45;
}

.rebalance-tax-flow__equation {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) auto minmax(0, 2.2fr);
  gap: 10px;
  align-items: start;
}

.rebalance-tax-flow__equation-source,
.rebalance-tax-flow__equation-term {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rebalance-tax-flow__equation-source strong,
.rebalance-tax-flow__equation-term strong {
  color: #123f3a;
}

.rebalance-tax-flow__equation-equals {
  color: #6b7f78;
  font-weight: 700;
}

.rebalance-tax-flow__equation-terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 16px;
}

.rebalance-tax-flow__equation-plus {
  margin-inline-end: 5px;
  color: #6b7f78;
  font-weight: 700;
}

.rebalance-tax-flow__shortfall h3 {
  margin: 0 0 4px;
  color: #123f3a;
  font-size: 1rem;
}

.rebalance-tax-flow__shortfall p,
.rebalance-tax-flow__rounding,
.rebalance-tax-flow__status {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
}

.rebalance-tax-flow__rounding {
  margin-top: 8px;
  color: #566960;
}

.rebalance-tax-flow__status {
  margin-top: 6px;
  color: #566960;
}

.rebalance-tax-flow.is-suppressed .rebalance-tax-flow__canvas {
  display: none;
}

@media (max-width: 640px) {
  .rebalance-tax-flow h2 {
    font-size: 1.08rem;
  }

  .rebalance-tax-flow__shortfall p,
  .rebalance-tax-flow__rounding,
  .rebalance-tax-flow__status,
  .rebalance-tax-flow__rotate {
    font-size: 0.92rem;
  }
}

@media print {
  .rebalance-tax-print-flow p {
    margin: 5px 0;
  }
}
