/* Print A Checks — check face, stubs and MICR line. Shared by the print page and the VOID page. */
@font-face{
  font-family:'PAC-MICR';
  src:url('../font/micr.ttf') format('truetype');
  font-display:block;
}

/* ---------- the check ---------- */
/* positions in inches */
.sheet{
  position:relative;width:8.5in;height:11in;background:#fff;
  box-shadow:0 2px 14px rgba(0,0,0,.13);margin:0 auto;
  transform-origin:top center;
}
.check{
  position:absolute;left:0;top:0;width:8.5in;height:3.5in;
  color:#111;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;
}
.check.preview{outline:1px dashed #c9c9c5}
/* preview guide: the strip reserved for the MICR line. Never printed. */
.check.preview::before{
  content:'';position:absolute;left:0;right:0;bottom:0;height:.625in;
  background:repeating-linear-gradient(45deg,rgba(31,95,79,.05) 0 6px,transparent 6px 12px);
  border-top:1px dashed rgba(31,95,79,.35);pointer-events:none}
@media print{.check.preview::before{display:none}}
.f{position:absolute;white-space:nowrap;line-height:1.15}

.pn{font-size:10pt;font-weight:700;line-height:.16in}
.pa{font-size:10pt;color:#222;line-height:.16in}
.bank{font-size:8pt;color:#333;line-height:.14in}
.logo{width:1.25in;height:.5in;object-fit:contain;object-position:left top}
.cknum{font-size:13.5pt;text-align:right;letter-spacing:.01em}
.frac{font-size:7.5pt;color:#444;text-align:right}
.dollar{font-size:15.4pt;font-weight:700}
.amt{font-size:9.6pt;font-weight:700;letter-spacing:.01em}
.payeeaddr{font-size:9.6pt;line-height:.154in;white-space:normal}

.lbl{font-size:7.7pt;text-transform:uppercase;color:#222;line-height:.125in}
.ruled{border-bottom:.6pt solid #222}
.rule{border-bottom:.6pt solid #222;height:0}
.val{font-size:9.6pt}
.words{font-size:9.6pt;overflow:hidden}
.sigline{border-bottom:.6pt solid #222;height:0}

/* MICR line */
.micr{
  font-family:'PAC-MICR',monospace;
  font-size:0.1664447in;
  letter-spacing:0;
  white-space:pre;
  color:#000;
  line-height:1;
}
/* baseline marker */
.micr .bl{display:inline-block;width:0;height:0;vertical-align:baseline}

/* voucher stubs */
.stub{position:absolute;left:0;width:8.5in;height:3.75in;
      font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:8.5pt;color:#222}
.stub.a{top:3.5in} .stub.b{top:7.25in}
.stub .sr{position:absolute;white-space:nowrap}
.stubtbl{position:absolute;left:.6in;top:1.15in;width:7.3in;font-size:8.5pt;border-collapse:collapse}
.stubtbl td{padding:2.5px 0}
.stubtbl .r{text-align:right}
.stubtbl .tot{border-top:.75pt solid #444;font-weight:700}

.check.voidck::after{content:'VOID';position:absolute;left:0;right:0;top:34%;text-align:center;
  font:800 60pt Helvetica,Arial,sans-serif;color:rgba(160,30,30,.32);transform:rotate(-12deg);letter-spacing:.12em;pointer-events:none}
.check.calib::after{content:'VOID \2014  CALIBRATION';position:absolute;left:0;right:0;top:38%;text-align:center;
  font:800 44pt Helvetica,Arial,sans-serif;color:rgba(160,30,30,.28);transform:rotate(-12deg);letter-spacing:.08em;pointer-events:none}

/* ---------- printed check design (plain paper) ----------
   Tinted safety-paper look with a fine diagonal pattern and a double frame, for checks printed
   on ordinary paper — chiefly VOID checks that will be photographed or scanned. Bottom band kept
   plain so a reader still sees a clean MICR line. */
.check.paper{
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0 2.875in, rgba(255,255,255,.55) 2.875in 3.5in),
    repeating-linear-gradient(135deg, rgba(41,84,120,.055) 0 1px, transparent 1px 7px),
    linear-gradient(180deg,#e9f1f8 0%,#f4f8fb 55%,#edf3f8 100%);
  box-shadow: inset 0 0 0 .6pt #b9c9d6, inset 0 0 0 .12in #eef4f9, inset 0 0 0 calc(.12in + .6pt) rgba(41,84,120,.4);
  -webkit-print-color-adjust:exact; print-color-adjust:exact;
}
.check.paper .rule,.check.paper .sigline{border-bottom-color:#2b4a63}

