/* The build sheet (#/p/<id>/sheet): an A4 page to print and take to the
   bench. Black on white in every theme, like paper. */

.sheet-screen { min-height: 100%; background: var(--desk); }
.sheet-bar { position: sticky; top: 0; z-index: 5; }
.sheet {
  width: min(210mm, 100% - 32px); margin: 24px auto 64px; padding: 14mm 14mm 16mm;
  background: #fff; color: #1a1a1a; border-radius: 4px; box-shadow: 0 2px 16px rgb(0 0 0 / 0.18);
  font: 400 13px/1.45 var(--font-ui);
}
.sheet .mono { font-family: var(--font-mono); }
.sheet-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.sheet-head h1 { margin: 0; font-size: 22px; line-height: 1.2; }
.sheet-head p { margin: 4px 0 0; color: #555; }
.sheet-code { display: flex; gap: 10px; align-items: center; max-width: 60%; }
.sheet-code.none { margin: 0; max-width: 220px; font-size: 11px; color: #666; text-align: right; }
.sheet-code span { display: block; font-size: 11px; color: #666; }
.sheet-code strong { display: block; font-size: 16px; }
.sheet-code em { display: block; margin-top: 2px; font-size: 11px; color: #a33; font-style: normal; }
.sheet-qr { width: 25mm; height: 25mm; flex: none; }
.sheet-qr svg { display: block; width: 100%; height: 100%; }
.sheet-warning { margin: 8px 0 12px; padding: 8px 12px; border: 2px solid #c62828; border-radius: 4px; }
.sheet-warning ul { margin: 4px 0 0; padding-left: 18px; }
.sheet-drawing { margin: 0 0 14px; }
.sheet-drawing svg { display: block; width: 100%; height: auto; max-height: 150mm; }
.sheet-name { font: 600 0.75px var(--font-mono); fill: #1a1a1a; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 0.25px; }
.sheet-section { margin-top: 14px; }
.sheet-section h2 { margin: 0 0 6px; font-size: 15px; break-after: avoid; }
.sheet-table tr { break-inside: avoid; }
.sheet-table { width: 100%; border-collapse: collapse; }
.sheet-table th, .sheet-table td { padding: 4px 6px; border-bottom: 1px solid #ddd; text-align: left; vertical-align: top; }
.sheet-table th { font-size: 11px; color: #555; font-weight: 600; }
.sheet-table .tick { width: 22px; }
.sheet-table .box { display: inline-block; width: 12px; height: 12px; border: 1.5px solid #333; border-radius: 2px; }
.sheet-steps { margin: 0; padding-left: 22px; }
.sheet-steps li { margin: 0 0 6px; padding-left: 2px; break-inside: avoid; }
.sheet-detail, .sheet-note { display: block; font-size: 11.5px; color: #555; }
.sheet-note { color: #8a4b00; }

@page { size: A4 portrait; margin: 12mm; }
@media print {
  .sheet-screen { background: #fff; }
  .sheet-bar, .toasts { display: none; }
  .sheet { width: auto; margin: 0; padding: 0; box-shadow: none; border-radius: 0; }
  body { background: #fff; }
}
