/* Reporte de Pagos BAC/BCR — Estilos */

.reporte-pagos {
  padding: 24px;
  max-width: 100%;
}

.reporte-encabezado {
  margin-bottom: 28px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 16px;
}

.reporte-encabezado h2 {
  font-size: 1.8em;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.reporte-periodo {
  font-size: 1em;
  color: #666;
  margin: 0;
  font-weight: 500;
}

.reporte-resumen {
  margin-bottom: 32px;
}

.reporte-resumen h3 {
  font-size: 1.3em;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 16px 0;
}

.resumen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.resumen-card {
  background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.resumen-card h4 {
  font-size: 0.95em;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.resumen-personas {
  font-size: 0.85em;
  color: #666;
  margin: 0 0 8px 0;
}

.resumen-subtotal {
  font-size: 1.2em;
  font-weight: 700;
  color: #0066cc;
  margin: 0;
}

.reporte-secciones {
  margin-bottom: 32px;
}

.seccion-pagos {
  margin-bottom: 28px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
}

.seccion-pagos h3 {
  font-size: 1.1em;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 16px 0;
}

.tabla-pagos {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92em;
  background: white;
}

.tabla-pagos thead {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
  border-bottom: 2px solid #d0dfff;
}

.tabla-pagos th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #1a1a1a;
  text-transform: uppercase;
  font-size: 0.85em;
  letter-spacing: 0.02em;
}

.tabla-pagos tbody tr {
  border-bottom: 1px solid #e0e0e0;
}

.tabla-pagos tbody tr:hover {
  background: #f9f9f9;
}

.tabla-pagos td {
  padding: 12px;
  color: #333;
}

.tabla-pagos tfoot {
  background: #f0f0f0;
  font-weight: 600;
}

.tabla-pagos tfoot td {
  padding: 12px;
  border-top: 2px solid #d0d0d0;
}

.columna-monto {
  text-align: right;
  font-family: 'Monaco', 'Courier New', monospace;
}

.seccion-incompleta {
  background: #fff3cd;
  border: 1px solid #ffe8a8;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.seccion-incompleta h3 {
  font-size: 1.1em;
  font-weight: 600;
  color: #856404;
  margin: 0 0 8px 0;
}

.seccion-incompleta p {
  color: #856404;
  margin: 0 0 16px 0;
}

.tabla-incompleta {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92em;
}

.tabla-incompleta thead {
  background: #ffe8a8;
  border-bottom: 2px solid #ffc107;
}

.tabla-incompleta th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  font-size: 0.85em;
}

.tabla-incompleta tbody tr {
  border-bottom: 1px solid #ffe8a8;
}

.tabla-incompleta td {
  padding: 12px;
  color: #333;
}

.reporte-acciones {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
}

.reporte-acciones .btn {
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reporte-acciones .btn-primary {
  background: #0066cc;
  color: white;
}

.reporte-acciones .btn-primary:hover {
  background: #0052a3;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.reporte-acciones .btn-secondary {
  background: #e0e0e0;
  color: #333;
}

.reporte-acciones .btn-secondary:hover {
  background: #d0d0d0;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 600;
}

.badge-warning {
  background: #fff3cd;
  color: #856404;
}

.badge-info {
  background: #d1ecf1;
  color: #0c5460;
}

.badge-success {
  background: #d4edda;
  color: #155724;
}

.badge-danger {
  background: #f8d7da;
  color: #721c24;
}

.badge-secondary {
  background: #e2e3e5;
  color: #383d41;
}

.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  border-left: 4px solid;
}

.alert-danger {
  background: #f8d7da;
  border-left-color: #f5c6cb;
  color: #721c24;
}

.alert-warning {
  background: #fff3cd;
  border-left-color: #ffe8a8;
  color: #856404;
}

.alert-info {
  background: #d1ecf1;
  border-left-color: #bee5eb;
  color: #0c5460;
}

.alert-success {
  background: #d4edda;
  border-left-color: #c3e6cb;
  color: #155724;
}

@media (max-width: 768px) {
  .reporte-pagos {
    padding: 16px;
  }

  .resumen-grid {
    grid-template-columns: 1fr;
  }

  .tabla-pagos,
  .tabla-incompleta {
    font-size: 0.8em;
  }

  .tabla-pagos th,
  .tabla-pagos td,
  .tabla-incompleta th,
  .tabla-incompleta td {
    padding: 8px;
  }

  .reporte-acciones {
    flex-direction: column;
  }

  .reporte-acciones .btn {
    width: 100%;
  }
}

@media print {
  .reporte-encabezado {
    page-break-after: avoid;
  }

  .seccion-pagos {
    page-break-inside: avoid;
  }

  .reporte-acciones {
    display: none;
  }
}
