/* BM TRADA form sheets: on screen as a paper preview, printed as A4. */
.printbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0 16px; }
.sheet { position: relative; background: #fff; color: #000; margin: 0 auto 30px; padding: 14mm 12mm; box-shadow: 0 2px 14px rgba(0,0,0,.12);
  font: 10pt/1.3 Arial, Helvetica, sans-serif; overflow-x: auto; }
.sheet.portrait { max-width: 210mm; }
.sheet.landscape { max-width: 297mm; }
.f-head { text-align: center; margin-bottom: 8px; }
.f-scheme { font-weight: 700; font-size: 11pt; letter-spacing: .02em; }
.f-title { font-weight: 700; font-size: 14pt; }
.sheet h4 { font-size: 10.5pt; margin: 10px 0 4px; }
table.f { width: 100%; border-collapse: collapse; margin: 6px 0 10px; table-layout: auto; }
table.f th, table.f td { border: 1px solid #000; padding: 4px 6px; vertical-align: top; text-align: left; }
table.f th { background: #e8e8e8; font-weight: 700; }
table.f tr.sub th { background: #d0d0d0; }
table.f td.area { font-weight: 700; width: 18%; }
table.f.ria th { font-size: 8pt; }
table.f.ria td { font-size: 8.5pt; }
table.f .decl { font-size: 8.5pt; }
.sheet .missing { color: #a3261f; font-weight: 700; }
.f-note { font-size: 8.5pt; }
.f-foot { margin-top: 10px; font-size: 8pt; color: #333; }
.sig-sm { max-height: 40px; }
.draft { position: absolute; top: 40%; left: 0; right: 0; text-align: center; font-size: 46pt; font-weight: 800; color: rgba(163,38,31,.12); transform: rotate(-12deg); pointer-events: none; }
.pagebreak { height: 20px; border-top: 1px dashed #bbb; margin: 20px 0; }

@media print {
  .no-print, .topbar, .printbar, .toast { display: none !important; }
  body { background: #fff; }
  main { max-width: none; padding: 0; }
  .sheet { box-shadow: none; margin: 0; padding: 0; max-width: none; overflow: visible; }
  .pagebreak { break-after: page; border: 0; height: 0; margin: 0; }
  table.f tr { break-inside: avoid; }
}
@page { size: A4; margin: 12mm; }
body.printing-landscape { }
