/* Bill of lading sheet — shared by paper.html and phone.html.
   Brand tokens are the invoice's (invoicing/site/invoice.html, TEX-87). */
:root {
  --navy: #00396D;
  --cyan: #3888D1;
  --ink:  #10233f;
  --grey: #5a6478;
  --line: #b9c2d1;
}
.sheet {
  width: 816px; min-height: 1056px; background: #fff; color: var(--ink);
  padding: 30px 48px 22px; box-sizing: border-box;
  font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 10px;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.sheet * { box-sizing: border-box; }
.hdr { display: flex; justify-content: space-between; align-items: flex-start;
       border-bottom: 3px solid var(--navy); padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { height: 46px; width: auto; }
.wordmark { font-family: 'EB Garamond', Georgia, serif; font-weight: 600; color: var(--navy);
            font-size: 30px; letter-spacing: 2px; }
.coblock { text-align: right; font-size: 10px; line-height: 1.5; }
.coblock .co { font-size: 13px; font-weight: 700; color: var(--navy); }
.coblock .legal { font-size: 8.5px; color: var(--grey); margin-top: 2px; }

.titlerow { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 8px; }
.doctitle { font-family: 'EB Garamond', Georgia, serif; font-weight: 600; font-size: 28px;
            letter-spacing: 5px; color: var(--navy); margin: 0; }
.docno { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.docno .k { font-weight: 700; color: var(--navy); }
.docno .v { min-width: 150px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 700;
            text-align: center; color: #b3121f; min-height: 20px; }
.rule { height: 2px; background: var(--cyan); margin: 6px 0 10px; }

.f { display: flex; align-items: baseline; gap: 6px; padding: 5px 0 0; }
.f .k { white-space: nowrap; font-weight: 700; color: var(--navy); font-size: 9px; letter-spacing: 0.3px; }
.f .v { flex: 1; border-bottom: 1px solid var(--line); min-height: 16px; padding: 0 2px; font-size: 11px; }
.ph { font-family: 'EB Garamond', Georgia, serif; font-weight: 600; font-size: 12px; letter-spacing: 1px;
      color: var(--navy); }

.dirrow { display: flex; align-items: center; gap: 28px; font-size: 11px; font-weight: 600; }
.dirrow .date { flex: 1; }
.box { display: inline-block; width: 13px; height: 13px; border: 1.5px solid var(--navy);
       vertical-align: -2px; text-align: center; line-height: 11px; font-size: 11px; color: var(--navy); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 10px; }
.panel { border: 1px solid var(--line); padding: 6px 10px 8px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; margin-top: 6px; }
.span2 { grid-column: span 2; }

.timewrap { margin-top: 6px; display: flex; gap: 24px; }
.timeleft { flex: 0 0 58%; }
.cargo { flex: 1; }
.cargov { border-bottom: 1px solid var(--line); min-height: 38px; padding: 4px 2px 0; font-size: 11px; }
table { border-collapse: collapse; width: 100%; }
table.times { width: 100%; }
table.times th { text-align: left; font-size: 9px; color: var(--navy); padding: 2px 6px; }
table.times td { border-bottom: 1px solid var(--line); height: 19px; padding: 2px 6px; font-size: 11px; }
table.times td.lbl { font-weight: 700; color: var(--navy); font-size: 9px; width: 90px; border: 0; }

table.items { margin-top: 8px; }
table.items th { background: var(--navy); color: #fff; padding: 5px 6px; font-size: 9px; text-align: left; }
table.items td { border-bottom: 1px solid var(--line); height: 22px; padding: 3px 6px; font-size: 11px; }
table.items .c { text-align: center; }
table.items .w1 { width: 74px; }
table.items .w2 { width: 210px; }
table.items td.cond { font-size: 9px; white-space: nowrap; }
table.items .opt { margin: 0 4px; }
table.items tr.tot td { font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--navy); }

.exceptions { margin-top: 10px; border: 1px solid var(--line); padding: 6px 10px; }
.exbody { min-height: 34px; font-size: 11px; white-space: pre-wrap; }

.sigs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 10px; }
.sigline { height: 40px; border-bottom: 1px solid var(--ink); display: flex; align-items: flex-end; }
.sigline img { max-height: 38px; max-width: 100%; }
.sigk { font-weight: 700; color: var(--navy); font-size: 9px; margin-top: 3px; }
.sign { font-size: 10px; min-height: 13px; }
.sigd { font-size: 9px; color: var(--grey); margin-top: 4px; }
.foot { margin-top: 12px; font-size: 8.5px; color: var(--grey); text-align: center; }

@media print {
  @page { size: letter; margin: 0; }
  body { background: #fff !important; }
  .noprint { display: none !important; }
  /* The screen sheet is exactly one letter page tall; any wrapper padding
     around it pushed a second, empty page out of every print. */
  .sheet { box-shadow: none !important; min-height: 0; }
}
