@page { margin: 14mm; }
html, body { height: auto !important; overflow: visible !important; background: #fff !important; color: #000 !important; }
* { box-shadow: none !important; text-shadow: none !important; }
:root, html.theme-light { --bg-0: #fff; --bg-1: #fff; --bg-2: #f4f4f4; --bg-3: #eee; --line: #ccc; --line-strong: #999; --text-0: #000; --text-1: #222; --text-2: #555; --accent: #8a5200; --ok: #1d6b38; --warn: #7a4f00; }
#app { display: block !important; height: auto !important; }
.header, .sidebar, .viewer-col, .vtools, .tabs, .doc-actions, .toast, .menu, .results, .modal-back, .cb, .lib-frame { display: none !important; }
.shell, .split, .main { display: block !important; height: auto !important; padding: 0 !important; }
.content-col, .doc-view { overflow: visible !important; border: 0 !important; background: #fff !important; height: auto !important; }
.tabpane[hidden] { display: block !important; }   /* expand every tab: steps, parts, materials, tips */
.tabpane { padding: 0 0 12mm !important; page-break-inside: auto; }
.tabpane::before { content: attr(data-title); display: block; font-size: 13pt; font-weight: 800; margin: 10mm 0 4mm; color: #8a5200; border-bottom: 1px solid #999; }
.step, .cl-group, .mgroup { page-break-inside: avoid; border: 1px solid #bbb !important; background: #fff !important; }
.tbl th { position: static !important; }
.cp-title { font-size: 24pt; }
.print-check { display: inline-block; width: 12px; height: 12px; border: 1.5px solid #000; margin-right: 6px; vertical-align: -2px; }
.print-only { display: block !important; }
tr, .s-parts, .s-specs, .s-check, .s-warn { page-break-inside: avoid; }
.step, .cl-group, .mgroup { break-inside: avoid; }
h1, h2, h3, .tabpane::before { page-break-after: avoid; break-after: avoid; }
[hidden] { display: none !important; }   /* a hidden view (e.g. the build view while printing a guide) must stay out of the print */
.tabpane[hidden] { display: block !important; }
