:root { color-scheme: light; --ink: #102235; --muted: #506476; --navy: #14304a; --gold: #d9a63a; --line: #dbe4ec; --paper: #f7fafc; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 Arial, Helvetica, sans-serif; }
[hidden] { display: none !important; }
a { color: var(--navy); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #9b6400; outline-offset: 4px; }
.skip-link { position: absolute; top: -90px; left: 1rem; padding: .75rem; background: white; z-index: 5; }
.skip-link:focus { top: .5rem; }
.site-header { background: white; border-bottom: 1px solid var(--line); padding: 1.2rem max(1.25rem, calc((100vw - 1100px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { text-decoration: none; font-size: 1.25rem; font-weight: 800; }
.brand span { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.site-header > a:last-child { font-size: .9rem; }
main { max-width: 1100px; margin: auto; padding: 0 1.5rem 4rem; }
.intro { padding: 3.5rem 0 1.25rem; max-width: 850px; }
.eyebrow { margin: 0 0 .6rem; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 800; color: var(--muted); }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; line-height: 1.12; font-weight: 500; }
h1 { font-size: clamp(2.35rem, 5vw, 3.6rem); margin: 0 0 1rem; letter-spacing: -.025em; }
h2 { font-size: 1.8rem; margin: 0 0 .5rem; }
p { margin: .5rem 0 1rem; }
.lead { font-size: 1.2rem; max-width: 620px; color: var(--muted); }
.receiving-note { border-left: 3px solid var(--gold); padding: .8rem 1.15rem; margin-top: 1.5rem; background: #fff; font-size: .95rem; }
.receiving-note strong { display: block; }
.privacy-note { font-size: .88rem; color: var(--muted); max-width: 820px; margin: 0 0 1.75rem; }
.panel { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 1.8rem; margin: 0 0 1.5rem; }
.section-heading { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading p { color: var(--muted); font-size: .93rem; margin: .35rem 0 0; }
.step { display: grid; place-items: center; background: var(--navy); color: white; border-radius: 50%; width: 32px; height: 32px; flex-shrink: 0; font-size: .85rem; margin-top: .2rem; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.75rem; }
.field { min-width: 0; }
label { display: block; font-weight: 700; font-size: .93rem; margin-bottom: .45rem; }
label span { font-size: .8rem; color: var(--muted); font-weight: 400; }
input, textarea { display: block; width: 100%; min-height: 48px; border: 1px solid #8798a7; border-radius: 5px; padding: .7rem .8rem; background: white; color: var(--ink); font: inherit; }
textarea { resize: vertical; }
[aria-invalid="true"] { border: 2px solid #a12626; }
.hint { font-size: .82rem; color: var(--muted); margin: .45rem 0 0; }
.document-row { border: 1px solid var(--line); border-radius: 6px; margin: 0 0 1.25rem; padding: 1.15rem; min-width: 0; }
legend { font-size: .82rem; letter-spacing: .02em; font-weight: 700; padding: 0 .45rem; }
.document-fields { display: grid; grid-template-columns: 1fr 95px; gap: 1rem; }
.note-field { grid-column: 1 / -1; }
.row-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
button { border: 1px solid transparent; border-radius: 5px; padding: .75rem 1.15rem; min-height: 48px; color: var(--navy); background: transparent; font: 700 .9rem/1.3 Arial, Helvetica, sans-serif; cursor: pointer; }
button:hover { background: #edf2f6; }
button:disabled { color: #687984; background: #f3f5f6; cursor: default; }
.primary { background: var(--navy); color: white; }
.primary:hover { background: #234b6b; }
.secondary { border-color: #8195a7; background: white; }
.quiet { padding: .6rem .75rem; text-decoration: underline; text-underline-offset: .2em; }
.remove { color: #8c2828; margin-left: auto; }
.finish { display: flex; justify-content: space-between; gap: 2rem; align-items: center; margin: 2.5rem 0 1rem; }
.finish > div:first-child { max-width: 390px; }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; max-width: 350px; }
.scope-note { font-size: .82rem; color: var(--muted); max-width: 800px; }
.error-summary, .notice { background: #fff6ed; padding: 1rem; border-left: 3px solid #a64a14; margin: 1rem 0; }
.error-summary ul { margin-bottom: 0; }
.packet { background: white; border: 1px solid var(--line); padding: 2.5rem; margin-top: 2.5rem; overflow-wrap: anywhere; }
.packet-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 2px solid var(--navy); padding-bottom: 1rem; }
.packet-heading .eyebrow { color: var(--navy); }
.preview-badge { font-size: .75rem; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: .3rem .6rem; }
.packet-purpose { margin: 1.25rem 0; }
.packet-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; margin: 1.5rem 0; }
.packet-details div { min-width: 0; }
dt { font-size: .8rem; font-weight: 700; color: var(--muted); }
dd { margin: .2rem 0 0; }
.packet-instructions, .packet-footer { font-size: .82rem; color: var(--muted); }
.inventory-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .88rem; }
caption { text-align: left; font-family: Georgia, serif; font-size: 1.4rem; padding: 1rem 0 .75rem; }
th, td { border: 1px solid var(--line); padding: .7rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
th { background: var(--paper); font-size: .8rem; }
.number-col { width: 7%; }
.quantity-col { width: 9%; }
.description-col, .note-col { width: 42%; }
.inventory-context { font-weight: 400; background: white; }
.inventory-context > span { display: block; }
.inventory-context > span:first-child { font-weight: 700; }
.inventory-total { font-size: .85rem; font-weight: 700; margin-top: .75rem; }
.packet-footer { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.25rem; }
.packet-summary td { border: 0; padding: 0; }
.print-only { display: none; }
@media (max-width: 760px) {
  .site-header { padding: 1rem; }
  .new-tab { display: block; }
  main { padding: 0 1rem 2rem; }
  .intro { padding-top: 2rem; }
  .wide-only { display: none; }
  .field-grid, .packet-details { grid-template-columns: 1fr; }
  .panel { padding: 1.1rem; }
  .section-heading { gap: .75rem; }
  .document-row { padding: .8rem; }
  .finish { display: block; }
  .actions { justify-content: flex-start; max-width: none; margin: 1.5rem 0; }
  .packet { padding: 1rem; }
  .packet-heading { display: block; }
  .preview-badge { display: inline-block; margin-top: .5rem; }
  th, td { padding: .4rem; }
  .number-col { width: 10%; }
  .quantity-col { width: 13%; }
  .description-col, .note-col { width: 38.5%; }
}
@page { size: auto; margin: 15mm; }
@media print {
  html, body { background: white; color: black; font-size: 10pt; }
  .screen-only, .skip-link, noscript, template { display: none !important; }
  main { max-width: none; margin: 0; padding: 0; }
  .packet { display: block; border: 0; padding: 0; margin: 0; }
  .packet-heading { display: block; border-color: black; break-inside: avoid; }
  .packet-details { grid-template-columns: 1fr 1fr; }
  .packet-heading h2 { font-size: 22pt; }
  .packet p, .packet dt, .packet .eyebrow { color: black; }
  .inventory-table { font-size: 9pt; }
  .number-col { width: 7%; }
  .quantity-col { width: 9%; }
  .description-col, .note-col { width: 42%; }
  th, td { border-color: #777; padding: 6pt; color: black; background: white; }
  thead { display: table-header-group; }
  /* Closing content stays in the table so even a continuation containing only
     the summary retains the repeating customer identity header. */
  tfoot { display: table-row-group; }
  tbody tr:last-child { break-after: avoid; }
  .packet-summary { break-before: avoid; }
  tr { break-inside: avoid; page-break-inside: avoid; }
  caption { break-after: avoid; }
  .packet-details div, .packet-instructions, .packet-footer { break-inside: avoid; }
  body:not(.packet-ready) .packet { display: none !important; }
  body:not(.packet-ready) .print-only { display: block; }
}
