// Planu — HTML document wrapper with inline CSS for executive summary
const CSS = `
  @page { margin: 2cm; size: A4; }
  @media print { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px; color: #1f2937; max-width: 900px; margin: 0 auto; padding: 24px; background: #fff; }
  .header { border-bottom: 3px solid #4F46E5; padding-bottom: 16px; margin-bottom: 24px; }
  .header h1 { font-size: 1.1em; color: #6b7280; font-weight: 400; margin-bottom: 4px; }
  .header h2 { font-size: 1.8em; color: #111827; font-weight: 700; }
  .header .meta { margin-top: 8px; font-size: 0.85em; color: #6b7280; }
  .badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.78em; font-weight: 600; }
  .badge-draft { background: #e5e7eb; color: #374151; }
  .badge-review { background: #dbeafe; color: #1d4ed8; }
  .badge-approved { background: #d1fae5; color: #065f46; }
  .badge-implementing { background: #fef3c7; color: #92400e; }
  .badge-done { background: #d1fae5; color: #065f46; }
  .section { margin-bottom: 28px; }
  .section h2 { font-size: 1.15em; color: #4F46E5; border-left: 4px solid #4F46E5; padding-left: 10px; margin-bottom: 14px; }
  .metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
  .metric-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px; text-align: center; }
  .metric-value { font-size: 2em; font-weight: 700; color: #4F46E5; line-height: 1; }
  .metric-label { font-size: 0.78em; color: #6b7280; margin-top: 4px; }
  table { width: 100%; border-collapse: collapse; font-size: 0.85em; }
  th { background: #4F46E5; color: white; padding: 8px 12px; text-align: left; font-weight: 600; }
  td { padding: 7px 12px; border-bottom: 1px solid #e5e7eb; }
  tr:nth-child(even) td { background: #f9fafb; }
  .risk-highlight { border-left: 3px solid #ef4444; padding: 6px 10px; margin: 4px 0; background: #fef2f2; border-radius: 0 4px 4px 0; font-size: 0.85em; color: #374151; }
  svg { max-width: 100%; height: auto; }
  .footer { margin-top: 32px; padding-top: 16px; border-top: 1px solid #e5e7eb; font-size: 0.78em; color: #9ca3af; text-align: center; }
`;
/** Wrap body content in a full HTML document with inline CSS. */
export function wrapInHtmlDocument(title, bodyContent) {
    return `<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>${escapeHtml(title)}</title>
  <style>${CSS}</style>
</head>
<body>
${bodyContent}
</body>
</html>`;
}
function escapeHtml(str) {
    return str
        .replace(/&/g, '&amp;')
        .replace(/</g, '&lt;')
        .replace(/>/g, '&gt;')
        .replace(/"/g, '&quot;');
}
//# sourceMappingURL=html-template.js.map