/* Sport Shoes RD — estilos de impresión para comprobantes */

.receipt-letterhead {
  text-align: center;
  margin-bottom: 10px;
}

.receipt-shop-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--navy, #0A0E1A);
  line-height: 1.15;
  margin-bottom: 6px;
}

.receipt-line {
  font-size: 11px;
  color: var(--muted, #666);
  line-height: 1.45;
}

.receipt-print-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 8px;
  padding: 10px;
  background: var(--off, #f5f5f5);
  border-radius: 8px;
  font-size: 12px;
}

.receipt-print-toolbar label {
  font-weight: 600;
  color: var(--navy, #0A0E1A);
}

.receipt-print-toolbar select {
  flex: 1;
  min-width: 140px;
  padding: 8px 10px;
  border: 1.5px solid var(--border, #ddd);
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
}

.receipt-doc-title {
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 12px 0 10px;
  color: var(--navy, #0A0E1A);
}

.receipt-meta {
  font-size: 11px;
  line-height: 1.5;
  color: var(--navy, #0A0E1A);
}

.receipt-items {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 11px;
}

.receipt-items th,
.receipt-items td {
  border-bottom: 1px solid var(--border, #ddd);
  padding: 6px 4px;
  text-align: left;
}

.receipt-items th {
  font-weight: 700;
  color: var(--muted, #666);
  font-size: 10px;
}

.receipt-totals {
  margin-top: 8px;
  font-size: 12px;
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.receipt-total-row.receipt-grand {
  font-weight: 800;
  font-size: 14px;
  border-top: 2px solid var(--navy, #0A0E1A);
  margin-top: 6px;
  padding-top: 8px;
}

.receipt-notes {
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted, #666);
}

.receipt-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 10px;
  color: var(--muted, #666);
  font-style: italic;
}

#receipt-content img,
.receipt-letterhead img {
  display: none;
}

@page receipt-a4 {
  size: auto;
  margin: 15mm;
}

@page receipt-thermal-80 {
  size: 80mm auto;
  margin: 2mm 3mm;
}

@page receipt-thermal-58 {
  size: 58mm auto;
  margin: 1mm 2mm;
}

@media print {
  body.print-a4 {
    page: receipt-a4;
  }

  body.print-thermal-80 {
    page: receipt-thermal-80;
  }

  body.print-thermal-58 {
    page: receipt-thermal-58;
  }

  body.print-a4 #receipt-content {
    max-width: 100%;
    font-size: 12px;
  }

  body.print-thermal-80 #receipt-content {
    max-width: 74mm;
    font-size: 10px;
  }

  body.print-thermal-80 .receipt-shop-name {
    font-size: 14px;
  }

  body.print-thermal-80 .receipt-line {
    font-size: 9px;
  }

  body.print-thermal-58 #receipt-content {
    max-width: 54mm;
    font-size: 9px;
  }

  body.print-thermal-58 .receipt-shop-name {
    font-size: 12px;
  }

  body.print-thermal-58 .receipt-line {
    font-size: 8px;
  }

  .modal-overlay,
  .modal-head,
  .receipt-print-toolbar,
  .receipt-no-print,
  .modal-close {
    display: none !important;
  }

  .modal-overlay.open {
    position: static !important;
    background: none !important;
    display: block !important;
  }

  .modal-box {
    box-shadow: none !important;
    border: none !important;
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body * {
    visibility: hidden;
  }

  #receipt-content,
  #receipt-content * {
    visibility: visible;
  }

  #receipt-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  body.print-thermal-80 #receipt-content img,
  body.print-thermal-58 #receipt-content img {
    display: none !important;
  }
}
