/* ==========================================================================
   pdf.css — print-style for the WeasyPrint export (templates/report_pdf.html)

   Self-contained: PDFs don't load style.css. WeasyPrint uses base_url=BASE_DIR
   so the relative `/static/pdf.css` link in the template resolves correctly.
   ========================================================================== */

@page {
  size: letter;
  margin: 0.75in;
  @bottom-right {
    content: "Page " counter(page) " of " counter(pages);
    color: #888;
    font-size: 10pt;
  }
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 11pt;
  line-height: 1.45;
  color: #222;
}

h1 { margin: 0 0 0.25rem; font-size: 22pt; }
h2 { margin: 1.5rem 0 0.5rem; font-size: 14pt; border-bottom: 1px solid #ccc; padding-bottom: 0.2rem; }
h3 { font-size: 12pt; margin: 1rem 0 0.3rem; }

.muted { color: #666; font-size: 10pt; }

.doc-header {
  border-bottom: 2px solid #333;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}
.meta {
  display: flex;
  gap: 1.5rem;
  font-size: 10pt;
  color: #666;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.summary {
  background: #f7f7f2;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  white-space: pre-wrap;
}

.action {
  page-break-inside: avoid;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.action-head {
  display: flex; gap: 0.5rem; align-items: baseline;
  margin-bottom: 0.4rem;
}
.badge {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  border-radius: 3px;
  background: #eef;
  color: #224;
  font-size: 8pt;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.num { color: #888; font-weight: 600; }
.notes { white-space: pre-wrap; margin-bottom: 0.4rem; }

.spec {
  font-family: ui-monospace, monospace;
  font-size: 9pt;
  background: #f5f5f0;
  padding: 0.5rem;
  border-radius: 3px;
}
.spec dt { font-weight: 600; }
.spec dd { margin: 0 0 0.25rem 1rem; }

.footer {
  margin-top: 2rem;
  color: #888;
  font-size: 9pt;
  border-top: 1px solid #ddd;
  padding-top: 0.4rem;
}
