/**
 * LHM Analytics Reports frontend utilities.
 * Version: 12.0.1
 */
.lhm-report-actions {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: flex-end;
	margin: 0 0 16px;
}

.lhm-report-actions__button {
	appearance: none;
	border: 1px solid #0b4aa2;
	background: #075dcc;
	color: #fff;
	border-radius: 4px;
	padding: 9px 14px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.lhm-report-actions__button--secondary {
	background: #fff;
	color: #075dcc;
}

.lhm-report-actions__button:hover,
.lhm-report-actions__button:focus {
	filter: brightness(0.96);
}

@media print {
	#wpadminbar,
	.lhm-ga4-quarter-picker,
	.lhm-report-actions,
	.elementor-location-header,
	.elementor-location-footer,
	.no-print {
		display: none !important;
	}

	.lhm-analytics-printing canvas {
		max-width: 100% !important;
	}

	body {
		background: #fff !important;
	}
}

/* v0.6.0 report bundle frontend */
.lhm-report-bundle {
	margin: 24px 0;
}

.lhm-report-bundle__header {
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid #d6dbe1;
}

.lhm-report-bundle__header h2 {
	margin: 0 0 6px;
}

.lhm-report-bundle__header p {
	margin: 0;
	color: #586174;
}

.lhm-report-bundle__section {
	break-inside: avoid;
	page-break-inside: avoid;
	margin-bottom: 28px;
}


/* v1.2.0 native dashboard */
.lhm-native-dashboard { max-width: 1280px; margin: 0 auto; }
.lhm-native-dashboard__controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; padding: 16px; margin: 0 0 18px; border: 1px solid #d6dbe1; background: #fff; border-radius: 8px; }
.lhm-native-dashboard__controls label { display: block; font-size: 12px; font-weight: 700; color: #526078; margin-bottom: 4px; }
.lhm-native-dashboard__controls input { min-width: 150px; }
.lhm-native-dashboard__controls button { padding: 8px 16px; cursor: pointer; }
.lhm-native-dashboard__section { margin: 24px 0; break-inside: avoid; }


/* v1.3.0 bundle editorial fields */
.lhm-report-bundle__summary,
.lhm-report-bundle__notes { padding: 16px 18px; margin: 14px 0; border-left: 4px solid #2563eb; background: #f8fafc; color: #263044; }
.lhm-report-bundle__header h1 { margin: 0 0 8px; font-size: 32px; }

/* v8.0.2 dashboard and documentation polish */
.lhm-native-dashboard>.lhm-report-actions{margin-bottom:14px;}
.lhm-native-dashboard__print-range{display:none;padding:8px 0 16px;color:#374151;}
@media print{.lhm-native-dashboard__print-range{display:block!important}.lhm-native-dashboard__controls{display:none!important}}

/* v8.1.0 governed insight layer */
.lhm-insight-summary{margin:20px 0;padding:18px;border:1px solid #d6dbe1;border-radius:10px;background:#fff;}
.lhm-insight-summary__header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:14px;}
.lhm-insight-summary__header h2{margin:0 0 5px}.lhm-insight-summary__header p{margin:0;color:#64748b;}
.lhm-insight-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.lhm-insight-card{padding:14px;border:1px solid #d6dbe1;border-left:4px solid #64748b;border-radius:8px;background:#fff;}
.lhm-insight-card--positive{border-left-color:#2f8f46;background:#f0faf3}.lhm-insight-card--negative{border-left-color:#c62828;background:#fff2f1}.lhm-insight-card--warning{border-left-color:#c98212;background:#fff8e7}
.lhm-insight-card span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#64748b}.lhm-insight-card strong{display:block;margin:6px 0;font-size:17px}.lhm-insight-card p{margin:0;color:#374151}.lhm-insight-trace{margin-top:12px;padding-top:12px;border-top:1px solid #e5e7eb;color:#64748b;font-size:12px}.lhm-insight-error{color:#b42318;}
@media(max-width:900px){.lhm-insight-cards{grid-template-columns:1fr}}

/* v8.0.4 print cover screen state */
.lhm-print-cover { display: none; }

/* v8.2.0 branded report template system */
.lhm-report-cover{display:grid;grid-template-columns:minmax(220px,.85fr) 3px minmax(360px,1.3fr);gap:44px;align-items:center;min-height:520px;padding:64px;border:1px solid #d8dee8;background:#fff;color:#14213d;box-sizing:border-box;}
.lhm-report-cover__brand{display:flex;align-items:center;justify-content:center;min-height:220px;text-align:center;}
.lhm-report-cover__brand img{display:block;max-width:100%;max-height:180px;object-fit:contain;}
.lhm-report-cover__divider{width:3px;height:62%;background:#10b6db;justify-self:center;}
.lhm-report-cover__content h1{margin:0 0 12px;font-size:42px;line-height:1.1;font-weight:500;color:#1c3868;}
.lhm-report-cover__content h2{margin:0 0 42px;font-size:34px;line-height:1.1;font-weight:400;color:#08add8;}
.lhm-report-cover__comparison{font-size:18px;color:#4b5563;}
.lhm-report-cover__date{display:flex;flex-direction:column;gap:7px;margin-top:36px;font-size:18px;}
.lhm-report-cover__date strong{color:#08add8;}
.lhm-report-section-header{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:0 0 14px;padding:0 0 10px;border-bottom:1px solid #d9dee7;}
.lhm-report-section-header span{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#65748b;}
.lhm-report-section-header strong{font-size:20px;color:#172033;}
.lhm-report-bundle__appendix{padding:30px;border:1px solid #d9dee7;background:#f8fafc;}
.lhm-report-template--compact_landscape .lhm-report-bundle__section{margin-bottom:24px;}
.lhm-report-template--clean_landscape .lhm-report-cover{grid-template-columns:1fr 2px 1.4fr;border:none;}
.lhm-report-orientation--portrait .lhm-report-cover{grid-template-columns:1fr;gap:24px;text-align:center;}
.lhm-report-orientation--portrait .lhm-report-cover__divider{width:45%;height:3px;}
@media(max-width:800px){.lhm-report-cover{grid-template-columns:1fr;gap:24px;min-height:0;padding:32px}.lhm-report-cover__divider{width:45%;height:3px}.lhm-report-cover__content h1{font-size:32px}.lhm-report-cover__content h2{font-size:26px}}

/* v8.5.0 governed editorial insight workflow */
.lhm-insight-editorial{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}.lhm-insight-editorial article{padding:16px;border:1px solid #d8dee8;background:#fff}.lhm-insight-editorial article span{display:block;margin-bottom:8px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#64748b}.lhm-insight-review-gate{grid-column:1/-1;margin:0;padding:12px 14px;border-left:4px solid #d39b00;background:#fff8df;color:#5e4300}@media(max-width:700px){.lhm-insight-editorial{grid-template-columns:1fr}}


/* v9.5.0 executive authoring and approval. */
.lhm-editorial-summary { display:flex; gap:10px; align-items:center; margin:12px 0; }
.lhm-editorial-summary small { color:#64748b; }
.lhm-editorial-editor { margin:12px 0; padding:10px 12px; border:1px solid #d6dbe1; border-radius:6px; background:#f8fafc; }
.lhm-editorial-editor summary { cursor:pointer; font-weight:700; }
.lhm-editorial-editor form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:12px; }
.lhm-editorial-editor label { display:flex; flex-direction:column; gap:5px; font-weight:600; }
.lhm-editorial-editor label:last-of-type { grid-column:1 / -1; }
.lhm-editorial-editor input,.lhm-editorial-editor select,.lhm-editorial-editor textarea { width:100%; }
.lhm-editorial-editor .button { justify-self:start; }
.lhm-report-narrative { margin:24px 0; padding:22px 24px; border-left:4px solid #1e3a6d; background:#f8fafc; }
.lhm-report-narrative h2 { margin-top:0; }
.lhm-report-narrative--actions { border-left-color:#00a3d9; }
.lhm-report-narrative--actions ol { margin:0 0 0 22px; }
.lhm-report-editorial-meta { display:flex; flex-wrap:wrap; gap:10px 24px; margin:18px 0; padding:12px 14px; border:1px solid #d6dbe1; background:#fff; font-size:13px; }
@media(max-width:782px){.lhm-editorial-editor form{grid-template-columns:1fr}.lhm-editorial-editor label:last-of-type{grid-column:auto}}
@media print{.lhm-editorial-editor{display:none!important}.lhm-report-editorial-meta{break-inside:avoid}}


/* v10.0.0 multi-site portfolio dashboard. */
.lhm-portfolio-dashboard{display:grid;gap:28px}.lhm-portfolio-dashboard>header{padding:22px 24px;border-left:4px solid #1e3a6d;background:#f8fafc}.lhm-portfolio-dashboard>header h1{margin:0 0 6px}.lhm-portfolio-dashboard>header p{margin:0}.lhm-portfolio-site{display:grid;gap:20px;padding:22px;border:1px solid #d6dbe1;border-radius:10px;background:#fff}.lhm-portfolio-site>header{display:flex;justify-content:space-between;gap:16px;align-items:center;border-bottom:1px solid #e5e7eb;padding-bottom:14px}.lhm-portfolio-site>header>div{display:flex;gap:12px;align-items:center}.lhm-portfolio-site>header img{max-width:140px;max-height:52px;object-fit:contain}.lhm-portfolio-site h2,.lhm-portfolio-site h3{margin:0}.lhm-portfolio-report{display:grid;gap:12px}.lhm-portfolio-report+.lhm-portfolio-report{padding-top:20px;border-top:1px solid #e5e7eb}@media(max-width:782px){.lhm-portfolio-site>header{align-items:flex-start;flex-direction:column}}


/* v11.0.1 cohesive dashboard controls and governed insight disclosures. */
.lhm-native-dashboard__controls input,
.lhm-native-dashboard__controls button {
	min-height: 42px;
	box-sizing: border-box;
}
.lhm-native-dashboard__controls button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #0b4aa2;
	border-radius: 4px;
	background: #075dcc;
	color: #fff;
	font-weight: 600;
}
.lhm-native-dashboard__insight-disclosure {
	margin: 0 0 18px;
	border: 1px solid #d6dbe1;
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
}
.lhm-native-dashboard__insight-disclosure > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 16px;
	cursor: pointer;
	font-weight: 700;
	color: #172033;
	background: #f8fafc;
	list-style: none;
}
.lhm-native-dashboard__insight-disclosure > summary::-webkit-details-marker { display: none; }
.lhm-native-dashboard__insight-disclosure > summary::after { content: "▾"; color: #64748b; }
.lhm-native-dashboard__insight-disclosure:not([open]) > summary::after { content: "▸"; }
.lhm-native-dashboard__insight-state {
	margin-left: auto;
	padding: 2px 8px;
	border: 1px solid #e0b44e;
	border-radius: 12px;
	background: #fff8df;
	color: #725200;
	font-size: 12px;
	font-weight: 600;
}
.lhm-native-dashboard__insight-body { padding: 0 14px 14px; }
.lhm-native-dashboard__insight-body .lhm-insight-summary { margin: 14px 0 0; }
.lhm-insight-summary,
.lhm-insight-card,
.lhm-insight-editorial article,
.lhm-insight-review-gate { border-radius: 4px; }
.lhm-insight-editorial article { border-color: #cfd6df; }
.lhm-insight-review-gate {
	border-left: 4px solid #d39b00;
	outline: 1px solid rgba(211,155,0,.28);
}
@media(max-width:782px){
	.lhm-native-dashboard__insight-disclosure > summary { align-items: flex-start; flex-wrap: wrap; }
	.lhm-native-dashboard__insight-state { margin-left: 0; }
}


/* v11.4.0 cross-site portfolio comparison. */
.lhm-portfolio-comparison { margin:22px 0; padding:20px; border:1px solid #d6dbe1; border-radius:4px; background:#fff; }
.lhm-portfolio-comparison>header { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; padding-bottom:14px; border-bottom:1px solid #d6dbe1; }
.lhm-portfolio-comparison h2,.lhm-portfolio-comparison p { margin:0; }
.lhm-portfolio-comparison header p { margin-top:5px; color:#64748b; }
.lhm-portfolio-comparison__body { padding-top:16px; }
.lhm-portfolio-comparison__table-wrap { overflow-x:auto; }
.lhm-portfolio-comparison table { width:100%; border-collapse:collapse; }
.lhm-portfolio-comparison th,.lhm-portfolio-comparison td { padding:11px 12px; border-bottom:1px solid #d6dbe1; text-align:right; }
.lhm-portfolio-comparison th:first-child { text-align:left; }
.lhm-portfolio-comparison .is-positive { background:#eaf8ef; color:#176b2c; font-weight:700; }
.lhm-portfolio-comparison .is-negative { background:#fdeceb; color:#a2261f; font-weight:700; }
.lhm-portfolio-comparison .is-neutral { background:#f3f4f6; color:#4b5563; font-weight:600; }


/* v12.0.0 production multi-site platform overview. */
.lhm-platform-overview { margin:22px 0; padding:20px; border:1px solid #d6dbe1; border-radius:4px; background:#fff; }
.lhm-platform-overview>header { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.lhm-platform-overview h2,.lhm-platform-overview p { margin:0; }
.lhm-platform-overview header p { margin-top:5px; color:#64748b; }
.lhm-platform-overview__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:16px; }
.lhm-platform-overview__grid article { padding:14px; border:1px solid #d6dbe1; border-radius:4px; background:#f8fafc; }
.lhm-platform-overview__grid span,.lhm-platform-overview__grid strong { display:block; }
.lhm-platform-overview__grid span { color:#64748b; font-size:12px; }
.lhm-platform-overview__grid strong { margin-top:5px; font-size:24px; }
@media(max-width:900px){.lhm-platform-overview__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.lhm-platform-overview__grid{grid-template-columns:1fr}.lhm-platform-overview>header{flex-direction:column}}


/* v12.0.1 frontend asset cache compatibility. */
[data-lhm-native-dashboard="1"] .lhm-native-dashboard__controls > div {
	display: flex;
	flex: 1 1 150px;
	flex-direction: column;
	min-width: 150px;
}
@media(max-width:900px){
	[data-lhm-native-dashboard="1"] .lhm-insight-cards,
	[data-lhm-native-dashboard="1"] .lhm-insight-editorial{grid-template-columns:1fr}
}
