/* Customer documents: common screen preview and physical-page print layout. */
.jet-document-standard { color:#162a43; font:10pt/1.4 Arial,Helvetica,sans-serif; }
.jet-document-standard * { box-sizing:border-box; }
.jet-document-standard p { margin:0 0 3mm; }
.standard-letterhead { display:flex; justify-content:space-between; align-items:center; gap:8mm; margin-bottom:5mm; font-size:8pt; line-height:1.5; }
.standard-letterhead img { display:block; width:36mm; height:27mm; object-fit:contain; }
.standard-letterhead.compact img { width:28mm; height:21mm; }
.standard-document-heading { display:flex; justify-content:space-between; padding:2.4mm 3mm; background:#082841; color:white; font-weight:bold; font-size:12pt; margin-bottom:5mm; }
.standard-customer, .standard-agreement-parties { display:flex; justify-content:space-between; gap:7mm; font-size:9pt; margin-bottom:5mm; }
.standard-customer>div, .standard-agreement-parties>div { flex:1 1 0; min-width:0; overflow-wrap:anywhere; }
.standard-hero { display:flex; justify-content:space-between; align-items:center; gap:6mm; background:#eef4f8; border-left:1.2mm solid #f47e26; padding:4mm; margin:0 0 5mm; break-inside:avoid; }
.standard-hero>div:first-child { flex:1 1 0; min-width:0; }
.standard-hero span { font-size:8.5pt; }
.standard-hero h1 { font-size:17pt; line-height:1.15; margin:1mm 0 0; }
.standard-hero-price { flex:0 0 48mm; text-align:right; }
.standard-hero-price strong { display:block; font-size:20pt; line-height:1.2; white-space:nowrap; }
.standard-hero-price small { font-size:8pt; }
.standard-section-title { font-size:11pt; color:#082841; margin:5mm 0 2mm; padding-bottom:1.4mm; border-bottom:.5pt solid #b9cddd; break-after:avoid; page-break-after:avoid; }
.standard-table { width:100%; border-collapse:collapse; table-layout:fixed; font-size:9pt; margin-bottom:3mm; }
.standard-table th, .standard-table td { text-align:left; vertical-align:top; padding:1.4mm 1.8mm; border-bottom:.4pt solid #cbd6e2; overflow-wrap:break-word; }
.standard-table th { color:#082841; background:#eaf1f6; font-weight:bold; }
.standard-table thead { display:table-header-group; }
.standard-table tr { break-inside:avoid; page-break-inside:avoid; }
.standard-table.route th:first-child { width:15mm; white-space:nowrap; }
.standard-table.route th:nth-child(2) { width:95mm; }
.standard-table.prices th:first-child { width:12mm; }
.standard-table.prices th:last-child { width:34mm; text-align:right; }
.standard-table.prices td:last-child, .standard-table.payment td:last-child { text-align:right; white-space:nowrap; }
.standard-secondary { color:#52627a; font-size:8pt; }
.standard-position-details { font-size:7.8pt; line-height:1.25; margin-top:1mm; color:#374d65; }
.standard-total { width:78mm; margin:3mm 0 4mm auto; break-inside:avoid; }
.standard-total>div { display:flex; justify-content:space-between; gap:5mm; padding:1.6mm 0; border-bottom:.4pt solid #cbd6e2; }
.standard-total .grand { font-size:12.5pt; border-bottom:1pt solid #082841; }
.standard-validity, .standard-small { font-size:8pt; color:#52627a; }
.standard-offer-closing { margin-top:2mm; break-inside:avoid; }
.standard-offer.compact { font-size:9.5pt; line-height:1.25; }
.standard-offer.compact p { margin-bottom:2mm; }
.standard-offer.compact .standard-letterhead { margin-bottom:3mm; }
.standard-offer.compact .standard-letterhead img { width:28mm; height:16mm; }
.standard-offer.compact .standard-customer, .standard-offer.compact .standard-document-heading { margin-bottom:2mm; }
.standard-offer.compact .standard-document-heading { padding-top:1.8mm; padding-bottom:1.8mm; font-size:11pt; }
.standard-offer.compact .standard-hero { padding:3mm; margin-bottom:3mm; }
.standard-offer.compact .standard-hero h1 { font-size:16pt; }
.standard-offer.compact .standard-section-title { margin-top:2mm; }
.standard-offer.compact .standard-total { margin-top:2mm; margin-bottom:2mm; }
.standard-offer.compact .standard-total>div { padding-top:1.2mm; padding-bottom:1.2mm; }
.standard-acceptance h1 { font-size:17pt; margin:5mm 0 3mm; }
.standard-acceptance { font-size:9pt; line-height:1.25; }
.standard-acceptance .standard-letterhead { margin-bottom:3mm; }
.standard-acceptance .standard-document-heading { margin-bottom:3mm; }
.standard-acceptance .standard-section-title { margin-top:3mm; }
.standard-acceptance .standard-agreement-parties { margin-bottom:3mm; }
.standard-acceptance .standard-signatures { margin-top:8mm; margin-bottom:3mm; }
.standard-acceptance p { margin-bottom:2mm; }
.standard-acceptance-price { padding:3mm; background:#eef4f8; display:flex; justify-content:space-between; margin-bottom:3mm; }
.standard-checkbox { display:block; width:3.8mm; height:3.8mm; border:.6pt solid #162a43; }
.standard-table.payment th:first-child { width:17mm; }
.standard-table.payment th:last-child { width:56mm; }
.standard-signatures { display:flex; gap:10mm; margin:14mm 0 5mm; }
.standard-signatures>div { flex:1; border-top:.6pt solid #162a43; padding-top:2mm; font-size:8pt; }
.standard-test-notice { border:1pt solid #f47e26; padding:2mm; margin-bottom:3mm; font-size:8pt; }
.standard-notes-box { height:38mm; border:.5pt solid #b9cddd; margin:3mm 0; }
.standard-checkbox.inline { display:inline-block; vertical-align:middle; margin-right:2mm; }
.standard-review { display:flex; align-items:center; gap:5mm; margin-top:10mm; }
.standard-review img { width:30mm; height:30mm; object-fit:contain; }
.standard-completion { font-size:9pt; line-height:1.3; }
.standard-completion h1 { font-size:17pt; line-height:1.2; margin:3mm 0; }
.standard-completion .standard-letterhead, .standard-completion .standard-document-heading, .standard-completion .standard-customer { margin-bottom:3mm; }
.standard-completion .standard-section-title { margin-top:3mm; }
.standard-completion p { margin-bottom:2mm; }
.standard-completion .standard-notes-box { height:30mm; }
.standard-completion .standard-signatures { margin-top:8mm; }
.standard-completion .standard-review { margin-top:5mm; }
.standard-completion .standard-review img { width:24mm; height:24mm; }
.standard-signatures, .standard-review { break-inside:avoid; page-break-inside:avoid; }
/* Compact photo overview, scoped to the new document view; keep the saved photo order. */
.jet-document-standard .attachment-doc-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8pt; }
.jet-document-standard .attachment-doc-item { margin:0; padding:4pt; gap:4pt; border:.4pt solid #b9cddd; border-radius:0; break-inside:avoid; page-break-inside:avoid; }
.jet-document-standard .attachment-doc-thumb { display:block; width:100%; height:auto; padding:0; border:0; background:white; }
.jet-document-standard .attachment-doc-thumb img { display:block; width:100%; height:auto; max-height:none; aspect-ratio:4/3; object-fit:cover; border-radius:0; }
.jet-document-standard .attachment-doc-item figcaption { font:7pt/1.28 Arial,Helvetica,sans-serif; color:#52627a; overflow-wrap:anywhere; }
@media screen {
  .jet-document-standard { background:white; padding:10mm; }
  .jet-document-standard>.standard-offer, .jet-document-standard>.standard-acceptance { margin:0 auto 8mm; max-width:178mm; }
  .standard-price-page { border-top:1px dashed #b9cddd; margin-top:8mm; padding-top:3mm; }
}
@media print {
  html:has(.jet-document-standard), body:has(.jet-document-standard) { width:auto !important; min-width:0 !important; max-width:none !important; margin:0 !important; padding:0 !important; background:white !important; }
  .jet-document-standard, .document-preview.jet-document-standard { width:auto !important; max-width:none !important; min-height:0 !important; padding:0 !important; margin:0 !important; overflow:visible !important; background:white !important; font:10pt/1.4 Arial,Helvetica,sans-serif !important; zoom:1 !important; }
  .jet-document-standard .standard-offer, .jet-document-standard .standard-acceptance, .jet-document-standard .standard-next-step, .jet-document-standard .standard-completion { width:auto !important; height:auto !important; min-height:0 !important; max-height:none !important; padding:0 !important; margin:0 !important; display:block !important; overflow:visible !important; }
  .jet-document-standard .company-footer { display:none !important; }
  .jet-document-standard .standard-price-page { break-before:page; page-break-before:always; }
  .jet-document-standard .standard-acceptance, .jet-document-standard .legal-attachment-page { break-before:page; page-break-before:always; }
  .jet-document-standard .legal-attachment-page { width:auto !important; min-width:0 !important; height:auto !important; min-height:0 !important; max-height:none !important; padding:0 !important; margin:0 !important; overflow:visible !important; display:block !important; break-inside:auto; page-break-inside:auto; }
  .jet-document-standard .legal-attachment-content { width:auto !important; margin:0 !important; padding:0 !important; overflow:visible !important; }
  .jet-document-standard .legal-attachment-page .din-letter-head { display:none !important; }
  .jet-document-standard .legal-attachment-page .doc-title { width:auto !important; margin:0 0 3mm !important; padding:2mm 3mm !important; font-size:12pt !important; }
  .jet-document-standard .legal-attachment-page .legal-subtitle { margin-bottom:3mm; font-size:8pt; }
  .jet-document-standard .legal-text-body, .jet-document-standard .legal-smallprint .legal-text-body { font-size:7.7pt !important; line-height:1.22 !important; column-count:1 !important; }
  .jet-document-standard .legal-text-body p { margin:0 0 1.5mm; }
  .jet-document-standard .legal-text-body p>strong { break-after:avoid; }
  .jet-document-standard>.doc-section.attachment-doc-section { width:auto !important; margin:0 !important; break-before:page; page-break-before:always; }
  .jet-document-standard .attachment-doc-section h3 { break-after:avoid; page-break-after:avoid; }
  .jet-document-standard .attachment-doc-grid { width:auto !important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8pt; }
  .jet-document-standard .attachment-doc-item { break-inside:avoid; page-break-inside:avoid; }
  .jet-document-standard .attachment-doc-thumb { height:auto !important; border:0; background:white; padding:0; }
  .jet-document-standard .attachment-doc-thumb img { height:auto; max-height:none; aspect-ratio:4/3; object-fit:cover; background:white; }
  .jet-document-standard .company-footer, .jet-document-standard .time-doc-table { display:none !important; }
  .standard-test-notice { display:block; }
}

/* Company issuer record belongs only to the contractor half of the new agreement view. */
.jet-document-standard .standard-contractor-party { display:grid; grid-template-columns:minmax(0,1fr) 80pt; gap:2pt 8pt; align-items:start; break-inside:avoid; page-break-inside:avoid; }
.jet-document-standard .standard-acceptance .standard-agreement-parties { margin-bottom:2pt; }
.jet-document-standard .standard-company-address { grid-column:1; grid-row:1; font-size:8pt; line-height:1.3; }
.jet-document-standard .standard-issuer-proof { display:contents; }
.jet-document-standard .standard-proof-qr { display:block; grid-column:2; grid-row:1; width:80pt; height:80pt; }
.jet-document-standard .standard-proof-qr svg { display:block; width:100%; height:100%; }
.jet-document-standard .standard-proof-meta { grid-column:1 / -1; grid-row:2; font:7.4pt/1.26 Arial,Helvetica,sans-serif; color:#52627a; }
.jet-document-standard .standard-proof-placeholder { padding:5pt; border:.4pt solid #bccad9; color:#526172; text-align:center; font-size:7pt; }
