/* PWS Positive Vibes */
:root {
	--pv-plum: #a73858;
	--pv-teal: #0e9ea7;
	--pv-amber: #ffb60f;
	--pv-green: #8cbb37;
	--pv-ink: #3a3c3b;
	--pv-stripes: linear-gradient(90deg, var(--pv-plum) 0 25%, var(--pv-teal) 25% 50%, var(--pv-amber) 50% 75%, var(--pv-green) 75% 100%);
}

/* ---------- Welcome statement ---------- */
.pv-banner {
	background: #fbf7f8;
	border-top: 5px solid transparent;
	border-image: var(--pv-stripes) 1;
	padding: 18px 16px;
	text-align: center;
}
.pv-banner-inner { max-width: 980px; margin: 0 auto; }
.pv-banner-heading {
	margin: 0 0 6px;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--pv-plum);
}
.pv-banner-text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--pv-ink); }
@media (max-width: 600px) {
	.pv-banner-heading { font-size: 18px; }
	.pv-banner-text { font-size: 15px; }
}

.pv-print-header { display: none; }

/* ---------- Induction / training app ---------- */
.pv-doc-logo { display: block; width: 220px; max-width: 60%; height: auto; margin: 0 auto 12px; }
.pwsi-sheet > .pv-doc-logo { margin: 0 0 12px; width: 180px; }

/* ---------- Chips + question editor ---------- */
.pv-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #eef6f7; color: #0b6f75; font-size: 13px; font-weight: 600; }
.pv-chip-hs { background: #fbeef2; color: var(--pv-plum); }
.pv-qpanel { border: 1px solid #e3d3d9; border-left: 5px solid var(--pv-plum); border-radius: 8px; padding: 14px 16px; margin: 14px 0; background: #fffafb; }
.pv-qpanel h4, .pv-quiz h4, .pv-qdetail h4 { margin: 0 0 6px; color: var(--pv-plum); }
.pv-qedit { border-top: 1px solid #eadde2; padding: 10px 0; }
.pv-qedit textarea { width: 100%; }
.pv-qedit-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.pv-qopt { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.pv-qopt input[type="text"] { flex: 1; min-width: 0; }
.pv-link { background: none; border: 0; color: var(--pv-plum); text-decoration: underline; cursor: pointer; padding: 0; }
.pv-quiz { border: 1px solid #e3d3d9; border-left: 5px solid var(--pv-teal); border-radius: 8px; padding: 14px 16px; margin: 14px 0; background: #f7fcfc; }
.pv-quiz ol { margin: 8px 0 0 18px; padding: 0; }
.pv-quiz li { margin: 0 0 12px; }
.pv-quiz fieldset { border: 0; margin: 0; padding: 0; }
.pv-quiz legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.pv-qdetail { margin-top: 18px; padding-top: 12px; border-top: 1px solid #eee; }

/* ---------- Notification tools ---------- */
.pv-tools { display: grid; gap: 14px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #eee; }
.pv-tool { border: 1px solid #e5e5e5; border-radius: 8px; padding: 12px 14px; }
.pv-tool h4 { margin: 0 0 4px; }
.pv-tool select { max-width: 100%; }
.pv-danger { border-color: #f1c9c5; background: #fff8f7; }
.pv-danger h4 { color: #b3261e; }
.pv-btn-danger { background: #b3261e !important; border-color: #b3261e !important; color: #fff !important; }

/* ---------- H&S booklet ---------- */
.pv-booklet { max-width: 900px; margin: 0 auto; color: var(--pv-ink); }
.pv-booklet-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0 20px; }
.pv-btn { background: var(--pv-plum); color: #fff; border: 0; border-radius: 6px; padding: 10px 18px; font-weight: 600; cursor: pointer; }
.pv-btn:hover { background: #8d2e4a; }
.pv-btn[disabled] { opacity: .6; cursor: wait; }
.pv-muted { color: #6b6f6e; font-size: 14px; }
.pv-stripes { height: 8px; background: var(--pv-stripes); border-radius: 4px; }
.pv-cover { text-align: center; padding: 40px 24px; border: 1px solid #eee; border-radius: 10px; margin-bottom: 24px; background: #fff; }
.pv-cover-logo { margin: 36px auto 24px !important; width: 420px !important; }
.pv-cover h1 { color: var(--pv-plum); font-size: 36px; margin: 10px 0 6px; }
.pv-cover-sub { font-size: 18px; margin: 0 0 8px; }
.pv-cover-meta { color: #6b6f6e; margin: 0 0 36px; }
.pv-contents { padding: 0 4px 16px; border-bottom: 1px solid #eee; margin-bottom: 24px; }
.pv-contents h2 { color: var(--pv-plum); }
.pv-contents li { margin: 4px 0; }
.pv-section { border: 1px solid #eee; border-radius: 10px; padding: 20px 22px; margin-bottom: 24px; background: #fff; }
.pv-section-head { display: flex; gap: 18px; align-items: center; border-bottom: 4px solid transparent; border-image: var(--pv-stripes) 1; padding-bottom: 12px; margin-bottom: 14px; }
.pv-section-logo { width: 150px !important; flex: 0 0 auto; }
.pv-section-head h2 { margin: 2px 0 0; font-size: 24px; color: var(--pv-ink); }
.pv-kicker { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--pv-teal); text-transform: uppercase; }
.pv-attachment { margin-top: 16px; }
.pv-attach-label { font-weight: 600; }
.pv-pdf-page, .pv-attach-img { display: block; width: 100%; height: auto; border: 1px solid #ddd; margin: 0 0 12px; }
.pv-attach-text { background: #fafafa; border: 1px solid #eee; padding: 14px 16px; border-radius: 6px; }
.pv-empty { padding: 18px; background: #fafafa; border-radius: 8px; }
@media (max-width: 600px) {
	.pv-section-head { flex-direction: column; align-items: flex-start; }
	.pv-cover h1 { font-size: 28px; }
}

/* ---------- Print: every printed page from the portal carries the logo ---------- */
@media print {
	.pv-banner { display: none !important; }
	.pv-print-header { display: block; padding: 0 0 10px; margin: 0 0 14px; border-bottom: 3px solid var(--pv-plum); }
	.pv-print-header img { width: 220px !important; }
	body.pwsi-printing-sheet .pv-print-header { display: none !important; }
	.pv-doc-logo { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

	body.pv-booklet-page .pv-print-header,
	body.pv-booklet-page header,
	body.pv-booklet-page footer,
	body.pv-booklet-page .fl-page-header,
	body.pv-booklet-page .fl-page-footer-wrap,
	body.pv-booklet-page .fl-builder-content[data-type="header"],
	body.pv-booklet-page .fl-builder-content[data-type="footer"],
	body.pv-booklet-page #wpadminbar,
	body.pv-booklet-page .shiftnav,
	body.pv-booklet-page #shiftnav-toggle-main,
	body.pv-booklet-page .fl-post-header,
	body.pv-booklet-page .pv-booklet-tools { display: none !important; }
	body.pv-booklet-page { margin: 0 !important; padding: 0 !important; }
	.pv-booklet { max-width: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.pv-cover { border: 0; min-height: 90vh; display: flex; flex-direction: column; justify-content: center; page-break-after: always; break-after: page; }
	.pv-contents { page-break-after: always; break-after: page; border: 0; }
	.pv-section { border: 0; padding: 0; page-break-before: always; break-before: page; }
	.pv-pdf-page, .pv-attach-img { border: 0; page-break-inside: avoid; break-inside: avoid; max-height: 25cm; width: auto; max-width: 100%; margin: 0 auto 8px; }
}
