/**
 * AccessLens — Admin Styles
 *
 * @package AccessLens
 */

/* Cards */
.accesslens-dashboard .accesslens-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px 24px;
	margin: 20px 0;
	max-width: 1100px;
}

.accesslens-dashboard .accesslens-card h2 {
	margin-top: 0;
	font-size: 1.1em;
	color: #1d2327;
}

/* Disclaimer notice */
.accesslens-notice-disclaimer {
	max-width: 1100px;
}

/* Scope verdict */
.accesslens-scope-verdict {
	margin: 16px 0 !important;
	max-width: 780px;
}

/* Scope checker table */
.accesslens-scope-table select {
	min-width: 280px;
}

/* Progress bar */
.accesslens-progress-wrap {
	margin: 12px 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.accesslens-progress-wrap progress {
	width: 300px;
	height: 18px;
}

/* Status badge */
.accesslens-status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 3px;
	background: #f0f6fc;
	border: 1px solid #72aee6;
	font-weight: 600;
	color: #0a4b78;
	font-size: 0.9em;
}

/* Results table */
.accesslens-results-table {
	margin-top: 12px;
}

.accesslens-results-table .accesslens-col-critical,
.accesslens-results-table .accesslens-col-serious,
.accesslens-results-table .accesslens-col-moderate,
.accesslens-results-table .accesslens-col-minor,
.accesslens-history-table .accesslens-col-critical,
.accesslens-history-table .accesslens-col-serious,
.accesslens-history-table .accesslens-col-moderate,
.accesslens-history-table .accesslens-col-minor {
	text-align: center;
	width: 70px;
}

.accesslens-results-table .accesslens-severity-critical,
.accesslens-history-table .accesslens-severity-critical {
	color: #cc1818;
	font-weight: 700;
}

.accesslens-results-table .accesslens-severity-serious,
.accesslens-history-table .accesslens-severity-serious {
	color: #d63638;
	font-weight: 600;
}

.accesslens-results-table .accesslens-severity-moderate,
.accesslens-history-table .accesslens-severity-moderate {
	color: #b56d00;
}

.accesslens-results-table .accesslens-severity-minor,
.accesslens-history-table .accesslens-severity-minor {
	color: #2a6496;
}

/* Results summary */
.accesslens-results-summary {
	padding: 8px 0;
	color: #50575e;
	font-style: italic;
}

/* Report section */
.accesslens-report-section {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e2e4e7;
}

.accesslens-report-section h3 {
	margin-top: 0;
}

.accesslens-report-meta input {
	width: 340px;
}

/* Pro CTA */
.accesslens-pro-cta {
	display: inline-block !important;
	margin: 12px 0 !important;
}

/* Scan actions */
.accesslens-scan-actions {
	margin-top: 16px;
}

/* Last scan header */
.accesslens-last-scan {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
}

.accesslens-last-scan h2 {
	margin: 0;
}

/* Severity panel: 4 grandes contadores por severidad. Nunca un score global;
 * la severidad se distingue por etiqueta de texto ademas de color (accesible). */
.accesslens-severity-panel {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	max-width: 1100px;
	margin: 20px 0 8px;
}

.accesslens-severity-box {
	flex: 1 1 160px;
	min-width: 140px;
	border-radius: 4px;
	padding: 16px;
	text-align: center;
	color: #fff;
}

.accesslens-severity-box .accesslens-severity-count {
	display: block;
	font-size: 2.2em;
	font-weight: 700;
	line-height: 1.1;
}

.accesslens-severity-box .accesslens-severity-label {
	display: block;
	margin-top: 4px;
	font-size: 0.95em;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.accesslens-severity-box.accesslens-severity-critical {
	background: #8a1f1f; /* rojo oscuro */
}

.accesslens-severity-box.accesslens-severity-serious {
	background: #d63638; /* rojo */
}

.accesslens-severity-box.accesslens-severity-moderate {
	background: #b56d00; /* naranja */
}

.accesslens-severity-box.accesslens-severity-minor {
	background: #6c7378; /* gris */
}

.accesslens-severity-honesty {
	max-width: 1100px;
	color: #50575e;
}

/* Accessibility Statement preview */
.accesslens-declaration-fields {
	margin: 12px 0;
	padding-left: 20px;
	list-style: disc;
}

.accesslens-declaration-fields li {
	margin-bottom: 6px;
}

.accesslens-declaration-fields li.accesslens-field-locked {
	color: #646970;
}

.accesslens-declaration-fields .dashicons-lock {
	font-size: 16px;
	width: 16px;
	height: 16px;
	vertical-align: text-bottom;
	color: #b56d00;
}

/* Progress over time (scan history) */
.accesslens-history-trend {
	color: #1d2327;
	font-weight: 600;
}

.accesslens-history-chart-wrap {
	max-width: 700px;
	margin: 12px 0;
}

.accesslens-history-svg {
	display: block;
	width: 100%;
	height: auto;
}

.accesslens-history-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin: 4px 0 16px;
	padding: 0;
	list-style: none;
	font-size: 0.9em;
	color: #1d2327;
}

.accesslens-legend-swatch {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 6px;
	border-radius: 2px;
	vertical-align: middle;
}

.accesslens-legend-swatch.accesslens-legend-critical {
	background: #8a1f1f;
}

.accesslens-legend-swatch.accesslens-legend-serious {
	background: #d63638;
}

.accesslens-legend-swatch.accesslens-legend-moderate {
	background: #b56d00;
}

.accesslens-legend-swatch.accesslens-legend-minor {
	background: #6c7378;
}

.accesslens-history-details {
	margin-top: 8px;
}

.accesslens-history-details summary {
	cursor: pointer;
	font-weight: 600;
	color: #2271b1;
}

.accesslens-history-table {
	margin-top: 12px;
}

/* Onboarding / review notices */
.accesslens-onboarding-notice p:last-child,
.accesslens-review-notice p:last-child {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* Contextual post-scan upsell */
.accesslens-upsell-box {
	max-width: 1100px;
	margin: 16px 0;
	padding: 14px 18px;
	background: #f6f7f7;
	border-left: 4px solid #2271b1;
	border-radius: 2px;
}

.accesslens-upsell-box p {
	margin: 0.5em 0;
}

/* Print footer: solo visible al imprimir (ver @media print) */
.accesslens-print-only {
	display: none;
}

/* Utility */
.hidden {
	display: none !important;
}

/* ------------------------------------------------------------------ */
/* Print: solo panel de severidad + tabla de resultados + pie honesto  */
/* ------------------------------------------------------------------ */
@media print {
	#adminmenumain,
	#adminmenuback,
	#adminmenuwrap,
	#wpadminbar,
	#wpfooter,
	.notice,
	.accesslens-no-print,
	.accesslens-report-section,
	.accesslens-dashboard > h1,
	.accesslens-dashboard > .accesslens-card:not(#accesslens-results-wrap),
	.accesslens-dashboard .accesslens-last-scan,
	.accesslens-dashboard #accesslens-scan-status {
		display: none !important;
	}

	#wpcontent,
	#wpbody-content {
		margin-left: 0 !important;
		padding-left: 0 !important;
	}

	.accesslens-print-only {
		display: block;
		margin-top: 16px;
		font-style: italic;
		color: #000;
	}

	.accesslens-severity-box {
		color: #000 !important;
		background: #fff !important;
		border: 2px solid #000;
	}
}
