/* GeoSeal Business report: on screen and printed to PDF (A4). Used by the dashboard and the client-link page. */
.report { --rp-ink: #101828; --rp-muted: #667085; --rp-line: #e4e9e7; --rp-brand: #0b7a50; background: #fff; color: var(--rp-ink); border-radius: 14px; border: 1px solid var(--rp-line);
  padding: 28px clamp(16px, 4vw, 36px); display: grid; gap: 22px; font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.report h1 { font-size: 1.6rem; margin: 6px 0 0; color: var(--rp-ink); letter-spacing: -0.02em; }
.report h2 { font-size: 1.05rem; margin: 0 0 10px; color: var(--rp-ink); }
.rp-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--rp-ink); }
.rp-brand small { color: var(--rp-muted); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-left: 4px; }
.rp-sub { margin: 2px 0 0; color: var(--rp-ink); font-weight: 600; }
.rp-gen { margin: 2px 0 0; color: var(--rp-muted); font-size: 0.85rem; }
.rp-tiles { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .rp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rp-tile { border: 1px solid var(--rp-line); border-radius: 10px; padding: 12px 14px; display: grid; }
.rp-tile span { color: var(--rp-muted); font-size: 0.82rem; font-weight: 600; }
.rp-tile b { font-size: 1.45rem; letter-spacing: -0.02em; }
.rp-tile small { color: var(--rp-muted); font-size: 0.78rem; }
.rp-tile.ok b { color: #12805c; } .rp-tile.warn b { color: #b25e09; } .rp-tile.bad b { color: #c4320a; }
.rp-site { border: 1px solid var(--rp-line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; break-inside: avoid; }
.rp-site-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 8px; }
.rp-site-head span { color: var(--rp-muted); font-size: 0.86rem; }
.rp-site-head .rp-site-sum { margin-left: auto; color: var(--rp-ink); font-weight: 600; }
.rp-days { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.rp-days th { text-align: left; color: var(--rp-muted); font-weight: 600; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 6px; border-bottom: 1px solid var(--rp-line); }
.rp-days td { padding: 5px 6px; border-bottom: 1px solid #f1f4f3; }
.rp-days tr.missed td { color: #c4320a; font-weight: 600; }
.rp-note { color: var(--rp-muted); font-size: 0.88rem; margin: 0 0 12px; }
.rp-note a { color: var(--rp-brand); }
.rp-photos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.rp-photo { margin: 0; border: 1px solid var(--rp-line); border-radius: 10px; overflow: hidden; break-inside: avoid; background: #fff; }
.rp-photo img, .rp-wait { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: #f1f4f3; }
.rp-photo figcaption { display: grid; gap: 1px; padding: 7px 9px 9px; font-size: 0.76rem; color: var(--rp-muted); }
.rp-photo figcaption b { color: var(--rp-ink); font-size: 0.8rem; }
.rp-incident { color: #b25e09; font-weight: 600; }
.rp-flags { color: #c4320a; }
.rp-sealed { color: #12805c; font-weight: 700; }
.rp-unsealed { color: #c4320a; font-weight: 700; }
.rp-foot { color: var(--rp-muted); font-size: 0.78rem; border-top: 1px solid var(--rp-line); padding-top: 10px; }
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  .report { border: 0; padding: 0; border-radius: 0; }
  .rp-photos { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .rp-photo figcaption { font-size: 7.5pt; }
  .rp-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* The client-link page (r/) */
body.report-page { margin: 0; background: #eef2f0; color: #101828; font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.rp-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(16px, 4vw, 40px); background: #0b1d17; }
.rp-home { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; text-decoration: none; }
.rp-btn { border: 0; border-radius: 9px; padding: 9px 16px; background: #1fb57a; color: #06251a; font: 700 0.9rem system-ui, sans-serif; cursor: pointer; }
.rp-btn:hover { background: #19a06b; }
.report-page #report { width: min(1200px, 100% - 24px); margin: 20px auto 48px; }
.rp-state { text-align: center; color: #667085; padding: 80px 16px; font-size: 1rem; }
@media print {
  body.report-page { background: #fff; }
  .noprint { display: none !important; }
  .report-page #report { width: auto; margin: 0; }
}
