@page { size: A4; margin: 10mm; }
.a4-document, .a4-document * { box-sizing: border-box; }
.a4-document { position: relative; width: 190mm; min-height: 277mm; margin: 0 auto; overflow: hidden; padding: 8mm; color: #111827; background: #fff; box-shadow: 0 18px 48px rgba(29,35,54,.14); font-family: DejaVu Sans, Arial, sans-serif; font-size: 8pt; line-height: 1.35; }
.a4-document table { font-family: DejaVu Sans, Arial, sans-serif; font-size: 8pt; }
.proposal-section-content font[face="Arial"] { font-family: Arial, DejaVu Sans, sans-serif; }
.proposal-section-content font[face="Poppins"], .proposal-section-content font[face="Lato"], .proposal-section-content font[face="Calibri"], .proposal-section-content font[face="Roboto"] { font-family: DejaVu Sans, Arial, sans-serif; }
.proposal-section-content font[face="Bodoni Moda"], .proposal-section-content font[face="Times New Roman"] { font-family: DejaVu Serif, Times New Roman, serif; }
.doc-table { width: 100%; margin: 0; border-collapse: collapse; table-layout: fixed; text-align: left; }
.doc-table td, .doc-table th { vertical-align: top; }
.doc-header { border: 1px solid #9ca3af; border-top: 4px solid var(--tenant-brand, #25b979); }
.doc-header > tbody > tr > td { height: 32mm; padding: 3mm; }
.doc-brand-cell { width: 66%; }
.doc-title-cell { width: 34%; text-align: right; }
.doc-title-cell h1 { margin: 2.5mm 0 .5mm; font-size: 16pt; letter-spacing: 0; }
.doc-brand-layout { width: auto; margin: 0; border-collapse: collapse; table-layout: auto; }
.doc-header .doc-brand-layout td { height: auto; padding: 0; vertical-align: top; }
.doc-logo-cell { width: 1%; border-right: 1px solid #d1d5db; padding-right: 3mm !important; white-space: nowrap; }
.a4-logo-box { display: inline-block; width: auto; height: 16mm; overflow: visible; border: 0; text-align: left; font-size: 17pt; font-weight: 900; line-height: 15.5mm; vertical-align: top; }
.a4-logo-box img { display: block; width: auto; height: 16mm; max-width: 28mm; max-height: 16mm; margin: 0; object-fit: contain; object-position: left top; vertical-align: top; }
.doc-brand-copy { width: auto; padding: 0 0 0 3mm !important; text-align: left; }
.doc-brand-copy strong, .doc-brand-copy small, .doc-bill-cell span { display: block; }
.doc-brand-copy strong { margin-bottom: 1mm; font-size: 9pt; }
.doc-brand-copy small { color: #4b5563; font-size: 7pt; white-space: pre-line; }
.doc-meta { border: 1px solid #9ca3af; border-top: 0; }
.doc-meta > tbody > tr > td { height: 30mm; padding: 3mm; }
.doc-bill-cell { width: 60%; }
.doc-info-cell { width: 40%; }
.doc-info-cell table, .doc-totals-cell table { width: 100%; border-collapse: collapse; }
.doc-info-cell th, .doc-info-cell td { border-bottom: 1px solid #e5e7eb; padding: 1mm 0; }
.doc-info-cell th { text-align: left; }
.doc-info-cell td { text-align: right; }
.a4-subject { border: 1px solid #9ca3af; border-top: 0; padding: 2mm 3mm; }
.a4-subject p { margin: 1mm 0 0; }
.proposal-document-sections { border: 1px solid #9ca3af; border-top: 0; padding: 2.2mm 3mm; }
.proposal-document-section { page-break-inside: avoid; margin: 0 0 2.4mm; line-height: 1.25; }
.proposal-document-section:last-child { margin-bottom: 0; }
.proposal-document-section h2 { margin: 0 0 .8mm; font-size: 9.5pt; line-height: 1.15; }
.proposal-section-content { font-size: 7.6pt; line-height: 1.28; }
.proposal-section-content p { margin: 0 0 1.2mm; }
.proposal-section-content p:last-child { margin-bottom: 0; }
.proposal-section-content img { display: block; max-width: 100%; max-height: 88mm; margin: 2mm 0; object-fit: contain; }
.proposal-section-content h1 { margin: 1.5mm 0 .8mm; font-size: 14pt; line-height: 1.1; }
.proposal-section-content h2 { margin: 1.2mm 0 .7mm; font-size: 10.5pt; }
.proposal-section-content h3 { margin: 1mm 0 .6mm; font-size: 9pt; }
.proposal-section-content ul, .proposal-section-content ol { margin: .8mm 0 1.2mm; padding-left: 5mm; }
.proposal-section-content li { margin: 0 0 .4mm; }
.proposal-cover-sheet { position: relative; box-sizing: border-box; width: 210mm; height: 296.5mm; min-height: 296.5mm; margin: -8mm -8mm 8mm; overflow: hidden; padding: 16mm; color: #fff; page-break-after: always; }
.proposal-cover-brand, .proposal-client-logo, .proposal-cover-copy, .proposal-cover-footer { z-index: 1; }
.proposal-cover-brand, .proposal-client-logo { position: absolute; width: 65mm; min-height: 18mm; }
.proposal-cover-brand img, .proposal-client-logo img { max-width: 55mm; max-height: 20mm; object-fit: contain; }
.proposal-cover-sheet .cover-item-top-left { top: 16mm; left: 16mm; text-align: left; }
.proposal-cover-sheet .cover-item-top-right { top: 16mm; right: 16mm; text-align: right; }
.proposal-cover-sheet .cover-item-bottom-left { bottom: 16mm; left: 16mm; text-align: left; }
.proposal-cover-sheet .cover-item-bottom-right { right: 16mm; bottom: 16mm; text-align: right; }
.proposal-cover-copy { position: absolute; left: 16mm; right: 16mm; }
.proposal-cover-copy.cover-copy-top { top: 54mm; }
.proposal-cover-copy.cover-copy-middle { top: 128mm; }
.proposal-cover-copy.cover-copy-bottom { bottom: 28mm; }
.proposal-cover-copy.cover-align-left { text-align: left; }
.proposal-cover-copy.cover-align-center { text-align: center; }
.proposal-cover-copy.cover-align-right { text-align: right; }
.proposal-cover-copy h1 { max-width: 135mm; margin: 0 0 8mm; font-size: 30pt; line-height: 1.15; }
.proposal-cover-copy p { margin: 1.5mm 0; font-size: 10pt; }
.proposal-cover-note { margin-top: 5mm !important; font-size: 9pt !important; opacity: .88; }
.proposal-pdf-cover { width: 190mm; height: 277mm; border-collapse: collapse; table-layout: fixed; color: #fff; page-break-after: always; }
.proposal-pdf-cover td { border: 0; padding: 0; }
.proposal-pdf-cover-main { width: 168mm; padding: 16mm !important; }
.proposal-pdf-cover-accent { width: 22mm; }
.proposal-pdf-cover-content { width: 100%; height: 245mm; border-collapse: collapse; table-layout: fixed; }
.proposal-pdf-cover-content td { width: 50%; }
.proposal-pdf-logo-row { height: 24mm; }
.proposal-pdf-logo-row td { vertical-align: top; }
.proposal-pdf-logo-row td:last-child { text-align: right; }
.proposal-pdf-bottom-row td { vertical-align: bottom; }
.proposal-pdf-logo { display: block; margin-bottom: 2mm; font-size: 12pt; font-weight: 700; }
.proposal-pdf-logo img { max-width: 52mm; max-height: 18mm; object-fit: contain; }
.proposal-pdf-cover-copy { height: 191mm; vertical-align: bottom; }
.proposal-pdf-cover-copy.cover-copy-top { vertical-align: top; }
.proposal-pdf-cover-copy.cover-copy-middle { vertical-align: middle; }
.proposal-pdf-cover-copy.cover-copy-bottom { vertical-align: bottom; }
.proposal-pdf-cover-copy.cover-align-left { text-align: left; }
.proposal-pdf-cover-copy.cover-align-center { text-align: center; }
.proposal-pdf-cover-copy.cover-align-right { text-align: right; }
.proposal-pdf-cover-copy h1 { margin: 0 0 8mm; font-size: 30pt; line-height: 1.15; }
.proposal-pdf-cover-copy p { margin: 1.5mm 0; font-size: 10pt; }
.proposal-pdf-cover-footer { height: 8mm; border-top: .2mm solid rgba(255,255,255,.45) !important; padding-top: 2mm !important; color: rgba(255,255,255,.82); font-size: 6.5pt; }
.proposal-pdf-cover-footer span:last-child { float: right; }
.proposal-cover-footer { position: absolute; left: 16mm; right: 16mm; bottom: 9mm; display: table; width: calc(100% - 32mm); border-top: .2mm solid rgba(255,255,255,.45); padding-top: 2mm; color: rgba(255,255,255,.82); font-size: 6.5pt; }
.proposal-cover-footer span { display: table-cell; }
.proposal-cover-footer span:last-child { text-align: right; }
.proposal-page-break { page-break-before: always; }
.proposal-section-content blockquote { border-left: 1.2mm solid #f2c94c; margin: 1.5mm 0; padding: 1.2mm 2mm; background: #fff8d8; }
.proposal-timeline { display: grid; grid-template-columns: repeat(28, 1fr); grid-auto-rows: 7mm; gap: 1mm 0; margin-top: 3mm; padding: 1.5mm 0; background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(3.571% - .2mm), #edf0f5 calc(3.571% - .2mm), #edf0f5 3.571%); }
.proposal-phase { grid-column: var(--phase-start) / span var(--phase-span); grid-row: var(--phase-row); min-width: 12mm; overflow: hidden; border-left: .7mm solid #2476ff; background: #dfeaff; padding: 1.4mm 2mm; white-space: nowrap; }
.proposal-phase strong, .proposal-phase small { display: block; }
.proposal-phase strong { font-size: 7.5pt; }
.proposal-timeline-notes { margin-top: 4mm; color: #526078; font-size: 7.5pt; }
.proposal-timeline-notes p { margin: 0 0 1.5mm; }
.proposal-timeline-summary { margin-top: 4mm; }
.proposal-signoff { width: auto; margin-top: 2mm; }
.proposal-signoff td { border: 0; padding: 0 3mm 0 0; vertical-align: middle; }
.proposal-signoff td:first-child img { width: 11mm; height: 11mm; border-radius: 50%; object-fit: cover; }
.proposal-signoff strong, .proposal-signoff small { display: block; }
.proposal-signoff .proposal-signature-image { width: 22mm; max-height: 8mm; margin-top: 1mm; object-fit: contain; object-position: left center; }
.proposal-work-list { margin-top: 1.5mm; }
.proposal-work-item { width: 100%; margin-bottom: 2mm; page-break-inside: avoid; }
.proposal-work-item td { border: 0; padding: 1.2mm; vertical-align: middle; }
.proposal-work-item .work-image { width: 42%; }
.proposal-work-item img { width: 100%; max-height: 34mm; object-fit: cover; }
.proposal-work-item strong { display: block; margin-bottom: .8mm; font-size: 9pt; }
.proposal-work-item p { margin: 0; color: #526078; }
.proposal-section-content { color: #374151; }
.proposal-section-content p { margin: 0 0 1.5mm; }
.proposal-section-content h2 { margin: 0 0 1.5mm; font-size: 10pt; }
.proposal-section-content h3 { margin: 0 0 1mm; font-size: 9pt; }
.proposal-section-content ul, .proposal-section-content ol { margin: 0 0 1.5mm; padding-left: 5mm; }
.proposal-work-grid { width: 100%; margin-top: 2.5mm; border-collapse: separate; border-spacing: 2mm 0; table-layout: fixed; }
.proposal-work-grid td { padding: 0; vertical-align: top; }
.proposal-work-grid img { display: block; width: 100%; height: 27mm; object-fit: cover; }
.proposal-work-grid small { display: block; margin-top: 1mm; color: #4b5563; font-size: 6.5pt; }
.doc-detail-strip { display: table; width: 100%; border: 1px solid #9ca3af; border-top: 0; table-layout: fixed; }
.doc-detail-strip > span { display: table-cell; padding: 2mm 3mm; border-right: 1px solid #d1d5db; font-size: 7pt; }
.doc-detail-strip > span:last-child { border-right: 0; }
.doc-detail-strip b { display: block; margin-bottom: .5mm; color: #4b5563; font-size: 6.5pt; }
.doc-lines { border: 1px solid #9ca3af; border-top: 0; }
.doc-lines th { background: #f3f4f6; text-transform: uppercase; font-size: 7.5pt; text-align: left; }
.doc-lines th, .doc-lines td { border-right: 1px solid #cfd4dc; border-bottom: 1px solid #cfd4dc; padding: 2mm; }
.doc-lines th:last-child, .doc-lines td:last-child { border-right: 0; text-align: right; }
.doc-lines th:not(:last-child), .doc-lines td:not(:last-child) { text-align: left; }
.doc-lines th:nth-child(1), .doc-lines td:nth-child(1) { width: 6%; }
.doc-lines th:nth-child(2), .doc-lines td:nth-child(2) { width: 54%; }
.doc-lines th:nth-child(3), .doc-lines td:nth-child(3) { width: 10%; }
.doc-lines th:nth-child(4), .doc-lines td:nth-child(4) { width: 13%; }
.doc-lines th:nth-child(5), .doc-lines td:nth-child(5) { width: 17%; }
.doc-lines tbody td { height: 13mm; }
.doc-lines small { display: block; margin-top: 1mm; color: #4b5563; }
.doc-summary { border: 1px solid #9ca3af; border-top: 0; }
.doc-summary > tbody > tr > td { height: 34mm; }
.doc-notes-cell { width: 60%; padding: 3mm; }
.doc-notes-cell p { margin: 1mm 0 2.5mm; }
.doc-totals-cell { width: 40%; border-left: 1px solid #9ca3af; padding: 0; }
.doc-totals-cell th, .doc-totals-cell td { border-bottom: 1px solid #cfd4dc; padding: 1.8mm 2.5mm; }
.doc-totals-cell th { text-align: left; font-weight: 400; }
.doc-totals-cell td { text-align: right; font-weight: 700; }
.doc-totals-cell .doc-grand-total th, .doc-totals-cell .doc-grand-total td { font-family: DejaVu Sans, Arial, sans-serif; font-size: 10pt; font-weight: 700; }
.doc-footer { border: 1px solid #9ca3af; border-top: 0; }
.doc-footer td { height: 22mm; padding: 2.5mm 3mm; }
.doc-footer td:first-child { width: 60%; }
.doc-footer td:first-child strong { margin-left: 5mm; }
.doc-evolvv-mark { position: absolute; left: 8mm; bottom: 8mm; color: #6b7280; text-align: left; }
.doc-evolvv-mark img { display: block; width: 15.2mm; height: auto; margin: 0 0 .8mm; }
.doc-evolvv-mark small { display: block; font-size: 5.5pt; line-height: 1.2; }
.proposal-custom-footer { position: absolute; left: 30mm; right: 8mm; bottom: 8mm; display: table; width: calc(100% - 38mm); border-top: .2mm solid #d7dce5; padding-top: 1.5mm; color: #6b7280; font-size: 6pt; }
.proposal-custom-footer span { display: table-cell; }
.proposal-custom-footer span:last-child { text-align: right; }
.proposal-page-number::after { content: counter(page); }
.doc-signature-cell { width: 40%; text-align: center; }
.doc-signature-line { display: block; border-top: 1px solid #9ca3af; margin-bottom: 1.5mm; }
.doc-signature-cell img { display: block; max-width: 31mm; max-height: 11mm; margin: 0 auto 1mm; }
.doc-signature-cell > span:last-child { display: block; }
.proposal-a4-document .doc-header > tbody > tr > td { height: 27mm; }
.proposal-a4-document .doc-meta > tbody > tr > td { height: 25mm; }
.proposal-a4-document .doc-lines tbody td { height: 9mm; }
.proposal-a4-document .doc-summary > tbody > tr > td { height: 23mm; }
.proposal-a4-document .doc-footer td { height: 18mm; }
.proposal-page { width: 190mm; height: 277mm; min-height: 277mm; margin-bottom: 8mm; padding: 15mm; page-break-after: always; overflow: hidden; }
.proposal-page:last-child { page-break-after: auto; }
.proposal-cover-page { position: relative; color: #fff; }
.proposal-cover-page .proposal-cover-brand, .proposal-cover-page .proposal-client-logo { position: absolute; z-index: 2; width: 72mm; min-height: 24mm; }
.proposal-cover-page .proposal-cover-brand img, .proposal-cover-page .proposal-client-logo img { display: inline-block; width: auto; max-width: 68mm; max-height: 25mm; object-fit: contain; }
.proposal-cover-page .proposal-cover-brand strong { display: block; max-width: 72mm; font-size: 17pt; line-height: 1.15; }
.proposal-cover-page .cover-item-top-left { top: 15mm; left: 15mm; text-align: left; }
.proposal-cover-page .cover-item-top-right { top: 15mm; right: 15mm; text-align: right; }
.proposal-cover-page .cover-item-bottom-left { bottom: 15mm; left: 15mm; text-align: left; }
.proposal-cover-page .cover-item-bottom-right { right: 15mm; bottom: 15mm; text-align: right; }
.proposal-cover-page .proposal-cover-copy { left: 15mm; right: 15mm; }
.proposal-cover-page .proposal-cover-copy.cover-copy-top { top: 54mm; }
.proposal-cover-page .proposal-cover-copy.cover-copy-middle { top: 122mm; }
.proposal-cover-page .proposal-cover-copy.cover-copy-bottom { bottom: 31mm; }
.proposal-cover-kind { display: block; margin-bottom: 4mm; font-size: 7pt; font-weight: 700; letter-spacing: 1.5px; }
.proposal-page-header { display: table; width: 100%; border-bottom: .4mm solid #2476ff; padding-bottom: 3mm; color: #667085; font-size: 7pt; }
.proposal-page-header span, .proposal-page-header strong { display: table-cell; }
.proposal-page-header strong { color: #172033; text-align: right; }
.proposal-page-body { padding-top: 13mm; }
.proposal-page-body > h1 { margin: 0 0 7mm; color: #172033; font-size: 22pt; line-height: 1.1; }
.proposal-content-page .proposal-section-content { font-size: 9.5pt; line-height: 1.55; }
.proposal-content-page .proposal-section-content p { margin-bottom: 3mm; }
.proposal-page-footer { position: absolute; right: 15mm; bottom: 8mm; left: 15mm; display: table; width: calc(100% - 30mm); border-top: .2mm solid #d7dce5; padding-top: 2mm; color: #667085; font-size: 6.5pt; }
.proposal-cover-page .proposal-page-footer { border-color: rgba(255,255,255,.45); color: rgba(255,255,255,.85); }
.proposal-page-footer span { display: table-cell; }
.proposal-page-footer span:last-child { text-align: right; }
.proposal-page-eyebrow { margin: 0 0 2mm; color: #2476ff; font-size: 7pt; font-weight: 700; text-transform: uppercase; }
.proposal-investment-intro { margin: -3mm 0 9mm; color: #667085; font-size: 9pt; }
.proposal-estimate-header { width: 100%; border-collapse: collapse; border-top: 1mm solid #2476ff; border-bottom: .2mm solid #aeb7c5; }
.proposal-estimate-header td { width: 50%; padding: 4mm 2mm; vertical-align: top; }
.proposal-estimate-header td:last-child { text-align: right; }
.proposal-estimate-header img { display: block; max-width: 48mm; max-height: 16mm; margin-bottom: 1.5mm; object-fit: contain; object-position: left center; }
.proposal-estimate-header small, .proposal-estimate-header span { display: block; color: #667085; }
.proposal-estimate-header h2 { margin: 0 0 1mm; font-size: 17pt; }
.proposal-estimate-meta { width: 100%; margin: 0 0 9mm; border-collapse: collapse; }
.proposal-estimate-meta td { width: 50%; border-bottom: .2mm solid #d7dce5; padding: 3mm 2mm; vertical-align: top; }
.proposal-estimate-meta td:last-child { text-align: right; }
.proposal-estimate-meta strong, .proposal-estimate-meta span { display: block; }
.proposal-estimate-dates { width: 100%; border-collapse: collapse; color: #667085; }
.proposal-estimate-dates td { width: auto; border: 0; padding: 0 0 1.5mm; }
.proposal-estimate-dates td:first-child { text-align: left; }
.proposal-estimate-dates td:last-child { text-align: right; color: #172033; }
.proposal-investment-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 8.5pt; }
.proposal-investment-table th, .proposal-investment-table td { border-bottom: .2mm solid #d7dce5; padding: 3.5mm 2mm; text-align: left; vertical-align: top; }
.proposal-investment-table th:nth-child(2), .proposal-investment-table td:nth-child(2) { width: 17%; text-align: center; }
.proposal-investment-table th:last-child, .proposal-investment-table td:last-child { width: 25%; text-align: right; }
.proposal-investment-table small { display: block; margin-top: 1mm; color: #667085; }
.proposal-investment-table tfoot th { border-top: .6mm solid #172033; border-bottom: 0; padding-top: 5mm; font-size: 11pt; }
.proposal-investment-note { margin-top: 8mm; color: #344054; }
.proposal-investment-note p { margin: 1.5mm 0 0; white-space: pre-line; }
.document-pdf-body { width: 100%; margin: 0; background: #fff; }
.document-pdf-body .a4-document { width: auto; min-height: 0; margin: 0; padding: 0; overflow: visible; box-shadow: none; }
.document-pdf-body .proposal-cover-sheet { box-sizing: border-box; width: 210mm; height: 296.5mm; min-height: 296.5mm; margin: 0; }
.document-pdf-body .doc-evolvv-mark { position: fixed; left: 0; bottom: 0; }
.document-pdf-body .proposal-a4-document .doc-evolvv-mark { display: none; }
.document-pdf-body .proposal-custom-footer { position: fixed; left: 22mm; right: 0; bottom: 0; width: auto; }
.document-pdf-body .proposal-page { width: 180mm; height: 267mm; min-height: 267mm; margin: 0; padding: 15mm; box-shadow: none; }
.proposal-pdf-page, .proposal-pdf-page * { font-family: DejaVu Sans, Arial, sans-serif; }
.proposal-pdf-page { width: 210mm; height: 297mm; margin: 0; border-collapse: collapse; table-layout: fixed; page-break-after: always; color: #172033; background: #fff; }
.proposal-pdf-page:last-child { page-break-after: auto; }
.proposal-pdf-page > tbody > tr > td { padding: 0 20mm; vertical-align: top; }
.proposal-pdf-cover, .proposal-pdf-cover h1, .proposal-pdf-cover p, .proposal-pdf-cover strong, .proposal-pdf-cover span { color: #fff; }
.proposal-pdf-cover > tbody > tr > td { padding-right: 16mm; padding-left: 16mm; }
.proposal-pdf-cover-brand-row { height: 42mm; }
.proposal-pdf-cover-brand { width: 100%; border-collapse: collapse; table-layout: fixed; }
.proposal-pdf-cover-brand td { width: 50%; padding: 16mm 0 0; vertical-align: top; }
.proposal-pdf-cover-brand-right { text-align: right; }
.proposal-pdf-cover-brand img { display: inline-block; max-width: 62mm; max-height: 22mm; object-fit: contain; }
.proposal-pdf-cover-brand strong { display: inline-block; max-width: 62mm; font-size: 16pt; line-height: 1.15; }
.proposal-pdf-cover-copy-row { height: 242mm; }
.proposal-pdf-cover-copy { vertical-align: bottom !important; padding-bottom: 28mm !important; }
.proposal-pdf-cover-copy.cover-copy-top { vertical-align: top !important; padding-top: 15mm !important; padding-bottom: 0 !important; }
.proposal-pdf-cover-copy.cover-copy-middle { vertical-align: middle !important; padding-bottom: 0 !important; }
.proposal-pdf-cover-copy h1 { margin: 0 0 8mm; font-size: 30pt; line-height: 1.15; }
.proposal-pdf-cover-copy p { margin: 1.5mm 0; font-size: 10pt; }
.proposal-pdf-cover-copy.cover-align-center { text-align: center; }
.proposal-pdf-cover-copy.cover-align-right { text-align: right; }
.proposal-pdf-cover-kind { display: block; margin-bottom: 4mm; font-size: 7pt; font-weight: 700; letter-spacing: 1.5px; }
.proposal-pdf-cover-note { margin-top: 5mm !important; font-size: 9pt !important; }
.proposal-pdf-header td { padding-top: 15mm !important; padding-bottom: 3mm !important; border-bottom: .4mm solid #2476ff; color: #667085; font-size: 7pt; }
.proposal-pdf-header span { float: left; }
.proposal-pdf-header strong { float: right; color: #172033; }
.proposal-pdf-content > td { padding-top: 15mm; }
.proposal-pdf-content h1 { margin: 0 0 7mm; color: #172033; font-size: 22pt; line-height: 1.1; }
.proposal-pdf-section-title { width: 100%; margin: 0 0 7mm; border-collapse: collapse; color: #172033; font-size: 22pt; font-weight: 700; line-height: 1.1; }
.proposal-pdf-section-title td { padding: 0; }
.proposal-pdf-content-page .proposal-section-content { font-size: 9.5pt; line-height: 1.55; }
.proposal-pdf-content-page .proposal-section-content p { margin-bottom: 3mm; }
.proposal-pdf-footer td { border-top: .2mm solid #d7dce5; padding-top: 2mm !important; padding-bottom: 8mm !important; color: #667085; font-size: 6.5pt; }
.proposal-pdf-footer span:last-child { float: right; }
.proposal-pdf-cover-footer td { border-color: rgba(255,255,255,.45); color: rgba(255,255,255,.85); }
.proposal-pdf-timeline { width: 100%; margin-top: 3mm; border-collapse: collapse; table-layout: fixed; }
.proposal-pdf-timeline td { height: 7mm; border-right: .2mm solid #edf0f5; padding: 0; }
.proposal-pdf-timeline td:last-child { border-right: 0; }
.proposal-pdf-timeline .proposal-pdf-phase { border-left: .7mm solid #2476ff; background: #dfeaff; padding: 1.4mm 2mm; white-space: nowrap; font-size: 7.5pt; }
.proposal-pdf-investment-page > tbody > tr:first-child { height: 38mm; }
.proposal-pdf-investment-page > tbody > tr:first-child > td { padding-top: 20mm; }

/* Dompdf does not honour table row heights as a page grid. Anchor every PDF region
   to the A4 canvas so the download uses the exact same geometry as the previews. */
div.proposal-pdf-page { position: relative; width: 210mm; height: 297mm; overflow: hidden; page-break-inside: avoid; page-break-after: always; border-collapse: separate; }
div.proposal-pdf-page:last-child { page-break-after: auto; }
div.proposal-pdf-cover { color: #fff; }
div.proposal-pdf-cover-brand { position: absolute; top: 16mm; right: 16mm; left: 16mm; width: auto; }
div.proposal-pdf-cover-brand-left { float: left; width: 48%; }
div.proposal-pdf-cover-brand-right { float: right; width: 48%; text-align: right; }
div.proposal-pdf-cover-brand img { max-width: 62mm; max-height: 22mm; }
div.proposal-pdf-cover-copy { position: absolute; right: 16mm; bottom: 28mm; left: 16mm; height: auto; padding: 0; clear: both; vertical-align: baseline; }
div.proposal-pdf-cover-copy.cover-copy-top { top: 54mm; bottom: auto; padding: 0; }
div.proposal-pdf-cover-copy.cover-copy-middle { top: 128mm; bottom: auto; padding: 0; }
div.proposal-pdf-header { position: absolute; top: 15mm; right: 20mm; left: 20mm; height: 7mm; padding: 0 0 3mm; border-bottom: .4mm solid #2476ff; color: #667085; font-size: 7pt; }
div.proposal-pdf-content { position: absolute; top: 40mm; right: 20mm; bottom: 22mm; left: 20mm; padding: 0; page-break-inside: avoid; }
/* Dompdf treats a table with dynamic colspans as a new flow context. Keep the
   timeline on the same 40mm body baseline when that legacy branch is used. */
div.proposal-pdf-timeline-content { padding-top: 40mm; }
div.proposal-pdf-footer { position: absolute; right: 20mm; bottom: 8mm; left: 20mm; padding-top: 2mm; border-top: .2mm solid #d7dce5; color: #667085; font-size: 6.5pt; }
div.proposal-pdf-cover-footer { right: 16mm; left: 16mm; border-color: rgba(255,255,255,.45); color: rgba(255,255,255,.85); }
div.proposal-pdf-investment-page .proposal-pdf-estimate-header { position: absolute; top: 20mm; right: 20mm; left: 20mm; }
div.proposal-pdf-investment-page .proposal-pdf-content { top: 60mm; }

/* One A4 grid for the standard preview, editor preview, print view and PDF. */
.proposal-page { width: 210mm; height: 297mm; min-height: 297mm; margin-bottom: 8mm; padding: 20mm; }
.proposal-cover-page { padding: 0; }
.proposal-cover-page .cover-item-top-left { top: 16mm; left: 16mm; }
.proposal-cover-page .cover-item-top-right { top: 16mm; right: 16mm; }
.proposal-cover-page .cover-item-bottom-left { bottom: 16mm; left: 16mm; }
.proposal-cover-page .cover-item-bottom-right { right: 16mm; bottom: 16mm; }
.proposal-cover-page .proposal-cover-copy { left: 16mm; right: 16mm; }
.proposal-cover-page .proposal-cover-copy.cover-copy-top { top: 54mm; }
.proposal-cover-page .proposal-cover-copy.cover-copy-middle { top: 128mm; }
.proposal-cover-page .proposal-cover-copy.cover-copy-bottom { bottom: 28mm; }
.proposal-page-footer { right: 20mm; bottom: 10mm; left: 20mm; width: calc(100% - 40mm); }
.proposal-cover-page .proposal-page-footer { right: 16mm; bottom: 8mm; left: 16mm; width: calc(100% - 32mm); }
@media print { .a4-document { width: 100%; margin: 0; box-shadow: none; } }
.proposal-cover-sheet:has(.cover-item-bottom-left,.cover-item-bottom-right) .proposal-cover-copy.cover-copy-bottom{bottom:68mm}
