/* ---------- Admin metabox tweaks ---------- */
.wdm-hr-component-field {
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 10px 14px 4px;
	margin-bottom: 14px;
	background: #fff;
}
.wdm-hr-component-field legend {
	padding: 0 6px;
}
.wdm-hr-form-table th {
	width: 140px;
}

/* ---------- Frontend report wrapper ---------- */
.wdm-hr-wrapper {
	max-width: 900px;
	margin: 0 auto;
}
.wdm-hr-toolbar {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 12px;
}
.wdm-hr-download-btn {
	background: #1d2327;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 10px 18px;
	font-size: 14px;
	cursor: pointer;
}
.wdm-hr-download-btn:hover {
	background: #2c3338;
}

/* ---------- The one-page report itself ---------- */
.wdm-hr-report {
	background: #fff;
	color: #1d2327;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-shadow: 0 0 0 1px #e2e2e2;
	padding: 28px 32px;
	box-sizing: border-box;
}

.wdm-hr-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	border-bottom: 3px solid #1d2327;
	padding-bottom: 14px;
	margin-bottom: 18px;
}
.wdm-hr-header-left {
	display: flex;
	align-items: center;
	gap: 14px;
}
.wdm-hr-logo {
	max-height: 56px;
	max-width: 160px;
	object-fit: contain;
}
.wdm-hr-titles h1 {
	font-size: 20px;
	margin: 0 0 2px;
	line-height: 1.2;
}
.wdm-hr-client,
.wdm-hr-url {
	margin: 0;
	font-size: 12px;
	color: #555;
}
.wdm-hr-header-right {
	text-align: right;
}
.wdm-hr-date-range {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}
.wdm-hr-date-range-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #777;
}
.wdm-hr-date-range-value {
	font-size: 14px;
	font-weight: 600;
}

/* Component grid: 2 columns x 4 rows = 8 cards */
.wdm-hr-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 16px;
}
.wdm-hr-card {
	border: 1px solid #e2e2e2;
	border-left: 5px solid #b8bcc0;
	border-radius: 4px;
	padding: 10px 12px;
	min-height: 96px;
}
.wdm-hr-card-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 4px;
	gap: 8px;
}
.wdm-hr-card-title {
	font-size: 12.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.wdm-hr-badge {
	font-size: 10.5px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 12px;
	white-space: nowrap;
	background: #eceff1;
	color: #444;
}
.wdm-hr-metric {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 2px;
}
.wdm-hr-notes {
	font-size: 11.5px;
	color: #444;
	margin: 0;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.wdm-hr-notes-empty {
	color: #999;
	font-style: italic;
}

/* Status colors */
.wdm-status-good {
	border-left-color: #2e7d32;
}
.wdm-status-good .wdm-hr-badge {
	background: #e6f4ea;
	color: #1e7e34;
}
.wdm-status-warning {
	border-left-color: #b98900;
}
.wdm-status-warning .wdm-hr-badge {
	background: #fff3cd;
	color: #8a6500;
}
.wdm-status-critical {
	border-left-color: #c62828;
}
.wdm-status-critical .wdm-hr-badge {
	background: #fbe1e0;
	color: #a12622;
}
.wdm-status-na,
.wdm-status-none {
	border-left-color: #b8bcc0;
	opacity: 0.75;
}

/* Next actions */
.wdm-hr-next-actions {
	border-top: 1px solid #e2e2e2;
	padding-top: 12px;
}
.wdm-hr-next-actions h2 {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 8px;
}
.wdm-hr-next-actions ul {
	margin: 0;
	padding-left: 18px;
	font-size: 12.5px;
	line-height: 1.5;
}

.wdm-hr-footer {
	margin-top: 14px;
	text-align: right;
	font-size: 10px;
	color: #999;
}

/* ---------- Print / PDF specific ---------- */
@media print {
	.wdm-hr-toolbar {
		display: none;
	}
	.wdm-hr-report {
		box-shadow: none;
		padding: 0;
	}
	@page {
		size: A4;
		margin: 12mm;
	}
}
