.ncef-pdf-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	background: rgba(15, 18, 25, 0.92);
}
.ncef-pdf-modal[hidden] { display: none; }
body.ncef-pdf-open { overflow: hidden; }

.ncef-pdf-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #1d2230;
	color: #fff;
	font-size: 14px;
}
.ncef-pdf-title {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 600;
}
.ncef-pdf-bar button,
.ncef-pdf-bar a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 4px;
	background: transparent;
	color: #fff;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}
.ncef-pdf-bar button:hover,
.ncef-pdf-bar a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.ncef-pdf-zoom { min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; }

.ncef-pdf-pages {
	flex: 1;
	overflow: auto;
	padding: 16px;
	text-align: center;
}
.ncef-pdf-pages canvas {
	display: block;
	max-width: none;
	margin: 0 auto 16px;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}
.ncef-pdf-status { color: #cfd4de; padding: 40px 0; }

@media (max-width: 600px) {
	.ncef-pdf-bar { padding: 8px; gap: 4px; }
	.ncef-pdf-hide-sm { display: none !important; }
	.ncef-pdf-pages { padding: 8px; }
}
