/* Orden de producción de vasos — FR-LAT-003 (Carta) */

.opv-board {
	--opv-ink: #111111;
	--opv-line: #1a1a1a;
	--opv-lab: #e4e4e4;
	--opv-lab-edge: #cfcfcf;
	--opv-hl: #f4a574;
	--opv-hl-deep: #e8925a;
	--opv-muted: #666666;
	--opv-teal: #13776d;
	--opv-teal-dark: #0f5f57;
	--opv-focus: #0f766e;
	--opv-check: #00c853;
	--opv-check-hover: #00b34a;
	--opv-row-h: 6.8mm;
	--opv-gap: 1.8mm;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

/* —— Toolbar (pantalla) —— */
.opv-toolbar {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
}

.opv-toolbar__intro {
	align-items: flex-start;
	display: flex;
	gap: 12px;
	min-width: 0;
}

.opv-toolbar__badge {
	align-items: center;
	background: linear-gradient(135deg, var(--opv-teal), var(--opv-teal-dark));
	border-radius: 10px;
	box-shadow: 0 2px 6px rgba(19, 119, 109, 0.22);
	color: #fff;
	display: inline-flex;
	flex-shrink: 0;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.opv-toolbar__badge .dashicons {
	color: #fff;
	font-size: 20px;
	height: 20px;
	width: 20px;
}

.opv-toolbar__intro h2 {
	font-size: 1.15rem;
	margin: 0 0 0.2rem;
}

.opv-toolbar__intro p {
	color: #475569;
	font-size: 0.9rem;
	margin: 0;
	max-width: 46rem;
}

.opv-toolbar__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.opv-toolbar__actions .button {
	align-items: center;
	display: inline-flex;
	gap: 6px;
	min-height: 36px;
}

.opv-toolbar__actions .button-primary {
	background: var(--opv-teal);
	border-color: var(--opv-teal);
}

.opv-toolbar__actions .button-primary:hover,
.opv-toolbar__actions .button-primary:focus {
	background: var(--opv-teal-dark);
	border-color: var(--opv-teal-dark);
}

.opv-size-note {
	align-items: center;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 10px 14px;
}

.opv-size-note__badge {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	border-radius: 999px;
	color: #065f46;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 0.25rem 0.65rem;
}

.opv-size-note p {
	color: #64748b;
	font-size: 0.85rem;
	margin: 0;
}

.opv-status {
	color: #0f766e;
	font-size: 0.9rem;
	margin: 0;
	min-height: 1.2em;
}

.opv-status.is-error {
	color: #b91c1c;
}

.opv-sheet-wrap {
	background:
		linear-gradient(45deg, #eef2f6 25%, transparent 25%),
		linear-gradient(-45deg, #eef2f6 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #eef2f6 75%),
		linear-gradient(-45deg, transparent 75%, #eef2f6 75%);
	background-color: #e8edf2;
	background-position: 0 0, 0 8px, 8px -8px, -8px 0;
	background-size: 16px 16px;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	overflow: auto;
	padding: 18px;
}

/* ========== HOJA CARTA ========== */
.opv-sheet {
	background: #fff;
	border: 1px solid #94a3b8;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.7) inset,
		0 14px 36px rgba(15, 23, 42, 0.14);
	box-sizing: border-box;
	color: var(--opv-ink);
	display: flex;
	flex-direction: column;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 8pt;
	height: calc(var(--opv-h-mm, 279.4) * 1mm);
	line-height: 1.2;
	margin: 0 auto;
	max-width: 100%;
	overflow: hidden;
	padding: 5mm 7mm 4.5mm 6mm;
	width: calc(var(--opv-w-mm, 215.9) * 1mm);
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}

.opv-sheet *,
.opv-sheet *::before,
.opv-sheet *::after {
	box-sizing: border-box;
}

.opv-sheet input,
.opv-sheet textarea {
	background: #fff;
	color: var(--opv-ink);
	font-family: inherit;
}

.opv-sheet input:focus,
.opv-sheet textarea:focus {
	background: #f7fffe;
	outline: 1.5px solid var(--opv-focus);
	outline-offset: -1.5px;
	position: relative;
	z-index: 1;
}

/* —— Cabecera —— */
.opv-head {
	align-items: start;
	display: grid;
	gap: 3mm;
	grid-template-columns: minmax(0, 1fr) auto;
	margin-bottom: 2.2mm;
	min-width: 0;
	overflow: visible;
}

.opv-head__left {
	min-width: 0;
	overflow: visible;
}

.opv-head__title {
	align-items: baseline;
	display: flex;
	flex-wrap: nowrap;
	font-size: 12.5pt;
	font-weight: 800;
	gap: 2mm;
	letter-spacing: 0.01em;
	line-height: 1.15;
	margin: 0 0 2.2mm;
	min-width: 0;
	text-transform: uppercase;
	white-space: nowrap;
}

.opv-head__num {
	border: 0;
	border-bottom: 1.7px solid var(--opv-line);
	flex: 1 1 auto;
	font: inherit;
	font-size: 12pt;
	font-weight: 700;
	letter-spacing: 0.08em;
	min-width: 18mm;
	padding: 0 1.2mm 0.5mm;
}

.opv-head__num:focus {
	background: transparent;
	border-bottom-color: var(--opv-focus);
	outline: none;
}

.opv-head__dates {
	display: grid;
	gap: 3.5mm;
	grid-template-columns: 1fr 1fr;
	max-width: 155mm;
}

.opv-head__brand {
	align-items: flex-end;
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	gap: 1mm;
	justify-content: flex-start;
	max-width: 48mm;
	min-width: 40mm;
	overflow: visible;
	padding: 0.4mm 0.6mm 0 0;
	width: 48mm;
}

.opv-head__logo {
	display: block;
	height: 10.5mm;
	max-width: 100%;
	object-fit: contain;
	object-position: right center;
	width: 100%;
}

.opv-head__code {
	color: var(--opv-muted);
	font-size: 7pt;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1;
	max-width: 100%;
	padding-right: 0.3mm;
	text-align: right;
	white-space: nowrap;
}

/* —— Fechas —— */
.opv-date {
	align-items: flex-end;
	display: flex;
	gap: 2mm;
	min-width: 0;
}

.opv-date__label {
	color: var(--opv-ink);
	flex: 0 0 auto;
	font-size: 7.8pt;
	font-weight: 700;
	line-height: 1.1;
	padding-bottom: 1.6mm;
	white-space: nowrap;
}

.opv-date__group {
	align-items: stretch;
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
}

.opv-date__boxes {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
}

.opv-date__part {
	border: 1px solid var(--opv-line);
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	margin: 0;
	min-width: 0;
}

.opv-date__part + .opv-date__part {
	border-left: 0;
}

.opv-date__cap {
	background: #f3f3f3;
	border-bottom: 1px solid var(--opv-line);
	font-size: 5.8pt;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 0.35mm 0;
	text-align: center;
	text-transform: uppercase;
}

.opv-date__part input {
	border: 0;
	font-size: 9pt;
	font-weight: 700;
	min-height: 5mm;
	min-width: 0;
	padding: 0.5mm 1mm;
	text-align: center;
	width: 100%;
}

.opv-date__picker-wrap {
	background: #f3f3f3;
	border: 1px solid var(--opv-line);
	border-left: 0;
	cursor: pointer;
	display: flex;
	flex: 0 0 5.2mm;
	margin: 0;
	overflow: hidden;
	position: relative;
	transition: background 0.12s ease;
}

.opv-date__picker-wrap:hover {
	background: #e8e8e8;
}

.opv-date__picker-icon {
	align-items: center;
	display: flex;
	font-size: 8pt;
	justify-content: center;
	pointer-events: none;
	width: 100%;
}

.opv-date__picker {
	cursor: pointer;
	height: 100%;
	left: 0;
	opacity: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

/* —— Cuerpo —— */
.opv-body {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	gap: var(--opv-gap);
}

.opv-row {
	align-items: stretch;
	display: flex;
	flex-wrap: nowrap;
	gap: var(--opv-gap);
	min-width: 0;
	width: 100%;
}

.opv-row--1 {
	gap: 0;
}

.opv-cell {
	align-items: stretch;
	border: 1px solid var(--opv-line);
	display: flex;
	flex: 1 1 0;
	gap: 0;
	margin: 0;
	min-height: var(--opv-row-h);
	min-width: 0;
	overflow: visible;
}

.opv-cell--sm {
	flex: 1 1 0;
}

.opv-cell--md {
	flex: 1.15 1 0;
}

.opv-cell--wide {
	flex: 1.35 1 0;
}

.opv-cell--fill {
	flex: 1 1 100%;
}

.opv-cell--pinza {
	flex: 0 0 50mm;
	max-width: 56mm;
}

.opv-cell__lab {
	align-items: center;
	background: var(--opv-lab);
	border: 0;
	border-right: 1px solid var(--opv-line);
	box-shadow: none;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 7.3pt;
	font-weight: 700;
	line-height: 1.15;
	min-width: max-content;
	outline: none;
	overflow: visible;
	padding: 0 1.7mm;
	white-space: nowrap;
}

.opv-cell--hl .opv-cell__lab {
	background: var(--opv-hl);
	box-shadow: none;
}

.opv-cell__inp {
	border: 0;
	flex: 1 1 auto;
	font-size: 9pt;
	min-height: var(--opv-row-h);
	min-width: 0;
	outline: none;
	padding: 0.6mm 1.5mm;
	width: 100%;
}

.opv-cell--date {
	flex: 1.45 1 0;
	min-width: 72mm;
	overflow: visible;
}

.opv-cell--date .opv-date {
	align-items: stretch;
	gap: 0;
	min-width: 0;
	overflow: visible;
	width: 100%;
}

.opv-cell--date .opv-date__label {
	align-items: center;
	background: var(--opv-lab);
	border: 0;
	border-right: 1px solid var(--opv-line);
	box-shadow: none;
	display: inline-flex;
	flex: 0 0 auto;
	flex-shrink: 0;
	font-size: 7.3pt;
	font-weight: 700;
	min-width: max-content;
	outline: none;
	overflow: visible;
	padding: 0 1.7mm;
	padding-bottom: 0;
	white-space: nowrap;
}

.opv-cell--date .opv-date__group {
	flex: 1 1 auto;
	min-width: 36mm;
	overflow: visible;
}

/* Evitar doble marco: el borde exterior lo pone .opv-cell */
.opv-cell--date .opv-date__part {
	border-bottom: 0;
	border-top: 0;
}

.opv-cell--date .opv-date__boxes .opv-date__part:first-child {
	border-left: 0;
}

.opv-cell--date .opv-date__boxes .opv-date__part:last-child {
	border-right: 0;
}

.opv-cell--prices {
	align-items: center;
	background: #fafafa;
	border: 1px solid var(--opv-line);
	display: flex;
	flex: 0 1 auto;
	flex-wrap: nowrap;
	gap: 2.2mm;
	justify-content: flex-start;
	min-width: 0;
	padding: 0 2mm;
}

.opv-otro-cual {
	align-items: center;
	display: inline-flex;
	flex: 1 1 22mm;
	gap: 1mm;
	margin: 0;
	min-width: 20mm;
}

.opv-otro-cual__lab {
	font-size: 7.3pt;
	font-weight: 700;
	white-space: nowrap;
}

.opv-otro-cual__inp {
	background: #fff;
	border: 1px solid var(--opv-line);
	flex: 1 1 auto;
	font-size: 8pt;
	min-height: 4.6mm;
	min-width: 14mm;
	padding: 0.3mm 1mm;
	width: 100%;
}

.opv-cell--papel {
	flex: 1.55 1 0;
}

.opv-papel {
	align-items: stretch;
	border: 0;
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	position: relative;
}

.opv-papel__part {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	margin: 0;
	min-width: 0;
}

.opv-papel__part span {
	background: #f3f3f3;
	border-bottom: 1px solid var(--opv-line);
	font-size: 5.8pt;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 0.35mm 1mm;
	text-align: center;
}

.opv-papel__part input {
	border: 0;
	font-size: 8.5pt;
	min-height: 4.4mm;
	outline: none;
	padding: 0.5mm 1mm;
	text-align: center;
	width: 100%;
}

.opv-papel__x {
	align-items: center;
	align-self: stretch;
	background: #fff;
	border: 0;
	box-shadow: none;
	box-sizing: border-box;
	display: flex;
	flex: 0 0 7mm;
	font-size: 8pt;
	font-weight: 800;
	justify-content: center;
	min-width: 7mm;
	padding: 0 1.4mm;
	position: relative;
	z-index: 2;
}

/* Líneas verticales del cuadro X (más fiables al imprimir que border) */
.opv-papel__x::before,
.opv-papel__x::after {
	background: var(--opv-line);
	bottom: 0;
	content: "";
	position: absolute;
	top: 0;
	width: 1px;
}

.opv-papel__x::before {
	left: 0;
}

.opv-papel__x::after {
	right: 0;
}

/* Sin hueco entre Número / Clases de tintas (evita filete doble al imprimir) */
.opv-row--tintas {
	gap: 0;
}

.opv-row--tintas .opv-cell + .opv-cell {
	border-left: 0;
}

.opv-row--tintas .opv-cell--sm {
	flex: 0 0 54mm;
	max-width: 58mm;
}

.opv-row--material .opv-cell--md {
	flex: 1 1 0;
	min-width: 0;
}

.opv-row--material .opv-cell--prices {
	flex: 1.4 1 0;
	min-width: 0;
}

.opv-row--material .opv-cell--papel {
	flex: 1.15 1 0;
	min-width: 0;
}

/* —— Checks (cuadrado verde redondeado) —— */
.opv-check {
	align-items: center;
	cursor: pointer;
	display: inline-flex;
	gap: 1.6mm;
	margin: 0;
	position: relative;
	user-select: none;
}

.opv-check input {
	height: 1px;
	left: 0;
	margin: 0;
	opacity: 0;
	position: absolute;
	top: 0;
	width: 1px;
}

.opv-check__box {
	background: #fff;
	border: 2.3px solid var(--opv-check);
	border-radius: 1.2mm;
	display: inline-block;
	flex-shrink: 0;
	height: 4.3mm;
	order: 0;
	position: relative;
	transition: border-color 0.12s ease;
	width: 4.3mm;
}

.opv-check:hover .opv-check__box {
	border-color: var(--opv-check-hover);
}

.opv-check--right .opv-check__text {
	order: 1;
}

.opv-check--right .opv-check__box {
	margin-left: auto;
	order: 2;
}

.opv-check--left .opv-check__box {
	order: 1;
}

.opv-check--left .opv-check__text {
	order: 2;
}

/* Chulo verde con extremos redondeados (SVG) */
.opv-check__box::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5.2 12.6L10.1 17.4L18.8 6.8' stroke='%2300c853' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 78% 78%;
	content: "";
	height: 100%;
	left: 0;
	opacity: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

.opv-check input:checked ~ .opv-check__box {
	background: #fff;
	border-color: var(--opv-check);
}

.opv-check input:checked ~ .opv-check__box::before {
	opacity: 1;
}

.opv-check input:focus-visible ~ .opv-check__box {
	outline: 2px solid rgba(0, 200, 83, 0.45);
	outline-offset: 1.5px;
}

.opv-check__text {
	font-size: 7.5pt;
	font-weight: 700;
	line-height: 1.15;
	transition: color 0.1s ease;
}

.opv-check--left {
	gap: 1.4mm;
}

.opv-check--left .opv-check__text {
	letter-spacing: 0.01em;
}

.opv-verify__col .opv-check__box {
	border-radius: 1.25mm;
	height: 4.5mm;
	width: 4.5mm;
}

.opv-verify__col .opv-check:hover .opv-check__text {
	color: var(--opv-check-hover);
}

.opv-cell--prices .opv-check__box,
.opv-flag .opv-check__box,
.opv-suministro__list .opv-check__box {
	height: 4.1mm;
	width: 4.1mm;
}

/* —— Montaje —— */
.opv-montaje {
	display: grid;
	gap: 2.8mm;
	grid-template-columns: 1fr 1fr 1fr;
	margin: 0.8mm 0 0.4mm;
}

.opv-montaje__opt {
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 1.1mm;
	margin: 0;
	position: relative;
}

.opv-montaje__opt > input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.opv-montaje__frame {
	align-items: center;
	background: #fff;
	border: 1.5px solid var(--opv-line);
	display: flex;
	justify-content: center;
	min-height: 25mm;
	overflow: hidden;
	padding: 2.2mm;
	position: relative;
}

.opv-montaje__opt:hover .opv-montaje__frame {
	background: #fafafa;
}

/* Selección: fondo azul claro + chulo grande negro (sin movimiento) */
.opv-montaje__opt > input:checked + .opv-montaje__frame {
	background: #e1e7ff;
	box-shadow: none;
}

.opv-montaje__opt > input:checked + .opv-montaje__frame::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4.2 12.8L9.8 18.2L19.8 5.8' stroke='%23111111' stroke-width='3.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	bottom: 8%;
	content: "";
	height: 78%;
	left: 50%;
	pointer-events: none;
	position: absolute;
	top: 8%;
	transform: translateX(-50%);
	width: 70%;
	z-index: 2;
}

.opv-montaje__opt > input:focus-visible + .opv-montaje__frame {
	outline: 2px solid rgba(0, 200, 83, 0.45);
	outline-offset: 1px;
}

.opv-montaje__svg {
	display: block;
	height: 17mm;
	opacity: 0.85;
	position: relative;
	width: 100%;
	z-index: 1;
}

.opv-montaje__opt > input:checked + .opv-montaje__frame .opv-montaje__svg {
	opacity: 0.35;
}

.opv-montaje__cap {
	font-size: 7.8pt;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-align: center;
}

/* —— PRE-PRENSA —— */
.opv-pre {
	border-top: 2.2px solid var(--opv-line);
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--opv-gap);
	margin-top: 1.8mm;
	min-height: 0;
	padding-top: 2mm;
}

.opv-pre__title {
	font-size: 10.5pt;
	font-weight: 800;
	letter-spacing: 0.28em;
	margin: 0 0 0.8mm;
	text-align: center;
	text-indent: 0.28em;
}

.opv-row--pre-top .opv-cell--wide {
	flex: 2.2 1 0;
}

.opv-row--pre-top .opv-cell--md {
	flex: 1 1 0;
}

.opv-row--suministro {
	align-items: center;
	flex-wrap: wrap;
	gap: 3.5mm;
	padding: 0.4mm 0;
}

.opv-suministro__lab {
	font-size: 8pt;
	font-weight: 700;
	white-space: nowrap;
}

.opv-suministro__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4.5mm;
}

.opv-row--pinza {
	justify-content: flex-start;
}

.opv-row--flags {
	align-items: center;
	flex-wrap: wrap;
	gap: 4mm 6mm;
	padding: 0.3mm 0;
}

.opv-flag {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 2.5mm;
}

.opv-flag__lab {
	background: var(--opv-lab);
	border: 1px solid var(--opv-line);
	font-size: 7.4pt;
	font-weight: 700;
	padding: 1.1mm 2.2mm;
}

.opv-flag--hl .opv-flag__lab {
	background: var(--opv-hl);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* —— Verificación —— */
.opv-verify {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2.4mm;
	min-height: 0;
}

.opv-verify__cols {
	align-items: stretch;
	display: grid;
	flex: 1 1 auto;
	gap: 3mm;
	grid-template-columns: 1fr 1fr;
	min-height: 0;
}

.opv-verify__col {
	background: #fafafa;
	border: 1px solid var(--opv-line);
	display: flex;
	flex-direction: column;
	gap: 2mm;
	min-height: 30mm;
	min-width: 0;
	padding: 2.2mm 2.6mm 3mm;
}

.opv-verify__head {
	border-bottom: 1px solid var(--opv-lab-edge);
	font-size: 7.3pt;
	font-weight: 800;
	line-height: 1.25;
	margin: 0;
	padding-bottom: 1.4mm;
	text-align: center;
	text-transform: uppercase;
}

.opv-verify__list {
	display: flex;
	flex-direction: column;
	gap: 2mm;
	padding-top: 0.4mm;
}

.opv-verify__col .opv-check {
	justify-content: space-between;
	min-height: 4.2mm;
	width: 100%;
}

.opv-verify__col .opv-check__text {
	font-size: 7.3pt;
	padding-right: 2mm;
}

/* Observaciones: fuera de los recuadros, ancho total */
.opv-obs {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	gap: 1.3mm;
	margin: 0;
	width: 100%;
}

.opv-obs__lab {
	font-size: 8pt;
	font-weight: 700;
	line-height: 1;
}

.opv-obs__box {
	background: #fff;
	border: 1px solid var(--opv-line);
	font-size: 8.5pt;
	line-height: 1.35;
	min-height: 13mm;
	padding: 1.4mm 1.6mm;
	resize: none;
	width: 100%;
}

@media screen and (max-width: 980px) {
	.opv-sheet-wrap {
		padding: 12px;
	}

	.opv-sheet {
		height: auto;
		min-height: calc(var(--opv-h-mm, 279.4) * 1mm);
	}

	.opv-row,
	.opv-row--2,
	.opv-row--3,
	.opv-row--4,
	.opv-row--material,
	.opv-row--tintas,
	.opv-row--pre-top {
		flex-wrap: wrap;
	}

	.opv-cell,
	.opv-cell--sm,
	.opv-cell--md,
	.opv-cell--wide,
	.opv-cell--date,
	.opv-cell--papel {
		flex: 1 1 100%;
		min-width: 0;
	}

	.opv-cell--prices {
		flex: 1 1 100%;
		flex-wrap: wrap;
		justify-content: flex-start;
		min-height: var(--opv-row-h);
		padding: 1.2mm 2mm;
	}

	.opv-otro-cual {
		flex: 1 1 100%;
		min-width: 0;
	}

	.opv-montaje,
	.opv-verify__cols {
		grid-template-columns: 1fr;
	}

	.opv-head {
		grid-template-columns: 1fr;
	}

	.opv-head__brand {
		align-items: center;
		flex-direction: row;
		gap: 3mm;
		justify-content: flex-end;
		max-width: none;
		min-width: 0;
		width: auto;
	}

	.opv-head__title {
		font-size: 11pt;
		white-space: normal;
	}

	.opv-head__dates {
		grid-template-columns: 1fr;
		max-width: none;
	}
}

/* Impresión: forzar layout, bordes y colores (igual a vista editable) */
@media print {
	*,
	*::before,
	*::after {
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
		color-adjust: exact !important;
	}

	.opv-board > :not(.opv-sheet-wrap) {
		display: none !important;
	}

	.opv-sheet-wrap {
		background: none !important;
		border: 0 !important;
		border-radius: 0 !important;
		overflow: visible !important;
		padding: 0 !important;
	}

	.opv-sheet {
		border: 0 !important;
		box-shadow: none !important;
		height: calc(var(--opv-h-mm, 279.4) * 1mm) !important;
		margin: 0 !important;
		max-width: none !important;
		overflow: hidden !important;
		width: calc(var(--opv-w-mm, 215.9) * 1mm) !important;
	}

	.opv-row,
	.opv-row--2,
	.opv-row--3,
	.opv-row--4,
	.opv-row--material,
	.opv-row--tintas,
	.opv-row--pre-top {
		flex-wrap: nowrap !important;
		gap: 1.8mm !important;
	}

	.opv-row--tintas {
		gap: 0 !important;
	}

	.opv-row--tintas .opv-cell + .opv-cell {
		border-left: 0 !important;
	}

	.opv-body,
	.opv-pre {
		gap: 1.8mm !important;
	}

	.opv-montaje {
		gap: 2.8mm !important;
		grid-template-columns: 1fr 1fr 1fr !important;
	}

	.opv-verify {
		gap: 2.4mm !important;
	}

	.opv-verify__cols {
		gap: 3mm !important;
		grid-template-columns: 1fr 1fr !important;
	}

	.opv-cell {
		flex-direction: row !important;
		min-height: 6.8mm !important;
	}

	.opv-cell {
		border: 1px solid #111 !important;
	}

	.opv-cell__lab,
	.opv-cell--date .opv-date__label {
		background: #e4e4e4 !important;
		border: 0 !important;
		border-right: 1px solid #111 !important;
		box-shadow: none !important;
		flex: 0 0 auto !important;
		min-width: max-content !important;
		outline: none !important;
		padding: 0 1.7mm !important;
		white-space: nowrap !important;
	}

	.opv-cell,
	.opv-cell__inp,
	.opv-otro-cual__inp {
		outline: none !important;
	}

	.opv-cell--hl .opv-cell__lab,
	.opv-flag--hl .opv-flag__lab {
		background: #f4a574 !important;
		box-shadow: none !important;
	}

	.opv-cell__inp {
		background: #fff !important;
		border: 0 !important;
		min-height: 6.8mm !important;
		padding: 0.6mm 1.5mm !important;
	}

	.opv-otro-cual__inp,
	.opv-obs__box {
		background: #fff !important;
		border: 1px solid #111 !important;
		min-height: 6.8mm !important;
		padding: 0.6mm 1.5mm !important;
	}

	.opv-cell--prices,
	.opv-date__part,
	.opv-montaje__frame,
	.opv-verify__col,
	.opv-flag__lab {
		border: 1px solid #111 !important;
	}

	.opv-papel {
		border: 0 !important;
	}

	.opv-cell--prices {
		background: #fafafa !important;
		gap: 2.2mm !important;
	}

	.opv-papel__part span,
	.opv-date__cap {
		background: #f3f3f3 !important;
		border-bottom: 1px solid #111 !important;
	}

	.opv-papel__x {
		align-self: stretch !important;
		background: #fff !important;
		border: 0 !important;
		flex: 0 0 7mm !important;
		min-width: 7mm !important;
		position: relative !important;
		z-index: 2 !important;
	}

	.opv-papel__x::before,
	.opv-papel__x::after {
		background: #111 !important;
		bottom: 0 !important;
		content: "" !important;
		position: absolute !important;
		top: 0 !important;
		width: 1px !important;
	}

	.opv-papel__x::before {
		left: 0 !important;
	}

	.opv-papel__x::after {
		right: 0 !important;
	}

	.opv-cell--date .opv-date__part {
		border-bottom: 0 !important;
		border-top: 0 !important;
	}

	.opv-cell--date .opv-date__boxes .opv-date__part:first-child {
		border-left: 0 !important;
	}

	.opv-cell--date .opv-date__boxes .opv-date__part:last-child {
		border-right: 0 !important;
	}

	.opv-montaje__frame {
		background: #fff !important;
		border: 1.5px solid #111 !important;
		min-height: 25mm !important;
	}

	.opv-montaje__opt > input:checked + .opv-montaje__frame {
		background: #e1e7ff !important;
	}

	.opv-verify__col {
		background: #fafafa !important;
		padding: 2.2mm 2.6mm 3mm !important;
	}

	.opv-flag__lab {
		background: #e4e4e4 !important;
	}

	.opv-check__box {
		background: #fff !important;
		border: 2.3px solid #00c853 !important;
	}

	.opv-check input:checked ~ .opv-check__box::before {
		opacity: 1 !important;
	}

	.opv-pre {
		border-top: 2.2px solid #111 !important;
	}

	.opv-date__picker-wrap {
		border: 0 !important;
		flex: 0 0 0 !important;
		max-width: 0 !important;
		min-width: 0 !important;
		opacity: 0 !important;
		overflow: hidden !important;
		padding: 0 !important;
		pointer-events: none !important;
		width: 0 !important;
	}
}
