/* ============================================================
   PDF MODAL GLOBAL — estilos del visor (js/pdf_modal.js)
   ============================================================ */
#pdfm_overlay {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	z-index: 3000;
	display: none;
	background: rgba(15, 23, 42, .58);
	padding: 18px;
}

#pdfm_overlay.is-open {
	display: flex;
	align-items: center;
	justify-content: center;
	animation: pdfm_fade .18s ease;
}

.pdfm_box {
	width: 1080px;
	max-width: 97vw;
	height: 94vh;
	max-height: 900px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: pdfm_pop .22s cubic-bezier(.34, 1.4, .55, 1);
}

.pdfm_bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: #fff;
	flex: 0 0 auto;
}

/* estilo calm-chip: pill blanco con borde, icono de color, texto oscuro */
.pdfm_btn {
	cursor: pointer;
	height: 40px;
	padding: 0 20px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #cbd5e1;
	font-size: 14px;
	font-weight: 700;
	color: #334155;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	user-select: none;
	transition: all .15s;
}

.pdfm_btn i.fa {
	font-size: 14px;
}

.pdfm_btn:hover {
	border-color: #94a3b8;
	color: #0f172a;
	background: #f1f5f9;
	transform: translateY(-1px);
	box-shadow: 0 3px 10px rgba(0, 0, 0, .10);
}

.pdfm_btn:active {
	transform: translateY(0) scale(.97);
}

.pdfm_btn.is-print i.fa { color: #a31226; }
.pdfm_btn.is-web i.fa   { color: #1976d2; }

.pdfm_x {
	margin-left: auto;
	border: 0;
	background: transparent;
	cursor: pointer;
	flex: 0 0 42px;
	width: 42px !important;
	height: 42px !important;
	max-width: 42px;
	max-height: 42px;
	padding: 0 !important;
	overflow: hidden;
	border-radius: 50%;
	color: #37474f;
	font-size: 24px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background .12s, color .12s;
}

.pdfm_x i.fa {
	font-size: 24px;
	line-height: 1;
}

.pdfm_x:hover {
	background: #eceff1;
	color: #000;
}

.pdfm_frame {
	flex: 1 1 auto;
	width: 100%;
	border: 0;
	background: #525659;
}

body.pdfm_noscroll { overflow: hidden; }

@keyframes pdfm_fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes pdfm_pop {
	from { transform: scale(.94); opacity: .6; }
	to   { transform: scale(1); opacity: 1; }
}
