.stockbook-tools button.bundle-print-button{background:#21804b;color:#fff;border:1px solid #21804b;font-weight:700;}
.stockbook-tools button.bundle-print-button:hover:not(:disabled){background:#17663a;border-color:#17663a;}
.stockbook-tools button.bundle-print-button:disabled{background:#edf2ef;color:#8d9b91;border-color:#dce5de;}
.bundle-card{margin-top:24px;padding:26px 28px;border:1px solid #d4e5d9;border-radius:12px;background:#fff;}
.bundle-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px;}
.bundle-heading h2{margin:0 0 8px;font-size:22px;font-weight:750;color:#225f3e;}
.bundle-heading p{margin:0;color:#626760;font-size:13px;line-height:1.7;}
.bundle-filter{flex:0 1 430px;min-width:220px;max-width:100%;font-size:12px;color:#636a62;}
.bundle-filter select{display:block;width:100%;margin-top:7px;background:#fff;font-size:13px;}
.bundle-stats{display:flex;align-items:center;gap:30px;padding:17px 20px;background:#f0f7f2;border:1px solid #dcebe0;border-radius:9px;margin-bottom:20px;}
.bundle-stat{display:flex;align-items:baseline;gap:9px;color:#52695b;font-size:13px;}
.bundle-stat strong{font-size:26px;line-height:1.2;color:#1d683c;font-variant-numeric:tabular-nums;}
.bundle-stat small{font-size:13px;font-weight:500;}
.bundle-tables{display:grid;grid-template-columns:repeat(2,var(--bundle-table-width));gap:16px;max-width:100%;align-items:start;}
.bundle-table-wrap{overflow-x:auto;border:1px solid #c5cec7;border-radius:6px;width:var(--bundle-table-width);max-width:100%;}
.bundle-table{width:100%;border-collapse:collapse;table-layout:fixed;white-space:normal;font-family:Arial,sans-serif;font-variant-numeric:tabular-nums;}
.bundle-table th{padding:7px 8px;text-align:left;background:#f7f8f6;color:#525d54;font-size:12px;border-bottom:1px solid #c5cec7;}
.bundle-table th:last-child{width:var(--bundle-count-width,54px);text-align:center;border-left:1px solid #c5cec7;}
.bundle-table td{padding:6px 8px;border-bottom:1px solid #c5cec7;font-size:14px;line-height:1.3;color:#2f3931;vertical-align:middle;overflow-wrap:anywhere;}
.bundle-table tr:last-child td{border-bottom:0;}
.bundle-table tbody tr:nth-child(even){background:#fcfdfb;}
.bundle-table .bundle-quantity{text-align:center;white-space:nowrap;font-size:15px;font-weight:700;color:#207345;border-left:1px solid #c5cec7;}
.bundle-quantity small{display:inline;font-size:12px;font-weight:500;margin-left:3px;margin-top:0;color:inherit;}
.bundle-spec{display:inline-block;font-weight:700;margin-left:8px;color:#374b3e;}
.bundle-note,.bundle-empty{font-size:13px;line-height:1.8;color:#666e66;margin:14px 0 0;}
.bundle-empty{padding:20px;background:#f8f9f7;border-radius:8px;}
.bundle-note.warning{color:#87561a;}
.bundle-preview-label{color:#8a5a18;font-size:12px;}
#bundlePrintSheet{display:none;}
@media(max-width:600px){
 .bundle-card{padding:20px 15px;}.bundle-heading{flex-direction:column;gap:14px;}.bundle-heading h2{font-size:20px;}
 .bundle-filter{flex:auto;width:100%;min-width:0;}.bundle-stats{gap:15px;padding:14px 12px;flex-wrap:wrap;}.bundle-stat{gap:6px;font-size:12px;}.bundle-stat strong{font-size:23px;}
 .bundle-tables{grid-template-columns:minmax(0,var(--bundle-table-width));}.bundle-table th,.bundle-table td{padding:6px 8px;}
}
/* Match measurement and printing to the same A4 content rectangle. */
body.prepare-bundles #bundlePrintSheet{display:block;position:fixed;left:-10000px;top:0;width:200mm;visibility:hidden;pointer-events:none;}
#bundlePrintSheet{font-family:Arial,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;}
#bundlePrintSheet .bundle-print-page{box-sizing:border-box;width:200mm;height:286mm;margin:0;display:flex;flex-direction:column;break-after:page;}
#bundlePrintSheet .bundle-print-page:last-child{break-after:auto;}
#bundlePrintSheet .bundle-print-header{display:flex!important;align-items:flex-end;justify-content:space-between;gap:4mm;flex-shrink:0;position:static!important;height:auto!important;padding:0 0 2mm!important;margin:0!important;border:0!important;box-shadow:none!important;background:#fff!important;color:#222!important;}
#bundlePrintSheet h1{font-size:15pt;line-height:1.2;margin:0 0 1.5mm;}
#bundlePrintSheet .bundle-print-header p{font-size:8pt;line-height:1.3;margin:0;overflow-wrap:anywhere;}
#bundlePrintSheet .bundle-print-summary{color:#344f3d;text-align:right;flex-shrink:0;}
#bundlePrintSheet .bundle-print-summary strong{font-size:inherit;}
#bundlePrintSheet .bundle-tables{display:grid;grid-template-columns:repeat(var(--bundle-print-columns),minmax(0,1fr));gap:3mm;flex:1;min-height:0;align-items:stretch;max-width:none;}
#bundlePrintSheet .bundle-table-wrap{width:auto;max-width:none;height:100%;min-height:0;overflow:visible;border:0;border-radius:0;}
#bundlePrintSheet table{width:100%;height:100%;border-collapse:collapse;table-layout:fixed;font-variant-numeric:tabular-nums;}
#bundlePrintSheet th,#bundlePrintSheet td{padding:1.5pt 3pt;border:0.6pt solid #7f8981;text-align:left;font-size:var(--bundle-print-font);line-height:1.2;vertical-align:middle;overflow-wrap:anywhere;}
#bundlePrintSheet th{font-size:9pt;height:6mm;background:#edf2ed;color:#2e4233;}
#bundlePrintSheet th:last-child,#bundlePrintSheet td:last-child{text-align:center;width:10mm;padding-left:1pt;padding-right:1pt;}
#bundlePrintSheet td:last-child{font-size:var(--bundle-print-font);font-weight:700;color:#174c2b;white-space:nowrap;}
#bundlePrintSheet small{font-size:8pt;margin-left:1.5pt;}
#bundlePrintSheet thead{display:table-header-group;}#bundlePrintSheet tr{break-inside:avoid;}
#bundlePrintSheet .bundle-print-footer{display:flex;justify-content:space-between;gap:8px;flex-shrink:0;margin:1.5mm 0 0;font-size:7pt;line-height:1.2;color:#626a64;}
#bundlePrintSheet .bundle-print-page.compact{height:auto;}
#bundlePrintSheet .compact .bundle-tables{flex:none;align-items:start;}
#bundlePrintSheet .compact .bundle-table-wrap,#bundlePrintSheet .compact table{height:auto;}
#bundlePrintSheet .compact td{padding:4pt 3pt;}
@media print{
 body.print-bundles>*{display:none!important;}body.print-bundles #bundlePrintSheet{display:block!important;width:200mm;margin:0;color:#222;}
 html:has(body.print-bundles){background:#fff!important;}
 body.print-bundles{margin:0;padding:0;background:#fff!important;}#bundlePrintSheet{page:bundles;}
 @page bundles{size:A4 portrait;margin:5mm;}
}
