/* Base styles */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
html[lang="bn"] body { font-family: var(--font-bn); }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 600; color: var(--text); }
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 var(--sp-3); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
small, .muted { color: var(--text-3); }
.text-2 { color: var(--text-2); }
code, .mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-4) 0; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.flex { display: flex; gap: var(--sp-2); align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.gap-3 { gap: var(--sp-3); }
.mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); } .mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); }
.mb-2 { margin-bottom: var(--sp-2); } .mb-3 { margin-bottom: var(--sp-3); } .mb-4 { margin-bottom: var(--sp-4); }
.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.num { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Print: only the print area is shown */
#print-area { display: none; }
@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; color: #000; font-size: 11pt; }
  #print-area table { width: 100%; border-collapse: collapse; }
  #print-area th, #print-area td { border: 1px solid #999; padding: 4px 6px; text-align: left; font-size: 9.5pt; }
  #print-area th { background: #e8edf5 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-header { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid #102a52; padding-bottom: 8px; margin-bottom: 10px; }
  .print-header img { height: 48px; }
  .print-sign { display: flex; justify-content: space-between; margin-top: 48px; }
  .print-sign div { border-top: 1px solid #000; width: 28%; text-align: center; padding-top: 4px; font-size: 9pt; }
  .label-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6mm; }
  .asset-label { border: 1px dashed #555; padding: 3mm; display: flex; gap: 3mm; align-items: center; break-inside: avoid; }
  .asset-label .qr img, .asset-label .qr canvas { width: 26mm !important; height: 26mm !important; }
  .asset-label .meta { font-size: 8pt; line-height: 1.3; }
  .asset-label .meta b { font-size: 9pt; }
}

/* Default size for inline Lucide icons; component rules (loaded later) override */
svg.lucide { width: 15px; height: 15px; vertical-align: -2px; flex: none; }
