/* Puppy shot record: the one-page Letter sheet.
   Used two ways, so the blank PDF and the filled-in print always look the same:
   - /puppy-shot-record prints #sheet (filled in by assets/shot-record.js) and nothing else
   - printables-src/puppy-shot-record.html (blank) → assets/printables/puppy-shot-record.pdf
   Colors follow the other printables (dog-age-chart, puppy-feeding-schedule). */

.sheet {
  --s-blue: #276EF1; --s-blue-soft: #EFF4FE; --s-line: #E2E2E2; --s-muted: #6B6B6B; --s-head: #F3F3F3;
  box-sizing: border-box; width: 8.5in; height: 11in; padding: 0.42in 0.5in 0.34in;
  font-family: Inter, -apple-system, "Helvetica Neue", Arial, sans-serif; color: #000;
  font-size: 10pt; line-height: 1.3; position: relative; background: #fff;
  display: flex; flex-direction: column;
}
.sheet *, .sheet *::before, .sheet *::after { box-sizing: border-box; margin: 0; padding: 0; }
.sheet .s-topbar { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--s-blue); }
.sheet header { display: grid; grid-template-columns: 1fr 3.3in; gap: 14px; align-items: stretch; }
.sheet .s-title { background: var(--s-blue-soft); border-radius: 8px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; }
.sheet .s-title svg { flex: none; }
.sheet h1 { font-size: 22pt; line-height: 1.05; letter-spacing: -0.02em; }
.sheet .s-sub { font-size: 11pt; margin-top: 4px; }
.sheet .s-fields { border: 1px solid var(--s-line); border-top: 4px solid var(--s-blue); border-radius: 8px; padding: 9px 14px; display: grid; gap: 6px; font-size: 9.5pt; }
.sheet .s-fill { display: flex; gap: 6px; align-items: flex-end; white-space: nowrap; }
.sheet .s-fill i { flex: 1; border-bottom: 1px solid #000; height: 13px; font-style: normal; font-weight: 600; white-space: nowrap; overflow: hidden; line-height: 13px; padding-left: 2px; }
.sheet .s-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet h2 { font-size: 12.5pt; margin: 13px 0 5px; letter-spacing: -0.01em; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sheet h2 small { font-size: 8.5pt; font-weight: 400; color: var(--s-muted); letter-spacing: 0; }
.sheet table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--s-line); border-radius: 8px; overflow: hidden; table-layout: fixed; }
.sheet th, .sheet td { padding: 4px 7px; border-bottom: 1px solid var(--s-line); text-align: left; vertical-align: top; }
.sheet td + td, .sheet th + th { border-left: 1px solid var(--s-line); }
.sheet tr:last-child td { border-bottom: 0; }
.sheet thead th { background: var(--s-head); font-weight: 700; font-size: 8.5pt; }
.sheet tbody td { font-size: 9.5pt; }
.sheet tbody td small { display: block; font-size: 8pt; color: var(--s-muted); }
.sheet .s-due { font-weight: 600; }
.sheet .s-shots b { font-weight: 600; }
.sheet .s-check { display: inline-block; width: 10px; height: 10px; border: 1.2px solid #000; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
/* Hand-writing space: tall rows for the vet's vaccine sticker */
.sheet .s-main tbody tr { height: 0.44in; }
.sheet .s-small tbody tr { height: 0.3in; }
.sheet .c-week { width: 1.05in; }
.sheet .c-age { width: 0.8in; }
.sheet .s-main tbody td:nth-child(2) { white-space: nowrap; }
.sheet .c-given { width: 1.05in; }
.sheet .c-vet { width: 1.1in; }
.sheet .c-sticker { width: 1.75in; }
.sheet .s-note { font-size: 8.3pt; color: var(--s-muted); margin-top: 4px; }
.sheet .s-note b { color: #000; }
.sheet footer { margin-top: auto; padding-top: 8px; font-size: 8pt; color: var(--s-muted); display: flex; justify-content: space-between; gap: 16px; }
.sheet footer b { color: var(--s-blue); }

/* On the calculator page: hide the sheet on screen, print only the sheet */
@media screen {
  body > .sheet { display: none; }
}
@media print {
  @page { size: Letter; margin: 0; }
  body.has-sheet > *:not(.sheet) { display: none !important; }
  body.has-sheet { background: #fff; margin: 0; }
  .sheet { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
