/* admin.css - styles used by the NuwaveLabs risk review admin UI */
:root {
	--nphs-navy: #0f172a;
	--nphs-blue: #1d4ed8;
	--nphs-blue-soft: #eff6ff;
	--nphs-border: #dcdcde;
	--nphs-border-soft: #e2e8f0;
	--nphs-muted: #64748b;
	--nphs-text: #1d2327;
	--nphs-surface: #fff;
	--nphs-surface-soft: #f8fafc;
	--nphs-amber: #dba617;
	--nphs-amber-soft: #fff8e5;
	--nphs-green: #00a32a;
	--nphs-green-soft: #f0fdf4;
	--nphs-red: #d63638;
	--nphs-red-soft: #fff5f5;
	--nphs-radius: 8px;
	--nphs-radius-sm: 6px;
	--nphs-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
	--nphs-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.nphs-warn{background:#fffaf0;}
.nphs-low{background:#fff5f5;}
.nphs-badge{display:inline-flex;align-items:center;justify-content:center;padding:3px 8px;border-radius:999px;font-weight:700;font-size:12px;line-height:1.3;}
.nphs-badge-A{background:#e6ffed;color:#064b20;border:1px solid #7ad186}
.nphs-badge-B{background:#f0fff4;color:#166534;border:1px solid #86efac}
.nphs-badge-C{background:#fff8e5;color:#7a4b00;border:1px solid #dba617}
.nphs-badge-D,.nphs-badge-F{background:#fff5f5;color:#8c1c13;border:1px solid #d63638}
/* NuwaveLabs risk review - settings layout fix */

.nphs-settings-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	align-items: center;
}

.nphs-settings-form label {
	display: flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.nphs-settings-form input[type="email"],
.nphs-settings-form select {
	min-width: 160px;
}

.nphs-email-settings-panel {
	margin: 16px 0;
	padding: 14px 16px;
	background: var(--nphs-surface-soft);
	border: 1px solid var(--nphs-border-soft);
	border-left: 4px solid #dbeafe;
	border-radius: var(--nphs-radius);
}

.nphs-coming-soon-panel {
	margin: 16px 0;
	padding: 18px;
	background: var(--nphs-surface);
	border: 1px solid var(--nphs-border-soft);
	border-left: 4px solid #cbd5e1;
	border-radius: var(--nphs-radius);
}

.nphs-coming-soon-panel h2 {
	margin: 0;
	color: #334155;
	font-size: 16px;
	line-height: 1.3;
}

.nphs-coming-soon-panel p {
	margin: 6px 0 10px;
	color: #64748b;
}

.nphs-email-settings-head {
	margin-bottom: 12px;
}

.nphs-email-settings-head h2 {
	margin: 0;
	color: #334155;
	font-size: 16px;
	line-height: 1.3;
}

.nphs-email-settings-head p {
	max-width: 760px;
	margin: 6px 0 0;
	color: #64748b;
}

.nphs-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-left: auto;
}

.nphs-next-send {
	flex-basis: 100%;
	font-size: 12px;
	color: #555;
	margin-top: 4px;
}

.nphs-pro {
	margin-left: 8px;
}

.nphs-pro-page {
	max-width: 920px;
}

.nphs-pro-page > h1 {
	margin: 20px 0 12px;
	color: var(--nphs-navy);
	font-size: 30px;
	line-height: 1.2;
}

.nphs-pro-page .nphs-coming-soon-panel {
	padding: 28px;
	border-left-color: var(--nphs-blue);
	box-shadow: var(--nphs-shadow-sm);
}

.nphs-pro-page .nphs-coming-soon-panel h2 {
	color: var(--nphs-navy);
	font-size: 24px;
	line-height: 1.25;
}

.nphs-pro-page .nphs-coming-soon-panel h3 {
	margin: 18px 0 8px;
	color: #0f172a;
	font-size: 15px;
}

.nphs-pro-lede {
	max-width: 680px;
	color: #475569;
	font-size: 15px;
	line-height: 1.5;
}

.nphs-pro-feature-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.nphs-pro-feature-list li {
	margin: 0;
	padding: 12px 14px;
	background: var(--nphs-surface-soft);
	border: 1px solid var(--nphs-border-soft);
	border-radius: var(--nphs-radius-sm);
	color: #334155;
}

.nphs-pro-note {
	margin: 12px 0 0;
	color: #64748b;
	padding: 10px 12px;
	background: var(--nphs-blue-soft);
	border: 1px solid #bfdbfe;
	border-radius: var(--nphs-radius-sm);
}

.nphs-wrap {
	max-width: 1180px;
	margin-bottom: 32px;
}

.nphs-dashboard-page,
.nphs-report-wrap,
.nphs-pro-page {
	color: var(--nphs-text);
}

.nphs-dashboard-page .button,
.nphs-report-wrap .button,
.nphs-pro-page .button {
	border-radius: var(--nphs-radius-sm);
}

.nphs-dashboard-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
	gap: 24px;
	align-items: stretch;
	margin: 20px 0 16px;
	padding: 30px;
	background: var(--nphs-surface);
	border: 1px solid var(--nphs-border);
	border-left: 5px solid var(--nphs-blue);
	border-radius: var(--nphs-radius);
	box-shadow: var(--nphs-shadow);
}

.nphs-dashboard-kicker {
	margin: 0 0 4px;
	color: #0f172a;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

.nphs-dashboard-hero .nphs-title {
	margin: 0;
	color: var(--nphs-navy);
	font-size: 34px;
	line-height: 1.2;
}

.nphs-dashboard-value {
	margin: 8px 0 0;
	max-width: 640px;
	color: #475569;
	font-size: 15px;
	line-height: 1.5;
}

.nphs-dashboard-next-step {
	margin: 16px 0 0;
	max-width: 720px;
	padding: 16px 18px;
	background: #fffbeb;
	border: 1px solid #f3d27a;
	border-left: 5px solid var(--nphs-amber);
	border-radius: var(--nphs-radius);
	color: #334155;
	font-size: 14px;
	line-height: 1.5;
	box-shadow: var(--nphs-shadow-sm);
}

.nphs-dashboard-next-step strong {
	display: block;
	margin-bottom: 3px;
	color: #7a4b00;
}

.nphs-dashboard-hero-actions {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
}

.nphs-dashboard-hero-score {
	padding: 18px;
	background: var(--nphs-surface-soft);
	border: 1px solid #dbeafe;
	border-top: 3px solid #1d4ed8;
	border-radius: var(--nphs-radius);
	text-align: center;
}

.nphs-dashboard-hero-score span,
.nphs-dashboard-hero-score small {
	display: block;
	color: #64748b;
	font-weight: 700;
}

.nphs-dashboard-hero-score strong {
	display: block;
	margin: 8px 0 4px;
	color: var(--nphs-navy);
	font-size: 42px;
	line-height: 1;
}

.nphs-dashboard-grade {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: fit-content;
	margin: 4px auto 0;
	padding: 4px 10px;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	color: #475569 !important;
	font-size: 12px;
	line-height: 1.3;
}

.nphs-dashboard-grade-A,
.nphs-dashboard-grade-B {
	background: #e6ffed;
	border-color: #7ad186;
	color: #064b20 !important;
}

.nphs-dashboard-grade-C {
	background: #fff8e5;
	border-color: #dba617;
	color: #7a4b00 !important;
}

.nphs-dashboard-grade-D,
.nphs-dashboard-grade-F {
	background: #fff5f5;
	border-color: #d63638;
	color: #8c1c13 !important;
}

.nphs-dashboard-hero-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.nphs-dashboard-report-cta {
	background: var(--nphs-blue) !important;
	border-color: var(--nphs-blue) !important;
	font-weight: 700;
}

.nphs-dashboard-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 16px;
}

.nphs-dashboard-card {
	min-width: 0;
	padding: 16px;
	background: var(--nphs-surface);
	border: 1px solid var(--nphs-border);
	border-top: 3px solid #dbeafe;
	border-radius: var(--nphs-radius);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.nphs-dashboard-card span,
.nphs-dashboard-card small {
	display: block;
	color: #64748b;
}

.nphs-dashboard-card span {
	font-weight: 700;
}

.nphs-dashboard-card strong {
	display: block;
	margin: 8px 0 4px;
	color: var(--nphs-navy);
	font-size: 30px;
	line-height: 1;
}

.nphs-dashboard-state {
	padding: 12px;
}

.nphs-dashboard-state-list {
	margin-top: 6px;
}

.nphs-store-impact-card {
	margin: 0 0 16px;
	padding: 20px;
	background: var(--nphs-surface);
	border: 1px solid var(--nphs-border);
	border-left: 4px solid #2271b1;
	border-radius: var(--nphs-radius);
	box-shadow: var(--nphs-shadow-sm);
}

.nphs-business-impact-card {
	margin: 0 0 16px;
	padding: 20px;
	background: var(--nphs-surface);
	border: 1px solid var(--nphs-border);
	border-left: 4px solid var(--nphs-blue);
	border-radius: var(--nphs-radius);
	box-shadow: var(--nphs-shadow-sm);
}

.nphs-store-impact-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.nphs-store-impact-card-head h2,
.nphs-business-impact-card h2 {
	margin: 0;
	color: var(--nphs-navy);
	font-size: 20px;
	line-height: 1.25;
}

.nphs-store-impact-card-head p,
.nphs-store-impact-area-list,
.nphs-business-impact-card p {
	margin: 4px 0 0;
	color: #475569;
}

.nphs-store-impact-card-metrics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 14px;
}

.nphs-store-impact-card-metrics > span {
	display: block;
	padding: 12px;
	background: var(--nphs-surface-soft);
	border: 1px solid var(--nphs-border-soft);
	border-radius: var(--nphs-radius-sm);
	color: #475569;
	font-weight: 700;
}

.nphs-store-impact-metric-label {
	display: block;
	margin-bottom: 6px;
	color: #475569;
	font-size: 13px;
	font-weight: 700;
}

.nphs-store-impact-card-metrics strong {
	display: block;
	margin-bottom: 4px;
	color: var(--nphs-navy);
	font-size: 26px;
	line-height: 1;
}

.nphs-store-impact-card-metrics small {
	display: block;
	margin-top: 4px;
	color: #64748b;
	font-weight: 400;
	line-height: 1.4;
}

.nphs-store-impact-area-list {
	margin-top: 12px;
}

.nphs-store-impact-area-list p {
	margin: 6px 0 0;
}

.nphs-business-impact-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 14px;
}

.nphs-business-impact-row {
	padding: 12px;
	background: var(--nphs-surface-soft);
	border: 1px solid var(--nphs-border-soft);
	border-left: 3px solid #dbeafe;
	border-radius: var(--nphs-radius-sm);
}

.nphs-business-impact-row strong,
.nphs-business-impact-row span,
.nphs-business-impact-row small {
	display: block;
}

.nphs-business-impact-row strong {
	color: var(--nphs-navy);
}

.nphs-business-impact-row span {
	margin-top: 5px;
	color: var(--nphs-navy);
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
}

.nphs-business-impact-row small {
	margin-top: 6px;
	color: #64748b;
	line-height: 1.4;
}

.nphs-business-impact-card .nphs-business-impact-list {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 8px;
}

.nphs-business-impact-card .nphs-business-impact-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px;
	background: var(--nphs-surface);
}

.nphs-business-impact-card .nphs-business-impact-row span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	padding: 3px 8px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 999px;
	color: #1d4ed8;
	margin-top: 0;
	font-size: 14px;
}

.nphs-maintenance-snapshot {
	margin: 16px 0;
	padding: 20px;
	background: var(--nphs-surface);
	border: 1px solid var(--nphs-border);
	border-left: 4px solid var(--nphs-blue);
	border-radius: var(--nphs-radius);
	box-shadow: var(--nphs-shadow-sm);
}

.nphs-maintenance-snapshot-head {
	margin-bottom: 14px;
}

.nphs-maintenance-snapshot-head h2 {
	margin: 0;
	color: var(--nphs-navy);
	font-size: 20px;
	line-height: 1.3;
}

.nphs-maintenance-snapshot-head p {
	margin: 6px 0 0;
	color: #64748b;
}

.nphs-snapshot-metrics {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 16px;
}

.nphs-snapshot-metrics span {
	display: block;
	padding: 10px;
	background: var(--nphs-surface-soft);
	border: 1px solid var(--nphs-border-soft);
	border-radius: var(--nphs-radius-sm);
	color: #475569;
}

.nphs-snapshot-metrics strong {
	display: block;
	color: var(--nphs-navy);
	font-size: 22px;
	line-height: 1;
}

.nphs-snapshot-risk-list h3,
.nphs-snapshot-health h3 {
	margin: 0 0 8px;
	color: var(--nphs-navy);
	font-size: 15px;
	line-height: 1.3;
}

.nphs-snapshot-risk-list ol,
.nphs-snapshot-health ul {
	display: grid;
	gap: 8px;
	margin: 0;
	padding-left: 20px;
}

.nphs-snapshot-risk-list li,
.nphs-snapshot-health li {
	padding: 10px 0;
	border-top: 1px solid #eef2f7;
}

.nphs-snapshot-health {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #e2e8f0;
	color: #475569;
}

.nphs-snapshot-technical-note {
	color: var(--nphs-muted);
	font-size: 12px;
}

.nphs-snapshot-technical-note strong {
	color: #475569;
}

.nphs-snapshot-empty {
	margin: 0;
	padding: 10px 0;
	color: #64748b;
}

.nphs-snapshot-plugin {
	display: inline-block;
	min-width: min(280px, 100%);
	margin-right: 8px;
	color: var(--nphs-navy);
	font-weight: 700;
}

.nphs-snapshot-signal {
	display: block;
	margin-top: 5px;
	color: #64748b;
	line-height: 1.4;
}

.nphs-action-plan {
	margin: 16px 0;
	padding: 22px;
	background: var(--nphs-surface);
	border: 1px solid var(--nphs-border);
	border-left: 5px solid var(--nphs-blue);
	border-radius: var(--nphs-radius);
	box-shadow: var(--nphs-shadow-sm);
}

.nphs-action-plan h2 {
	margin: 0 0 10px;
	color: var(--nphs-navy);
	font-size: 18px;
	line-height: 1.3;
}

.nphs-action-plan ol {
	margin: 0;
	padding-left: 0;
	counter-reset: nphs-action-step;
	display: grid;
	gap: 10px;
	list-style: none;
}

.nphs-action-plan li {
	position: relative;
	margin: 0;
	padding: 12px 14px 12px 46px;
	background: var(--nphs-surface-soft);
	border: 1px solid var(--nphs-border-soft);
	border-radius: var(--nphs-radius-sm);
	line-height: 1.45;
}

.nphs-action-plan li::before {
	counter-increment: nphs-action-step;
	content: counter(nphs-action-step);
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	background: var(--nphs-blue);
	border-radius: 999px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.nphs-dashboard-env {
	color: #475569;
}

.nphs-dashboard-table-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 18px;
}

.nphs-dashboard-table-head h2 {
	margin: 0;
	color: #0f172a;
}

.nphs-dashboard-table-actions {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-left: auto;
}

.nphs-dashboard-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin: 10px 0 12px;
}

.nphs-dashboard-table {
	min-width: 980px;
	max-width: 1200px;
	table-layout: auto;
}

.nphs-table-scroll {
	max-width: 100%;
	overflow-x: auto;
	background: var(--nphs-surface);
	border: 1px solid var(--nphs-border);
	border-radius: var(--nphs-radius);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.nphs-table-scroll .nphs-dashboard-table {
	border: 0;
}

.nphs-dashboard-table th,
.nphs-dashboard-table td {
	vertical-align: top;
}

.nphs-dashboard-table th {
	background: var(--nphs-surface-soft);
	color: var(--nphs-navy);
	font-weight: 700;
}

.nphs-dashboard-table tbody tr {
	background: #fff;
}

.nphs-dashboard-table th:first-child,
.nphs-dashboard-table td:first-child {
	min-width: 220px;
}

.nphs-plugin-cell {
	min-width: 220px;
}

.nphs-plugin-name {
	display: block;
	color: var(--nphs-navy);
	font-weight: 700;
	line-height: 1.35;
}

.nphs-plugin-file {
	display: block;
	max-width: 260px;
	margin-top: 4px;
	color: #64748b;
	font-size: 12px;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nphs-status-badge,
.nphs-update-badge,
.nphs-grade-badge {
	display: inline-flex;
	align-items: center;
	min-height: 22px;
	padding: 2px 8px;
	border: 1px solid #c3c4c7;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

.nphs-status-active,
.nphs-update-current {
	background: #f0fdf4;
	border-color: #86efac;
	color: #166534;
}

.nphs-status-inactive {
	background: #f8fafc;
	border-color: #cbd5e1;
	color: #475569;
}

.nphs-update-available {
	background: #fffbeb;
	border-color: #facc15;
	color: #854d0e;
}

.nphs-signal-text {
	display: block;
	min-width: 150px;
	max-width: 280px;
	line-height: 1.4;
}

.nphs-dashboard-tip {
	margin-top: 12px;
	color: #475569;
}

.nphs-report-wrap {
	max-width: 1180px;
}

.nphs-report-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px;
	gap: 24px;
	align-items: stretch;
	margin: 20px 0 16px;
	padding: 30px;
	background: var(--nphs-surface);
	border: 1px solid var(--nphs-border);
	border-left: 5px solid #2271b1;
	border-radius: var(--nphs-radius);
	box-shadow: var(--nphs-shadow);
}

.nphs-report-kicker {
	margin: 0 0 6px;
	color: #646970;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

.nphs-report-hero h1 {
	margin: 0 0 12px;
	color: var(--nphs-navy);
	font-size: 32px;
	line-height: 1.2;
}

.nphs-report-summary {
	max-width: 760px;
	margin: 0;
	color: #2c3338;
	font-size: 15px;
	line-height: 1.6;
}

.nphs-report-status {
	margin: 0 0 10px;
	color: #1d2327;
	font-size: 15px;
	line-height: 1.5;
}

.nphs-report-value {
	max-width: 720px;
	margin: 0;
	color: #475569;
	font-size: 15px;
	line-height: 1.5;
}

.nphs-report-summary-card {
	margin: 0 0 16px;
	padding: 22px;
	background: var(--nphs-surface);
	border: 1px solid var(--nphs-border);
	border-left: 4px solid #2271b1;
	border-radius: var(--nphs-radius);
	box-shadow: var(--nphs-shadow-sm);
}

.nphs-report-summary-card h2 {
	margin: 0 0 8px;
	color: var(--nphs-navy);
	font-size: 18px;
	line-height: 1.3;
}

.nphs-report-business-impact-summary,
.nphs-report-store-impact-summary {
	margin: 0 0 16px;
	padding: 20px;
	background: var(--nphs-surface);
	border: 1px solid var(--nphs-border);
	border-left: 4px solid #2271b1;
	border-radius: var(--nphs-radius);
	box-shadow: var(--nphs-shadow-sm);
}

.nphs-report-business-impact-summary {
	border-left-color: #1d4ed8;
}

.nphs-report-business-impact-summary h2,
.nphs-report-store-impact-summary h2 {
	margin: 0 0 8px;
	color: var(--nphs-navy);
	font-size: 18px;
	line-height: 1.3;
}

.nphs-report-business-impact-summary p,
.nphs-store-impact-summary-intro {
	margin: 0 0 12px;
	color: #50575e;
}

.nphs-report-business-impact-summary .nphs-business-impact-list,
.nphs-store-impact-summary-metrics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.nphs-store-impact-summary-item {
	display: block;
	padding: 12px;
	background: var(--nphs-surface-soft);
	border: 1px solid var(--nphs-border-soft);
	border-radius: var(--nphs-radius-sm);
}

.nphs-store-impact-summary-item span {
	display: block;
	color: #475569;
	font-weight: 700;
}

.nphs-store-impact-summary-metrics strong {
	display: block;
	margin-top: 4px;
	color: var(--nphs-navy);
	font-size: 24px;
	line-height: 1;
}

.nphs-store-impact-summary-metrics small {
	display: block;
	margin-top: 4px;
	color: #646970;
	line-height: 1.4;
}

.nphs-store-impact-summary-areas p {
	margin: 8px 0 0;
	color: #50575e;
}

.nphs-report-branding {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0 0 14px;
	color: #50575e;
}

.nphs-report-branding span,
.nphs-report-status-pill {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	padding: 4px 8px;
	background: var(--nphs-surface-soft);
	border: 1px solid var(--nphs-border-soft);
	border-radius: 999px;
}

.nphs-report-status-pill {
	width: fit-content;
	margin: 0 0 10px;
	color: #334155;
}

.nphs-report-score-panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 22px;
	background: var(--nphs-surface-soft);
	border: 1px solid #dbeafe;
	border-top: 3px solid #2271b1;
	border-radius: var(--nphs-radius);
	text-align: center;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.nphs-report-score {
	color: #1d2327;
	font-size: 48px;
	font-weight: 700;
	line-height: 1;
}

.nphs-report-score-label {
	margin-top: 6px;
	color: #646970;
}

.nphs-report-grade {
	margin-top: 12px;
	padding: 5px 11px;
	background: #1d2327;
	color: #fff;
	border: 1px solid #1d2327;
	border-radius: 999px;
	font-weight: 700;
}

.nphs-report-grade-A,
.nphs-report-grade-B {
	background: #e6ffed;
	border-color: #7ad186;
	color: #064b20;
}

.nphs-report-grade-C {
	background: #fff8e5;
	border-color: #dba617;
	color: #7a4b00;
}

.nphs-report-grade-D,
.nphs-report-grade-F {
	background: #fff5f5;
	border-color: #d63638;
	color: #8c1c13;
}

.nphs-report-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0 0 16px;
}

.nphs-report-actions .button {
	min-height: 34px;
}

.nphs-report-settings-panel {
	margin: 0 0 16px;
	padding: 18px;
	background: var(--nphs-surface-soft);
	border: 1px solid var(--nphs-border-soft);
	border-radius: var(--nphs-radius);
}

.nphs-report-settings-panel summary {
	cursor: pointer;
	color: #0f172a;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.nphs-report-settings-panel[open] summary {
	margin-bottom: 14px;
}

.nphs-report-settings-form {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.nphs-report-settings-form label {
	display: grid;
	gap: 6px;
	font-weight: 600;
}

.nphs-field-help {
	display: block;
	color: var(--nphs-muted);
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
}

.nphs-report-settings-form input,
.nphs-report-settings-form textarea {
	width: 100%;
	font-weight: 400;
}

.nphs-report-footer-field,
.nphs-report-settings-actions {
	grid-column: 1 / -1;
}

.nphs-report-footer-note {
	margin: 18px 0 0;
	padding: 16px;
	background: #fff;
	border: 1px solid #dcdcde;
	line-height: 1.5;
}

.nphs-report-technical-note {
	margin: 16px 0 0;
	padding: 12px 14px;
	background: var(--nphs-surface-soft);
	border: 1px solid var(--nphs-border-soft);
	border-radius: var(--nphs-radius-sm);
	color: var(--nphs-muted);
	font-size: 12px;
	line-height: 1.45;
}

.nphs-report-technical-note strong {
	color: #475569;
}

.nphs-report-meta {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 16px;
}

.nphs-report-meta div {
	min-width: 0;
	padding: 14px;
	background: var(--nphs-surface);
	border: 1px solid var(--nphs-border);
	border-radius: var(--nphs-radius-sm);
}

.nphs-report-meta span,
.nphs-report-meta small {
	display: block;
	color: #646970;
}

.nphs-report-meta strong {
	display: block;
	margin-top: 4px;
	color: #1d2327;
	overflow-wrap: anywhere;
}

.nphs-report-notice {
	padding: 10px 12px;
}

.nphs-report-sections {
	display: grid;
	gap: 16px;
	margin-top: 16px;
}

.nphs-report-section {
	background: var(--nphs-surface);
	border: 1px solid var(--nphs-border);
	border-radius: var(--nphs-radius);
	box-shadow: var(--nphs-shadow-sm);
	overflow: hidden;
}

.nphs-report-section-empty {
	box-shadow: none;
	border-color: var(--nphs-border-soft);
}

.nphs-report-section-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	background: var(--nphs-surface-soft);
	border-bottom: 1px solid var(--nphs-border);
}

.nphs-report-section-empty .nphs-report-section-head {
	padding: 10px 14px;
	background: var(--nphs-surface);
}

.nphs-report-section h2 {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
}

.nphs-report-section-empty h2 {
	color: #334155;
	font-size: 15px;
}

.nphs-report-section-good_healthy_signals {
	border-color: #e2e8f0;
	box-shadow: none;
	background: #fbfefc;
}

.nphs-report-section-good_healthy_signals .nphs-report-section-head {
	background: #fbfefc;
}

.nphs-report-section-good_healthy_signals .nphs-report-count {
	background: #e6ffed;
	border-color: #7ad186;
	color: #064b20;
}

.nphs-report-count {
	min-width: 28px;
	padding: 3px 8px;
	background: #f0f0f1;
	border: 1px solid #c3c4c7;
	border-radius: 999px;
	text-align: center;
	font-weight: 700;
}

.nphs-report-empty {
	margin: 0;
	padding: 8px 14px 12px;
	color: #646970;
}

.nphs-report-issue-list {
	display: grid;
	gap: 12px;
	padding: 16px;
}

.nphs-report-issue {
	padding: 18px;
	border: 1px solid var(--nphs-border);
	border-left: 4px solid #8c8f94;
	border-radius: var(--nphs-radius);
	background: var(--nphs-surface);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.nphs-report-issue h3 {
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
}

.nphs-report-issue p {
	margin: 10px 0 0;
	line-height: 1.5;
}

.nphs-report-issue-head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: flex-start;
	padding-bottom: 10px;
	border-bottom: 1px solid #eef2f7;
}

.nphs-report-severity-badge {
	flex: 0 0 auto;
	padding: 3px 8px;
	background: #f0f0f1;
	border: 1px solid #c3c4c7;
	border-radius: 999px;
	color: #1d2327;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}

.nphs-report-severity-low {
	border-left-color: #cbd5e1;
}

.nphs-report-severity-low .nphs-report-severity-badge {
	background: #f8fafc;
	border-color: #cbd5e1;
	color: #475569;
}

.nphs-report-severity-medium {
	border-left-color: #dba617;
}

.nphs-report-severity-medium .nphs-report-severity-badge {
	background: var(--nphs-amber-soft);
	border-color: var(--nphs-amber);
	color: #7a4b00;
}

.nphs-report-severity-high {
	border-left-color: #d63638;
}

.nphs-report-severity-high .nphs-report-severity-badge,
.nphs-report-severity-critical .nphs-report-severity-badge {
	background: var(--nphs-red-soft);
	border-color: var(--nphs-red);
	color: #8c1c13;
}

.nphs-report-severity-critical {
	border-left-color: #8c1c13;
}

.nphs-report-issue-positive {
	border-left-color: var(--nphs-green);
	background: #fbfefc;
}

.nphs-report-issue-positive .nphs-report-severity-badge {
	background: #e6ffed;
	border-color: #7ad186;
	color: #064b20;
}

.nphs-report-plugin {
	color: #50575e;
}

.nphs-business-impact,
.nphs-store-impact {
	margin: 10px 0 0;
	padding: 12px 14px;
	background: var(--nphs-surface-soft);
	border: 1px solid #cbd5e1;
	border-left: 3px solid #2271b1;
	border-radius: var(--nphs-radius-sm);
	color: #1d2327;
}

.nphs-business-impact-visibility_marketing,
.nphs-commercial-impact {
	background: #f8fafc;
	border-left-color: #64748b;
}

.nphs-business-impact-lead_capture {
	border-left-color: #00a0d2;
}

.nphs-business-impact-email_delivery {
	border-left-color: #7c3aed;
}

.nphs-business-impact-access_login {
	border-left-color: #dba617;
}

.nphs-business-impact-performance {
	border-left-color: #475569;
}

.nphs-business-impact p,
.nphs-store-impact p {
	margin: 4px 0;
}

.nphs-business-impact-note,
.nphs-store-impact-note {
	color: #50575e;
	font-size: 13px;
}

.nphs-report-issue-detail {
	padding-top: 11px;
	border-top: 1px solid #eef2f7;
}

.nphs-report-issue-detail strong {
	display: block;
	margin-bottom: 3px;
	color: #0f172a;
}

.nphs-report-client-explanation {
	margin-top: 12px;
	padding: 13px 14px;
	background: #f8fbff;
	border: 1px solid #bfdbfe;
	border-left: 3px solid #1d4ed8;
	border-radius: var(--nphs-radius-sm);
	color: #334155;
	font-size: 14px;
}

.nphs-report-action {
	margin-top: 10px;
	color: #1d2327;
	font-weight: 500;
}

.nphs-report-why {
	margin-top: 10px;
	color: #64748b;
	font-size: 13px;
	background: #f8fafc;
	border-radius: var(--nphs-radius-sm);
	padding: 10px 12px;
}

.nphs-report-why strong {
	color: #475569;
}

@media (max-width: 900px) {
	.nphs-dashboard-hero,
	.nphs-dashboard-cards,
	.nphs-business-impact-list,
	.nphs-store-impact-card-metrics,
	.nphs-store-impact-summary-metrics {
		grid-template-columns: 1fr;
	}

	.nphs-dashboard-hero-actions,
	.nphs-dashboard-hero-buttons,
	.nphs-dashboard-table-head,
	.nphs-dashboard-table-actions {
		justify-content: flex-start;
		margin-left: 0;
	}

	.nphs-store-impact-card-head {
		display: block;
	}

	.nphs-snapshot-metrics {
		grid-template-columns: 1fr;
	}

	.nphs-pro-feature-list {
		grid-template-columns: 1fr;
	}

	.nphs-dashboard-table-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.nphs-report-hero,
	.nphs-report-meta,
	.nphs-report-settings-form {
		grid-template-columns: 1fr;
	}
}

@media print {
	@page {
		margin: 16mm;
	}

	#adminmenumain,
	#adminmenuback,
	#adminmenuwrap,
	#wpadminbar,
	#wpfooter,
	#screen-meta,
	#screen-meta-links,
	.update-nag,
	.updated,
	.error,
	.notice:not(.nphs-report-notice),
	.nphs-report-actions,
	.nphs-report-settings-panel {
		display: none !important;
	}

	body {
		background: #fff !important;
		color: #111;
		font-size: 11pt;
	}

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

	#wpbody-content {
		padding-bottom: 0;
	}

	.nphs-report-wrap {
		max-width: none;
		margin: 0;
	}

	.nphs-report-hero {
		margin-top: 0;
		padding: 18pt;
		border-color: #999;
		border-left: 5pt solid #222;
	}

	.nphs-report-hero h1 {
		font-size: 24pt;
	}

	.nphs-report-score {
		font-size: 38pt;
	}

	.nphs-report-grade {
		background: #fff !important;
		border: 1pt solid #666 !important;
		color: #111 !important;
		print-color-adjust: exact;
		-webkit-print-color-adjust: exact;
	}

	.nphs-report-meta,
	.nphs-report-summary-card,
	.nphs-report-business-impact-summary,
	.nphs-report-store-impact-summary,
	.nphs-action-plan,
	.nphs-report-section,
	.nphs-report-technical-note,
	.nphs-report-footer-note {
		margin-top: 12pt;
	}

	.nphs-report-hero,
	.nphs-report-summary-card,
	.nphs-report-business-impact-summary,
	.nphs-report-store-impact-summary,
	.nphs-action-plan,
	.nphs-report-section,
	.nphs-report-meta div,
	.nphs-report-issue,
	.nphs-report-technical-note,
	.nphs-report-footer-note {
		box-shadow: none;
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.nphs-report-section-head {
		padding: 10pt 12pt;
	}

	.nphs-report-issue-list {
		padding: 10pt;
	}

	.nphs-report-issue {
		border-left-color: #333 !important;
	}

	.nphs-report-severity-badge,
	.nphs-report-count {
		background: #f4f4f4 !important;
		color: #111 !important;
		print-color-adjust: exact;
		-webkit-print-color-adjust: exact;
	}
}
