/* Lab reports rebuild (Steve, 2026-12-03; approved mockup in docs/lab-reports-rebuild-20261203/). Design only: the
   hub's lookup, cards and list of lots, and the lot page. Loaded on /lab-reports/ and below it, after the fun skin.
   Every colour, radius and type face is one of the site's own tokens (sg2027.css, fun45.css); nothing is new.
   The Total THC row is bold text in the page's own ink: no badge, tick or colour that could read as a pass mark. */

/* ---- hub: head, then the lookup across the page, then the three cards, then the list ---- */
#wrapwrap.sg-batch-book .sgp-lab-lot {display:block;margin-bottom:clamp(36px,5vw,60px);}
#wrapwrap.sg-batch-book .sgp-lab-lookup {margin-bottom:16px;}
#wrapwrap.sg-batch-book .sgp-lab-lookup .sgp-lot-form {margin-top:0;flex-wrap:wrap;align-items:center;}
#wrapwrap.sg-batch-book .sgp-lab-lookup label {flex:1 1 100%;margin:0;font:600 15px/1.3 var(--sg-body);color:var(--sg-text);}
#wrapwrap.sg-batch-book .sgp-lab-lookup .sgp-field {flex:1 1 320px;}
#wrapwrap.sg-batch-book .sgp-lab-lookup :is(p[role=status],.sgp-lot-reports) {margin:16px 0 0;color:var(--sg-muted);}
#wrapwrap.sg-batch-book .sgp-lab-lookup p[role=status] a {color:var(--sg-text);text-decoration:underline;text-underline-offset:3px;}
#wrapwrap.sg-batch-book .sgp-lab-lookup .sgp-lot-reports {list-style:none;padding:0;display:grid;gap:10px;}
#wrapwrap.sg-batch-book .sgp-lab-lookup .sgp-lot-reports li {display:flex;flex-wrap:wrap;gap:10px;align-items:center;}
#wrapwrap.sg-batch-book .sgp-lab-lot .sgp-lab-cards {grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;min-height:0;}
#wrapwrap.sg-batch-book .sgp-lab-lot .sgp-lots {padding:0;margin-top:clamp(36px,5vw,60px);}
#wrapwrap.sg-batch-book .sgp-lab-lot .sgp-lots .sgp-sec-head {margin-bottom:16px;}
#wrapwrap.sg-batch-book .sgp-lab-lot .sgp-lots .sgp-sec-head h2 {font-size:clamp(26px,3.4vw,34px);margin:0;max-width:none;}

/* ---- tables: the list of lots and the lot page's two result tables ---- */
#wrapwrap.sg-batch-book .sgp-lr-scroll {overflow-x:auto;border-radius:var(--sg-r);background:var(--sg-surface);border:1px solid var(--sg-line);}
#wrapwrap.sg-batch-book .sgp-lr-scroll .sgp-lr-table {margin:0;color:var(--sg-text);}
#wrapwrap.sg-batch-book .sgp-lr-scroll .sgp-lr-table :is(th,td) {padding:13px 14px;text-align:left;vertical-align:middle;}
#wrapwrap.sg-batch-book .sgp-lr-scroll .sgp-lr-table thead th {border-bottom:2px solid var(--sg-line2);white-space:nowrap;}
#wrapwrap.sg-batch-book .sgp-lr-scroll .sgp-lr-table tbody tr:last-child :is(th,td) {border-bottom:0;}
#wrapwrap.sg-batch-book .sgp-lr-scroll .sgp-lr-table tbody tr:first-child td {border-top:0;}
#wrapwrap.sg-batch-book .sgp-lr-hub .sgp-p {align-items:center;}
#wrapwrap.sg-batch-book .sgp-lr-hub .sgp-lr-name {display:grid;gap:2px;min-width:0;}
#wrapwrap.sg-batch-book .sgp-lr-hub .sgp-lr-name small {font:400 13px/1.35 var(--sg-body);}
#wrapwrap.sg-batch-book .sgp-lr-hub .sgp-lr-lot {font-family:var(--sg-mono);font-size:14px;overflow-wrap:anywhere;}
#wrapwrap.sg-batch-book .sgp-lr-hub .sgp-lr-actions {white-space:nowrap;}
#wrapwrap.sg-batch-book .sgp-lr-hub .sgp-lr-actions .sgp-btn {margin:2px 4px 2px 0;}
#wrapwrap.sg-batch-book .sgp-lr-hub strong, #wrapwrap.sg-batch-book .sgp-lr-results .sgp-lr-strong :is(th,td) {font-weight:800;color:var(--sg-text);}
#wrapwrap.sg-batch-book .sgp-lr-results tbody th {font:600 14.5px var(--sg-body);letter-spacing:0;text-transform:none;color:var(--sg-text);border-bottom:1px solid var(--sg-line);white-space:nowrap;}
#wrapwrap.sg-batch-book .sgp-lr-results td {font-variant-numeric:tabular-nums;}
/* the old three-column list hid its second column on a phone; the second column is the lot number now */
#wrapwrap.sg-batch-book .sgp-lr-scroll .sgp-lr-table :is(th,td):nth-child(2) {display:table-cell;}

/* ---- lot page ---- */
#wrapwrap.sg-batch-book main > #wrap.sgp-lot-page {max-width:none;width:100%;margin:0;padding:clamp(28px,4vw,48px) 0 clamp(48px,7vw,90px);}
#wrapwrap.sg-batch-book .sgp-lot-page > .sgp-wrap {width:min(960px,100% - var(--sg-pad) * 2);display:grid;gap:28px;}
#wrapwrap.sg-batch-book .sgp-lot-crumb {font:500 14px/1.4 var(--sg-body);color:var(--sg-muted);}
#wrapwrap.sg-batch-book .sgp-lot-crumb a {color:var(--sg-text);text-decoration:underline;text-underline-offset:3px;}
#wrapwrap.sg-batch-book .sgp-lot-head {display:grid;gap:12px;}
#wrapwrap.sg-batch-book .sgp-lot-head h1 {font:800 clamp(30px,5vw,44px)/1.08 var(--sg-display);letter-spacing:-.02em;margin:0;color:var(--sg-text);overflow-wrap:anywhere;}
#wrapwrap.sg-batch-book .sgp-lot-head > p {margin:0;font-size:17px;line-height:1.5;color:var(--sg-muted);max-width:68ch;}
#wrapwrap.sg-batch-book .sgp-lot-actions {display:flex;flex-wrap:wrap;gap:12px;margin-top:4px;}
#wrapwrap.sg-batch-book .sgp-lot-products {list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px;}
#wrapwrap.sg-batch-book .sgp-lot-facts {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
#wrapwrap.sg-batch-book .sgp-lot-facts .sgp-box {padding:16px;}
#wrapwrap.sg-batch-book .sgp-lot-facts .sgp-k {margin-bottom:6px;text-transform:uppercase;}
#wrapwrap.sg-batch-book .sgp-lot-facts .sgp-box p {margin:0;font:600 15.5px/1.35 var(--sg-body);color:var(--sg-text);overflow-wrap:anywhere;}
#wrapwrap.sg-batch-book .sgp-lot-block {display:grid;gap:10px;}
#wrapwrap.sg-batch-book .sgp-lot-block h2 {font:800 clamp(22px,3vw,26px)/1.15 var(--sg-display);margin:0;color:var(--sg-text);}
#wrapwrap.sg-batch-book .sgp-lot-legend {margin:0;font-size:14px;line-height:1.5;color:var(--sg-muted);}
#wrapwrap.sg-batch-book .sgp-lot-note {margin:0;padding:18px 20px;border-radius:var(--sg-r);background:var(--sg-surface);border:1px solid var(--sg-line);font-size:15px;line-height:1.55;color:var(--sg-text);}
#wrapwrap.sg-batch-book .sgp-lot-note a {color:var(--sg-text);text-decoration:underline;text-underline-offset:3px;}

/* ---- the fun skin's card edge on the new pieces (the same edge, paper and drop its other cards use) ---- */
#wrapwrap.sg-fun main :is(.sgp-lab-lot .sgp-box,.sgp-lot-facts .sgp-box,.sgp-lr-scroll,.sgp-lot-note) {background:var(--fx-paper);border:2px solid var(--fx-edge);box-shadow:0 5px 0 var(--fx-drop);}
#wrapwrap.sg-fun main :is(.sgp-lab-lot .sgp-box,.sgp-lot-facts .sgp-box) {border-radius:14px;}
#wrapwrap.sg-fun main :is(.sgp-lr-scroll,.sgp-lot-note) {border-radius:16px;}
#wrapwrap.sg-fun main .sgp-lab-lookup {background:var(--fx-news);}
#wrapwrap.sg-fun main .sgp-lab-lookup label {color:var(--fx-ink);}
#wrapwrap.sg-fun main :is(.sgp-lab-lot,.sgp-lot-page) .sgp-box .sgp-k {color:var(--fx-sun);}
#wrapwrap.sg-fun main :is(.sgp-lab-lot,.sgp-lot-page) .sgp-box p, #wrapwrap.sg-fun main .sgp-lot-legend, #wrapwrap.sg-fun main .sgp-lot-head > p, #wrapwrap.sg-fun main .sgp-lr-hub small {color:var(--fx-soft);}
#wrapwrap.sg-fun main .sgp-lot-facts .sgp-box p, #wrapwrap.sg-fun main .sgp-lot-note {color:var(--fx-ink);}
#wrapwrap.sg-fun main .sgp-lr-scroll .sgp-lr-table thead th {color:var(--fx-soft);border-bottom-color:var(--fx-edge);}
#wrapwrap.sg-fun main .sgp-lr-scroll .sgp-lr-table :is(td,tbody th) {border-bottom-color:color-mix(in srgb,var(--fx-edge) 45%,transparent);color:var(--fx-ink);}
#wrapwrap.sg-fun main :is(.sgp-lot-crumb,.sgp-lot-note,.sgp-lab-lookup p[role=status]) a {color:var(--fx-hero-ink);}
#wrapwrap.sg-fun main .sgp-lr-actions .sgp-btn.sgp-sm {min-height:42px;padding:0 16px;font-size:14px!important;box-shadow:0 3px 0 var(--fx-drop)!important;}
#wrapwrap.sg-fun main :is(.sgp-lr-actions,.sgp-lot-actions) .sgp-btn:not(.sgp-ghost) {background:var(--fx-melon)!important;color:var(--fx-on-melon)!important;}
#wrapwrap.sg-fun main .sgp-lot-actions .sgp-btn {display:inline-flex;align-items:center;padding:0 22px;font-size:15px!important;}

@media (max-width:900px) {
  #wrapwrap.sg-batch-book .sgp-lab-lot .sgp-lab-cards {grid-template-columns:1fr;}
  #wrapwrap.sg-batch-book .sgp-lot-facts {grid-template-columns:repeat(2,minmax(0,1fr));}
}
/* phone: each lot becomes its own block, every cell labelled by its column name */
@media (max-width:760px) {
  #wrapwrap.sg-batch-book .sgp-lr-hub, #wrapwrap.sg-batch-book .sgp-lr-hub tbody {display:block;}
  #wrapwrap.sg-batch-book .sgp-lr-hub thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
  #wrapwrap.sg-batch-book .sgp-lr-hub tr {display:grid;gap:6px;padding:14px;border-bottom:1px solid var(--sg-line2);}
  #wrapwrap.sg-batch-book .sgp-lr-hub tr:last-child {border-bottom:0;}
  #wrapwrap.sg-batch-book .sgp-lr-scroll .sgp-lr-hub td, #wrapwrap.sg-batch-book .sgp-lr-scroll .sgp-lr-hub td:nth-child(2) {display:block;padding:0;border:0;}
  #wrapwrap.sg-batch-book .sgp-lr-hub td[data-th]::before {content:attr(data-th);display:block;font:500 11px var(--sg-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--sg-muted);}
  #wrapwrap.sg-batch-book .sgp-lr-hub .sgp-lr-actions {white-space:normal;margin-top:4px;}
  #wrapwrap.sg-batch-book .sgp-lr-results {min-width:520px;}
}
@media (max-width:640px) {
  #wrapwrap.sg-batch-book .sgp-lab-lookup .sgp-lot-form {align-items:stretch;}
  #wrapwrap.sg-batch-book .sgp-lab-lookup label {flex:none;}
  #wrapwrap.sg-batch-book .sgp-lab-lookup .sgp-field {flex:none;width:100%;}
}
@media (max-width:480px) {
  #wrapwrap.sg-batch-book .sgp-lot-facts {grid-template-columns:1fr;}
  #wrapwrap.sg-batch-book .sgp-lot-actions .sgp-btn {width:100%;justify-content:center;}
}
