/* Print: hide the app, print only the build sheet.
   Zero page margin stops the browser printing its own title/URL/date lines (owner markup ST02);
   the sheet carries the margin itself, repeated on every printed page. */
@page { size: A4; margin: 0; }

html, body { height: auto !important; overflow: visible !important; background: #fff !important; color: #111 !important; }
body > *:not(#build-sheet) { display: none !important; }

#build-sheet {
  display: block !important;
  padding: 14mm;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  font-family: Inter, system-ui, sans-serif; font-size: 10.5pt; line-height: 1.45; color: #111;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.bs-head {
  display: flex; align-items: center; justify-content: space-between;
  background: #0b0b0c; color: #fff; padding: 12px 16px; border-radius: 8px; margin-bottom: 14px;
}
.bs-head img { height: 34px; width: auto; }
.bs-head div { text-align: right; }
.bs-head h1 { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .06em; font-size: 20pt; line-height: 1; margin: 0; }
.bs-head p { font-size: 9pt; opacity: .75; margin: 4px 0 0; }

.bs-customer { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 4px 16px;
  margin: 0 0 14px; padding: 8px 12px; border: 1px solid #ddd; border-radius: 8px; }
.bs-customer div { min-width: 0; }
.bs-customer dt { font-size: 8pt; text-transform: uppercase; letter-spacing: .08em; color: #666; }
.bs-customer dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.bs-customer .bs-notes { grid-column: 1 / -1; }
.bs-customer .bs-notes dd { font-weight: 400; white-space: pre-line; }
.bs-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: start; margin-bottom: 14px; }
.bs-shot { width: 100%; border-radius: 8px; border: 1px solid #ddd; }
.bs-spec { margin: 0; display: grid; gap: 0; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.bs-spec div { display: grid; grid-template-columns: 70px 1fr; gap: 8px; padding: 6px 10px; border-bottom: 1px solid #eee; }
.bs-spec div:last-child { border-bottom: 0; }
.bs-spec dt { color: #666; }
.bs-spec dd { margin: 0; font-weight: 600; }

.bs-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.bs-table th, .bs-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e6e6e6; vertical-align: top; }
.bs-table thead th { font-size: 8.5pt; text-transform: uppercase; letter-spacing: .08em; color: #666; border-bottom: 1.5px solid #111; }
.bs-table .r { text-align: right; white-space: nowrap; }
.bs-table small { color: #666; }
.bs-group th { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .1em; font-size: 10pt; background: #f3f3f3; }
.bs-table tfoot th, .bs-table tfoot td { border-top: 1.5px solid #111; border-bottom: 0; font-size: 12pt; font-weight: 700; padding-top: 10px; }
.bs-table tfoot small { font-size: 8.5pt; font-weight: 400; }
.bs-table tbody { break-inside: avoid; }
.bs-note { padding: 10px; border: 1px dashed #999; border-radius: 8px; }
.bs-disclaimer { font-size: 8.5pt; color: #555; margin: 8px 0 14px; }
.bs-next h2 { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .06em; font-size: 13pt; margin: 0 0 6px; }
.bs-next ol { margin: 0 0 14px; padding-left: 18px; }
.bs-next li { margin-bottom: 4px; }
/* Layout drawings (deck plan, overhead slice, rear view) */
.bs-layout { break-inside: avoid; margin: 6px 0 14px; }
.bs-layout > h2 { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .06em; font-size: 13pt; margin: 0 0 6px; }
.bs-layout .bp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bs-layout .bp-fig { margin: 0; padding: 6px; border: 1px solid #ccd6e2; border-radius: 6px; background: #f4f8fc; break-inside: avoid; }
.bs-layout .bp-fig:last-child { grid-column: 1 / -1; max-width: 60%; justify-self: center; }
.bs-layout .bp-title { font-size: 9pt; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 4px; }
.bs-layout .bp-cap { font-size: 7.5pt; color: #555; margin-top: 3px; }
.bs-layout .bp-svg { display: block; width: 100%; height: auto; }
.bs-layout .bp-grid { fill: none; stroke: #e3ebf4; stroke-width: 1; }
.bs-layout .bp-line { fill: none; stroke: #4a6a8c; stroke-width: 1.4; }
.bs-layout .bp-line--strong { stroke: #1d3550; stroke-width: 1.8; }
.bs-layout .bp-faint { fill: none; stroke: #9db2c8; stroke-width: 1.1; }
.bs-layout .bp-dash { stroke-dasharray: 5 5; }
.bs-layout .bp-fill { fill: #dbe5ef; stroke: none; }
.bs-layout .bp-on { fill: #fde7c8; stroke: #c97a12; stroke-width: 1.5; }
.bs-layout .bp-off { fill: none; stroke: #9db2c8; stroke-width: 1; stroke-dasharray: 4 4; }
.bs-layout .bp-t { fill: #111; font-weight: 600; font-family: Inter, sans-serif; }
.bs-layout .bp-t--muted { fill: #7a8a9b; font-weight: 500; }
.bs-layout .bp-dim { fill: #4a6a8c; font-size: 10px; letter-spacing: .08em; font-weight: 600; font-family: Inter, sans-serif; }

.bs-foot { border-top: 1px solid #ddd; padding-top: 8px; font-size: 8.5pt; color: #444; }
.bs-foot p { margin: 0 0 4px; }
.bs-link { word-break: break-all; }
