/* The seller's offers and net sheet: ONE style for the one PDF and the Reports tab's Offer comparison and Net sheet
   (James, 3 Nov 2026: "i prefer the formatting on the offer + net so make the individuals match (not all caps)").
   Markup: src/offerprint.js sheetHtml. Every size is in em of the page, so offersheet.js can grow one number per page
   (--op-fs, in pt) until the page is filled on paper; nothing here is set in capitals or letter-spaced.
   .op-paper = the paper geometry: a landscape Letter page, 0.4in margins, so 10.2in x 7.7in to fill. offersheet.js
   puts it on while printing, and on a hidden copy to measure. Off paper (a screen, a phone) the cards flow to the width. */
@font-face{font-family:"Libre Franklin";font-style:normal;font-weight:400 800;font-display:swap;src:url(fonts/libre-franklin-latin.woff2) format("woff2")}
@page op-land{size:Letter landscape;margin:0.4in}

.op{--op-ink:#1d1d1f;--op-text:#3c4043;--op-muted:#5f6368;--op-faint:#80868b;--op-line:#d9d9de;--op-rule:#ececf0;--op-red:#D11242;--op-wash:#f6f6f8;--op-air:1;
  font-family:"Libre Franklin",Helvetica,Arial,sans-serif;color:var(--op-ink);background:#fff;line-height:1.3;text-transform:none;letter-spacing:0;
  -webkit-print-color-adjust:exact;print-color-adjust:exact;color-scheme:light}
.op *{box-sizing:border-box;text-transform:none;letter-spacing:0}
.op p,.op h1,.op ul,.op table{margin:0}
.op-page{display:flow-root;font-size:15px;break-after:page;page-break-after:always}
.op-page:last-child{break-after:auto;page-break-after:auto}

.op-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1em;border-bottom:0.2em solid var(--op-red);padding-bottom:calc(0.4em * var(--op-air));margin-bottom:calc(0.55em * var(--op-air))}
.op h1.op-title.op-title{font-size:1.95em;line-height:1.1;font-weight:800;margin:0 0 0.12em;color:var(--op-ink);letter-spacing:0;text-transform:none;font-family:inherit}
.op-sub{color:var(--op-muted);font-size:0.95em}
.op-logo{height:2.7em;width:auto;flex:none}
.op-lede{color:var(--op-text);margin:0 0 calc(0.5em * var(--op-air))}

.op-cards{display:grid;grid-template-columns:repeat(var(--n,3),minmax(0,1fr));gap:calc(0.95em * var(--op-air)) 0.7em;padding-top:0.6em;margin-bottom:calc(0.7em * var(--op-air))}
.op-cards[data-n="1"]{--n:1}.op-cards[data-n="2"]{--n:2}.op-cards[data-n="3"]{--n:3}.op-cards[data-n="4"]{--n:4}.op-cards[data-n="5"]{--n:5}.op-cards[data-n="6"]{--n:6}
.op-card{border:1px solid var(--op-line);border-radius:6px;padding:calc(0.65em * var(--op-air)) 0.7em;position:relative;break-inside:avoid;min-width:0}
.op-card.op-best{border:2px solid var(--op-red)}
.op-tag{position:absolute;top:-0.7em;left:0.6em;background:#fff;color:var(--op-red);font-size:0.92em;line-height:1.3;font-weight:700;padding:0 0.3em}
.op-name{line-height:1.2;margin:0.15em 0 0.3em}
.op-buyer{display:block;font-weight:800;font-size:1.18em;color:var(--op-ink)}
.op-prog{display:block;color:var(--op-muted);font-size:0.92em}
.op-big{font-size:2em;line-height:1.1;font-weight:800;font-variant-numeric:tabular-nums;color:var(--op-ink)}
.op-small{color:var(--op-muted);font-size:0.92em;margin:0.15em 0 calc(0.45em * var(--op-air))}
.op-mini{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.op-mini th{text-align:left;font-weight:400;color:var(--op-text);padding:calc(0.16em * var(--op-air)) 0.4em calc(0.16em * var(--op-air)) 0;vertical-align:baseline}
.op-mini td{text-align:right;white-space:nowrap;padding:calc(0.16em * var(--op-air)) 0;vertical-align:baseline}
.op-mini tr+tr th,.op-mini tr+tr td{border-top:1px solid var(--op-rule)}
/* What comes off the listing price before a later payment (17 Nov 2026): smaller and muted, so the card's own figures lead. */
.op-mini tr.op-lat th,.op-mini tr.op-lat td{font-size:0.9em;color:var(--op-muted);padding-top:calc(0.06em * var(--op-air));padding-bottom:calc(0.06em * var(--op-air));border-top:0}
.op-mini tr.op-lat th{padding-left:0.8em}
.op-exp{display:block;color:var(--op-red);font-size:0.92em;font-weight:600;margin-top:calc(0.35em * var(--op-air))}
.op-weigh{margin-top:calc(0.5em * var(--op-air));border-top:1px solid var(--op-line);padding-top:calc(0.35em * var(--op-air))}
.op-wh{font-weight:700;color:var(--op-ink);margin:0 0 0.15em}
.op .op-weigh ul{list-style:disc;padding-left:1.05em;font-size:0.95em;line-height:1.3;color:var(--op-text)}
.op-weigh li{margin:0 0 calc(0.18em * var(--op-air))}
.op-prelim{font-size:0.92em;font-weight:700;color:#8a5a00;line-height:1.3;margin:0 0 0.3em}
.op-doc{display:inline-block;margin-top:0.4em;font-size:0.92em;color:var(--op-red);font-weight:600}
.op-doc.op-nodoc{color:var(--op-muted);font-weight:400}
/* Offers left off for being past their date (16 Nov 2026): said on his screen, never on paper. */
.op-doc.op-left{display:block;margin:0 0 0.6em;color:var(--op-muted);font-weight:400}
.op-bar .op-left{color:#8a1c1c;flex-basis:100%}
.op-ns thead .op-doc{margin-top:0.25em;white-space:normal}

.op-tiles .op-big{margin-top:0.05em}
.op-tiles{margin-bottom:calc(0.55em * var(--op-air))}
.op-tiles .op-card{padding-top:calc(0.5em * var(--op-air));padding-bottom:calc(0.45em * var(--op-air))}
.op-tiles .op-small{margin-bottom:0;line-height:1.2}
.op-nswrap{margin-bottom:0.2em}
table.op-ns{width:100%;border-collapse:collapse;table-layout:fixed;font-variant-numeric:tabular-nums}
.op-ns col.op-lab{width:25%}
.op-ns th,.op-ns td{padding:calc(0.15em * var(--op-air)) 0.4em;line-height:1.2}
.op-ns thead th{text-align:right;vertical-align:bottom;border-bottom:2px solid var(--op-ink);font-weight:400;overflow-wrap:anywhere}
.op-ns thead .op-prelim{margin:0.15em 0 0;font-weight:600;line-height:1.2}
.op-ns tbody th{text-align:left;font-weight:400;color:var(--op-text)}
.op-ns td{text-align:right;white-space:nowrap}
.op-ns tbody tr{border-bottom:1px solid var(--op-rule)}
.op-none{color:var(--op-faint);font-size:0.92em}
.op-ns td .op-none{white-space:normal;display:inline-block}
.op-note{display:block;color:var(--op-muted);font-size:0.9em;font-weight:400;white-space:normal}
.op-ns tr.op-price th,.op-ns tr.op-price td{font-weight:700;color:var(--op-ink)}
.op-ns tr.op-sec th{font-weight:700;color:var(--op-muted);padding-top:calc(0.25em * var(--op-air));border-bottom:1px solid #c8c8ce}
.op-ns tr.op-subt th,.op-ns tr.op-subt td{font-weight:600;color:var(--op-ink);background:var(--op-wash)}
.op-ns tr.op-net th,.op-ns tr.op-net td{font-weight:800;font-size:1.15em;color:var(--op-ink);background:var(--op-wash);border-top:2px solid var(--op-ink);border-bottom:2px solid var(--op-ink)}
.op-ns tr.op-total th,.op-ns tr.op-total td{font-weight:700;color:var(--op-ink)}
/* No room for the row of totals (offersheet.js, six offers): the table's own Net at closing row is the headline, and the best
   column says so at its head.
   Paper only (3 Nov 2026 review): on a screen the table is narrower than on paper, so the tiles stay and the row stays 1.15em. */
.op-thtag{display:none;color:var(--op-red);font-size:0.92em;font-weight:700}
.op-paper .op-notiles .op-tiles{display:none}
.op-paper .op-notiles .op-thtag{display:block}
.op-paper .op-notiles .op-ns tr.op-net th,.op-paper .op-notiles .op-ns tr.op-net td{font-size:1.5em;padding-top:0.2em;padding-bottom:0.2em}
@media print{
  .op .op-notiles .op-tiles{display:none}
  .op .op-notiles .op-thtag{display:block}
  .op .op-notiles .op-ns tr.op-net th,.op .op-notiles .op-ns tr.op-net td{font-size:1.5em;padding-top:0.2em;padding-bottom:0.2em}
}
.op-foot{color:var(--op-muted);font-size:0.9em;line-height:1.22;margin-top:calc(0.6em * var(--op-air))}

/* Off paper: the cards flow to the screen; on a phone they stack and the table scrolls in its own box, the page never does. */
@media screen{.op:not(.op-paper) .op-cards{grid-template-columns:repeat(auto-fill,minmax(min(100%,15.5em),1fr))}}
@media screen and (max-width:700px){
  .op:not(.op-paper) .op-page{font-size:14px}
  .op:not(.op-paper) .op-cards{grid-template-columns:minmax(0,1fr)}
  .op:not(.op-paper) .op-nswrap{overflow-x:auto}
  .op:not(.op-paper) .op-ns{min-width:calc(140px + var(--cols,3) * 96px)}
  .op:not(.op-paper) .op-ns col.op-lab{width:9.5em}
  .op:not(.op-paper) .op-ns tbody th{overflow-wrap:anywhere}
  .op:not(.op-paper) .op-ns[data-cols="1"]{--cols:1}.op:not(.op-paper) .op-ns[data-cols="2"]{--cols:2}.op:not(.op-paper) .op-ns[data-cols="3"]{--cols:3}
  .op:not(.op-paper) .op-ns[data-cols="4"]{--cols:4}.op:not(.op-paper) .op-ns[data-cols="5"]{--cols:5}.op:not(.op-paper) .op-ns[data-cols="6"]{--cols:6}
  .op:not(.op-paper) .op-head{flex-wrap:wrap}
  .op:not(.op-paper) .op-logo{height:2.4em}
}

/* Paper: one landscape page each, the type grown to fill it (offersheet.js sets --op-fs, --op-cols, --op-air per page). */
.op-paper .op-page{page:op-land;width:10.2in;font-size:var(--op-fs,10pt)}
.op-paper .op-cards{grid-template-columns:repeat(var(--op-cols,var(--n,3)),minmax(0,1fr))}
.op-paper .op-doc{display:none}
.op-measure{position:absolute;left:-30000px;top:0;visibility:hidden;pointer-events:none}
@media print{
  .op .op-page{page:op-land;width:10.2in;font-size:var(--op-fs,10pt)}
  .op .op-cards{grid-template-columns:repeat(var(--op-cols,var(--n,3)),minmax(0,1fr))}
  .op .op-doc{display:none}
}
/* A browser without named pages (3 Nov 2026 review: WebKit) can't be told landscape from here: the page of its own carries an
   unnamed landscape @page (offersheet-page.css); inside the app the sheet flows to the paper's width rather than be cut off. */
@supports not (page: a){@media print{.op .op-page{width:auto}}}

/* The page of its own (GET /api/deals/:id/offers/print): a bar with the Print button on screen, the sheets below it. */
body.op-standalone{margin:0;background:#fff;page:op-land}
.op-bar{position:sticky;top:0;z-index:1;background:#f6f6f8;border-bottom:1px solid #d9d9de;padding:10px 16px;display:flex;flex-wrap:wrap;gap:12px;align-items:center;font:13px/1.4 "Libre Franklin",Helvetica,Arial,sans-serif;color:#1d1d1f}
.op-bar button{font:inherit;font-weight:700;background:#D11242;color:#fff;border:0;border-radius:4px;padding:8px 14px;cursor:pointer}
.op-wrap{max-width:11in;margin:0 auto;padding:16px}
@media screen{.op-standalone .op:not(.op-paper) .op-page{border-bottom:1px dashed #c8c8ce;padding-bottom:20px;margin-bottom:20px}}
@media screen and (max-width:700px){.op-wrap{padding:12px 16px}}
@media print{.op-bar{display:none}.op-wrap{max-width:none;padding:0;margin:0}}
/* Can things be left in the home (18 Nov 2026): its own line on every card. */
.op-leave{font-size:0.92em;font-weight:600;margin:calc(0.35em * var(--op-air)) 0 0;padding-left:0.6em;border-left:3px solid #8A8F98}
.op-leave-yes{border-left-color:#2E7D32}
.op-leave-no{border-left-color:var(--op-red)}
