/**
 * screen view, generated from style.pdf.css by tplbuild/screen.py
 */
@font-face { font-family: iranyekan; font-weight: normal; src: url("{{{CURENT_DIR_URL}}}/fonts/woff2/iranyekanwebregular.woff2") format("woff2"), url("{{{CURENT_DIR_URL}}}/fonts/woff/iranyekanwebregular.woff") format("woff"); }
@font-face { font-family: iranyekan; font-weight: bold; src: url("{{{CURENT_DIR_URL}}}/fonts/woff2/iranyekanwebbold.woff2") format("woff2"), url("{{{CURENT_DIR_URL}}}/fonts/woff/iranyekanwebbold.woff") format("woff"); }
html { background: #e9ebef; }
body { margin: 0; padding: 24px 12px; font-family: iranyekan, Vazirmatn, Tahoma, "Segoe UI", Arial, sans-serif; font-size: {{{font_size}}}; color: #1d2327; direction: ltr; }
.puiw-screen-sheet { position: relative; box-sizing: border-box; width: 80mm; max-width: 100%; margin: 0 auto; padding: 4mm; background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .1); border-radius: 4px; }
.puiw-screen-sheet img { max-width: 100%; }
/* the PDF sizes item pictures through mPDF; on screen they need a size of their own */
.puiw-screen-sheet td.show_product_image img, .puiw-screen-sheet .show_product_image img { width: 12mm !important; height: auto !important; max-height: 14mm; object-fit: contain; }
.puiw-screen-sheet table { border-collapse: collapse; }
[dir=rtl] .puiw-screen-sheet { text-align: right; }
/* the watermark set under Theming; the PDF draws its own through mPDF */
.puiw-screen-watermark { position: absolute; inset: 0; pointer-events: none; user-select: none; background: url("{{{watermark}}}") no-repeat center; background-size: 60%; opacity: {{{watermark_opacity_10}}}; mix-blend-mode: {{{watermark_blend}}}; z-index: 5; }
@media print {
  html, body { background: #fff; padding: 0; }
  .puiw-screen-sheet { width: auto; box-shadow: none; padding: 0; border-radius: 0; }
}

.th-head { height: 0; }
.th-sheet { width: 100%; }
.th-logo { text-align: center; padding-bottom: 0.08cm; }
.th-store { text-align: center; font-weight: bold; font-size: 8.5pt; }
.th-store-line { text-align: center; font-size: 8pt; line-height: 1.4; }
.th-rule { border-bottom: 1px dashed #000; height: 1px; margin: 0.12cm 0; }
.th-kind { text-align: center; font-size: 8pt; letter-spacing: 1pt; }
.th-no { text-align: center; font-weight: bold; font-size: 8.5pt; padding-bottom: 0.1cm; }

.th-meta { width: 100%; }
.th-meta td { font-size: 8pt; line-height: 1.5; padding: 0; }
.th-k { color: #000; }
.th-v { text-align: right; font-weight: bold; }

/* the engine always renders eleven columns, so the cells are made into lines */
.th-items { width: 100%; border-collapse: collapse; }
.th-items th { font-size: 6pt; font-weight: normal; border-bottom: 1px solid #000; padding: 0.04cm 0.02cm; }
.th-items td { border: 0; padding: 0.06cm 0.02cm; font-size: 8pt; line-height: 1.35; vertical-align: top; }
/* mPDF keeps every cell of a table, so the ones a receipt does not need are
   squeezed to nothing rather than hidden */
.th-items .show_product_image { width: 0.01cm; padding: 0; }
.th-items .show_product_image img { width: 0.01cm; height: 0.01cm; }
.th-items .show_product_image div { width: 0.01cm; }
/* font-size: 0 here divides by zero inside mPDF's RTL text shaping, so the
   column is hidden with visibility instead */
.th-items .show_product_sku,
.th-items .show_product_weight,
.th-items .show_product_dimensions { width: 0.01cm; padding: 0; visibility: hidden; }
.th-items .show_product_n { width: 0.35cm; padding: 0; }
.th-items .show_product_title_description { font-weight: bold; }
.th-items .show_discount_precent { width: 0.9cm; }
.th-items .show_product_total_price { text-align: right; font-weight: bold; }
.th-items tr.th-total td { border-top: 1px dashed #000; font-weight: bold;
  font-size: 8.5pt; padding-top: 0.12cm; }

.th-codes { text-align: center; padding-top: 0.1cm; }
.th-barcode { width: 5.4cm; height: 0.8cm; }
.th-code-value { font-size: 8pt; }
.th-qr img { width: 1.8cm; height: 1.8cm; margin-top: 0.1cm; }
.th-thanks { text-align: center; font-size: 8pt; padding-top: 0.15cm; }
