:root{--nav:#20294d;--ink:#171c2d;--accent:#35446d;--line:#dde2ec}*{box-sizing:border-box}body{color:var(--ink);background:#f6f7fa;margin:0}button,a,input,textarea,select{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline-offset:3px;outline:3px solid #a56220}.shell-header{background:var(--nav);color:#fff;align-items:center;gap:14px;padding:18px 28px;display:flex}.shell-header img{object-fit:contain}.shell-header span{opacity:.85}.app-nav{border-bottom:1px solid var(--line);background:#fff;flex-wrap:wrap;gap:8px;padding:12px 28px;display:flex}main{max-width:1600px;margin:auto;padding:24px 28px}.page-title{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;display:flex}.editor-layout{grid-template-columns:minmax(0,1fr) minmax(300px,360px);align-items:start;gap:24px;display:grid}.canvas{background:#e6eaf0;border-radius:12px;min-width:0;padding:16px;overflow:auto}.document{color:#171c2d;overflow-wrap:anywhere;background:#fff;width:210mm;min-height:297mm;margin:auto;padding:18mm 19mm 16mm;font-family:Segoe UI,Arial,sans-serif;font-size:11pt;line-height:1.58;box-shadow:0 3px 14px #20294d20}.letterhead{border-bottom:2px solid var(--accent);color:var(--accent);justify-content:space-between;align-items:center;gap:15px;padding-bottom:18px;font-size:9pt;display:flex}.letterhead>div{white-space:nowrap;align-items:center;gap:10px;font-size:13pt;display:flex}.letterhead img{object-fit:contain}.document h1{color:var(--nav);letter-spacing:-.5pt;margin:25px 0 22px;font-size:25pt;line-height:1.25}.address{white-space:pre-line;line-height:1.5}.document-date{color:#5e6677;margin-top:18px;font-size:9pt}.document h2{color:var(--accent);border-bottom:1px solid var(--line);break-after:avoid;page-break-after:avoid;margin:26px 0 12px;padding-bottom:7px;font-size:15pt;line-height:1.3}.document h3{break-after:avoid;page-break-after:avoid;margin:15px 0 8px;font-size:11.5pt;line-height:1.4}.document p{white-space:pre-line;orphans:3;widows:3;margin:8px 0 12px}.document ul{margin:8px 0 16px;padding-left:20px}.document li{orphans:3;widows:3;margin-bottom:7px}.document table{border-collapse:collapse;table-layout:fixed;width:100%;margin:15px 0;font-size:9.5pt}.document th{text-align:left;color:var(--nav);background:#eef1f6;font-weight:600}.document th,.document td{border-bottom:1px solid var(--line);vertical-align:top;padding:10px 8px}.document th:first-child{width:30%}.document tr{break-inside:avoid;page-break-inside:avoid}.document thead{display:table-header-group}.letterfooter{border-top:1px solid var(--line);color:#5e6677;margin-top:32px;padding-top:12px;font-size:8pt}.document-group{position:relative}.document-group.selected{outline-offset:5px;outline:2px solid #35446d}.edit-block{color:var(--accent);border:1px solid var(--line);font:inherit;cursor:pointer;background:#eef1f6;margin:5px 0;padding:3px 8px;font-size:8pt}.side-panel{border:1px solid var(--line);resize:horizontal;background:#fff;border-radius:12px;min-width:280px;max-width:480px;max-height:calc(100vh - 32px);padding:18px;position:sticky;top:16px;overflow:auto}.block-card{border:1px solid var(--line);background:#fff;border-radius:8px;margin:10px 0;padding:12px}.wizard-grid{grid-template-columns:minmax(300px,420px) minmax(0,1fr);gap:24px;display:grid}.doc-list{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px;display:grid}.mobile-library-toggle{display:none!important}.field-stack{gap:16px;display:grid}.preview-label{color:#5e6677;margin:0 0 12px;font-size:12px}.rate-fields{grid-template-columns:1fr 1fr;gap:12px;display:grid}.sticky-toolbar{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:14px;display:flex}.empty-state{border:1px dashed var(--line);text-align:center;background:#fff;padding:40px}.library-meta{color:#5e6677;font-size:12px}.template-sections{flex-wrap:wrap;gap:8px;display:flex}.warning{color:#805019}@media (max-width:1100px){.wizard-grid{grid-template-columns:1fr}.editor-layout{grid-template-columns:minmax(0,1fr) 310px}.document{width:100%;min-width:0;min-height:297mm;padding:22px}.letterhead{flex-wrap:wrap}}@media (max-width:800px){main{padding:16px 12px}.shell-header{padding:16px}.shell-header span{display:none}.app-nav{padding:8px 12px}.editor-layout{flex-direction:column;display:flex}.canvas{width:100%;padding:8px}.document{min-height:0;padding:22px 18px;font-size:10pt}.document h1{font-size:22pt}.document table{font-size:8pt}.document th,.document td{padding:7px 4px}.side-panel{resize:none;width:100%;max-width:none;max-height:none;position:static}.side-panel.collapsed{display:none}.mobile-library-toggle{display:inline-flex!important}.letterhead>span{font-size:8pt}.wizard-grid{display:block}.wizard-grid>.canvas{margin-top:18px}.rate-fields{grid-template-columns:1fr 1fr}}@page{size:A4}@media print{body{background:#fff}.shell-header,.app-nav,.no-print,.side-panel,.page-title,.sticky-toolbar,.edit-block,.preview-label{display:none!important}main,.editor-layout,.wizard-grid,.canvas{background:#fff!important;max-width:none!important;margin:0!important;padding:0!important;display:block!important;overflow:visible!important}.wizard-form{display:none!important}.document{width:auto;min-height:0;box-shadow:none;margin:0;padding:0;font-size:10.5pt}.document-group.selected{outline:none}.document h2,.document h3{break-after:avoid}.document p,.document li{orphans:3;widows:3}.letterhead,.letterfooter{break-inside:avoid}table{break-inside:auto}tr{break-inside:avoid}thead{display:table-header-group}}.letterhead img{-webkit-print-color-adjust:exact;print-color-adjust:exact;background:#20294d;border-radius:4px;padding:4px}@media (max-width:800px){.shell-header .MuiChip-root{display:none}}@media print{.document-group[data-kind=signature]{break-inside:avoid;page-break-inside:avoid}}.document{font-family:var(--document-font,"Segoe UI"),Arial,sans-serif;font-size:var(--document-size,11pt);padding-left:var(--document-margin,19mm);padding-right:var(--document-margin,19mm)}.document h2,.document h3{color:var(--document-accent,#35446d)}.letterhead.configurable{color:var(--document-accent,#35446d);border-color:var(--document-accent,#35446d);align-items:flex-start;gap:14px;display:flex}.letterhead.configurable.align-right{text-align:right;border:0;flex-direction:column;align-items:flex-end;gap:4px;margin-bottom:20px;padding-bottom:0;display:flex}.letterhead.configurable img{object-fit:contain;background:0 0;border:0;border-radius:0;flex-shrink:0;height:auto;padding:0}.letterhead.configurable img.light-mark,.letterfooter img.light-mark{background:#20294d;border-radius:4px;padding:4px}.letterhead.configurable .sender{white-space:pre-line;font-size:9pt;line-height:1.25;display:block}.sender-details{margin-top:3px}.sender small{margin-top:6px;font-size:7pt;display:block}.letterfooter{font-size:var(--footer-size,8pt);text-align:center;white-space:pre-line;line-height:1.25}.letterfooter img{margin:0 auto 5px;display:block}.engagement-document .document-date{color:inherit;font-size:inherit;margin-top:24px}.document .engagement-subject{font-size:var(--document-size,11pt);letter-spacing:0;color:inherit;margin:16px 0 26px;font-weight:400;line-height:1.4}.engagement-subject small{font-size:inherit;font-weight:700}.engagement-document h2{border:0;margin:22px 0 8px;padding:0;font-size:12pt}@media (max-width:800px){.document{padding:22px 18px;font-size:10pt}.letterhead.configurable img{max-width:65%}.letterhead.configurable.align-right .sender{font-size:8pt}}@media print{.document{font-size:var(--document-size,11pt);padding:0!important}.letterfooter.repeat-footer{bottom:var(--footer-offset,-23mm);border:0;max-height:40mm;margin:0;padding:0;position:fixed;left:0;right:0}.document table th{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.document .service-scope h4{font-size:inherit;break-after:avoid;margin:12px 0 4px;font-weight:600}.service-scope{margin:12px 0}.service-scope p{margin-top:0}.template-editor-layout{grid-template-columns:minmax(0,1fr) minmax(320px,390px);max-width:1544px;margin:0 auto}.template-editor-layout .side-panel{max-height:calc(100vh - 175px)}@media (max-width:800px){.template-editor-layout .side-panel{max-height:none}}@media (min-width:801px){.template-editor-body{min-height:0;overflow:hidden!important}.template-editor-layout{height:100%;min-height:0}.template-editor-layout .canvas{height:100%;overflow:auto}.template-editor-layout .side-panel{max-height:100%;position:static}}.section-title-button{text-align:left;width:100%;font:inherit;color:inherit;cursor:pointer;background:0 0;border:0;padding:0;display:block}.section-interactive{border-left:3px solid #0000;margin-left:-13px;padding-left:10px;transition:border-color .15s,background .15s}.section-interactive:hover{border-left-color:#b5bfd5}.section-selected{border-left-color:#35446d}.section-drop-target{outline-offset:5px;background:#eef1f6;outline:2px dashed #35446d}.section-empty-title{color:#5e6677;margin:18px 0 8px;font-size:9pt}.library-block{color:#171c2d;text-align:left;width:100%;font:inherit;cursor:grab;background:#fff;border:1px solid #dde2ec;border-radius:9px;grid-template-columns:16px minmax(0,1fr);gap:6px 10px;padding:14px;display:grid}.library-block:hover{background:#f6f7fa;border-color:#35446d}.library-block:active{cursor:grabbing}.drag-grip{color:#74809a;grid-row:1/4;font-size:20px}.library-block-summary{color:#5e6677;font-size:12px;line-height:1.5}.library-block-action{color:#35446d;font-size:11px}.section-options{border-top:1px solid #dde2ec;margin-top:18px;padding-top:12px;font-size:13px}.section-options summary{cursor:pointer;color:#35446d;font-weight:600}.section-options>div{margin-top:10px}@media print{.section-interactive,.section-selected{background:0 0;border:0;outline:none;margin-left:0;padding-left:0}.section-title-button{cursor:default}.section-options{display:none}}.reorder-handle{color:#74809a;cursor:grab;background:#fff;border:0;padding:0 3px;font-size:22px;position:absolute;top:4px;left:-23px}.reorder-handle:active{cursor:grabbing}.dragging-group{opacity:.45}.insert-before{box-shadow:0 -3px #35446d}.insert-after{box-shadow:0 3px #35446d}.page-break-label{color:#74809a;border-top:1px dashed #74809a;font:10px Arial;display:block}.document.custom-layout{line-height:var(--line-height);color:var(--text-color);padding-top:var(--margin-top);padding-bottom:var(--margin-bottom)}.custom-layout h2{font-size:var(--heading-size);color:var(--heading-color);margin-top:var(--section-gap);margin-bottom:0}.custom-layout h3{font-size:var(--subheading-size);color:var(--heading-color)}.custom-layout p{margin:0 0 var(--paragraph-gap)}.custom-layout ul,.custom-layout ol{margin-top:0;margin-bottom:var(--paragraph-gap)}.custom-layout li{margin-bottom:0}.custom-layout .sender{font-size:var(--sender-size)!important}.custom-layout .letterfooter{text-align:var(--footer-align);margin-left:calc(-1 * var(--footer-expand));margin-right:calc(-1 * var(--footer-expand))}.letter-opening{position:relative}.positioned-letterhead .letterhead{max-width:48%;position:absolute;top:0;right:0}.positioned-letterhead .address{padding-top:var(--address-top);min-height:var(--header-height);max-width:52%}.custom-layout .address{font-weight:400}.custom-layout .address strong{font-weight:inherit}.custom-layout .document-date{margin-top:8mm}.custom-layout .engagement-subject{margin-bottom:8mm}.custom-layout .letterhead{min-height:var(--header-height)}@media print{.reorder-handle,.page-break-label{display:none}.insert-before,.insert-after{box-shadow:none}.dragging-group{opacity:1}.page-break-before{break-before:page;page-break-before:always}.custom-layout .letterfooter.repeat-footer{left:calc(-1 * var(--footer-expand));right:calc(-1 * var(--footer-expand));margin:0}}.document.custom-layout{padding-right:var(--margin-right)}.custom-layout .letterfooter{margin-right:calc(-1 * var(--footer-expand-right))}@media print{.custom-layout .letterfooter.repeat-footer{right:calc(-1 * var(--footer-expand-right));margin:0}}.template-block{cursor:pointer}.template-section-row{align-items:center;display:flex}.template-section-row>button:first-child{text-align:left;flex:1;justify-content:flex-start}.template-section-row>button:not(:first-child){min-width:32px}@media print{.first-page-footer-text>div{display:none}.first-page-footer-text.repeat-footer{bottom:calc(var(--footer-offset) + 7mm)}}.custom-layout .address{line-height:var(--line-height)}.reference-paragraph{white-space:pre-wrap;orphans:1;widows:1;margin-bottom:0;font-family:Arial,sans-serif;font-size:10.56pt;position:relative}.paragraph-marker{white-space:pre;width:18pt;position:absolute;left:-18pt}.reference-flow .document-section,.reference-flow .document-group{display:flow-root}.reference-flow .letter-opening{height:0}.reference-flow .letter-opening>.address,.reference-flow .letter-opening>h1,.reference-flow>.document-date,.reference-flow>.engagement-subject,.reference-flow>.engagement-subject+p{display:none}.reference-flow .letterhead.configurable{gap:0;width:129pt;max-width:none;min-height:0;margin:0;position:absolute;top:-90.1pt;right:0}.reference-flow .letterhead.configurable img{width:129pt!important}.reference-flow .letterhead.configurable .sender{color:#0e1f53;white-space:pre;font:8.04pt/9.18pt Arial!important}.reference-flow .sender-details{margin:0}.reference-flow{padding-top:121.3pt!important;padding-left:70.94pt!important;padding-right:40.37pt!important}.reference-flow .section-empty-title{background:#eef1f6;margin:4px 0;padding:4px}.reference-flow .page-break-before{border-top:1px dashed #aab4c8;margin-top:20px}@media print{.reference-flow{padding:0!important}.reference-flow .letterfooter{display:none!important}.reference-flow .page-break-before{border:0;margin-top:0}.reference-flow .section-interactive{border:0;margin:0;padding:0}.reference-flow .reference-paragraph{break-inside:avoid}.reference-flow .document-section{break-inside:auto}.reference-flow .letter-opening{display:none}}.reference-pages{width:595.32pt;margin:auto}.reference-page{background:#fff;width:595.32pt;height:841.92pt;margin:0 auto 20px;position:relative;box-shadow:0 3px 14px #20294d20}.reference-body{height:654pt;position:absolute;top:121.3pt;left:70.94pt;right:40.37pt}.reference-page .document-fragment{width:auto!important;min-height:0!important;box-shadow:none!important;background:0 0!important;margin:0!important;padding:0!important}.reference-header{color:#0e1f53;text-align:right;white-space:pre;width:129pt;font:8.04pt/9.18pt Arial;position:absolute;top:31.2pt;left:425.95pt}.reference-header img{object-fit:contain;width:129pt;height:57.5pt;display:block}.reference-header div{margin-top:0}.reference-footer{color:#000;font-family:Arial;position:absolute;top:779pt;left:0;right:0}.reference-footer>img{width:19.7pt;height:20.394pt;position:absolute;top:0}.reference-footer>div{font:6.48pt/9.12pt Arial;position:absolute;top:22.75pt;left:17.04pt;right:10pt}.reference-footer p{white-space:pre;margin:0}.reference-page-number{font:10.56pt Sylfaen;position:absolute;top:0;left:519.22pt}@media print{.reference-pages{width:auto;margin:0}.reference-page{box-shadow:none;break-after:page;page-break-after:always;margin:0}.reference-page:last-child{break-after:auto;page-break-after:auto}.reference-page .reference-body{height:654pt}.reference-page .document-section{break-inside:auto}.reference-page .document-fragment .section-empty-title{display:none}.reference-page .document-fragment .document-section{border:0;margin:0;padding:0}.reference-page .document-fragment .document-group{margin:0;padding:0}.reference-pages .reference-paragraph{font-size:10.56pt}}.reference-page .reference-body{transform:translateY(.6pt)}.reference-header div{transform:translate(-3.24pt,1.32pt)}.reference-footer>div{transform:translateY(-.43pt)}.reference-page-number{transform:translateY(-.33pt)}.reference-page .document-section{border:0;margin:0;padding:0}.reference-page .section-selected{box-shadow:-3px 0 #35446d}.reference-page .edit-block{z-index:2;opacity:0;margin:0;position:absolute;top:-16px;right:0}.reference-page .document-group:hover>.edit-block,.reference-page .edit-block:focus{opacity:1}.reference-page .section-empty-title{z-index:1;width:60pt;margin:0;padding:2px;font-size:7pt;line-height:1.2;position:absolute;left:-65pt}.reference-page .document-section{position:relative}.reference-signature{object-fit:contain;width:59.595pt;height:56.95pt;position:absolute;top:10.65pt;left:0}@media print{.reference-page .section-selected{box-shadow:none}}.reference-signature{top:11.87pt}.reference-measure.reference-page{visibility:hidden;pointer-events:none;height:auto;box-shadow:none;margin:0;padding:0 40.37pt 0 70.94pt;position:absolute;top:0;left:-100000px}.reference-page .group-content{display:flow-root}.reference-page .group-slice-window{overflow:hidden}@media print{.reference-measure.reference-page{display:none!important}}.customer-documents-tools{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;margin-bottom:16px;display:flex}.customer-documents-tools .MuiTextField-root{min-width:260px;max-width:100%}.customer-groups{gap:16px;display:grid}.customer-group{border:1px solid var(--line);background:#fff;border-radius:12px;min-width:0;overflow:hidden}.customer-group>summary{cursor:pointer;color:var(--nav);overflow-wrap:anywhere;background:#eef1f6;padding:20px}.customer-group>summary:focus-visible{outline-offset:-3px;outline:3px solid #a56220}.customer-group-name{margin-left:8px;font-weight:650}.customer-group-count{color:#35446d;margin-left:16px;font-size:13px;font-weight:500;display:inline-block}.customer-group[open]>.doc-list{padding:20px}.customer-group[open]>p{padding:16px 20px 0}.customer-group .MuiCard-root{box-shadow:none;border:1px solid var(--line)}.customer-group .MuiTypography-h6{overflow-wrap:anywhere}@media (max-width:600px){.customer-documents-tools .MuiTextField-root{width:100%}.customer-group[open]>.doc-list{grid-template-columns:minmax(0,1fr);padding:12px}.customer-group-count{margin-left:8px}}@media (max-width:800px){.template-editor-layout{width:100%;min-width:0}.template-editor-layout .side-panel{order:-1;min-width:0;max-width:100%;padding:12px}.template-editor-layout .canvas{max-width:100%}.template-editor-body{padding:12px!important}.template-editor-layout .library-block{overflow-wrap:anywhere}}
.import-review{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:24px;display:grid}.import-source{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;background:#fff;border:1px solid #d6dce8;max-height:75vh;padding:24px;position:sticky;top:0;overflow:auto}.import-section{background:#eef1f6;border-radius:8px;padding:20px}.import-block{background:#fff;border:1px solid #d6dce8;border-radius:6px;padding:16px}@media (max-width:900px){.import-review{grid-template-columns:1fr}.import-source{max-height:40vh;position:static}}.choice-service{background:#fff;border:1px solid #d6dce8;border-radius:8px;padding:16px}.choice-service:has(input:checked){background:#f6f7fa;border-color:#35446d}.editor-layout:has(>.side-panel.collapsed){grid-template-columns:minmax(0,1fr)}.editor-layout>.side-panel.collapsed{display:none}.mobile-library-toggle{display:inline-flex!important}
