/* Printable templates: builder + paper preview. Print shows the sheet only. */
.pt-builder .field-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.75rem}
.pt-builder .field{display:flex;flex-direction:column;gap:.25rem;margin-bottom:.6rem}
.pt-builder label{font-weight:600;font-size:.9rem}
.pt-builder input,.pt-builder select{font:inherit;padding:.5rem .6rem;border:1px solid #94a3b8;border-radius:10px;background:#fff;color:var(--text);min-height:44px}
.pt-sheet-wrap{overflow-x:auto;margin:1rem 0;background:#fff;border:1px solid var(--border);border-radius:12px;padding:12px}
.pt-sheet{color:#000;font-size:11px;min-width:520px}
.pt-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem;align-items:baseline;margin-bottom:6px}
.pt-title{font-size:16px;font-weight:700;margin:0}
.pt-meta{margin:0;white-space:pre-wrap;color:#333}
.pt-table{width:100%;border-collapse:collapse;table-layout:fixed}
.pt-table th,.pt-table td{border:1px solid #555;padding:3px 4px;height:22px;text-align:left;vertical-align:top;font-weight:400;overflow-wrap:anywhere}
.pt-table thead th{font-weight:700;background:#f1f5f9}
.pt-table tr>:first-child{width:22%}
.pt-table tbody th{font-weight:600}
.pt-narrow .pt-table tr>:first-child{width:18%}
.pt-narrow .pt-table thead th:not(:first-child){font-size:9px;padding:2px 1px;text-align:center}
.pt-tall .pt-table td,.pt-tall .pt-table tbody th{height:70px}
.pt-tall2 .pt-table td{height:44px}
.pt-weights th,.pt-weights td{background:#fafafa;font-style:italic}
.pt-total th{font-weight:700}
.pt-foot{margin:8px 0 0;font-size:12px}
.pt-credit{margin:6px 0 0;font-size:9px;color:#666;text-align:right}
@media print{
  body.pt-page .site-header,body.pt-page .site-footer,body.pt-page .skip-link,body.pt-page .main>*:not(.pt-sheet-wrap){display:none!important}
  body.pt-page .pt-sheet-wrap{border:0!important;padding:0;margin:0;overflow:visible}
  body.pt-page .pt-sheet{min-width:0;font-size:10pt}
  body.pt-page .pt-table thead{display:table-header-group}
  body.pt-page .pt-table tr{break-inside:avoid}
  body.pt-page .main::after{content:none!important}
}
