/* Print-sheet geometry, scoped to the editable application. */
.proforma-only-form .editable-proforma.application-paper {
    box-sizing: border-box;
    width: 210mm;
    max-width: 100%;
    min-height: 296mm;
    padding: 12mm 26mm 12mm 32mm;
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    background: white;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    overflow-wrap: anywhere;
}
.proforma-only-form .application-paper[hidden] { display: none; }
.editable-proforma .application-print-head { margin-bottom: 3mm; }
.editable-proforma .application-title { margin: 0; text-align: center; font-size: 26px; line-height: 1.4; font-weight: 800; }
.editable-proforma .application-office-header { text-align: center; margin-bottom: 2mm; font-weight: 700; line-height: 1.45; }
.editable-proforma .application-office-header h2 { margin: 0 0 2mm; font-size: 21px; font-weight: 800; line-height: 1.5; color: #b5222b; }
.editable-proforma .application-contact-photo-row { display: grid; grid-template-columns: 26mm minmax(0, 1fr) 26mm; gap: 4mm; align-items: center; }
.editable-proforma .application-contact-details { grid-column: 2; min-width: 0; }
.editable-proforma .application-office-header p { margin: 0 0 .75mm; font-size: 13px; }
.editable-proforma .application-office-header a { font-size: 13px; color: #1746b4; text-decoration: none; }
.editable-proforma .application-contact-photo-row .proforma-photo-box { grid-column: 3; grid-row: 1; justify-self: end; width: 26mm; height: 30mm; border-color: #7c8798; }
.editable-proforma .application-contact-photo-row img { object-fit: contain; }
.proforma-only-form .editable-proforma .app-row { display: grid; grid-template-columns: 13mm minmax(0, 1fr) 27mm minmax(0, 1fr); gap: 2mm; align-items: baseline; margin-top: 3mm; }
.proforma-only-form .editable-proforma .app-address-row { grid-template-columns: 13mm minmax(0, 1fr); }
.proforma-only-form .editable-proforma .app-row > span { width: 100%; min-width: 0; min-height: 6mm; margin: 0; padding: 0 1mm 1mm; }
.editable-proforma.application-paper > p { margin: 0 0 3mm; }
.editable-proforma.application-paper .app-subject { margin: 4mm 0 3mm; }
.editable-proforma.application-paper ol { margin-top: 2mm; }
.editable-proforma.application-paper li { margin-bottom: 3mm; }
.editable-proforma.application-paper > * { flex-shrink: 0; }
.editable-proforma.application-paper .app-footer { grid-template-columns: 1fr 42mm; margin-top: 9mm; margin-bottom: 6mm; }
.editable-proforma.application-paper .app-office-detail { margin-top: auto; padding-top: 4mm; font-size: 14px; line-height: 1.65; }
.editable-proforma.application-paper .app-office-detail b { font-size: 25px; font-weight: 800; line-height: 1.5; color: #1746b4; }
@media screen and (max-width: 768px) {
    .proforma-only-form .editable-proforma.application-paper { padding: 24px 16px 24px 24px; min-height: 0; }
    .editable-proforma .application-contact-photo-row { grid-template-columns: minmax(0, 1fr) 80px; gap: 12px; }
    .editable-proforma .application-contact-details { grid-column: 1; }
    .editable-proforma .application-contact-photo-row .proforma-photo-box { grid-column: 2; width: 80px; height: 96px; }
    .proforma-only-form .editable-proforma .app-row { grid-template-columns: 1fr; gap: 4px; margin-top: 12px; }
    .editable-proforma.application-paper .app-footer { grid-template-columns: 1fr 1fr; gap: 12px; }
    .editable-proforma.application-paper .applicant-sign { width: auto; }
    .editable-proforma.application-paper .app-office-detail { margin-top: 24px; }
}
