/* Secure PDF Viewer — full-screen overlay */

.spv-open-btn {
	display: inline-block;
	padding: 10px 18px;
	background: #1e3a5f;
	color: #fff;
	border: 0;
	border-radius: 6px;
	font: inherit;
	cursor: pointer;
}
.spv-open-btn:hover { background: #274c7d; }

/* Lock background scroll while the viewer is open */
body.spv-lock { overflow: hidden; }

.spv-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: #22262b;
	display: flex;
	flex-direction: column;
	/* Discourage text selection / callout across the whole viewer */
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

.spv-bar {
	flex: 0 0 auto;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px;
	background: #14171a;
	color: #e8e8e8;
}
.spv-title { font-size: 14px; letter-spacing: .04em; opacity: .85; }

.spv-close {
	background: transparent;
	border: 0;
	color: #e8e8e8;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	padding: 0 6px;
}
.spv-close:hover { color: #fff; }

.spv-pages {
	flex: 1 1 auto;
	overflow: auto;
	padding: 24px 12px 48px;
	text-align: center;
	-webkit-overflow-scrolling: touch;
}

.spv-page {
	display: block;
	margin: 0 auto 18px;
	max-width: 100%;
	box-shadow: 0 6px 22px rgba( 0, 0, 0, .5 );
	background: #fff;
	/* The canvas is an image — block dragging it out */
	-webkit-user-drag: none;
	user-drag: none;
	pointer-events: none;
}

.spv-error {
	color: #ffb4b4;
	font-size: 15px;
	margin-top: 40px;
}

/* If anyone tries to print the page, hide the viewer entirely */
@media print {
	.spv-overlay { display: none !important; }
}
