/* Compact reference documents. The paper remains white in either CRM theme. */
.reference-form{box-sizing:border-box;font-family:Arial,sans-serif;color:#000;background:#fff;line-height:1.12;overflow-wrap:anywhere}
.reference-form h2{font-size:11pt;line-height:1.13;font-weight:700;margin:0 0 2mm;color:#000}
.reference-form p{font-size:9pt;line-height:1.13;margin:2mm 0}
.reference-form table{min-width:0;width:100%;border-collapse:collapse;margin:0;font-size:9pt;table-layout:auto}
.reference-form table th,.reference-form table td{color:#000;background:#fff;white-space:normal;font-size:9pt;line-height:1.12;padding:0;border:0;vertical-align:top}
.reference-form table:not(.receipt-fields) th{width:36mm;text-align:left;font-weight:400}
.reference-form table:not(.receipt-fields) td{font-weight:500}
.reference-form .intake-checks{font-size:8.5pt;line-height:1.06;margin:2mm 0}
.reference-form blockquote{margin:2mm 0 0;padding:1.5mm 0 0;border-top:1px solid #222;font-size:8pt;line-height:1.13;text-align:justify;break-inside:avoid}
.reference-signatures{display:flex;justify-content:space-between;gap:8mm;margin-top:3mm;padding-top:2mm;border-top:1px solid #000;font-size:8.5pt;break-inside:avoid}
.reference-signatures span{max-width:48%;overflow-wrap:anywhere}
.reference-act .receipt-fields{margin:2mm 0 0;width:100%;table-layout:auto}
.reference-act .receipt-fields th,.reference-act .receipt-fields td{padding:1mm;border:1px solid #222;font-size:8.5pt;line-height:1.13;vertical-align:top}
.reference-act .receipt-fields th{font-weight:700}
.reference-act .receipt-fields th:first-child{width:6mm}.reference-act .receipt-fields th:nth-child(2){width:10mm;white-space:nowrap}
.reference-act .receipt-fields th:nth-child(4){width:19mm}.reference-act .receipt-fields th:nth-child(5){width:14mm}.reference-act .receipt-fields th:nth-child(6),.reference-act .receipt-fields th:nth-child(7){width:22mm}
.reference-act .receipt-fields td:nth-last-child(-n+2){text-align:right}
.reference-act .reference-total{text-align:right;font-size:9pt;margin:1mm 0 2mm}
.reference-act>table:not(.receipt-fields) td:last-child{width:30mm;text-align:right}
.order-barcode{width:28mm;height:9mm;max-width:100%;fill:#000;display:inline-block;background:#fff}
.reference-label{width:40mm;height:30mm;padding:2mm;overflow:hidden;text-align:center;font-size:10.5pt;line-height:1.08;color:#000;display:flex;flex-direction:column;justify-content:flex-start}
.reference-label h1{font-family:Georgia,'Times New Roman',serif;font-size:16pt;font-style:italic;font-weight:700;line-height:1.05;margin:0 0 1mm;color:#000}
.reference-label>div,.reference-label>p{margin:0;font-size:inherit;line-height:inherit}
.reference-label.label-dense{font-size:8pt;line-height:1.03}.reference-label.label-dense h1{font-size:13pt;margin-bottom:.5mm}
#print-settings-preview .reference-form{padding:12mm;background:#fff;color:#000}
#print-settings-preview .reference-label{padding:2mm;min-height:30mm;width:40mm;height:30mm}
@media print{
 #print-area .reference-form{padding:0;color:#000;background:#fff;box-shadow:none;font-size:9pt}
 #print-area .reference-label{padding:2mm;width:40mm;height:30mm;font-size:10.5pt}
 #print-area .reference-label.label-dense{font-size:8pt}
 #print-area .reference-form h2{font-size:11pt}
 #print-area .reference-form p{font-size:9pt}
 #print-area .reference-label p{font-size:inherit}
 #print-area .reference-form tr{break-inside:avoid}
 #print-area .reference-act .receipt-fields thead{display:table-header-group}
}

.reference-act>table:not(.receipt-fields) td:last-child{position:relative}.reference-act>table:not(.receipt-fields) .order-barcode{position:absolute;right:0;top:0}

/* The editable sheet uses the same compact layout as the printed document. */
#document-editor.reference-form{box-sizing:border-box;width:210mm;min-height:297mm;padding:12mm;color:#000;background:#fff;font:9pt/1.12 Arial,sans-serif}
#document-editor.reference-form h1,#document-editor.reference-form h2,#document-editor.reference-form h3{color:#000}
#document-editor.reference-form h2{font-size:11pt;line-height:1.13;margin:0 0 2mm;font-weight:700}
#document-editor.reference-form p{font-size:9pt;line-height:1.13;margin:2mm 0}
#document-editor.reference-form table{min-width:0;width:100%;margin:0;border:0;border-collapse:collapse;font-size:9pt;table-layout:auto}
#document-editor.reference-form th,#document-editor.reference-form td{padding:0;border:0;background:#fff;color:#000;font-size:9pt;line-height:1.12;white-space:normal;vertical-align:top}
#document-editor.reference-form table:first-of-type th{width:36mm;font-weight:400}
#document-editor.reference-form table:first-of-type td{font-weight:500}
#document-editor.reference-form blockquote{margin:2mm 0 0;padding:1.5mm 0 0;border-top:1px solid #222;font-size:8pt;line-height:1.13;text-align:justify}
#document-editor.reference-label{width:40mm;height:30mm;min-height:30mm;padding:2mm;font-size:10.5pt;line-height:1.08;text-align:center}
#document-editor.reference-label h1{font-family:Georgia,'Times New Roman',serif;font-size:16pt;font-style:italic;font-weight:700;line-height:1.05;margin:0 0 1mm}
#document-editor.reference-label>div,#document-editor.reference-label>p{margin:0;font-size:inherit;line-height:inherit}
