.jpcp-project-budget {
	margin: 1em 0;
	font-size: 0.95em;
}

.jpcp-project-budget__title {
	margin: 0 0 0.5em;
	font-size: 1em;
	font-weight: 600;
}

.jpcp-budget-bar {
	display: flex;
	width: 100%;
	height: 1.4em;
	background: #f0f0f1;
	border-radius: 3px;
	overflow: hidden;
}

.jpcp-budget-bar__segment {
	height: 100%;
	min-width: 0;
}

.jpcp-budget-bar__segment--spent {
	background: #f6a623;
}

.jpcp-budget-bar__segment--planned {
	background: #4caf50;
}

.jpcp-budget-bar__segment--unallocated {
	background: #2196f3;
}

.jpcp-budget-legend {
	list-style: none;
	padding: 0;
	margin: 0.75em 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25em 1.25em;
}

.jpcp-budget-legend__item {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-size: 0.9em;
	margin: 0;
}

.jpcp-budget-legend__swatch {
	width: 0.85em;
	height: 0.85em;
	border-radius: 2px;
	display: inline-block;
	flex-shrink: 0;
}

.jpcp-budget-legend__item--spent .jpcp-budget-legend__swatch {
	background: #f6a623;
}

.jpcp-budget-legend__item--planned .jpcp-budget-legend__swatch {
	background: #4caf50;
}

.jpcp-budget-legend__item--unallocated .jpcp-budget-legend__swatch {
	background: #2196f3;
}

.jpcp-budget-legend__value {
	font-weight: 600;
}

.jpcp-budget-warning {
	margin: 0.5em 0 0;
	color: #d63638;
	font-size: 0.9em;
}

.jpcp-project-budget--no-budget {
	color: #757575;
}

.jpcp-project-budget--error {
	padding: 0.6em 0.8em;
	border: 1px dashed #d63638;
	color: #d63638;
	font-size: 0.9em;
	background: #fcf0f1;
}
