/* ============================================================================
   TMK WMS V2 — FALLBACK PRINT CSS (STRICTLY @media print, ZERO !important)
   Note: Primary print buttons use the Isolated Iframe Print Engine (printEngine.ts)
   for pixel-perfect A4 & Thermal output. This stylesheet cleans up Ctrl+P fallback.
   ============================================================================ */

@page {
  size: A4 portrait;
  margin: 14mm;
}

html,
body {
  background: #ffffff;
  color: #000000;
  color-scheme: light;
  font-family: 'Sarabun', sans-serif;
  font-size: 11pt;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.desktop-sidebar,
.topbar,
.mobile-bottom-nav,
.mobile-drawer-backdrop,
.toast-stack,
.cmd-backdrop,
.floating-cart-bar,
.no-print,
.tabs,
.toolbar,
.date-filter-bar,
.workflow-strip,
.page-actions {
  display: none;
}

.app-shell,
.workspace-column,
.main-content {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.panel {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: #ffffff;
}

.modal-backdrop {
  position: static;
  background: #ffffff;
  padding: 0;
}

.modal-dialog,
.modal-dialog--lg,
.modal-dialog--xl {
  max-width: none;
  max-height: none;
  border: none;
  box-shadow: none;
  overflow: visible;
  background: #ffffff;
}

.modal-header,
.modal-footer {
  display: none;
}

.print-sheet {
  width: 100%;
  color: #000000;
  background: #ffffff;
}

.print-sheet table,
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.print-sheet th,
.print-sheet td,
.data-table th,
.data-table td {
  border: 1px solid #334155;
  padding: 6px 8px;
  font-size: 10pt;
  color: #000000;
}

.data-table th {
  background: #f1f5f9;
}

.data-table th.text-right,
.data-table td.text-right {
  text-align: right;
}

.print-barcode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5mm;
}

.print-barcode-card {
  border: 1px dashed #64748b;
  padding: 6px;
  text-align: center;
  break-inside: avoid;
  page-break-inside: avoid;
  background: #ffffff;
}
