table td
{
	padding:1px !important
}

/* 打印单：屏幕与打印共用一份基础配置；@media print 内只覆盖宽度策略与上下 padding 这类真差异项 */
.print-table {
	table-layout: auto;
	width: max-content;
	min-width: 700px;
	font-size: 12pt;
	line-height: 1.65;
	font-weight: 500;
}
.print-table tbody td:not(.productName) {
	white-space: nowrap;
}
.print-table td.productName {
	width: 100%;
	white-space: normal;
	word-break: break-word;
	overflow-wrap: break-word;
}

/* 除序号、品名列外，其余列左右各 1px（表头第 3 列起对应 tbody 中非 .seq/.productName） */
.print-table thead th:nth-child(n + 3),
.print-table tbody td:not(.seq):not(.productName) {
	padding-left: 2px !important;
	padding-right: 2px !important;
}

/* 表格行上下加宽：屏幕预览与打印同步生效，便于针打识读、阅读更宽松 */
.print-table th,
.print-table td {
	padding-top: 1px !important;
	padding-bottom: 1px !important;
}

/* 条码列固定最小宽度（表头为当前表格最后一列「条码」） */
.print-table thead th:last-child,
.print-table td.barcode {
	min-width: 50px;
}

.print-table td.barcode {
	font-size: 10pt;
	word-break: break-all;
	overflow-wrap: anywhere;
}

/* 打印：不锁定纸张尺寸，由打印对话框选择 A4 / 5.5 英寸等；版式在 @media print 内随可印宽度伸缩 */
@page {
	size: auto;
	margin: 10mm;
}

@media print {
	html,
	body {
		width: 100%;
		margin: 0;
		padding: 0;
	}

	.layui-layout-admin .layui-body {
		top: 0 !important;
		left: 0 !important;
		right: auto !important;
		bottom: auto !important;
		padding: 0 !important;
		min-height: 0 !important;
		overflow: visible !important;
	}

	form.layui-form .layui-form-item {
		overflow: visible !important;
		max-width: 100%;
	}

	/* 分页打印不在每页重复表头（thead 默认 table-header-group 会在各页顶端重复） */
	.print-table thead {
		display: table-row-group;
	}

	/* 打印唯一需要覆盖的表格属性：宽度策略，让明细表铺满纸宽 */
	.print-table {
		width: 100% !important;
		max-width: 100%;
		min-width: 100% !important;
	}
}
