html,
body.jatsstudio-pdf-reader-page {
	width: 100%;
	height: 100%;
	margin: 0;
}

body.jatsstudio-pdf-reader-page {
	overflow: hidden;
}

.jspdf,
.jspdf * {
	box-sizing: border-box;
}

.jspdf [hidden] {
	display: none !important;
}

.jspdf__stage {
	position: relative;
	display: flex;
	min-height: 0;
	flex-direction: column;
	overflow: hidden;
	background: #e6eaef;
}

.jspdf__toolbar {
	z-index: 3;
	display: flex;
	min-height: 46px;
	padding: 6px 14px;
	align-items: center;
	justify-content: center;
	gap: 18px;
	background: #f8fafc;
	border-bottom: 1px solid #cfd6df;
	box-shadow: 0 2px 7px rgba(25, 34, 47, 0.05);
}

.jspdf__control-group {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.jspdf__button,
.jspdf__fit {
	display: inline-grid;
	min-width: 32px;
	height: 32px;
	padding: 0 9px;
	place-items: center;
	border: 1px solid #cbd3de;
	border-radius: 5px;
	background: #fff;
	color: #30445c;
	cursor: pointer;
	font: 650 0.82rem/1 Arial, Helvetica, sans-serif;
}

.jspdf__button {
	font-size: 1.38rem;
}

.jspdf__button--text {
	font-size: 1.12rem;
}

.jspdf__button:hover:not(:disabled),
.jspdf__fit:hover:not(:disabled),
.jspdf__fit[aria-pressed="true"] {
	background: #e9eef4;
	border-color: #aebaca;
}

.jspdf__button:disabled,
.jspdf__fit:disabled {
	cursor: default;
	opacity: 0.42;
}

.jspdf__page-field {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #4c596a;
	font: 0.82rem/1 Arial, Helvetica, sans-serif;
}

.jspdf__page-field input {
	width: 52px;
	height: 32px;
	padding: 4px 5px;
	border: 1px solid #cbd3de;
	border-radius: 5px;
	background: #fff;
	color: #202733;
	font: 0.84rem/1 Arial, Helvetica, sans-serif;
	text-align: center;
	-moz-appearance: textfield;
}

.jspdf__page-field input::-webkit-inner-spin-button,
.jspdf__page-field input::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.jspdf__zoom {
	min-width: 48px;
	color: #4c596a;
	font: 0.8rem/1 Arial, Helvetica, sans-serif;
	text-align: center;
}

.jspdf__viewer {
	position: relative;
	min-width: 0;
	min-height: 0;
	flex: 1 1 auto;
	overflow: hidden;
	background: #dfe4ea;
}

.jspdf__frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background: #dfe4ea;
}

.jspdf__status,
.jspdf__fallback {
	position: absolute;
	z-index: 5;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(238, 241, 244, 0.95);
}

.jspdf__status {
	gap: 11px;
	color: #5f6d7e;
	font: 0.88rem/1.4 Arial, Helvetica, sans-serif;
	pointer-events: none;
}

.jspdf__spinner {
	width: 20px;
	height: 20px;
	border: 2px solid rgba(51, 70, 93, 0.2);
	border-top-color: #33465d;
	border-radius: 50%;
	animation: jspdf-spin 720ms linear infinite;
}

.jspdf.is-ready .jspdf__status,
.jspdf.is-error .jspdf__status {
	display: none;
}

.jspdf__fallback {
	padding: 28px;
	flex-direction: column;
	gap: 14px;
	color: #202733;
	font: 0.92rem/1.5 Arial, Helvetica, sans-serif;
	text-align: center;
}

.jspdf__fallback p {
	max-width: 560px;
	margin: 0;
}

.jspdf__fallback a {
	display: inline-flex;
	min-height: 38px;
	padding: 0 14px;
	align-items: center;
	border-radius: 6px;
	background: #33465d;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}

.jspdf button:focus-visible,
.jspdf input:focus-visible,
.jspdf a:focus-visible,
.jspdf__frame:focus-visible {
	outline: 3px solid #0b67c2;
	outline-offset: 2px;
}

@keyframes jspdf-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 700px) {
	.jspdf__toolbar {
		min-height: 44px;
		padding: 5px 8px;
		justify-content: space-between;
		gap: 6px;
	}

	.jspdf__page-word,
	.jspdf__fit {
		display: none;
	}

	.jspdf__page-field {
		gap: 4px;
	}

	.jspdf__page-field input {
		width: 43px;
	}

	.jspdf__zoom {
		min-width: 40px;
		font-size: 0.75rem;
	}
}
