/* =========================================================================
   Sarcomp - Modulo Recibir Compras
   ========================================================================= */

.sarcomp-comp-form {
	margin-bottom: 26px;
}

/* ---------- Cabecera: proveedor, numero de factura, fecha ---------- */
.sarcomp-comp-cab {
	display: grid;
	grid-template-columns: 1.4fr 1.4fr .8fr;
	gap: 12px 16px;
	margin-bottom: 18px;
}
.sarcomp-comp-cab .sarcomp-campo {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.sarcomp-comp-cab .sarcomp-campo label {
	font-weight: 600;
	font-size: .82rem;
	color: #33465c;
}
.sarcomp-comp-cab .sarcomp-campo input[type="text"] {
	padding: 7px 9px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: .88rem;
}
.sarcomp-comp-fecha {
	padding: 7px 9px;
	background: #eef2f7;
	border: 1px solid #d8e1ec;
	border-radius: 6px;
	font-size: .88rem;
	color: #12304f;
	font-weight: 600;
}

/* ---------- Encabezado de la seccion de lineas ---------- */
.sarcomp-comp-lineas-cab {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin: 8px 10px;
}
.sarcomp-comp-lineas-cab h3 {
	margin: calc(1px - 1px);
	font-size: 1.02rem;
	color: #12304f;
}

/* ---------- Tabla de lineas ---------- */
.sarcomp-comp-tabla-wrap {
	overflow-x: auto;
}
.sarcomp-comp-tabla {
	width: 100%;
	border-collapse: collapse;
	font-size: .82rem;
	background: #fff;
}
.sarcomp-comp-tabla thead th {
	background: #12304f;
	color: #fff;
	text-align: left;
	padding: 7px 8px;
	font-size: .7rem;
	text-transform: uppercase;
	white-space: nowrap;
}
.sarcomp-comp-tabla td {
	padding: 6px 6px;
	border-bottom: 1px solid #e6ebf2;
	vertical-align: top;
}
.sarcomp-comp-tabla .col-num {
	text-align: right;
	width: 110px;
}
.sarcomp-comp-tabla .col-chk {
	text-align: center;
	width: 90px;
}
.sarcomp-comp-tabla .col-acc {
	text-align: center;
	width: 40px;
}
.sarcomp-comp-tabla input[type="text"],
.sarcomp-comp-tabla input[type="number"] {
	width: 100%;
	box-sizing: border-box;
	padding: 6px 7px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: .84rem;
}
.sarcomp-comp-tabla input[type="number"] {
	text-align: right;
}
.sarcomp-comp-desc {
	min-width: 200px;
}
.sarcomp-comp-series {
	width: 100%;
	box-sizing: border-box;
	margin-top: 6px;
	padding: 6px 7px;
	border: 1px solid #d97706;
	border-radius: 6px;
	font-size: .8rem;
	font-family: inherit;
	resize: vertical;
}
.sarcomp-comp-chk {
	display: flex;
	align-items: center;
	justify-content: center;
}
.sarcomp-comp-chk input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: #128c4b;
}
.sarcomp-comp-quitar {
	border: none;
	background: none;
	color: #c0392b;
	cursor: pointer;
	font-size: .95rem;
	padding: 4px;
}
.sarcomp-comp-quitar:hover {
	color: rgb(142, 40, 40);
}

/* ---------- Total ---------- */
.sarcomp-comp-total {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 14px;
	font-size: 1rem;
	color: #33465c;
}
.sarcomp-comp-total strong {
	font-size: 1.25rem;
	color: #12304f;
}

.sarcomp-comp-botones {
	margin-top: 16px;
	display: flex;
	gap: 10px;
}

/* ---------- Historial ---------- */
.sarcomp-comp-historial {
	margin-top: 30px;
}
.sarcomp-comp-historial h3 {
	font-size: 1.02rem;
	color: #12304f;
	margin-bottom: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
	.sarcomp-comp-cab {
		grid-template-columns: 1fr;
	}
}
