/* ===== BestQR — Bulk QR code generator ===== */
body.tbatch {
  --accent: #4f46e5;
  --accent-600: #4338ca;
  --accent-soft: #eef0ff;
  --accent-ring: #4f46e52e;
}
.bt-preset { display: inline-flex; align-items: center; gap: 8px; }
.bt-sw { width: 18px; height: 18px; border-radius: 5px; border: 2px solid; display: grid; place-items: center; }
.bt-sw i { width: 8px; height: 8px; border-radius: 2px; display: block; }
.bt-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bt-file { position: relative; overflow: hidden; }
.bt-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
#csv { min-height: 190px; font-family: var(--mono); font-size: 13px; line-height: 1.55; }
.bt-status { font-size: 13.5px; color: var(--muted); min-height: 20px; margin-top: 12px; }
.bt-results { margin-top: 28px; }
.bt-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.bt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.bt-card { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; text-align: center; }
.bt-card img { width: 100%; height: auto; display: block; border-radius: 8px; }
.bt-card figcaption { margin-top: 8px; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* print sheet: hidden on screen, the only thing shown when printing */
#print-sheet { display: none; }
@media print {
  body.bt-printing > *:not(#print-sheet) { display: none !important; }
  body.bt-printing #print-sheet { display: block; }
  .bt-page { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 8mm; align-content: start; break-after: page; }
  .bt-page:last-child { break-after: auto; }
  .bt-cell { margin: 0; text-align: center; break-inside: avoid; }
  .bt-cell img { width: 100%; height: auto; display: block; }
  .bt-cell figcaption { font: 11pt/1.3 system-ui, sans-serif; margin-top: 2mm; color: #000; word-break: break-word; }
  @page { margin: 12mm; }
}
