/* Money in and out, day by day (templates/components/money-chart.php).
   Colors come from the tones: success for money in, danger for money out. */
.money-chart {
	svg {
		display: block;
		width: 100%;
		height: auto;
		overflow: visible;
	}

	.in rect,
	.out rect {
		fill: var(--accent-fill);
	}

	.baseline,
	.zero {
		stroke: var(--stroke-secondary);
		stroke-width: 1;
		vector-effect: non-scaling-stroke;
	}

	.survive {
		stroke: var(--ink-secondary);
		stroke-width: 1;
		stroke-dasharray: 4 3;
		vector-effect: non-scaling-stroke;
	}

	.line {
		fill: none;
		stroke: var(--ink-primary);
		stroke-width: 2;
		vector-effect: non-scaling-stroke;
	}

	.days text {
		fill: var(--ink-secondary);
		font-family: var(--font-mono);
		font-size: var(--step-down-2);
	}

	figcaption {
		margin-top: 0.5em;
	}
}
