/* Inicio reutiliza el listado único de envíos y recepciones. */
/* Listado de documentos: acciones, estados y paginación. */
#workflowActions {
	display: none !important;
}
.article-field .article-validation {
	position: absolute;
	top: calc(100% + 3px);
	left: 0;
	z-index: 13;
	display: block;
	min-height: 0;
	white-space: nowrap;
	padding: 0 2px;
	background: var(--surface);
}
#detailView .line-grid {
	overflow: visible;
}
.workflow-buttons .btn {
	display: grid;
	place-items: center;
	min-width: 38px;
	width: 38px;
	height: 38px;
	padding: 0;
	font-size: 18px;
	line-height: 1;
}
.workflow-buttons .workflow-print {
	margin-left: auto;
}
.workflow-buttons .btn[disabled] {
	filter: grayscale(1);
}
.remove {
	display: grid !important;
	place-items: center;
	padding: 0 !important;
	width: 42px;
	min-width: 42px;
	font-size: 18px;
	line-height: 1;
}
.document-actions {
	width: max-content;
	white-space: nowrap;
}
#listView th:last-child,
#listView td.document-actions {
	width: 1%;
	white-space: nowrap;
}
#listView td.document-actions {
	display: table-cell;
	padding-inline: 10px;
	vertical-align: middle;
}
.document-actions .document-action + .document-action {
	margin-left: 7px;
}
.document-actions .document-action {
	display: inline-grid;
	place-items: center;
	width: 34px;
	min-width: 34px;
	min-height: 34px;
	padding: 0;
	color: #294c6b;
	background: #edf4fa;
	border: 1px solid #cadbe8;
}
.document-actions .document-action svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.document-actions .document-action[data-action="send"],
.document-actions .document-action[data-action="sage"] {
	color: #fff;
	background: var(--primary);
	border-color: var(--primary);
}
.document-actions .document-action:hover {
	background: var(--primary-soft);
}
.document-actions .document-action[data-action="send"]:hover,
.document-actions .document-action[data-action="sage"]:hover {
	background: var(--primary-dark);
}
.document-actions .document-action:disabled {
	color: #98a7b5 !important;
	background: #f2f5f7 !important;
	border-color: #dce4ea !important;
	opacity: 1 !important;
	cursor: not-allowed;
}
.document-actions .document-action:disabled svg {
	opacity: 0.65;
}
.document-actions .document-action[data-action="receive"] svg {
	transform: rotate(180deg);
}
.badge.BORRADOR {
	background: #e6edf4;
	color: #49657d;
}

.badge.ENVIADO {
	background: #ddecff;
	color: #28629b;
}
.badge.PENDIENTE_RECEPCION {
	background: #fff0d8;
	color: #9d5b00;
}
.badge.RECEPCION_CONFIRMADA {
	background: #ede3ff;
	color: #6b3fa0;
}
.badge.VALIDANDO,
.badge.CONTABILIZANDO {
	background: #ddecff;
	color: #28629b;
}
.badge.PENDIENTE_CONFIRMACION_PARCIAL {
	background: #ffe6c9;
	color: #9a5300;
}
.badge.RECEPCIONADO,
.badge.RECEPCIONADO_SIN_DIFERENCIAS,
.badge.CONTABILIZADO {
	background: #dff3e8;
	color: #167447;
}
.badge.RECEPCIONADO_PARCIAL,
.badge.RECEPCIONADO_DIFERENCIAS,
.badge.CONTABILIZADO_PARCIAL {
	background: #f0e5ff;
	color: #684095;
}
.badge.ERROR_VALIDACION,
.badge.ERROR_CONTABILIZACION {
	background: #fde4e4;
	color: #b63030;
}
.badge.RESULTADO_INCIERTO {
	background: #ffe1eb;
	color: #9b2451;
}
.table-shell {
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(32, 53, 76, 0.08);
}
#listView .table-shell {
	padding: 18px;
	background: var(--surface);
}
#listView table {
	min-width: 880px;
}
#listView th {
	padding: 12px 14px;
	background: #eaf2f8;
	color: #496177;
	font-size: 13px;
	font-weight: 700;
}
#listView td {
	padding: 10px 14px;
	color: var(--text);
}
#listView tr:hover td {
	background: #f7fafc;
}
.table-pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 2px 0;
	color: var(--secondary);
	font-size: 13px;
}
.table-pagination > div {
	display: flex;
	align-items: center;
	gap: 10px;
}
.table-pagination .btn {
	min-width: 36px;
	padding: 4px 9px;
	line-height: 1;
	font-size: 20px;
}
.page-heading {
	margin-bottom: 16px;
}
.page-heading #filterToggle {
	margin-left: auto;
}
.page-heading #newTransfer2 {
	margin-left: 8px;
}
#detailView .operation-mode {
	margin: 0 0 5px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--primary);
}
#detailView .operation-mode.receiving {
	color: #a05c00;
}
#detailView .operation-mode.reviewing {
	color: var(--secondary);
}
#detailView .transfer-lines {
	padding: 18px;
}
.line-entry {
	display: grid;
	grid-template-columns:
		minmax(250px, 1.45fr) minmax(140px, 0.8fr) minmax(115px, 0.55fr)
		auto;
	gap: 12px;
	align-items: end;
	margin-bottom: 14px;
	padding: 0 0 14px;
	border-bottom: 1px solid var(--line);
}
.line-entry label {
	font-size: 12px;
}
.line-entry .btn {
	min-width: 92px;
}
.transfer-lines-table {
	min-width: 0;
	width: 100%;
	border-collapse: collapse;
}
.transfer-lines-table .line-grid {
	display: table-row !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}
.transfer-lines-table th {
	background: var(--surface-soft);
	font-size: 13px;
}
.transfer-lines-table td {
	display: table-cell !important;
	padding: 8px 10px !important;
	border-bottom: 1px solid var(--line) !important;
	vertical-align: middle;
}
.transfer-lines-table td:first-child small {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--muted);
}
.transfer-lines-table input {
	min-height: 34px;
	padding: 5px 8px;
}
.transfer-lines-table .remove {
	height: 34px;
	min-height: 34px !important;
	width: 34px;
	min-width: 34px;
}
.article-field .article-validation {
	max-width: 100%;
	overflow: visible;
	white-space: normal;
	font-size: 11px;
}
.line-entry label small,
.line-entry label:after {
	display: block;
	min-height: 15px;
	content: "";
}
@media (max-width: 760px) {
	.line-entry {
		grid-template-columns: 1fr 1fr;
	}
	.line-entry label:first-child {
		grid-column: 1/-1;
	}
	.line-entry .btn {
		grid-column: 1/-1;
	}
}
#detailView .transfer-header {
	padding: 0 0 14px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--line);
}
#detailView .transfer-reference {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}
#detailView .transfer-reference h1 {
	margin: 0;
	font-size: 28px;
}
.transfer-meta {
	display: grid;
	grid-template-columns: 140px 160px minmax(180px, 1fr) minmax(180px, 1fr);
	gap: 0;
	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;
}
.line-entry label small {
	color: var(--muted);
	font-size: 11px;
	font-weight: 400;
	line-height: 15px;
}
.line-entry .article-validation {
	position: static !important;
	min-height: 15px;
	padding: 0;
	background: transparent;
}
.transfer-lines .actions {
	margin: 14px -18px -18px;
	padding: 14px 18px;
}
.transfer-lines .actions .btn {
	min-width: 170px;
}
@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);
	}
	#detailView .transfer-reference h1 {
		font-size: 23px;
	}
	.transfer-lines-table {
		min-width: 560px;
	}
}
#detailView .line-entry {
	align-items: start;
}
.line-entry .btn {
	align-self: start;
	margin-top: 20px;
	height: 40px;
}
.transfer-lines-table {
	table-layout: fixed;
}
.transfer-lines-table col.line-article {
	width: 48%;
}
.transfer-lines-table col.line-lot {
	width: 26%;
}
.transfer-lines-table col.line-quantity {
	width: 20%;
}
.transfer-lines-table col.line-action {
	width: 56px;
}
.transfer-lines-table th:last-child,
.transfer-lines-table td:last-child {
	padding-left: 8px !important;
	padding-right: 8px !important;
	text-align: center;
}
.transfer-lines-table td input {
	width: 100%;
	max-width: none;
}
.transfer-lines-table td:first-child {
	white-space: normal;
}
.transfer-lines-table .line-grid td {
	height: 52px;
}
.transfer-lines-table .remove {
	margin: auto;
}
.transfer-lines-table tbody:empty:after {
	content: "Sin registros añadidos";
	display: table-cell;
	color: var(--muted);
	font-size: 13px;
	padding: 14px;
}
