/* Boton de la ficha */

.md-muestra-boton {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0 4px;
	padding: 10px 18px;
	border: 1px solid #3b6284;
	border-radius: 3px;
	background: transparent;
	color: #3b6284;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .02em;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.md-muestra-boton:hover,
.md-muestra-boton:focus {
	background: #3b6284;
	color: #fff;
}

.md-muestra-boton svg {
	flex: 0 0 auto;
}

/* Visor */

.md-muestra-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	background: rgba(17, 24, 31, .96);
}

.md-muestra-modal[hidden] {
	display: none;
}

.md-muestra-barra {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 10px 16px;
	background: #11181f;
	color: #fff;
}

.md-muestra-titulo {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 60%;
}

.md-muestra-controles {
	display: flex;
	align-items: center;
	gap: 6px;
}

.md-muestra-controles button {
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 3px;
	background: transparent;
	color: #fff;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
}

.md-muestra-controles button:hover:not(:disabled) {
	background: rgba(255, 255, 255, .14);
}

.md-muestra-controles button:disabled {
	opacity: .35;
	cursor: default;
}

.md-muestra-paginas {
	min-width: 62px;
	text-align: center;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
}

.md-muestra-lienzo {
	flex: 1;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 16px;
}

.md-muestra-lienzo canvas {
	display: block;
	max-width: 100%;
	height: auto;
	background: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
}

.md-muestra-estado {
	margin: 0;
	align-self: center;
	color: #fff;
	font-size: 14px;
}

.md-muestra-estado[hidden] {
	display: none;
}

body.md-muestra-abierta {
	overflow: hidden;
}

@media (max-width: 549px) {

	.md-muestra-boton {
		width: 100%;
		justify-content: center;
	}

	.md-muestra-titulo {
		max-width: 100%;
		font-size: 13px;
	}

	.md-muestra-barra {
		padding: 8px 10px;
	}

	.md-muestra-controles {
		width: 100%;
		justify-content: space-between;
	}

	.md-muestra-lienzo {
		padding: 8px;
	}
}
