/* Comprobante unificado — compacto para media hoja A4 (~148 mm) */

.comprobante-content {
  font-family: Arial, Helvetica, sans-serif;
  color: #1a202c;
  font-size: 11px;
  line-height: 1.3;
  max-width: 190mm;
  margin: 0 auto;
}

.comprobante-content .header {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #2c5282;
  padding: 0 0 6px;
  margin: 0 0 8px;
}

.comprobante-content .header-logo {
  flex: 0 0 auto;
  margin: 0;
}

.comprobante-content .header-logo img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.comprobante-content .header-text {
  flex: 1 1 auto;
  min-width: 0;
}

.comprobante-content .header h1 {
  color: #2c5282;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.comprobante-content .header h2 {
  color: #4a5568;
  font-size: 12px;
  font-weight: 600;
  margin: 1px 0 0;
}

.comprobante-content .header p {
  color: #718096;
  font-size: 10px;
  margin: 1px 0 0;
}

.comprobante-content .info-socio {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 5px 8px;
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
}

.comprobante-content .info-socio p {
  margin: 0;
  font-size: 11px;
}

.comprobante-content .resumen-linea {
  font-size: 10px;
  color: #4a5568;
  margin: 0 0 6px;
}

.comprobante-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 6px;
  font-size: 10px;
}

.comprobante-content th,
.comprobante-content td {
  padding: 4px 5px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.comprobante-content th {
  background: #2c5282;
  color: #fff;
  font-weight: 700;
  font-size: 10px;
}

.comprobante-content tr:nth-child(even) {
  background: #f7fafc;
}

.comprobante-content .text-right {
  text-align: right;
}

.comprobante-content .text-center {
  text-align: center;
}

.comprobante-content .badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
}

.comprobante-content .badge-success {
  background: #48bb78 !important;
  color: #fff !important;
}

.comprobante-content .badge-danger {
  background: #e53e3e !important;
  color: #fff !important;
}

.comprobante-content .badge-warning {
  background: #f6e05e !important;
  color: #1a202c !important;
}

.comprobante-content .total-row {
  font-weight: 700;
  background: #e2e8f0;
}

.comprobante-content .resumen-financiero-comprobante {
  margin: 0 0 6px;
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  font-size: 11px;
}

.comprobante-content .resumen-financiero-comprobante p {
  margin: 0;
}

.comprobante-content .footer {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #cbd5e0;
  text-align: center;
  font-size: 9px;
  color: #4a5568;
}

.comprobante-content .footer .footer-asoc-info {
  margin: 0 0 4px;
  text-align: left;
  font-size: 9px;
  color: #2d3748;
  line-height: 1.4;
}

.comprobante-content .footer .footer-asoc-info strong {
  color: #2c5282;
}

.comprobante-content .footer .footer-leyenda {
  margin: 0;
  font-size: 9px;
  color: #718096;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  html,
  body {
    margin: 0;
    padding: 0;
    background: #fff;
  }

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

  .comprobante-content {
    max-width: 194mm;
  }
}
