/* A month as a calendar (templates/components/money-calendar.php).
   Seven columns; a day that ends under zero takes the danger tone's tint. */
.money-calendar {
	ol {
		display: grid;
		grid-template-columns: repeat(7, minmax(0, 1fr));
		gap: 0.25rem;
		margin-top: 1rem;
		padding: 0;
		list-style: none;
	}

	.day {
		display: flex;
		flex-direction: column;
		gap: 0.25rem;
		min-height: 6rem;
		padding: 0.5rem;
		border: 1px solid var(--stroke-secondary);

		&[data-tone='danger'] {
			background: var(--accent-tint);
		}

		&.today {
			border-color: var(--ink-primary);
		}

		&.outside {
			opacity: 0.5;
		}
	}

	.amount {
		display: block;
		font-family: var(--font-mono);
	}

	.balance {
		margin-top: auto;
		font-family: var(--font-mono);
	}

	> p {
		margin-top: 0.75rem;
	}
}
