/* report.css: the printed site survey report, and the survey's own screen pieces (steps, photos, sketch).

   THE SHEET. A report page is a "sheet": letter size, 816 x 1056 (8.5 x 11 inches). Its colours are fixed paper colours:
   white paper in Aviation Blue, whatever theme the app is in, because it is a print-out. On screen main.js shrinks the
   sheets to fit the width; on paper each sheet is exactly one page (see the print rules at the bottom). */

.sheets { display: grid; gap: 18px; justify-content: start; }
.sheet { --navy: #12263f; --blue: #1d5aa6; --mist: #f2f6fb; --ice: #eaf1f8; --rule: #d3deeb; --grey: #5b6f86; --ok: #1d7a45; --okbg: #e1f1e6; --chk: #8f5a00; --chkbg: #fbefd6;
  width: 816px; height: 1056px; overflow: hidden; box-sizing: border-box; background: #ffffff; color: var(--navy); padding: 44px 48px 30px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.18), 0 10px 26px rgba(0,0,0,.14); font: 12.5px/1.45 var(--text); position: relative; color-scheme: light; }
.sheet * { box-sizing: border-box; }
.sheet p { margin: 0; }
.sheet .top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 3px solid var(--navy); padding-bottom: 10px; }
.sheet .lg { font: 700 26px/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; display: inline-block; color: var(--navy); }
.sheet .lg .i { position: relative; display: inline-block; }
.sheet .lg .i::after { content: ""; position: absolute; left: calc(50% + 0.005em); top: 0.125em; width: 0.146em; height: 0.146em; border-radius: 50%; background: var(--blue); transform: translateX(-50%); }
.sheet .top .doc { font: 700 13px var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-left: 12px; }
.sheet .top .ref { text-align: right; font-size: 11px; color: var(--grey); line-height: 1.4; }
.sheet .top .ref b { color: var(--navy); font-weight: 600; }
.sheet .title { display: grid; gap: 2px; }
.sheet .title h2 { font: 800 30px/1.1 var(--display); font-weight: 700; margin: 0; letter-spacing: -0.01em; }
.sheet .title p { color: var(--grey); font-size: 13.5px; }
.sheet .title p.where { color: var(--ink); overflow-wrap: anywhere; }   /* the address and the GPS position (build 46) */
.sheet .decision { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 0.8fr); gap: 14px; align-items: center; background: var(--navy); color: #ffffff; border-radius: 8px; padding: 12px 16px; }
.sheet .decision .big { font: 700 24px/1 var(--display); letter-spacing: 0.02em; }
.sheet .decision small { display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; margin-bottom: 3px; }
.sheet .decision .why { font-size: 12.5px; line-height: 1.4; }
.sheet .decision .flag { font-size: 11px; line-height: 1.35; border-left: 1px solid rgba(255,255,255,.3); padding-left: 14px; }
.sheet .facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.sheet .facts div { padding: 9px 12px; border-left: 1px solid var(--rule); min-width: 0; overflow-wrap: anywhere; }
.sheet .facts div:first-child { border-left: 0; }
.sheet .lab { font: 700 9.5px var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin: 0 0 2px; }
.sheet .facts b { display: block; font: 700 13.5px/1.25 var(--display); }
.sheet .facts span { color: var(--grey); font-size: 11.5px; line-height: 1.35; display: block; }
.sheet .facts span.nb { display: inline; white-space: nowrap; }   /* a number kept whole on one line (build 43) */
.sheet .two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: stretch; flex: 1; min-height: 0; }
.sheet .panel { border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.sheet .panel > h3 { font: 700 11px var(--display); letter-spacing: 0.12em; text-transform: uppercase; margin: 0; padding: 8px 12px; background: var(--mist); border-bottom: 1px solid var(--rule); color: var(--navy); }
.sheet .mapwrap { flex: 1; min-height: 0; background: #e6efdc; position: relative; }
.sheet .mapwrap svg { display: block; width: 100%; height: 100%; border: 0; border-radius: 0; }
.sheet .key { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 12px; border-top: 1px solid var(--rule); font-size: 10.5px; color: var(--grey); }
.sheet .key span { display: inline-flex; align-items: center; gap: 5px; }
.sheet .key i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.sheet .key .k-t { background: #12263f; border-radius: 3px; }
.sheet .key .k-l { background: #ffffff; border: 2px solid #12263f; }
.sheet .key .k-p { background: #1d5aa6; }
.sheet .glance { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; }
.sheet .glance li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--rule); flex: 1; }
.sheet .glance li:first-child { border-top: 0; }
.sheet .ltr { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #ffffff; display: grid; place-items: center; font: 700 12px var(--display); }
.sheet .glance b { font: 700 12.5px/1.2 var(--display); display: block; }
.sheet .glance small { color: var(--grey); font-size: 10.5px; line-height: 1.3; display: block; overflow-wrap: anywhere; }
.sheet .res { font: 700 9.5px var(--text); letter-spacing: 0.08em; text-transform: uppercase; border-radius: 4px; padding: 3px 7px; white-space: nowrap; border: 1px solid; }
.sheet .res.ok { color: var(--ok); background: var(--okbg); border-color: var(--ok); }
.sheet .res.chk { color: var(--chk); background: var(--chkbg); border-color: var(--chk); }
.sheet .res.na { color: var(--grey); background: var(--ice); border-color: var(--rule); }
.sheet .h { font: 700 19px/1.2 var(--display); margin: 0; }
/* Build 71: the site on the map. The picture is kept to a width that leaves room for the list of marks on the same page. */
.sheet .sitemap-print { width: min(100%, 6.1in); margin: 0 auto; }
.sheet .sitemap-print .mappic { border-color: var(--rule); border-radius: 8px; }
.sheet .marklist { margin: 0; padding-left: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; font-size: 11px; color: var(--navy); }
.sheet .mapnote { margin: 0; font-size: 10.5px; color: var(--grey); }
.sheet .h.small { font-size: 15px; }
.sheet .hsub { margin: 2px 0 0; color: var(--grey); font-size: 12px; }
.sheet .points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sheet .pt { border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px 11px; display: grid; gap: 5px; align-content: start; overflow-wrap: anywhere; }
.sheet .pt .hd { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.sheet .pt .hd b { font: 700 13.5px/1.2 var(--display); }
.sheet .pt .find { font-size: 12.5px; font-weight: 600; }
.sheet .pt p { font-size: 11.5px; }
.sheet .pt .you { background: var(--mist); border-left: 3px solid var(--blue); padding: 5px 8px; border-radius: 0 4px 4px 0; }
.sheet .pt .src { color: var(--grey); font-size: 10.5px; }
.sheet .pt .ph { color: var(--blue); font-weight: 600; }
/* flex-shrink: 0 (build 56): the block keeps its full height. Without it a block too tall for what is left of the page was
   squeezed and its last lines hidden, and the page-flow step (ui/reportflow.js) never saw that the page was too full. */
.sheet .also { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.sheet .also div { padding: 9px 12px; border-left: 1px solid var(--rule); font-size: 11.5px; overflow-wrap: anywhere; }
.sheet .also div:first-child { border-left: 0; }
/* Build 56: who to call, for the survey's spot. One box the full width of the block, under the others; two columns of lines. */
.sheet .also div.calls { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rule); }
.sheet .also div.calls ul { list-style: none; margin: 2px 0 4px; padding: 0; columns: 2; column-gap: 18px; }
.sheet .also div.calls li { break-inside: avoid; margin: 0 0 3px; }
.sheet .also div.calls small { color: var(--grey); font-size: 10px; }
.sheet .also div.calls span.nb { white-space: nowrap; }   /* a phone number is never broken across two lines */
/* Build 58: what the park authority's and the city's own pages said. Long quotations, so one column, not two. */
.sheet .also div.local ul { columns: 1; }
.sheet .also div.local li { margin: 0 0 4px; }
.sheet .photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sheet .photo { border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; display: grid; align-content: start; }
.sheet .photo .img { aspect-ratio: 4 / 3; position: relative; background: var(--ice); }
.sheet .photo .img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sheet .photo .no { position: absolute; left: 8px; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #ffffff; display: grid; place-items: center; font: 700 12px var(--display); border: 2px solid #ffffff; }
.sheet .photo .cp { padding: 7px 10px 9px; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.sheet .photo .cp b { display: block; font: 700 12px/1.25 var(--display); }
.sheet .photo .cp span { color: var(--grey); }
.sheet .sign { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
.sheet .sigbox { border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; display: grid; gap: 8px; align-content: start; }
.sheet .sigline { border-bottom: 1.5px solid var(--navy); height: 46px; display: flex; align-items: flex-end; padding-bottom: 4px; font: 600 italic 20px Georgia, serif; color: var(--navy); }
.sheet .mono { font: 11px Consolas, "SF Mono", monospace; word-break: break-all; color: var(--navy); }
.sheet .ft { margin-top: auto; border-top: 1px solid var(--rule); padding-top: 8px; display: flex; justify-content: space-between; gap: 16px; font-size: 9.5px; color: var(--grey); line-height: 1.4; }
.sheet .ft b { color: var(--navy); }
/* the flight log and the maintenance log: a plain ruled table on the same sheet */
.sheet table.log { width: 100%; border-collapse: collapse; font-size: 11px; line-height: 1.35; table-layout: fixed; }
.sheet table.log th { text-align: left; font: 700 9.5px var(--text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); padding: 7px 8px; border-bottom: 2px solid var(--navy); background: var(--mist); }
.sheet table.log td { padding: 7px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; overflow-wrap: anywhere; }
.sheet table.log td small { display: block; color: var(--grey); font-size: 9.5px; }
.sheet table.log.tall td { padding: 9px 8px; }
.sheet table.log.tall th:nth-child(1) { width: 12%; } .sheet table.log.tall th:nth-child(2) { width: 27%; } .sheet table.log.tall th:nth-child(3) { width: 13%; }
.sheet table.log.tall th:nth-child(4) { width: 18%; } .sheet table.log.tall th:nth-child(5) { width: 21%; } .sheet table.log.tall th:nth-child(6) { width: 9%; }
.done-form { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.sheet .sigbox.amends { grid-column: 1 / -1; gap: 4px; font-size: 11px; }
.sheet .sigbox.amends .mono { font-size: 10px; color: var(--grey); }
.report-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---- the survey's screen pieces ---- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }   /* three steps since build 52 */
.step { font: 600 12.5px var(--text); border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 10px; min-height: 48px; padding: 6px 4px; cursor: pointer; display: grid; gap: 1px; justify-items: center; align-content: center; }
.step b { font: 700 15px var(--display); }
.step[aria-current="step"] { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.field textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; resize: vertical; min-height: 48px; }
.row > .field { flex: 1 1 130px; }
.chip.small { font-size: 14px; min-height: 40px; padding: 6px 12px; text-align: left; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { position: relative; width: 84px; height: 63px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); flex: none; }
.thumb.big { width: 120px; height: 90px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb b { position: absolute; left: 4px; top: 4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--btn); color: var(--btn-ink); font: 700 11px var(--display); display: grid; place-items: center; border: 2px solid #ffffff; }
.photo-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: start; }
.photo-row .col { gap: 8px; margin: 0; max-width: none; }
.sketch { display: block; width: 100%; max-width: 520px; height: auto; border: 1px solid var(--line); border-radius: 10px; touch-action: manipulation; }
.sketch[data-sketch] { cursor: crosshair; }

/* ---- paper: only the sheets print, one to a page ---- */
@media print {
  @page { size: letter; margin: 0; }
  html, body { height: auto; background: #ffffff; }
  .app { display: block; height: auto; }
  .bar, .nav, .side, .toast, .report-tools { display: none !important; }
  .body { overflow: visible; padding: 0; }
  .col { display: block; max-width: none; margin: 0; }
  .sheets { display: block; zoom: 1 !important; }
  .sheet { width: 8.5in; height: 11in; box-shadow: none; margin: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet:not(:last-child) { break-after: page; }
}

/* ---- what is left: unfinished parts are marked where they are (the theme's accent, never the verdict's colours) ---- */
.step small { font: 600 10.5px var(--text); letter-spacing: 0.02em; }
.step small.left { color: var(--accent); }
.step[aria-current="step"] small { color: inherit; }
.card.todo, .field.todo input { border-color: var(--accent); }
.card.todo { border-left-width: 5px; }
/* A survey point as a one-line row (build 52), with its one-tap OK beside it when it has a usual answer. Its class is
   "ptrow": "pt" is a point on the printed report, further up this file. */
.ptrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: start; min-width: 0; }
.ptrow > .fold { grid-column: 1; }
.ptrow > .quick { grid-column: 2; min-height: 52px; min-width: 64px; }
.ptrow:not(:has(> .quick)) > .fold { grid-column: 1 / -1; }
.ptrow.todo > .fold { border-color: var(--accent); border-left-width: 5px; }
.pill.todo { background: var(--surface); color: var(--accent); border-color: var(--accent); text-transform: none; letter-spacing: 0; font-weight: 600; white-space: normal; }
.left-strip { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--accent); border-radius: 12px; padding: 10px 12px; }
.todo-item { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; }
.flash { animation: flash 1.6s ease-out 1; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .flash { animation: none; outline: 3px solid var(--accent); } }
