/* Conflict Radar — admin styles (Phase 4) */

/* Health score badge — colours per F3: Green 80-100, Yellow 50-79, Red 0-49. */
.cr-badge {
	display: inline-block;
	min-width: 2.5em;
	padding: 4px 12px;
	border-radius: 4px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	color: #fff;
}

.cr-badge-green {
	background: #46b450;
}

.cr-badge-yellow {
	background: #ffb900;
	color: #1d2327;
}

.cr-badge-red {
	background: #dc3232;
}

/* Large score readout on the dashboard page. */
.cr-score-large {
	font-size: 2.2em;
	padding: 8px 18px;
}

.cr-score-panel {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 16px 0;
}

.cr-breakdown {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cr-breakdown li {
	margin: 2px 0;
}

/* Correlation warning badge on the Update History table (P1). */
.cr-correlation-badge {
	display: inline-block;
	margin-top: 4px;
	padding: 2px 6px;
	border-radius: 3px;
	background: #fcf0e4;
	color: #b26200;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.6;
}

/* Error-type colour classes (used by the Error Log table and widget). */
.cr-type-fatal,
.cr-type-parse {
	color: #dc3232;
	font-weight: 600;
}

.cr-type-warning {
	color: #b26200;
	font-weight: 600;
}

.cr-type-notice,
.cr-type-deprecated {
	color: #646970;
}

/* Dashboard widget niceties. */
.cr-widget-stats {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cr-widget-stats li {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	border-bottom: 1px solid #f0f0f1;
}

.cr-widget-stats li:last-child {
	border-bottom: 0;
}
