/* Documento de traspaso: cabecera, edición de líneas, tabla e impresión. */
#detailView {
	max-width: 1120px;
	margin-inline: auto;
}
.transfer-document {
	width: 100%;
}
.transfer-header {
	padding: 0 0 14px !important;
	margin: 0 0 14px !important;
	border-bottom: 1px solid var(--line);
}
.transfer-header h1 {
	margin: 0;
	font-size: 28px;
}
.operation-mode {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--primary);
}
.operation-mode.receiving {
	color: #9a6200;
}
.operation-mode.reviewing {
	color: var(--secondary);
}
.transfer-meta {
	display: grid;
	grid-template-columns: 140px 160px minmax(200px, 1fr) minmax(200px, 1fr);
	margin: 14px 0 0;
	border: 1px solid var(--line);
	border-radius: 6px;
	overflow: hidden;
	background: var(--surface);
}
.transfer-meta > div {
	padding: 9px 12px;
	border-right: 1px solid var(--line);
}
.transfer-meta > div:last-child {
	border-right: 0;
}
.transfer-meta dt {
	margin: 0 0 2px;
	font-size: 11px;
	font-weight: 700;
	color: var(--secondary);
}
.transfer-meta dd {
	margin: 0;
	font-size: 14px;
}
.print-company {
	display: none;
}
.transfer-lines {
	padding: 18px !important;
	overflow: visible !important;
}
.transfer-lines h2 {
	margin: 0 0 14px;
}
.line-entry {
	display: grid;
	grid-template-columns:
		minmax(260px, 1.5fr) minmax(150px, 0.85fr) minmax(125px, 0.6fr)
		100px;
	gap: 12px;
	align-items: start;
	margin: 0 0 14px !important;
	padding: 0 0 14px !important;
	border-bottom: 1px solid var(--line);
}
.line-entry label {
	display: grid;
	grid-template-rows: 16px 40px 16px;
	gap: 4px;
	font-size: 12px;
}
.line-entry input {
	height: 40px;
	min-height: 40px;
}
.line-entry label small {
	display: block;
	min-height: 16px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 400;
	line-height: 16px;
}
.line-entry .article-validation {
	position: static !important;
	display: block;
	min-height: auto;
	padding: 0;
	background: transparent;
}
.add-action {
	display: grid;
	grid-template-rows: 16px 40px 16px;
	gap: 4px;
}
.add-action .btn {
	height: 40px;
	min-height: 40px;
	padding-inline: 12px;
}
.add-action small,
.add-action span {
	font-size: 11px;
	line-height: 16px;
}
.document-table-shell {
	padding: 0 !important;
	overflow: auto;
	border: 1px solid var(--line);
	border-radius: 6px;
	box-shadow: none !important;
}
.document-table {
	width: 100%;
	min-width: 620px;
	table-layout: fixed;
	border-collapse: collapse;
}
.document-table col.document-article {
	width: 50%;
}
.document-table col.document-lot {
	width: 28%;
}
.document-table col.document-quantity {
	width: 17%;
}
.document-table col.document-sent,
.document-table col.document-received {
	width: 18%;
}
.document-table.receipt-comparison col.document-article {
	width: 38%;
}
.document-table.receipt-comparison col.document-lot {
	width: 24%;
}
.document-table.receipt-comparison col.document-sent,
.document-table.receipt-comparison col.document-received {
	width: 19%;
}
.document-table col.document-remove {
	width: 52px;
}
.document-table th {
	padding: 10px 12px;
	background: var(--surface-soft);
	font-size: 13px;
	color: var(--secondary);
	text-align: left;
}
.document-table td {
	padding: 8px 12px;
	border-top: 1px solid var(--line);
	vertical-align: middle;
}
.document-table .document-line {
	display: table-row !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}
.document-table .document-line td {
	display: table-cell !important;
}
.document-table td:first-child span {
	display: block;
}
.document-table td:first-child small {
	display: block;
	margin-top: 2px;
	color: var(--muted);
	font-size: 12px;
}
.document-table td input {
	width: 100%;
	height: 36px;
	min-height: 36px;
	padding: 6px 8px;
}
.document-table th.document-remove,
.document-table td.document-remove {
	text-align: center;
	padding: 6px;
}
.document-table .remove {
	display: grid !important;
	place-items: center;
	width: 34px;
	min-width: 34px;
	height: 34px;
	min-height: 34px;
	margin: auto;
	padding: 0 !important;
}
.document-table tbody:empty:after {
	content: "Sin registros añadidos";
	display: block;
	padding: 14px;
	color: var(--muted);
	font-size: 13px;
}
.transfer-lines .actions {
	display: flex;
	justify-content: space-between;
	margin: 14px -18px -18px !important;
	padding: 14px 18px !important;
	background: var(--surface-soft);
}
.transfer-lines .actions #send,
.transfer-lines .actions #receive,
.transfer-lines .actions #post {
	margin-left: auto;
}
.transfer-lines .actions #saveLines {
	display: none !important;
}
@media (max-width: 760px) {
	.transfer-meta {
		grid-template-columns: 1fr 1fr;
	}
	.transfer-meta > div:nth-child(2) {
		border-right: 0;
	}
	.transfer-meta > div:nth-child(-n + 2) {
		border-bottom: 1px solid var(--line);
	}
	.line-entry {
		grid-template-columns: 1fr 1fr;
	}
	.line-entry label:first-child {
		grid-column: 1/-1;
	}
	.add-action {
		grid-column: 1/-1;
		grid-template-columns: 1fr 100px 1fr;
		grid-template-rows: 40px;
	}
	.add-action span,
	.add-action small {
		display: none;
	}
	.add-action .btn {
		grid-column: 2;
	}
	.transfer-header h1 {
		font-size: 23px;
	}
}
@media print {
	body {
		background: #fff !important;
		color: #111;
	}
	.topbar,
	.page-heading,
	#listView,
	#adminView,
	#modal,
	#toast,
	.operation-mode,
	.transfer-header h1,
	.transfer-lines h2,
	.line-entry,
	.entry-records,
	.transfer-lines .actions,
	.document-table th.document-remove,
	.document-table td.document-remove {
		display: none !important;
	}
	.page-shell {
		padding: 0 !important;
		margin: 0 !important;
		max-width: none !important;
	}
	#detailView {
		display: block !important;
		max-width: none !important;
		margin: 0 !important;
	}
	.transfer-document,
	.transfer-header,
	.transfer-lines,
	.document-table-shell {
		border: 0 !important;
		box-shadow: none !important;
		padding: 0 !important;
		margin: 0 !important;
	}
	.print-company {
		display: block !important;
		margin: 0 0 16px;
		font-size: 18px;
		font-weight: 700;
	}
	.transfer-meta {
		display: grid !important;
		grid-template-columns: repeat(3, 1fr) !important;
		border: 0 !important;
		margin: 0 0 18px !important;
	}
	.transfer-meta > div {
		border: 0 !important;
		padding: 0 18px 0 0 !important;
	}
	.transfer-meta > div:nth-child(2) {
		display: none !important;
	}
	.document-table {
		min-width: 0 !important;
	}
	.document-table th {
		display: table-cell !important;
		background: #eee !important;
		border-top: 1px solid #333 !important;
		border-bottom: 1px solid #333 !important;
		color: #111 !important;
	}
	.document-table td {
		display: table-cell !important;
		border-bottom: 1px solid #bbb !important;
	}
	.document-table col.document-remove {
		display: none !important;
	}
}
#lineEntry.entry-records {
	display: grid !important;
	grid-template-columns:
		minmax(260px, 1.5fr) minmax(150px, 0.85fr) minmax(125px, 0.6fr)
		100px;
	gap: 12px;
	align-items: start;
	margin: 0 0 14px !important;
	padding: 0 0 14px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--line) !important;
}
.entry-records > label {
	display: grid !important;
	grid-template-rows: 16px 40px 16px;
	gap: 4px;
	min-width: 0;
	font-size: 12px;
}
.entry-records > label > input {
	grid-row: 2;
	width: 100%;
	height: 40px;
	min-height: 40px;
}
.entry-records > label > small {
	grid-row: 3;
	display: block;
	min-height: 16px;
	margin: 0;
	color: var(--muted);
	font-size: 11px;
	font-weight: 400;
	line-height: 16px;
}
.entry-records > label:first-of-type > small:not(.article-validation) {
	display: none;
}
.entry-records > label:first-of-type .article-validation {
	grid-row: 3;
	position: static !important;
	display: block;
	min-height: 16px;
	padding: 0;
	background: transparent;
	overflow: visible;
	white-space: normal;
}
.entry-records > .add-action {
	display: grid !important;
	grid-template-rows: 16px 40px 16px;
	gap: 4px;
	margin: 0 !important;
	padding: 0 !important;
	min-width: 0;
	background: transparent !important;
}
.entry-records > .add-action > span {
	grid-row: 1;
}
.entry-records > .add-action > .btn {
	grid-row: 2;
	align-self: stretch;
	width: 100%;
	height: 40px;
	min-height: 40px;
	margin: 0 !important;
	padding: 0 12px;
}
.entry-records > .add-action > small {
	grid-row: 3;
}
.entry-records > input[type="hidden"] {
	display: none !important;
}
@media (max-width: 760px) {
	#lineEntry.entry-records {
		grid-template-columns: 1fr 1fr;
	}
	.entry-records > label:first-of-type {
		grid-column: 1/-1;
	}
	.entry-records > .add-action {
		grid-column: 1/-1;
		grid-template-columns: 1fr 100px 1fr;
		grid-template-rows: 40px;
	}
	.entry-records > .add-action > span,
	.entry-records > .add-action > small {
		display: none;
	}
	.entry-records > .add-action > .btn {
		grid-column: 2;
		grid-row: 1;
	}
}
