/* =====================================================
   VENDRA POS — Estilos de impresión térmica
   Optimizado para 58mm y 80mm
   ===================================================== */

@media print {
  /* Ocultar todo excepto la zona de impresión */
  body * {
    visibility: hidden;
  }

  .print-zone,
  .print-zone * {
    visibility: visible;
  }

  .print-zone {
    position: absolute;
    left: 0;
    top: 0;
  }

  /* Ocultar elementos no imprimibles */
  .no-print {
    display: none !important;
  }

  /* Reset de márgenes para impresoras térmicas */
  @page {
    margin: 0;
    padding: 0;
  }

  body {
    margin: 0;
    padding: 0;
  }
}

/* =====================================================
   Recibo 58mm (ancho fijo 58mm, 32 chars/línea)
   ===================================================== */
.receipt-58mm {
  width: 58mm;
  font-family: 'Courier New', Courier, monospace;
  font-size: 9pt;
  line-height: 1.3;
  color: #000;
  background: #fff;
  padding: 4mm 3mm;
}

/* =====================================================
   Recibo 80mm (ancho fijo 80mm, 48 chars/línea)
   ===================================================== */
.receipt-80mm {
  width: 80mm;
  font-family: 'Courier New', Courier, monospace;
  font-size: 9pt;
  line-height: 1.3;
  color: #000;
  background: #fff;
  padding: 4mm 3mm;
}

/* Elementos comunes del recibo */
.receipt-center   { text-align: center; }
.receipt-bold     { font-weight: bold; }
.receipt-divider  { border-top: 1px dashed #000; margin: 2mm 0; }
.receipt-spacer   { height: 2mm; }

.receipt-header {
  text-align: center;
  font-weight: bold;
  font-size: 11pt;
  margin-bottom: 2mm;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
}

.receipt-item-name {
  font-weight: normal;
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 11pt;
  border-top: 1px solid #000;
  padding-top: 1mm;
  margin-top: 1mm;
}

.receipt-footer {
  text-align: center;
  margin-top: 3mm;
  font-size: 8pt;
}
