/* Freight Demo — printable document sheets (screen preview + print) */
.sheet { position: relative; background: #fff; color: #141414; width: 100%; max-width: 816px; margin: 0 auto; padding: 48px 52px 36px; font-size: 11.5px; line-height: 1.45; box-shadow: 0 1px 3px rgba(11, 31, 58, .12), 0 8px 24px rgba(11, 31, 58, .08); font-variant-numeric: tabular-nums; overflow: hidden; }
.sheet h1, .sheet h3, .sheet h4 { margin: 0; }
.sheet p { margin: 0; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 16px; border-bottom: 2.5px solid #0B1F3A; margin-bottom: 20px; }
.doc-brand { display: flex; gap: 12px; align-items: flex-start; }
.doc-co { font-size: 15px; font-weight: 700; color: #0B1F3A; letter-spacing: -0.01em; }
.doc-addr { color: #4A4A4A; font-size: 10.5px; margin-top: 3px; max-width: 300px; }
.doc-title { text-align: right; }
.doc-title h1 { font-size: 17px; font-weight: 700; letter-spacing: .06em; color: #0B1F3A; margin-bottom: 8px; }
.doc-meta { margin-left: auto; border-collapse: collapse; font-size: 11px; }
.doc-meta th { text-align: right; font-weight: 500; color: #5A5A5A; padding: 1px 10px 1px 0; white-space: nowrap; }
.doc-meta td { text-align: right; font-weight: 600; padding: 1px 0; white-space: nowrap; }
.doc-cols { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; margin-bottom: 20px; }
.doc-block h3 { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #0B1F3A; font-weight: 700; border-bottom: 1px solid #CFCFCF; padding-bottom: 4px; margin-bottom: 7px; }
.doc-block p { margin: 1px 0; color: #2B2B2B; font-size: 11px; }
.doc-strong { font-weight: 700; color: #141414 !important; font-size: 12px; }
.doc-kv { border-collapse: collapse; width: 100%; font-size: 11px; }
.doc-kv th { text-align: left; font-weight: 500; color: #5A5A5A; padding: 2px 12px 2px 0; vertical-align: top; white-space: nowrap; width: 1%; }
.doc-kv td { padding: 2px 0; font-weight: 500; }
.doc-lines { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 11px; }
.doc-lines thead { display: table-header-group; }
.doc-lines th { text-align: left; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: #0B1F3A; font-weight: 700; border-top: 1.5px solid #0B1F3A; border-bottom: 1.5px solid #0B1F3A; padding: 6px 8px; white-space: nowrap; }
.doc-lines td { padding: 7px 8px; border-bottom: 1px solid #E2E2E2; vertical-align: top; }
.doc-lines tr { page-break-inside: avoid; break-inside: avoid; }
.doc-lines tfoot td { font-weight: 700; border-top: 1.5px solid #141414; border-bottom: 0; }
.doc-lines .r, .doc-totals td { text-align: right; }
.doc-lines .c { text-align: center; width: 24px; color: #6A6A6A; }
.doc-totals-wrap { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; margin-bottom: 22px; page-break-inside: avoid; break-inside: avoid; }
.doc-bank { flex: 1; max-width: 400px; }
.doc-totals { border-collapse: collapse; min-width: 250px; font-size: 12px; }
.doc-totals th { text-align: left; font-weight: 500; color: #4A4A4A; padding: 4px 18px 4px 0; }
.doc-totals td { font-weight: 600; padding: 4px 0; }
.doc-totals .grand th, .doc-totals .grand td { border-top: 2px solid #0B1F3A; padding-top: 8px; font-size: 14px; font-weight: 700; color: #0B1F3A; }
.doc-note { margin-top: 8px !important; font-size: 10.5px; color: #4A4A4A !important; }
.doc-terms { margin: 0; padding-left: 16px; color: #2B2B2B; font-size: 10.5px; }
.doc-terms li { margin: 2px 0; }
.doc-aging { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 11px; }
.doc-aging th { font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: #5A5A5A; font-weight: 600; text-align: center; padding: 5px; border: 1px solid #D6D6D6; }
.doc-aging td { text-align: center; padding: 7px 5px; border: 1px solid #D6D6D6; font-weight: 600; }
.doc-sub { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #0B1F3A; margin: 4px 0 2px !important; }
.doc-empty { padding: 18px 0; color: #4A4A4A; }
.doc-foot { border-top: 1px solid #CFCFCF; padding-top: 10px; margin-top: 8px; font-size: 9.5px; color: #5A5A5A; display: flex; justify-content: space-between; gap: 20px; page-break-inside: avoid; }
.doc-foot p:first-child { max-width: 480px; }
.doc-page { white-space: nowrap; text-align: right; }
.bxg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #BDBDBD; margin-bottom: 14px; }
.bx { padding: 7px 9px; border-bottom: 1px solid #D6D6D6; border-right: 1px solid #D6D6D6; min-height: 46px; }
.bx:nth-child(2n) { border-right: 0; }
.bx span { display: block; font-size: 8.5px; text-transform: uppercase; letter-spacing: .08em; color: #6A6A6A; font-weight: 600; margin-bottom: 3px; }
.bx div { font-size: 11px; }
.sheet .mono { font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace; font-size: 10.5px; }
.sig { font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: 17px; color: #1C3557; }
.watermark { position: absolute; top: 44%; left: 50%; transform: translate(-50%, -50%) rotate(-24deg); font-size: 110px; font-weight: 800; letter-spacing: .1em; color: rgba(11, 31, 58, .045); pointer-events: none; user-select: none; }

@media (max-width: 700px) {
  .doc-preview-wrap { padding: 10px; }
  .sheet { padding: 22px 18px; font-size: 10.5px; }
  .doc-head { flex-direction: column; gap: 12px; }
  .doc-title { text-align: left; }
  .doc-meta { margin-left: 0; }
  .doc-meta th, .doc-meta td { text-align: left; }
  .doc-cols { grid-template-columns: 1fr; gap: 14px; }
  .doc-totals-wrap { flex-direction: column-reverse; }
  .doc-totals { width: 100%; }
  .doc-lines { display: block; overflow-x: auto; }
}

@media print {
  @page { size: letter; margin: 0.6in; }
  html, body { background: #fff !important; }
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing #print-root { display: block !important; }
  #print-root .sheet { box-shadow: none; padding: 0; max-width: none; width: auto; }
  #print-root .doc-cols { grid-template-columns: 1fr 1.25fr; }
  #print-root .watermark { color: rgba(0, 0, 0, .05); }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* printing the app itself without a document: hide chrome */
  body:not(.printing) .sidebar, body:not(.printing) .topbar, body:not(.printing) .tour-tip, body:not(.printing) .tour-spot, body:not(.printing) .tour-block { display: none !important; }
  body:not(.printing) .main { margin-left: 0 !important; }
}
