/* ซ่อนส่วนติดต่อผู้ใช้เวลาสั่งพิมพ์หน้าใดหน้าหนึ่งของแอปโดยตรง
   (เอกสารจริงมีหน้าพิมพ์ของตัวเองที่ /print/*.html พร้อม CSS แยก) */
.sidebar,
.topbar,
.menu-toggle,
.sidebar-backdrop,
.toast-stack,
.filters,
.tabs,
.page-actions,
.table-foot,
.btn {
  display: none !important;
}

.main {
  margin-left: 0;
}

.view {
  padding: 0;
}

.card {
  border: 0;
  box-shadow: none;
}

table.data {
  font-size: 11pt;
}

table.data tr {
  page-break-inside: avoid;
}

/* หัวกระดาษของรายงาน — ซ่อนบนจอ แสดงเฉพาะตอนพิมพ์ */
.print-only {
  display: block !important;
}

.print-head {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #000;
}

.print-head h2 {
  margin: 0 0 4px;
  font-size: 16pt;
}

.print-head .print-meta {
  font-size: 10pt;
  color: #333;
}

table.data thead {
  display: table-header-group;
}

/* ---------- QR ของ SKU (หน้ารายงานแท็บสินค้า/สต็อก) ---------- */
table.data th.col-qr,
table.data td.col-qr {
  display: table-cell;
  width: 16mm;
}

table.data td.col-qr .qr-cell svg {
  display: block;
  width: 14mm;
  height: 14mm;
}
