/* site_report.css: the paper look of a day report and a photo report (110).
   Used by job-report.html (print or Save as PDF), share.html (the customer's
   or GC's link) and the desk's day preview. Light on purpose, on every
   screen: it is a copy of paper, and paper is white. Everything is scoped
   under .sr-paper so it can sit inside the dashboard without leaking. */

.sr-paper {
  --sr-text: #171a26;
  --sr-text2: #4d5470;
  --sr-text3: #5f6784;
  --sr-line: #e3e6ef;
  --sr-tint: #f4f6fb;
  --sr-accent: #2f50c4;
  --sr-warn: #9a3412;
  --sr-warn-tint: #fff4ec;
  background: #fff; color: var(--sr-text);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px; line-height: 1.5;
}
.sr-paper *, .sr-paper *::before, .sr-paper *::after { box-sizing: border-box; }

.sr-head { border-bottom: 2px solid var(--sr-text); padding-bottom: 12px; margin-bottom: 16px; }
.sr-co { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 13px; color: var(--sr-text2); }
.sr-co span { font-weight: 500; }
.sr-head h1 { font-size: 24px; line-height: 1.2; margin: 8px 0 4px; letter-spacing: -0.01em; }
.sr-job b { display: block; font-size: 15px; }
.sr-job span { display: block; color: var(--sr-text2); font-size: 13px; }
.sr-sub { margin-top: 6px; color: var(--sr-text3); font-size: 12px; }

.sr-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 0 0 16px; }
.sr-facts div { border: 1px solid var(--sr-line); border-radius: 8px; padding: 8px 10px; }
.sr-facts dt { font-size: 11px; color: var(--sr-text3); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.sr-facts dd { margin: 2px 0 0; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

.sr-sec { margin: 0 0 14px; break-inside: avoid; }
.sr-sec h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--sr-text3); margin: 0 0 4px; font-weight: 700; }
.sr-sec p { margin: 0; white-space: pre-wrap; }
.sr-sec p.sr-warn { color: var(--sr-warn); background: var(--sr-warn-tint); border-radius: 6px; padding: 6px 8px; }
.sr-stages { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sr-stages li { display: flex; gap: 6px; }
.sr-stages b { font-variant-numeric: tabular-nums; }
.sr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sr-table th { text-align: left; font-size: 11px; color: var(--sr-text3); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--sr-line); padding: 4px 6px; }
.sr-table td { border-bottom: 1px solid var(--sr-line); padding: 5px 6px; }
.sr-table .n { text-align: right; font-variant-numeric: tabular-nums; }
.sr-names { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; }

.sr-sign { margin-top: 22px; break-inside: avoid; max-width: 360px; }
.sr-sign-line { border-bottom: 1px solid var(--sr-text); min-height: 34px; display: flex; align-items: flex-end; padding-bottom: 2px; }
.sr-sign-line span { font-size: 20px; font-style: italic; font-family: Georgia, 'Times New Roman', serif; }
.sr-sign-cap { font-size: 12px; color: var(--sr-text2); margin-top: 4px; }
.sr-empty { color: var(--sr-text2); margin: 8px 0 16px; }

.sr-photo-day { margin: 0 0 18px; }
.sr-photo-day h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; margin: 0 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--sr-line); }
.sr-photo-day h2 span { font-size: 12px; color: var(--sr-text3); font-weight: 500; }
.sr-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sr-photo { margin: 0; break-inside: avoid; }
.sr-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--sr-tint); border: 1px solid var(--sr-line); }
.sr-photo a { display: block; }
.sr-photo figcaption { font-size: 12px; margin-top: 4px; color: var(--sr-text2); }
.sr-photo figcaption b { display: block; color: var(--sr-text); font-weight: 600; font-size: 13px; }
/* 173: before and after pairs, side by side at every width (a pair is only
   worth anything when the two can be compared), and the photo list. */
.sr-pair { margin-bottom: 14px; }
.sr-pair + .sr-pair { padding-top: 12px; border-top: 1px dashed var(--sr-line); }
.sr-list h2 { display: flex; justify-content: space-between; gap: 10px; }
.sr-list h2 span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.sr-list ul { list-style: none; margin: 0; padding: 0; }
.sr-list li { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--sr-line); font-size: 13px; }
.sr-list .sr-box { flex: none; width: 16px; height: 16px; border: 1.5px solid var(--sr-text3); border-radius: 3px; font-size: 12px; line-height: 13px; text-align: center; font-weight: 700; }
.sr-list li.ok .sr-box { color: #0b6b45; border-color: #0b6b45; }
.sr-list .sr-li { flex: 1; }
.sr-list .sr-n { color: var(--sr-text2); white-space: nowrap; }
.sr-list li.miss .sr-n { color: var(--sr-warn); }
.sr-foot { margin-top: 24px; padding-top: 8px; border-top: 1px solid var(--sr-line); font-size: 11px; color: var(--sr-text3); }
.sr-foot a { color: var(--sr-accent); }

@media (max-width: 520px) {
  .sr-photos { grid-template-columns: minmax(0, 1fr); }
  .sr-photos.sr-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sr-head h1 { font-size: 20px; }
}

@media print {
  .sr-paper { font-size: 11pt; }
  .sr-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sr-photo img { aspect-ratio: auto; max-height: 3.4in; object-fit: contain; border: 0; }
  .sr-photo-day { break-inside: auto; }
}
