/* ==========================================================================
   Northfleet Client Portal — styles (brand: BrandGuidelines V2.2)
   Blue #2552A4 · Orange #F58A2A · Yellow #FCD911 · Red #F23C00 · Ink #221F20
   ========================================================================== */
/* Opened from a tracking link: a read-only view of one job with no sign-in, so
   hide the account switcher, nav and crumbs that would need one. */
body.by-link #pnav,
body.by-link .pbar__acct,
body.by-link .pbar__menu,
body.by-link .crumb{display:none !important}
:root{
  --blue:#2552A4; --blue-d:#1b3d7a; --orange:#F58A2A; --yellow:#FCD911; --red:#F23C00;
  --ink:#221F20; --bg:#f4f6fa; --line:#e4e9f2; --muted:#6b7280; --muted-2:#9aa3b2;
  --ok:#1f9d55; --radius:16px; --shadow:0 2px 6px rgba(34,31,32,.06),0 12px 40px rgba(34,31,32,.07);
  --font:'Raleway',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0}
body{font-family:var(--font);background:var(--bg);color:var(--ink);font-weight:500;min-height:100vh;display:flex;flex-direction:column}
h1,h2,h3{font-weight:900;margin:0;letter-spacing:.2px}
a{text-decoration:none;color:inherit;cursor:pointer}
button{font-family:var(--font)}

/* ---------- Top bar ---------- */
.pbar{display:flex;align-items:center;gap:26px;padding:0 30px;height:72px;background:var(--ink);color:#fff;position:sticky;top:0;z-index:50}
.pbar__brand{display:flex;align-items:center;gap:12px}
.pbar__mark{width:46px;height:auto}
.pbar__word{font-weight:900;font-size:22px;line-height:1}
.pbar__word b{color:#fff;font-weight:900} .pbar__word i{color:var(--orange);font-style:normal}
.pbar__portal{font-size:11px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted-2);border-left:1px solid #3a3738;padding-left:12px;margin-left:4px}
.pnav{display:flex;gap:6px;margin-left:20px}
.pnav a{padding:10px 18px;border-radius:10px;font-weight:800;color:#c9cfda;font-size:15px}
.pnav a:hover{background:rgba(255,255,255,.08);color:#fff}
.pnav a.is-active{background:var(--blue);color:#fff}
.pbar__acct{margin-left:auto}
.acct{display:flex;flex-direction:column;gap:2px}
.acct label{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--muted-2);font-weight:700}
.acct select{background:#2c2829;color:#fff;border:1px solid #3a3738;border-radius:9px;padding:8px 12px;font-family:var(--font);font-weight:800;font-size:14px}
.pbar__menu{display:none;background:none;border:none;color:#fff;font-size:22px;margin-left:auto;cursor:pointer}

main{flex:1}

/* ---------- Hero (track) ---------- */
.hero{background:linear-gradient(135deg,#1b3d7a 0%,#2552A4 60%,#3f6cc0 100%);color:#fff;padding:56px 0 120px;position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;right:-60px;bottom:-60px;width:320px;height:320px;background:radial-gradient(circle,rgba(245,138,42,.35),transparent 70%)}
.hero__in{max-width:1080px;margin:0 auto;padding:0 30px;position:relative;z-index:1}
.hero h1{font-size:38px;line-height:1.1;max-width:640px}
.hero p{font-size:17px;font-weight:600;opacity:.9;margin:12px 0 28px;max-width:560px}
.track-box{display:flex;gap:12px;max-width:620px;background:#fff;padding:10px;border-radius:14px;box-shadow:var(--shadow)}
.track-box input{flex:1;border:none;padding:14px 16px;font-family:var(--font);font-size:16px;font-weight:600;border-radius:10px;color:var(--ink)}
.track-box input:focus{outline:none;background:#f4f6fa}

.wrap{max-width:1080px;margin:0 auto;padding:0 30px}
.pull-up{margin-top:-80px;position:relative;z-index:2}

/* ---------- Buttons ---------- */
.btn{font-weight:800;font-size:15px;border:none;border-radius:11px;padding:14px 24px;cursor:pointer;transition:.15s;min-height:48px}
.btn--primary{background:var(--blue);color:#fff}
.btn--primary:hover{background:var(--blue-d)}
.btn--orange{background:var(--orange);color:#fff}
.btn--orange:hover{filter:brightness(.95)}
.btn--ghost{background:#eef1f6;color:var(--ink)}
.btn--ghost:hover{background:#e2e7ef}
.btn--sm{padding:9px 16px;min-height:38px;font-size:14px;border-radius:9px}
.btn--block{width:100%}

/* ---------- Cards ---------- */
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.sec-title{font-size:13px;text-transform:uppercase;letter-spacing:1.2px;color:var(--muted);font-weight:800;margin:0 0 14px}
.page-head{padding:34px 30px 20px;max-width:1080px;margin:0 auto}
.page-head h1{font-size:30px}
.page-head p{color:var(--muted);font-weight:600;margin-top:6px}

/* shipments grid */
.ship-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:18px;padding-bottom:40px}
.ship{padding:20px;cursor:pointer;transition:.15s;border:1px solid var(--line)}
.ship:hover{transform:translateY(-2px);box-shadow:0 8px 30px rgba(34,31,32,.12)}
.ship__top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.ship__id{font-weight:900;color:var(--blue);font-size:17px}
.ship__route{font-weight:800;font-size:15px}
.ship__meta{color:var(--muted);font-weight:700;font-size:13px;margin-top:4px}
.ship__foot{display:flex;justify-content:space-between;align-items:center;margin-top:14px;padding-top:14px;border-top:1px solid var(--line);font-size:13px;font-weight:700}

/* badges */
.badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:800;padding:5px 11px;border-radius:999px;white-space:nowrap}
.badge::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.badge--blue{background:#e8effb;color:var(--blue)}
.badge--green{background:#e4f6ec;color:var(--ok)}
.badge--orange{background:#fdefe0;color:#c96a12}
.badge--red{background:#fde6df;color:var(--red)}
.badge--grey{background:#eef1f6;color:var(--muted)}

/* ---------- Tracking detail ---------- */
.crumb{color:var(--blue);font-weight:800;font-size:14px;display:inline-block;margin-bottom:16px}
.track-detail{display:grid;grid-template-columns:1.3fr 1fr;gap:20px;padding-bottom:44px}
.tmap{height:360px;border-radius:14px;overflow:hidden}
.tmap-none{height:360px;border-radius:14px;display:grid;place-items:center;background:#eef1f6;color:var(--muted);font-weight:800;text-align:center;padding:20px}
/* Honest refusal when the map LIBRARY is missing (issue #288) — distinct from
   .tmap-none, which is "not dispatched yet" and is a fact about the shipment.
   Height is auto: this one carries sentences, and clipping the explanation to
   360px would defeat the point of writing it. */
.tmap-off{border-radius:14px;background:#fff8f2;border:1px solid #f6d5bd;border-left:4px solid var(--orange);padding:20px 22px}
.tmap-off__t{margin:0 0 8px;font-weight:900;font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:#a2560f}
.tmap-off__p{margin:0 0 10px;color:var(--muted);font-weight:700;font-size:13.5px;line-height:1.6}
.tmap-off__p:last-child{margin-bottom:0}
.tmap-off__p--sm{font-size:12.5px}
.tmap-off__run{font-size:16px;color:var(--ink)}

/* stepper */
.stepper{display:flex;flex-direction:column;gap:0;margin:6px 0}
.step{display:flex;gap:14px;position:relative;padding-bottom:22px}
.step:last-child{padding-bottom:0}
.step__dot{width:26px;height:26px;border-radius:50%;background:#e4e9f2;color:#fff;display:grid;place-items:center;font-size:14px;flex-shrink:0;z-index:1;font-weight:900}
.step::before{content:"";position:absolute;left:12px;top:26px;bottom:-2px;width:2px;background:#e4e9f2}
.step:last-child::before{display:none}
.step.done .step__dot{background:var(--ok)} .step.done::before{background:var(--ok)}
.step.current .step__dot{background:var(--orange)}
.step__b b{font-weight:900} .step__b small{display:block;color:var(--muted);font-weight:700;margin-top:2px}

.kv{display:grid;grid-template-columns:auto 1fr;gap:9px 18px;margin:6px 0}
.kv dt{color:var(--muted);font-weight:700;font-size:13px}
.kv dd{margin:0;font-weight:800;text-align:right}
.items{width:100%;border-collapse:collapse;margin-top:6px}
.items th,.items td{text-align:left;padding:9px 10px;border-bottom:1px solid var(--line);font-weight:700;font-size:14px}
.items th{font-size:11px;text-transform:uppercase;color:var(--muted);letter-spacing:.5px}
.pod-box{border:1px dashed var(--line);border-radius:12px;padding:14px;text-align:center;margin-top:14px}
.pod-box .pod-sig{max-width:100%;max-height:120px}
.pod-photos{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
/* a <button>, not an <a>: an inline data: URL can't be top-level navigated, so
   these open through the shared media opener (portal.js) rather than an href */
.pod-photo{display:block;width:96px;height:96px;border-radius:10px;overflow:hidden;border:1px solid var(--line);background:#f4f6fb;padding:0;cursor:pointer;font:inherit}
.pod-photo img{width:100%;height:100%;object-fit:cover;transition:transform .15s ease}
.pod-photo:hover img{transform:scale(1.05)}
.eta-big{font-size:15px;font-weight:800}
.eta-big b{color:var(--blue);font-size:22px;display:block}

/* ---------- Booking form ---------- */
.book{display:grid;grid-template-columns:1fr 340px;gap:20px;padding-bottom:44px}
.form-sec{padding:24px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
.fld{display:block;margin-bottom:16px}
.fld span{display:block;font-weight:800;font-size:13px;margin-bottom:6px}
.fld input,.fld select,.fld textarea{width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:10px;font-family:var(--font);font-size:15px;font-weight:600;background:#fff;color:var(--ink)}
.fld textarea{min-height:80px;resize:vertical}
.fld input:focus,.fld select:focus,.fld textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(37,82,164,.15)}
.bk-items{width:100%;border-collapse:collapse}
.bk-items td{padding:5px 6px 5px 0;vertical-align:middle}
.bk-items input{width:100%;padding:9px 10px;border:1px solid var(--line);border-radius:8px;font-family:var(--font);font-weight:600;font-size:14px}
.summary{padding:22px;align-self:start;position:sticky;top:92px}
.summary .row{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line);font-weight:700;font-size:14px}
.summary .row:last-of-type{border-bottom:none}
.summary .row b{color:var(--blue)}

/* confirmation */
.confirm{max-width:620px;margin:40px auto;text-align:center;padding:44px 30px}
.confirm__tick{width:76px;height:76px;border-radius:50%;background:var(--ok);color:#fff;display:grid;place-items:center;font-size:38px;margin:0 auto 18px}
.confirm h2{font-size:26px}
.confirm .cn{font-size:30px;font-weight:900;color:var(--blue);margin:14px 0;letter-spacing:1px}
.confirm .btns{display:flex;gap:12px;justify-content:center;margin-top:24px;flex-wrap:wrap}

/* ---------- Toast ---------- */
.ptoast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%) translateY(160%);background:var(--ink);color:#fff;padding:15px 24px;border-radius:12px;font-weight:800;box-shadow:0 10px 30px rgba(0,0,0,.3);transition:.35s;z-index:200}
.ptoast.is-show{transform:translateX(-50%) translateY(0)}
.ptoast--ok{background:var(--ok)} .ptoast--err{background:var(--red)}

/* ---------- Login gate ---------- */
.login{position:fixed;inset:0;background:linear-gradient(135deg,#1b3d7a 0%,#221F20 90%);display:grid;place-items:center;z-index:500;padding:20px}
.login.is-hidden{display:none}
.login__card{background:#fff;border-radius:18px;padding:32px 30px;width:min(380px,100%);display:flex;flex-direction:column;box-shadow:0 30px 80px rgba(0,0,0,.45)}
.login__mark{width:78px;margin:0 auto}
.login__word{text-align:center;font-weight:900;font-size:26px;margin-top:8px}
.login__word b{color:var(--ink)} .login__word i{color:var(--orange);font-style:normal}
.login__app{text-align:center;font-weight:800;font-size:12px;letter-spacing:2px;text-transform:uppercase;color:var(--muted);margin-bottom:18px}
.login__lbl{font-weight:800;font-size:13px;margin:12px 0 5px}
.login select,.login input{padding:13px 14px;border:1px solid var(--line);border-radius:10px;font-family:var(--font);font-weight:600;font-size:15px;background:#fff}
.login select:focus,.login input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(37,82,164,.15)}
.login .btn{margin-top:18px;width:100%}
.login__err{color:var(--red);font-weight:800;font-size:13px;min-height:16px;margin-top:8px}
.login__hint{color:var(--muted-2);font-weight:700;font-size:12px;margin-top:16px;text-align:center;line-height:1.5}

/* ---------- Footer ---------- */
.pfoot{background:var(--ink);color:#aeb6c4;padding:22px 30px;font-weight:700;font-size:13px;margin-top:20px}
.pfoot__in{max-width:1080px;margin:0 auto;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}
.pfoot__ver{max-width:1080px;margin:14px auto 0;padding-top:12px;border-top:1px solid rgba(255,255,255,.12);color:#7e8798;font-size:11.5px;font-weight:700;letter-spacing:.3px}
/* Padded to a usable target; the negative margin keeps the footer line where it was. */
.pfoot__ver-link{display:inline-block;padding:8px 10px;margin:-8px -10px;
  color:#aeb6c4;text-decoration:underline;text-underline-offset:2px}
.pfoot__ver-link:hover{color:var(--orange,#F58A2A)}

/* ---------- Responsive ---------- */
@media(max-width:820px){
  .pnav,.pbar__acct{display:none}
  .pbar__menu{display:block}
  /* One dropped panel holding the nav and the account switcher, stacked in normal
     flow. Both used to be positioned absolutely with the account switcher pinned
     at a hardcoded top:190px — which only lined up while the nav had exactly two
     items of exactly that height, and overlapped the page either side of that. */
  .pbar{position:relative;flex-wrap:wrap}
  .pbar.is-open{padding-bottom:12px}
  .pbar.is-open .pnav{display:flex;flex-direction:column;gap:2px;order:9;
    flex-basis:100%;margin:8px 0 0;padding:8px 0 0;border-top:1px solid rgba(255,255,255,.12)}
  .pbar.is-open .pnav a{padding:14px 16px;min-height:44px;display:flex;align-items:center}
  .pbar.is-open .pbar__acct{display:block;order:10;flex-basis:100%;margin-top:8px}
  .track-detail,.book{grid-template-columns:1fr}
  .summary{position:static}
  .hero h1{font-size:30px}
}
@media(max-width:560px){.grid2{grid-template-columns:1fr}.pfoot__in{flex-direction:column}}

/* ---------- Keyboard focus ----------
   The browser default outline is invisible against the brand blues and the dark
   top bar, so keyboard users had no idea where they were. :focus-visible only
   fires for keyboard interaction, so mouse and touch are unchanged. */
:focus-visible{outline:3px solid var(--yellow);outline-offset:2px;border-radius:4px}
.pbar :focus-visible,.pnav a:focus-visible{outline-color:var(--yellow)}
/* The shipment card is now an <a>; it must not pick up link colour or underline,
   and its focus ring wants to sit outside the card edge rather than on it. */
.ship{display:block;color:inherit;text-decoration:none}
.ship:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.pbar__menu{min-width:44px;min-height:44px}
/* ==========================================================================
   MY DOCUMENTS (#252) — self-service PODs and invoices.
   Prefix `nfd-` (Northfleet documents), checked unused across portal.css,
   portal/index.html and portal.js before adding, and deliberately NOT one of the
   bare single-word classes this file already owns (.card .badge .items .step
   .btn .kv …) — reusing one silently inherits its layout.
   ========================================================================== */
/* the per-client nav item, hidden until that client is switched on */
.nfd-off{display:none !important}

.nfd-wrap{padding:30px 30px 48px}
.nfd-h1{font-size:28px;margin-bottom:4px}
.nfd-sub{color:var(--muted);font-weight:700;margin:0 0 16px;max-width:70ch;line-height:1.5}
.nfd-note{background:#fffbe8;border:1px solid #f2e2a8;border-radius:12px;padding:12px 14px;
  font-weight:700;font-size:13px;line-height:1.55;color:#6b5a12;margin:0 0 18px;max-width:80ch}
.nfd-dim{color:var(--muted-2);font-weight:700;font-size:12.5px}

/* toolbar: tabs + search */
.nfd-bar{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap;justify-content:space-between;margin-bottom:14px}
.nfd-tabs{display:flex;gap:6px;flex-wrap:wrap}
.nfd-tabs button{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 15px;
  font-weight:800;font-size:14px;cursor:pointer;color:var(--muted);min-height:44px}
.nfd-tabs button.is-active{background:var(--blue);border-color:var(--blue);color:#fff}
.nfd-search{display:flex;flex-direction:column;gap:4px;flex:1;min-width:260px;max-width:420px}
.nfd-srch-lbl{font-weight:800;font-size:11px;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}
.nfd-search input{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:10px;
  font-family:var(--font);font-weight:600;font-size:15px;background:#fff;color:var(--ink);min-height:44px}
.nfd-search input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(37,82,164,.15)}
.nfd-count{font-weight:800;font-size:13px;color:var(--muted);margin:0 0 10px}

/* list */
.nfd-sec{margin:22px 0 10px}
.nfd-list{display:block}
.nfd-row{display:flex;align-items:center;gap:14px;padding:14px 16px;margin-bottom:10px;
  color:inherit;text-decoration:none;transition:.15s}
.nfd-row:hover{transform:translateY(-1px);box-shadow:0 8px 26px rgba(34,31,32,.10)}
.nfd-row:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.nfd-row__kind{flex:0 0 auto;font-size:11px;font-weight:900;letter-spacing:.8px;padding:6px 9px;border-radius:8px}
.nfd-row__kind--pod{background:#e4f6ec;color:var(--ok)}
.nfd-row__kind--inv{background:#e8effb;color:var(--blue)}
.nfd-row__main{flex:1 1 auto;min-width:0}
.nfd-row__main b{display:block;font-weight:900;font-size:16px;color:var(--blue)}
.nfd-row__sub{display:block;color:var(--muted);font-weight:700;font-size:13px;margin-top:2px}
.nfd-row__when{flex:0 0 auto;text-align:right;font-weight:800;font-size:13.5px}
.nfd-row__when small{display:block;color:var(--muted);font-weight:700;font-size:12px;margin-top:2px}
.nfd-row__go{flex:0 0 auto;color:var(--muted-2);font-weight:900;font-size:20px}

/* empty / unavailable states — each one names WHICH cause it is */
.nfd-empty{padding:26px 24px;font-weight:700;line-height:1.6;max-width:80ch}
.nfd-empty b{display:block;font-weight:900;font-size:17px;margin-bottom:6px}
.nfd-empty p{margin:0 0 8px;color:var(--muted)}
.nfd-empty a{color:var(--blue);font-weight:800}
.nfd-empty--sm{padding:18px 20px;font-size:14px;color:var(--muted)}

/* the printable document */
.nfd-acts{display:flex;gap:10px;justify-content:flex-end;margin-bottom:12px;flex-wrap:wrap}
.nfd-doc{max-width:860px;margin:0 auto;padding:30px 34px 24px}
.nfd-doc__hd{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;flex-wrap:wrap;
  border-bottom:3px solid var(--blue);padding-bottom:16px;margin-bottom:20px}
.nfd-doc__brand{display:flex;align-items:center;gap:10px}
.nfd-doc__mark{width:52px;height:auto}
.nfd-doc__word{font-weight:900;font-size:22px;line-height:1}
.nfd-doc__word b{color:var(--ink)} .nfd-doc__word i{color:var(--orange);font-style:normal}
.nfd-doc__ttl{text-align:right}
.nfd-doc__ttl h1{font-size:24px}
.nfd-doc__ttl span{display:block;font-weight:800;color:var(--muted);font-size:14px;margin-top:2px}
.nfd-doc__ft{border-top:1px solid var(--line);margin-top:24px;padding-top:12px;display:flex;
  justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--muted-2);font-weight:700;font-size:11.5px}

.nfd-fields{display:grid;grid-template-columns:auto 1fr;gap:8px 22px;margin:0 0 8px}
.nfd-fields dt{color:var(--muted);font-weight:700;font-size:13px}
.nfd-fields dd{margin:0;font-weight:800;font-size:14px}
.nfd-fields dd a{color:var(--blue);text-decoration:underline;text-underline-offset:2px}
.nfd-block{margin-top:22px}
.nfd-lines .num{text-align:right}
.nfd-lines .nfd-sum td{color:var(--muted);font-weight:800}
.nfd-lines .nfd-tot td{font-weight:900;font-size:16px;border-bottom:none;padding-top:12px}

.nfd-sigwrap{display:block;width:100%;border:1px dashed var(--line);border-radius:12px;background:#fff;
  padding:14px;text-align:center;cursor:pointer;font:inherit}
.nfd-sig{max-width:100%;max-height:150px}
.nfd-sigwrap span{display:block;margin-top:6px}
.nfd-photos{display:flex;flex-wrap:wrap;gap:10px}
.nfd-photo{width:132px;height:132px;border-radius:10px;overflow:hidden;border:1px solid var(--line);
  background:#f4f6fb;padding:0;cursor:pointer;font:inherit}
.nfd-photo img{width:100%;height:100%;object-fit:cover}
/* "nothing was captured" is a statement, not a blank box */
.nfd-none{border:1px dashed var(--line);border-radius:12px;padding:16px;color:var(--muted);
  font-weight:700;font-size:14px;line-height:1.55}
.nfd-none--doc{border-color:#f2d7a8;background:#fffaf0;color:#6b5a12}
.nfd-none--doc b{color:var(--ink)}
.nfd-none--doc p{margin:6px 0 0}
.nfd-none a{color:var(--blue);font-weight:800}
.nfd-flag{border-radius:12px;padding:12px 14px;font-weight:700;font-size:14px;line-height:1.5;margin-bottom:14px}
.nfd-flag--ok{background:#e4f6ec;color:#14663a}
.nfd-flag--warn{background:#fdefe0;color:#8a4b06}
.nfd-avail{font-weight:700;color:var(--muted);margin:0 0 14px;font-size:14px}
.nfd-podlink{display:inline-block;margin-top:12px;color:var(--blue);font-weight:800;font-size:14px;
  padding:8px 4px;text-decoration:underline;text-underline-offset:2px}

@media(max-width:640px){
  .nfd-wrap{padding:22px 18px 40px}
  .nfd-doc{padding:22px 18px 18px}
  .nfd-row{flex-wrap:wrap}
  .nfd-row__when{text-align:left;flex-basis:100%}
  .nfd-row__go{display:none}
  .nfd-fields{grid-template-columns:1fr;gap:2px 0}
  .nfd-fields dd{margin-bottom:8px}
}

/* Print — the whole point of the screen is a document they can forward, so
   "Save as PDF" out of the browser's print dialog has to produce one. */
@media print{
  .pbar,.pfoot,.ptoast,.login,.nfd-noprint,.crumb{display:none !important}
  body{background:#fff}
  .wrap,.nfd-wrap{max-width:none;padding:0;margin:0}
  .nfd-doc{max-width:none;margin:0;border:none;box-shadow:none;padding:0}
  .nfd-block,.nfd-photo,.nfd-sigwrap,.nfd-fields{break-inside:avoid;page-break-inside:avoid}
  .nfd-photo{width:150px;height:150px}
  .nfd-none,.nfd-flag{border:1px solid #ccc}
}

/* demurrage notice */
.pdem{border-left:4px solid #c96a12}
.pdem-row{display:flex;justify-content:space-between;gap:12px;font-weight:700;font-size:14px;padding:4px 0}
.pdem-total{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);margin-top:8px;padding-top:8px;font-size:15px}
.pdem-total b{color:#c96a12}

/* ==========================================================================
   QUOTE ACCEPTANCE  (#244)  — prefix `qa-`, verified unused in portal.css,
   css/app.css and driver/driver.css before it was added.
   Borrows .card / .btn / .items / .sec-title from above; only what the
   acceptance page needs of its own is here. Deliberately generous vertical
   rhythm: the honesty panel has to be read, not skimmed past.
   ========================================================================== */
.qa-wrap{max-width:820px;margin:0 auto;padding:30px 30px 60px}
.qa-h1{font-size:28px;margin-bottom:6px}
.qa-sub{color:var(--muted);font-weight:700;font-size:15px;line-height:1.6;margin:0 0 20px}
.qa-dim{color:var(--muted-2);font-weight:700;font-size:13px;line-height:1.55}

/* ---- the quote itself ---- */
.qa-quote{padding:22px 24px;margin-bottom:20px}
.qa-quote__hd{display:flex;justify-content:space-between;align-items:flex-end;flex-wrap:wrap;gap:10px;
  border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:16px}
.qa-quote__lbl{display:block;font-size:10px;text-transform:uppercase;letter-spacing:1.4px;
  color:var(--muted-2);font-weight:800}
.qa-quote__n{font-size:26px;font-weight:900;color:var(--blue);letter-spacing:.5px}
.qa-quote__for{font-weight:800;font-size:15px;text-align:right}
.qa-fields{display:grid;grid-template-columns:auto 1fr;gap:6px 18px;margin:0 0 16px;font-size:14px}
.qa-fields dt{font-weight:700;color:var(--muted)}
.qa-fields dd{margin:0;font-weight:800}
.qa-items,.qa-rates{margin-top:6px}
.qa-rates .num,.qa-items .num{text-align:right}
.qa-sum td{font-weight:800;border-top:1px solid var(--line)}
.qa-tot td{font-weight:900;font-size:16px;border-top:2px solid var(--ink)}
.qa-tot td:last-child{color:var(--blue)}

/* "nothing was recorded" is a statement, never a blank or a zero */
.qa-none{border:1px dashed var(--line);border-radius:12px;padding:14px 16px;color:var(--muted);
  font-weight:700;font-size:14px;line-height:1.55;margin-top:10px}
.qa-none--price{border-color:#f2d7a8;background:#fffaf0;color:#6b5a12}
.qa-none--price b{color:var(--ink);display:block;margin-bottom:4px}
.qa-none p{margin:6px 0 0}
.qa-none a{color:var(--blue);font-weight:800}

/* ---- the form ---- */
.qa-form{padding:22px 24px;margin-bottom:20px}
.qa-fld{display:block;margin-bottom:14px}
.qa-fld>span{display:block;font-weight:800;font-size:13px;margin-bottom:6px}
.qa-fld>span i{font-style:normal;font-weight:700;font-size:11px;text-transform:uppercase;
  letter-spacing:.8px;color:var(--muted-2);margin-left:6px}
.qa-fld input{width:100%;min-height:48px;padding:12px 14px;border:1px solid var(--line);
  border-radius:10px;font-family:var(--font);font-weight:700;font-size:15px;background:#fff;color:var(--ink)}
.qa-fld input:focus{outline:2px solid var(--blue);outline-offset:1px;border-color:var(--blue)}
.qa-hint{color:var(--muted);font-weight:700;font-size:13px;line-height:1.55;margin:-8px 0 16px}
.qa-hint b{color:var(--ink)}
.qa-hint--foot{margin:14px 0 0}
.qa-hint a,.qa-tick a{color:var(--blue);font-weight:800}
/* The declaration. 44px+ and the whole row is the target — this is the control
   that turns a page view into a commercial commitment, so it must be deliberate. */
.qa-tick{display:flex;gap:12px;align-items:flex-start;padding:14px;margin:6px 0 18px;
  border:1px solid var(--line);border-radius:12px;background:#f7f9fc;cursor:pointer;
  font-weight:700;font-size:14px;line-height:1.55;min-height:44px}
.qa-tick input{width:22px;height:22px;flex:0 0 22px;margin:1px 0 0;accent-color:var(--blue);cursor:pointer}
.qa-go{width:100%;min-height:52px;font-size:16px}

/* ---- refusals, and the record ---- */
.qa-flag{padding:16px 20px;margin-bottom:20px;font-weight:700;font-size:15px;line-height:1.6}
.qa-flag b{display:block;font-weight:900}
.qa-flag p{margin:8px 0 0;font-weight:700}
.qa-flag--ok{border-left:4px solid var(--ok);background:#f2fbf6}
.qa-flag--stop{border-left:4px solid var(--red);background:#fff6f2}
.qa-flag--stop b{color:#a52a00}
.qa-warn{color:#8a4b06;font-weight:800}
.qa-empty{padding:26px 24px;font-weight:700;font-size:15px;line-height:1.6;color:var(--muted)}
.qa-empty b{display:block;color:var(--ink);font-size:17px;font-weight:900;margin-bottom:8px}
.qa-empty p{margin:8px 0 0}
.qa-rec{padding:22px 24px;margin-bottom:20px}
.qa-rec__sub{margin:8px 0 0}
.qa-call{display:inline-block;color:var(--blue);font-weight:800;text-decoration:underline;
  text-underline-offset:2px;padding:6px 2px;min-height:24px}
.qa-call--inline{padding:0}

/* ---- confirmation ---- */
.qa-confirm{padding:34px 26px;text-align:center;margin-bottom:20px}
.qa-confirm__tick{width:64px;height:64px;margin:0 auto 14px;border-radius:50%;background:var(--ok);
  color:#fff;font-size:34px;font-weight:900;display:grid;place-items:center}
.qa-confirm__msg{color:var(--muted);font-weight:700;font-size:15px;line-height:1.6;margin:8px 0 0}
.qa-confirm__n{font-size:34px;font-weight:900;color:var(--blue);letter-spacing:1px;margin:16px 0 6px}

/* ---- the honesty panel. Not a footnote: it is the size of the claim it makes. */
.qa-note{border:1px solid #f2d7a8;background:#fffaf0;border-radius:var(--radius);
  padding:20px 22px;color:#6b5a12;font-weight:700;font-size:14px;line-height:1.65}
.qa-note__t{display:block;color:var(--ink);font-size:16px;font-weight:900;margin-bottom:8px}
.qa-note p{margin:10px 0 0}
.qa-note b{color:var(--ink)}
.qa-note a{color:var(--blue);font-weight:800}

@media(max-width:640px){
  .qa-wrap{padding:22px 18px 44px}
  .qa-h1{font-size:23px}
  .qa-quote,.qa-form,.qa-rec{padding:18px 16px}
  .qa-quote__for{text-align:left}
  .qa-fields{grid-template-columns:1fr;gap:2px 0}
  .qa-fields dd{margin-bottom:8px}
  .qa-confirm__n{font-size:28px}
}
