/* Acta de inspección — se usa igual en el escritorio y en el móvil */

.rsc-acta {
	--rsc-amarillo: #F4DC07;
	--rsc-carbon: #161614;
	--rsc-slate: #2C3338;
	--rsc-azul: #1AA7EC;
	--rsc-texto: #4A595A;
	--rsc-linea: #D9DEDF;
	--rsc-ok: #1B8A4B;
	--rsc-mal: #C62828;
	--rsc-medio: #B7791F;
	color: var(--rsc-texto);
	font-size: 14px;
	line-height: 1.5;
}

.rsc-acta * { box-sizing: border-box; }

.rsc-acta .rsc-sec {
	background: #fff;
	border: 1px solid var(--rsc-linea);
	margin-bottom: 14px;
}
.rsc-acta .rsc-sec-cab {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--rsc-slate);
	color: #fff;
	padding: 9px 12px;
	cursor: pointer;
	user-select: none;
}
.rsc-acta .rsc-sec-cab h3 {
	color: #fff;
	margin: 0;
	font-size: 16px;
	flex: 1;
	text-transform: uppercase;
	letter-spacing: .3px;
	line-height: 1.25;
}
.rsc-acta .rsc-sec-num {
	background: var(--rsc-amarillo);
	color: var(--rsc-carbon);
	min-width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
}
.rsc-acta .rsc-toggle { color: var(--rsc-amarillo); }
.rsc-acta .rsc-sec-cuerpo { padding: 14px; }
.rsc-acta .rsc-plegada .rsc-sec-cuerpo { display: none; }

.rsc-acta .rsc-nota {
	font-size: 12.5px;
	background: #EAF6FD;
	border-left: 3px solid var(--rsc-azul);
	padding: 9px 12px;
	margin: 0 0 14px;
}
.rsc-acta h4.rsc-blq {
	font-size: 14px;
	margin: 18px 0 9px;
	padding-bottom: 5px;
	border-bottom: 2px solid var(--rsc-linea);
	text-transform: uppercase;
	color: var(--rsc-carbon);
}
.rsc-acta h4.rsc-blq:first-child { margin-top: 0; }

/* Campos */
.rsc-acta .rsc-grid,
.rsc-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 10px 12px;
}
.rsc-f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rsc-f label {
	font-size: 11px;
	font-weight: 600;
	color: var(--rsc-slate, #2C3338);
	text-transform: uppercase;
	letter-spacing: .3px;
}
.rsc-f input,
.rsc-f select,
.rsc-f textarea {
	border: 1px solid #D9DEDF;
	background: #fff;
	padding: 7px 9px;
	font-size: 13.5px;
	width: 100%;
	max-width: 100%;
	border-radius: 0;
	color: #161614;
}
.rsc-f textarea { min-height: 66px; resize: vertical; }
.rsc-f .rsc-desc { font-size: 11px; color: #8b9698; }

.rsc-w1 { grid-column: span 1; } .rsc-w2 { grid-column: span 2; }
.rsc-w3 { grid-column: span 3; } .rsc-w4 { grid-column: span 4; }
.rsc-w5 { grid-column: span 5; } .rsc-w6 { grid-column: span 6; }
.rsc-w7 { grid-column: span 7; } .rsc-w8 { grid-column: span 8; }
.rsc-w9 { grid-column: span 9; } .rsc-w10 { grid-column: span 10; }
.rsc-w11 { grid-column: span 11; } .rsc-w12 { grid-column: span 12; }

/* Checklist */
.rsc-acta .rsc-leyenda { font-size: 11.5px; margin-bottom: 7px; }
.rsc-acta .rsc-leyenda span { margin-right: 14px; white-space: nowrap; }
.rsc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.rsc-dot.rsc-ok { background: #1B8A4B; }
.rsc-dot.rsc-bad { background: #C62828; }
.rsc-dot.rsc-warn { background: #B7791F; }
.rsc-dot.rsc-na { background: #9AA5A7; }

table.rsc-chk, table.rsc-data {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	margin-bottom: 6px;
}
table.rsc-chk th, table.rsc-data th {
	background: #2C3338;
	color: #fff;
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: .3px;
	padding: 7px 8px;
	text-align: left;
	border: 1px solid #2C3338;
	font-weight: 600;
}
table.rsc-chk th.rsc-st { text-align: center; width: 60px; }
table.rsc-chk td, table.rsc-data td { border: 1px solid #D9DEDF; padding: 6px 8px; vertical-align: middle; }
table.rsc-chk tr:nth-child(even) td { background: #FBFCFC; }
table.rsc-chk td.rsc-st { text-align: center; width: 60px; }
table.rsc-chk td.rsc-ob { width: 28%; padding: 3px 6px; white-space: nowrap; }
table.rsc-chk td.rsc-ob input {
	width: calc(100% - 34px);
	border: 0;
	border-bottom: 1px dotted #b9c0c2;
	font-size: 12.5px;
	padding: 4px 2px;
	background: transparent;
}
table.rsc-chk tr.rsc-mal td { background: #FDF0F0 !important; }
table.rsc-chk tr.rsc-medio td { background: #FFF8EA !important; }

table.rsc-data td { padding: 0; }
table.rsc-data td input, table.rsc-data td select {
	width: 100%;
	border: 0;
	padding: 7px;
	font-size: 12.5px;
	background: transparent;
}
table.rsc-data td.rsc-lbl { background: #F6F7F7; font-weight: 600; font-size: 12px; padding: 7px 8px; }
.rsc-scroll { overflow-x: auto; }

/* Cámara y miniaturas */
.rsc-cam {
	border: 1px solid #D9DEDF;
	background: #fff;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	padding: 4px 6px;
	vertical-align: middle;
}
.rsc-cam:hover { border-color: #1AA7EC; }
.rsc-cam-sec { font-size: 13px; padding: 8px 12px; }
.rsc-foto-sec { margin: 12px 0 4px; }

.rsc-miniaturas { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
.rsc-miniaturas .rsc-mini { position: relative; display: inline-block; line-height: 0; }
.rsc-miniaturas .rsc-mini img { width: 34px; height: 34px; object-fit: cover; border: 1px solid #D9DEDF; }
.rsc-miniaturas .rsc-mini em {
	position: absolute;
	bottom: 0; right: 0;
	background: #161614;
	color: #F4DC07;
	font-size: 9px;
	font-style: normal;
	padding: 0 3px;
	line-height: 1.4;
}

/* Bloques finales */
.rsc-determinacion { display: grid; gap: 8px; }
.rsc-determinacion label {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	border: 1px solid #D9DEDF;
	padding: 9px 11px;
	font-size: 13px;
	cursor: pointer;
	background: #fff;
}
.rsc-determinacion label:hover { border-color: #1AA7EC; }
.rsc-declaracion {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	background: #FBFCFC;
	border: 1px solid #D9DEDF;
	padding: 12px;
	font-size: 12.5px;
	margin-top: 10px;
}
.rsc-firmas { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.rsc-firma { font-size: 12px; }
.rsc-firma input { width: 100%; border: 0; border-bottom: 1px solid #D9DEDF; padding: 6px 2px; }
.rsc-linea-firma { border-bottom: 1px solid #161614; height: 54px; }

/* Cabecera del acta */
.rsc-acta-cab {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	background: #F6F7F7;
	border: 1px solid #D9DEDF;
	margin-bottom: 12px;
}
.rsc-progreso-txt { font-size: 12.5px; font-weight: 600; }
.rsc-progreso-txt.rsc-hay-deficiencias { color: #C62828; }
.rsc-estado-guardado { font-size: 12px; color: #8b9698; }
.rsc-estado-guardado.rsc-ok { color: #1B8A4B; }
.rsc-estado-guardado.rsc-error { color: #C62828; }
.rsc-estado-guardado.rsc-guardando { color: #B7791F; }

/* Móvil: cada punto es una tarjeta */
@media screen and (max-width: 782px) {
	.rsc-w1, .rsc-w2, .rsc-w3, .rsc-w4, .rsc-w5, .rsc-w6,
	.rsc-w7, .rsc-w8, .rsc-w9, .rsc-w10, .rsc-w11 { grid-column: span 12; }

	table.rsc-chk thead { display: none; }
	table.rsc-chk, table.rsc-chk tbody { display: block; }
	table.rsc-chk tr { display: block; border: 1px solid #D9DEDF; margin-bottom: 8px; padding: 6px; }
	table.rsc-chk td { border: 0; display: block; }
	table.rsc-chk td.rsc-it { font-weight: 500; color: #161614; padding: 4px 2px 8px; }
	table.rsc-chk td.rsc-st {
		display: inline-block;
		width: 24%;
		text-align: center;
		padding: 4px 0;
	}
	table.rsc-chk td.rsc-st:before {
		content: attr(data-l);
		display: block;
		font-size: 9.5px;
		color: #8b9698;
		margin-bottom: 3px;
	}
	table.rsc-chk td.rsc-ob { width: 100%; white-space: normal; padding-top: 8px; }
	table.rsc-chk td.rsc-ob input { width: calc(100% - 40px); }
	table.rsc-chk input[type=radio], table.rsc-chk input[type=checkbox] { width: 20px; height: 20px; }
	.rsc-firmas { grid-template-columns: 1fr; }
	.rsc-miniaturas .rsc-mini img { width: 44px; height: 44px; }
}

/* Impresión */
@media print {
	.rsc-cam, .rsc-toggle, .rsc-acta-cab, .rsc-barra-fija, .rsc-foto-sec { display: none !important; }
	.rsc-acta .rsc-plegada .rsc-sec-cuerpo { display: block !important; }
	.rsc-acta { font-size: 9.5pt; }
	.rsc-acta .rsc-sec { break-inside: auto; margin-bottom: 8px; }
	.rsc-acta .rsc-sec-cab { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	table.rsc-chk th, table.rsc-data th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	table.rsc-chk tr, table.rsc-data tr { break-inside: avoid; }
	table.rsc-chk td, table.rsc-data td.rsc-lbl { padding: 3px 6px; }
	.rsc-f textarea { min-height: 42px; }
	h4.rsc-blq { break-after: avoid; }
	.rsc-firmas { break-inside: avoid; }
}
