@media print {
  @page {
    margin: 0;
    size: auto;
  }

  body {
    margin: 0;
    padding: 2mm;
    background: #fff !important;
    color: #000 !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    width: 80mm;
    -webkit-print-color-adjust: exact;
  }

  body.thermal-58mm {
    width: 58mm;
    font-size: 9.5px !important;
  }

  .no-print {
    display: none !important;
  }

  .thermal-receipt {
    display: block !important;
    width: 100% !important;
  }

  .thermal-header {
    text-align: center;
    margin-bottom: 6px;
  }

  .thermal-title {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
  }

  .thermal-divider {
    border-top: 1px dashed #000;
    margin: 4px 0;
  }

  .thermal-row {
    display: flex;
    justify-content: space-between;
    margin: 2px 0;
  }

  .thermal-total {
    font-size: 13px;
    font-weight: bold;
    border-top: 1px double #000;
    border-bottom: 1px double #000;
    padding: 3px 0;
    margin: 4px 0;
  }

  .thermal-qr {
    text-align: center;
    margin: 6px 0;
  }

  .thermal-qr img {
    max-width: 100px;
    height: auto;
    margin: 0 auto;
  }
}

/* Screen Preview for Thermal */
.thermal-preview-container {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  background: #fff;
  color: #111;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 4px;
}
