/* ==========================================================================
   HÔM NAY ĂN GÌ - TEMPLATE XUẤT BẢN IN PDF (A4 STANDARDS)
   Thiết kế để html2pdf.js render trang in tuyệt đẹp, sắc nét
   ========================================================================== */

.pdf-export-container {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 210mm; /* A4 width */
  min-height: 297mm; /* A4 height */
  background-color: #FFFFFF;
  color: #1E293B;
  font-family: 'Plus Jakarta Sans', -apple-system, Roboto, sans-serif;
  line-height: 1.45;
  box-sizing: border-box;
}

.pdf-page {
  padding: 18mm 16mm;
  background-color: #FFFFFF;
}

/* Header */
.pdf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.pdf-logo-badge {
  display: inline-block;
  background: #10B981;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pdf-title {
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 4px 0;
}

.pdf-tagline {
  font-size: 13px;
  color: #64748B;
  margin: 0;
}

.pdf-meta {
  text-align: right;
  font-size: 11px;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdf-badge-target {
  background-color: #ECFDF5;
  color: #065F46;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
}

.pdf-divider {
  height: 2px;
  background: linear-gradient(90deg, #10B981, #F59E0B, #E2E8F0);
  margin: 12px 0 16px 0;
}

/* 3 Meals Layout */
.pdf-meals-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.pdf-meal-card {
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px 14px;
  background-color: #F8FAFC;
  page-break-inside: avoid;
}

.pdf-meal-type {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
}

.pdf-meal-type.morning { color: #D97706; }
.pdf-meal-type.noon { color: #059669; }
.pdf-meal-type.night { color: #2563EB; }

.pdf-dish-name {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 6px 0;
}

.pdf-ingredients, .pdf-nutrition-note, .pdf-tip {
  font-size: 11px;
  color: #334155;
  margin-bottom: 4px;
}

.pdf-tip {
  color: #64748B;
  font-style: italic;
}

/* Shopping Section */
.pdf-shopping-section {
  border: 1.5px dashed #CBD5E1;
  border-radius: 10px;
  padding: 12px 14px;
  background-color: #FFFFFF;
  margin-bottom: 18px;
  page-break-inside: avoid;
}

.pdf-shopping-section h3 {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #0F172A;
}

.pdf-shopping-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pdf-pill {
  background-color: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  color: #334155;
}

/* Footer */
.pdf-footer {
  border-top: 1px solid #E2E8F0;
  padding-top: 10px;
  font-size: 10px;
  color: #94A3B8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pdf-watermark {
  font-weight: 500;
}
