/* ============================================
   reportes.css — v5.48.0
   Design system unificado con presupuestos.html
   ============================================ */

/* ===== STAT CARDS (patrón hl-stat-card) ===== */
.hl-stat-card { transition: transform 0.15s; }
.hl-stat-card:hover { transform: translateY(-2px); }
.hl-stat-icon {
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

/* ===== FILTROS INLINE ===== */
.hl-report-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.hl-report-filters .form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 0;
  white-space: nowrap;
}

/* ===== TABLAS UNIFICADAS ===== */
.hl-report-table {
  font-size: 0.85rem;
}
.hl-report-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 2px solid #e5e7eb;
  padding: 10px 12px;
}
.hl-report-table tbody td {
  padding: 10px 12px;
  vertical-align: middle;
  border-bottom: 1px solid #f0f0f0;
  color: #374151;
}
.hl-report-table tbody tr:hover { background: #f8fafc; }

/* ===== BADGES CANAL ===== */
.hl-badge-channel {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  color: #fff;
  white-space: nowrap;
}
.hl-badge-channel.email { background: #3b82f6; }
.hl-badge-channel.whatsapp { background: #22c55e; }
.hl-badge-channel.sms { background: #8b5cf6; }

/* ===== BADGES ESTADO NOTIFICACIÓN ===== */
.hl-badge-status {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.hl-badge-status.sent { background: #f0fdf4; color: #16a34a; }
.hl-badge-status.failed { background: #fef2f2; color: #dc2626; }
.hl-badge-status.pending { background: #fffbeb; color: #d97706; }
.hl-badge-status.delivered { background: #eff6ff; color: #2563eb; }

/* ===== BADGES ESTADO CITA (Ingresos) ===== */
.hl-badge-appt {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.hl-badge-appt.confirmed { background: #f0fdf4; color: #16a34a; }
.hl-badge-appt.pending { background: #fffbeb; color: #d97706; }
.hl-badge-appt.cancelled { background: #fef2f2; color: #dc2626; }
.hl-badge-appt.completed { background: #eff6ff; color: #2563eb; }

/* ===== BADGES PAGO (Ingresos) ===== */
.hl-badge-pay {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.hl-badge-pay.paid { background: #f0fdf4; color: #16a34a; }
.hl-badge-pay.unpaid { background: #f3f4f6; color: #6b7280; }
.hl-badge-pay.partial { background: #fffbeb; color: #d97706; }

/* ===== CARD TITLES ===== */
.hl-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.75rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767.98px) {
  .hl-stat-icon { width: 32px; height: 32px; font-size: 1rem; }
  .hl-report-filters { gap: 0.4rem; }
  .hl-report-table { font-size: 0.8rem; }
  .hl-report-table thead th { padding: 8px 8px; font-size: 0.7rem; }
  .hl-report-table tbody td { padding: 8px 8px; }
}

/* ============================================
   REPORTES: Mobile Cards (dual render)
   v5.48.1 - Patrón tabla desktop + cards mobile
   ============================================ */
.hl-report-card {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.hl-report-card:last-child {
  border-bottom: none;
}
.hl-report-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.hl-report-card-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 2px 0;
}
.hl-report-card-label {
  color: #6c757d;
}
.hl-report-card-value {
  font-weight: 600;
  text-align: right;
}
.hl-report-card-actions {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f1f3f5;
  display: flex;
  justify-content: flex-end;
}

/* v5.48.1: Fix date inputs mobile — area touch más grande */
@media (max-width: 767.98px) {
  .card-body input[type="date"] {
    font-size: 0.85rem;
    padding: 0.5rem 0.6rem;
    min-height: 42px;
    -webkit-appearance: none;
    position: relative;
  }
  .card-body input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
  }
  .card-body .form-label.small {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
  }
  .card-body .form-select-sm {
    font-size: 0.85rem;
    min-height: 42px;
  }
}