/* =====================================================================
   Printable document styles (Quotation / Invoice / Receipt)
   Rebuilt from the Canva templates. A4 = 794 x 1123 CSS px.
   All positions below were measured from the original PDFs.
   ===================================================================== */

.sheet {
  position: relative;
  width: 794px;
  height: 1123px;
  background: #fff;
  overflow: hidden;
  font-family: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  color: #000;
  font-size: 11px;
  line-height: 1.45;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  box-sizing: border-box;
}
.sheet *, .sheet *::before, .sheet *::after { box-sizing: border-box; }
.sheet .abs { position: absolute; }

/* --- Header ---------------------------------------------------------- */
.sheet .wm {
  position: absolute; left: -12px; top: 154px; width: 810px; height: 810px;
  opacity: .04; pointer-events: none;
}
.sheet .hb { position: absolute; top: 47px; height: 64px; background: #221717; }
.sheet .hb.l { left: 0; width: 61px; }
.sheet .hb.r { left: 660px; width: 134px; }
.sheet .logo { position: absolute; left: 56px; top: 2px; width: 307px; height: auto; }
.sheet .co { position: absolute; left: 373px; top: 47px; line-height: 21px; font-size: 15.6px; }
.sheet .co b { display: block; font-weight: 700; font-size: 15.7px; }
.sheet .dtitle {
  position: absolute; left: 78px; top: 141px; margin: 0;
  font-size: 37.5px; font-weight: 700; line-height: 1.2; letter-spacing: 0;
}
.sheet .dtitle small { font-size: 12px; font-weight: 500; letter-spacing: 0; margin-left: 10px; color: #444; }
.sheet .rule { position: absolute; left: 79px; width: 634px; height: 3px; background: #b5b5b5; border-radius: 2px; }

/* --- Meta (attention / bill to / numbers) ---------------------------- */
.sheet .meta { position: absolute; left: 79px; width: 634px; top: 225px; display: flex; justify-content: space-between; }
.sheet .meta .lbl { font-size: 13.2px; text-transform: uppercase; line-height: 18px; }
.sheet .meta .nm { font-weight: 700; font-size: 18px; line-height: 20px; }
.sheet .meta .nm.big { line-height: 22px; }
.sheet .meta .sm { font-size: 12.7px; line-height: 15px; }
.sheet .meta .blk + .blk { margin-top: 18px; }
.sheet .meta .rt { text-align: right; }
.sheet .meta .rt .nm { font-size: 13.2px; line-height: 18px; }

/* --- Items table ----------------------------------------------------- */
.sheet .tbl { position: absolute; left: 79px; width: 634px; }
.sheet .th, .sheet .tt { display: flex; align-items: center; background: #323232; color: #fff; font-weight: 700; }
.sheet .th { height: 33px; font-size: 12px; text-transform: uppercase; padding-bottom: 3px; }
.sheet .th > div, .sheet .drow > div { flex: none; }
.sheet .c-prod { width: 380px; padding-left: 9px; padding-right: 45px; }
.sheet .c-rate { width: 78px; }
.sheet .c-qty { width: 60px; text-align: center; }
.sheet .c-sub { width: 116px; text-align: right; padding-right: 8px; }
.sheet .tb { background: rgba(0, 0, 0, .035); padding: 9px 0 6px; }
.sheet .drow { display: flex; align-items: flex-start; padding-bottom: 16px; font-size: 12px; line-height: 15px; }
.sheet .rh { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; text-transform: uppercase; font-size: 12px; line-height: 15px; }
.sheet .drow ul { margin: 0; padding: 0 0 0 21px; list-style: disc; }
.sheet .drow li { padding: 0; margin: 0; }
.sheet .drow li::marker { font-size: 10px; }
.sheet .drow .c-rate, .sheet .drow .c-qty, .sheet .drow .c-sub { padding-top: 0; }
.sheet sup { font-size: .62em; line-height: 0; vertical-align: .55em; }
.sheet .tt { height: 32px; font-size: 11.9px; }
.sheet .tt .lab { width: 580px; text-align: right; padding-right: 23px; text-transform: uppercase; }
.sheet .tt .val { width: 54px; font-size: 12px; }
.sheet .cont { font-size: 10px; color: #666; text-align: right; padding: 4px 4px 0 0; }

/* --- Bottom block ---------------------------------------------------- */
.sheet { --ink: #333; }
.sheet h4 { margin: 0; font-size: 17.4px; font-weight: 700; line-height: 1.3; text-transform: uppercase; color: var(--ink); }
.sheet .terms { margin: 4px 0 0; padding: 0 0 0 16px; list-style: disc; color: var(--ink); text-align: justify; }
.sheet .terms li { padding-left: 0; }
.sheet .terms li::marker { font-size: 9px; }
.sheet .ack-text { font-size: 13.8px; line-height: 16.5px; margin-top: 3px; color: var(--ink); }
.sheet .sigline { position: absolute; left: 83px; width: 170px; height: 3px; background: #111; }
.sheet .sigl { position: absolute; left: 83px; font-size: 13.5px; line-height: 20px; color: var(--ink); }

.sheet.invoice h4 { font-size: 15.8px; }
.sheet .pm { font-size: 13.7px; line-height: 15px; color: var(--ink); }
.sheet .pm b { display: block; font-weight: 700; text-transform: uppercase; }
.sheet .pm img { width: 92px; height: 92px; display: block; margin: 7px 0 4px; }
.sheet .pm b.gap { margin-top: 15px; }
.sheet .pt { font-size: 9.6px; line-height: 11.8px; color: var(--ink); }
.sheet .pt p { margin: 0 0 9px; }
.sheet .vline { position: absolute; width: 1px; background: #bdbdbd; }

/* --- Receipt --------------------------------------------------------- */
.sheet .thanks { font-size: 15.4px; line-height: 22px; }
.sheet .paybox {
  position: absolute; left: 79px; width: 634px; height: 108px; background: #ececec; border-radius: 12px;
  display: flex; align-items: center; padding: 0 22px 0 28px;
}
.sheet .paybox .ck { width: 44px; height: 44px; flex: none; }
.sheet .paybox .pl { flex: 1; padding-left: 17px; }
.sheet .paybox .pl b { display: block; font-size: 17.9px; font-weight: 700; line-height: 24px; }
.sheet .paybox .pl span { font-size: 13px; line-height: 20px; display: block; max-width: 260px; }
.sheet .paybox .vr { width: 2px; height: 76px; background: #555; margin: 0 60px 0 0; }
.sheet .paybox .pr { text-align: right; min-width: 154px; }
.sheet .paybox .pr b { display: block; font-size: 17.9px; line-height: 24px; }
.sheet .paybox .pr strong { display: block; font-size: 33.8px; line-height: 40px; font-weight: 700; letter-spacing: -.3px; white-space: nowrap; }
.sheet .paydet { position: absolute; left: 82px; font-size: 15.3px; line-height: 24px; }
.sheet .paydet div { display: flex; }
.sheet .paydet span:first-child { width: 190px; }
.sheet .paydet span:nth-child(2) { width: 14px; }

/* --- Footer ---------------------------------------------------------- */
.sheet .ftr { position: absolute; left: 0; top: 1055px; width: 794px; height: 68px; display: block; }

/* =====================================================================
   Printing
   ===================================================================== */
@page { size: A4; margin: 0; }
@media print {
  .sheet { page-break-after: always; break-after: page; margin: 0 !important; box-shadow: none !important; }
  .sheet:last-child { page-break-after: auto; break-after: auto; }
}
