/**
 * PRINT STYLES - Club Atlético Santa Rosa
 * Estilos consolidados para impresión de recibos, facturas y reportes
 * Extraídos de: print_generar.php, print.php, print_cdr.php
 */

/* ===========================
   CONFIGURACIÓN DE PÁGINA
   =========================== */

@page {
  margin: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===========================
   ESTILOS DE LAYOUT PRINCIPAL
   =========================== */

.cuota-wrapper {
  width: 100%;
  max-width: 210mm;
  margin: 0 auto;
  padding: 8mm 8mm;
  box-sizing: border-box;
  background: white;
}

/* ===========================
   ESTILOS DE ENCABEZADO
   =========================== */

.cuota-header {
  background: linear-gradient(135deg, #E30613 0%, #B80510 100%);
  color: white;
  padding: 10px 15px;
  margin: -8mm -8mm 10px -8mm;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cuota-header-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cuota-header-logo img {
  height: 35px;
  background: white;
  padding: 3px;
  border-radius: 5px;
}

.cuota-header-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.cuota-header-info {
  text-align: right;
  font-size: 9px;
  line-height: 1.2;
}

/* ===========================
   ESTILOS DE CUERPO/BODY
   =========================== */

.cuota-body {
  background: white;
}

.cuota-section {
  margin-bottom: 8px;
}

.cuota-row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

.cuota-col {
  flex: 1;
}

.cuota-col-2 {
  flex: 2;
}

/* ===========================
   ESTILOS DE TARJETAS/CARDS
   =========================== */

.cuota-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 8px 10px;
  height: 100%;
}

.cuota-card-header {
  font-size: 10px;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  font-weight: 600;
  border-bottom: 2px solid #E30613;
  padding-bottom: 3px;
}

/* ===========================
   ESTILOS DE INFORMACIÓN
   =========================== */

.cuota-info-label {
  font-size: 9px;
  color: #6c757d;
  margin-bottom: 1px;
  line-height: 1.1;
}

.cuota-info-value {
  font-size: 11px;
  color: #212529;
  font-weight: 600;
  margin-bottom: 3px;
  line-height: 1.1;
}

.cuota-info-inline {
  font-size: 11px;
  color: #212529;
  font-weight: 600;
  margin-bottom: 3px;
  line-height: 1.1;
}

/* ===========================
   ESTILOS DE TABLAS
   =========================== */

.cuota-table {
  width: 100%;
  border-collapse: collapse;
}

.cuota-table td {
  padding: 2px 0;
  font-size: 10px;
  color: #495057;
  line-height: 1.1;
}

.cuota-table th {
  padding: 3px 0;
  font-size: 11px;
  color: #212529;
  border-top: 1px solid #E30613;
  border-bottom: 1px solid #E30613;
  text-align: left;
  line-height: 1.1;
}

/* ===========================
   CAJA DE TOTAL
   =========================== */

.cuota-total-box {
  background: linear-gradient(135deg, #E30613 0%, #B80510 100%);
  color: white;
  padding: 8px;
  border-radius: 6px;
  text-align: center;
  margin-top: 6px;
}

.cuota-total-label {
  font-size: 10px;
  opacity: 0.9;
  margin-bottom: 3px;
}

.cuota-total-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ===========================
   DIVISORES Y CUPONES
   =========================== */

.cuota-divider {
  border: none;
  border-top: 2px dashed #dee2e6;
  margin: 10px 0;
}

.cuota-coupon {
  border: 2px dashed #dee2e6;
  padding: 10px 12px;
  border-radius: 6px;
  margin-top: 8px;
  background: #f8f9fa;
}

.cuota-codigo {
  text-align: center;
  font-size: 9px;
  color: #6c757d;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #dee2e6;
}

/* ===========================
   LISTAS Y MENSAJES
   =========================== */

.adherentes-list,
.servicios-list {
  font-size: 9px;
  line-height: 1.15;
  color: #495057;
  margin-top: 2px;
}

.mensaje-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 6px 8px;
  margin-top: 6px;
  border-radius: 4px;
  font-size: 11px;
  color: #856404;
  line-height: 1.2;
}

/* ===========================
   SALTOS DE PÁGINA
   =========================== */

.saltoDePagina {
  height: 0px;
  page-break-before: auto;
  page-break-after: always;
  break-after: page;
}

/* ===========================
   ESTILOS GENERALES DE IMPRESIÓN
   =========================== */

.page-header img {
  height: 30px;
  margin-right: 10px;
}

.espacio {
  min-height: 10px;
  display: none;
}

/* ===========================
   ESTILOS RESPONSIVE MÓVIL
   =========================== */

@media only screen and (max-width: 768px) {
  body {
    padding-bottom: 120px !important;
  }

  .cuota-wrapper {
    padding: 10px 5px;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .cuota-header {
    margin: -10px -5px 15px -5px;
    padding: 15px 10px;
    flex-direction: column;
    gap: 10px;
  }

  .cuota-header-logo {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .cuota-header-logo img {
    height: 45px;
  }

  .cuota-header-title {
    font-size: 16px;
  }

  .cuota-header-info {
    text-align: center;
    font-size: 10px;
  }

  .cuota-row {
    flex-direction: column;
    gap: 15px;
  }

  .cuota-card {
    padding: 12px;
  }

  .cuota-card-header {
    font-size: 10px;
  }

  .cuota-info-label {
    font-size: 10px;
  }

  .cuota-info-value {
    font-size: 12px;
  }

  .cuota-table td,
  .cuota-table th {
    font-size: 11px;
  }

  .cuota-total-box {
    padding: 12px;
  }

  .cuota-total-value {
    font-size: 22px;
  }

  .adherentes-list {
    font-size: 10px;
  }

  /* Ocultar cupón del cobrador y divisor solo en mobile */
  .cuota-divider,
  .cuota-coupon {
    display: none !important;
  }

  /* Reducir margen inferior del body para evitar páginas extra */
  .cuota-body {
    margin-bottom: 0;
  }

  .cuota-section {
    margin-bottom: 10px;
  }
}
