.ff-tools[hidden],.ff-mark-actions[hidden],.ff-other[hidden],.ff-body[hidden]{display:none!important}
/* Documents folders */
.dfold{margin:0 0 26px;display:grid;gap:14px}
.dfold-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px}
.dfold-path{display:flex;flex-wrap:wrap;align-items:center;gap:4px;font-size:15px}
.dfold-path button{background:none;border:0;padding:6px 6px;min-height:36px;color:#147783;font-weight:700;cursor:pointer}
.dfold-path button[aria-current]{color:#17365d}
.dfold-path span{color:#98a2b3}
.dfold-actions{display:flex;flex-wrap:wrap;gap:8px}
.dfold-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.dfold-tile{position:relative;background:#fff;border:1px solid var(--line,#d8e1ea);border-radius:10px;display:flex;min-height:76px}
.dfold-tile>button.dfold-open,.dfold-up{flex:1;display:grid;align-content:center;gap:4px;text-align:left;background:none;border:0;padding:14px 16px;padding-right:72px;cursor:pointer;min-width:0}
.dfold-up{border:1px dashed #9fbfcd;border-radius:10px;background:#f7fbfd;padding-right:16px}
.dfold-tile strong{font-size:15px;color:#17365d;overflow-wrap:anywhere}.dfold-tile span{font-size:13px;color:#667085}
.dfold-edit{position:absolute;top:10px;right:10px;min-height:32px;padding:4px 12px;font-size:13px}
.dfold-forms{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px}
.dform-card{background:#fff;border:1px solid var(--line,#d8e1ea);border-radius:10px;padding:14px 16px;display:grid;gap:6px}
.dform-card h3{margin:0;font-size:16px;color:#17365d;overflow-wrap:anywhere}.dform-card p{margin:0;font-size:13px;color:#667085;overflow-wrap:anywhere}
.dform-card .doc-actions{justify-content:flex-start;margin-top:6px}
.dform-card a.button{display:inline-flex;align-items:center;min-height:40px;padding:8px 14px;border:1px solid var(--line,#d0d9e3);border-radius:8px;background:#fff;color:#17365d;font-weight:700;text-decoration:none}
.dfold-danger{margin-top:18px;padding-top:14px;border-top:1px solid #f2c9c4}.dfold-danger h3{margin:0 0 6px;color:#9b2c1f;font-size:15px}.dfold-danger p{margin:0 0 10px;font-size:14px;color:#475467}
.dfold-dialog{width:min(520px,calc(100% - 24px));border:0;border-radius:14px;padding:20px}.dfold-dialog label{display:grid;gap:6px;font-weight:700}
.dform-upload{display:grid;gap:14px}.dform-upload>label{display:grid;gap:6px;font-weight:700}
/* Form filler */
.ff-dialog{display:flex;flex-direction:column;gap:12px}
.ff-head{display:grid;grid-template-columns:2fr 2fr 1fr 2fr;gap:10px}.ff-head label{display:grid;gap:4px;font-size:13px;font-weight:700;color:#344054}
.ff-tabs{display:flex;gap:6px;border-bottom:1px solid #d8e1ea}
.ff-tabs button{border:0;border-bottom:3px solid transparent;border-radius:0;background:none;padding:10px 16px;min-height:44px;font-weight:700;color:#667085;cursor:pointer}
.ff-tabs button[aria-selected=true]{color:#147783;border-bottom-color:#147783}
.ff-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px;position:sticky;top:-20px;z-index:3;background:#fff;padding:8px 0;border-bottom:1px solid #eef2f6}
.ff-tools>span:first-child{font-size:13px;color:#667085;margin-right:4px}
.ff-tools button{min-height:40px;padding:6px 12px}.ff-tools button[aria-pressed=true]{background:#147783;color:#fff;border-color:#147783}
.ff-mark-actions{display:inline-flex;gap:6px;margin-left:auto}
.ff-body{min-height:200px}.ff-loading{color:#667085}
.ff-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px;position:sticky;bottom:-20px;background:#fff;padding:10px 0 16px;margin-bottom:-4px;border-top:1px solid #eef2f6;z-index:3}
.ff-status{margin-right:auto;font-size:13px;color:#667085}
/* Word / Excel grid */
.ff-sheet{margin-bottom:22px}.ff-sheet-name{margin:0 0 8px;font-size:15px;color:#17365d}
.ff-scroll{overflow:auto;-webkit-overflow-scrolling:touch;border:1px solid #d8e1ea;border-radius:6px;background:#fff}
.ff-grid{border-collapse:collapse;table-layout:fixed;font:13px/1.3 Arial,Helvetica,sans-serif;color:#101828;min-width:100%}
.ff-grid td{border:1px solid #d0d5dd;padding:3px 5px;vertical-align:top;overflow-wrap:anywhere;word-break:normal}
.ff-grid td.ff-cell{padding:1px;background:#fffdf3}
.ff-word{width:100%}
.ff-word-page{max-width:1000px;margin:0 auto;background:#fff;padding:18px 22px;border:1px solid #d8e1ea;border-radius:8px;font:14px/1.4 Arial,Helvetica,sans-serif;color:#101828}
.ff-word-page p{margin:0 0 6px}.ff-word-page .ff-gap{min-height:8px}.ff-word-header{margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid #eef2f6}
.ff-word-page .ff-scroll{margin:6px 0 10px}
.ff-entry{width:100%;min-height:24px;border:1px solid transparent;border-radius:3px;background:transparent;font:inherit;color:#10243f;padding:2px 4px;margin:0;box-sizing:border-box}
textarea.ff-entry{resize:none;overflow:hidden;display:block;line-height:1.3}
.ff-entry:focus{outline:2px solid #147783;outline-offset:0;background:#fff}
.ff-entry.ff-inline{display:inline-block;width:auto;min-width:120px;border-bottom:1px solid #98a2b3;border-radius:0}
.ff-toggle{display:flex;align-items:center;justify-content:center;font-weight:700;font-size:16px;cursor:pointer;min-height:28px;color:#0f6e3a;border:1px dashed #c7d7e2}
.ff-toggle.is-on{border-style:solid;border-color:#a6d4b8;background:#ecfdf3}.ff-toggle.is-no{color:#b42318;background:#fef3f2;border-color:#f2c9c4}
.ff-check{display:inline-flex;width:22px;min-width:22px;height:22px;min-height:22px;padding:0;vertical-align:middle;margin:0 4px;border:1.5px solid #475467;border-radius:3px}
.ff-sign{display:grid;justify-items:center;align-content:center;gap:2px;cursor:pointer;min-height:44px;border:1px dashed #9fbfcd;background:#f7fbfd}
.ff-sign.is-signed{border-style:solid;border-color:#d0d5dd;background:#fff}
.ff-sign-empty{font-size:12px;font-weight:700;color:#147783}
.ff-sign small{font-size:10px;color:#475467;line-height:1.1}
.ff-sig-svg{width:100%;max-width:200px;height:auto;max-height:60px;display:block}
/* PDF */
.ff-pdf-page{position:relative;width:100%;max-width:1100px;margin:0 auto 18px;background:#fff;box-shadow:0 1px 6px rgba(16,24,40,.18);--pw:1000px}
.ff-pdf-canvas canvas{display:block;width:100%;height:100%}
.ff-pdf-layer{position:absolute;inset:0}
.is-placing .ff-pdf-layer{cursor:crosshair}
.ff-pdf-field{position:absolute;box-sizing:border-box;border:1px solid rgba(20,119,131,.45);background:rgba(232,243,247,.55);font:calc(var(--pw) * var(--fs, .012)) Helvetica,Arial,sans-serif;color:#10243f;padding:0 2px;margin:0;border-radius:2px;min-height:0}
textarea.ff-pdf-field{resize:none}
.ff-pdf-check{display:flex;align-items:center;justify-content:center;padding:0;font-weight:700;color:#0f6e3a;cursor:pointer;font-size:calc(var(--pw) * .016)}
.ff-pdf-check.is-on{background:rgba(236,253,243,.85)}.ff-radio{border-radius:50%}
.ff-pdf-field.ff-sign{padding:0}.ff-pdf-field .ff-sig-svg{max-height:75%}.ff-pdf-field small{font-size:calc(var(--pw) * .008)}
.ff-mark{position:absolute;touch-action:none;cursor:move;user-select:none;-webkit-user-select:none}
.ff-mark.is-selected{outline:2px dashed #147783;outline-offset:2px}
.ff-mark-glyph{font:700 calc(var(--pw) * var(--s)) Helvetica,Arial,sans-serif;line-height:1;color:#0f6e3a}.ff-mark-glyph.is-cross{color:#b42318}
.ff-mark-text input{font:calc(var(--pw) * var(--s)) Helvetica,Arial,sans-serif;color:#10243f;border:1px dashed rgba(20,119,131,.6);background:rgba(255,255,255,.7);padding:0 2px;min-height:0;width:auto}
.ff-mark-sign{width:calc(var(--pw) * var(--s));display:grid}.ff-mark-sign .ff-sig-svg{max-width:none;max-height:none}.ff-mark-sign small{font-size:calc(var(--pw) * var(--s) * .07);color:#475467;white-space:nowrap}
/* Signature tab */
.ff-sign-panel{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px;align-content:start}
.ff-sign-card{border:1px solid #d8e1ea;border-radius:10px;padding:16px;display:grid;gap:10px;background:#fff}
.ff-sign-card h3{margin:0;color:#17365d}.ff-sign-card p{margin:0;color:#667085;font-size:14px}
.ff-sign-preview{min-height:100px;border:1px dashed #b6cbd6;border-radius:8px;display:flex;align-items:center;justify-content:center;background:#fbfdfe;color:#98a2b3;font-size:14px;padding:6px}
.ff-sign-preview .ff-sig-svg{max-width:320px;max-height:110px}
.ff-sign-name{font-weight:700;color:#17365d!important}
.ff-sign-buttons{display:flex;gap:8px;flex-wrap:wrap}
.ff-radio-row{display:flex;align-items:center;gap:10px;font-weight:600;min-height:40px;cursor:pointer}.ff-radio-row input{width:20px;height:20px;min-height:0}
.ff-other{display:grid;gap:10px}.ff-other label{display:grid;gap:4px;font-weight:700;font-size:13px}
/* PDF output of Word / Excel */
.ff-print .ff-scroll{border:0}.ff-print-value{display:block;min-height:16px;font:inherit;color:#10243f;white-space:pre-wrap}
.ff-print-sign{display:grid;justify-items:center}.ff-print-title{display:flex;justify-content:space-between;gap:12px;padding:0 0 10px;font:14px Arial,sans-serif;color:#17365d}
@media(max-width:800px){.ff-head{grid-template-columns:1fr 1fr}.ff-mark-actions{margin-left:0}}
@media(max-width:520px){.ff-head{grid-template-columns:1fr 1fr;gap:8px}.ff-head label:first-child,.ff-head label:last-child{grid-column:1/-1}.dfold-grid,.dfold-forms{grid-template-columns:1fr}.ff-tools{top:-10px}}
@media(max-width:760px){.ff-actions{bottom:-10px}.ff-tools{top:-10px}}
.ff-zoom{display:inline-flex;align-items:center;gap:4px;margin-left:8px}.ff-zoom span{min-width:44px;text-align:center;font-size:13px;color:#475467}
.ff-body.is-zoomed{overflow-x:auto;-webkit-overflow-scrolling:touch}.ff-body.is-zoomed .ff-pdf-page{width:calc(100% * var(--zoom,1));max-width:none}
.ff-dialog>*{flex-shrink:0}.ff-tool-label{font-size:12px;color:#667085;min-width:0!important}
.ff-grid{min-width:0}
/* Boxes found on flat PDFs */
.ff-pdf-field.ff-auto{background:rgba(255,248,214,.45);border:1px dashed rgba(20,119,131,.5)}
.ff-pdf-field.ff-auto:focus{background:rgba(255,255,255,.95)}
.ff-pdf-field.ff-auto.ff-sign{background:rgba(247,251,253,.6)}.ff-pdf-field.ff-auto.ff-sign.is-signed{background:transparent;border-color:transparent}
.ff-pdf-field.ff-auto.ff-pdf-check{font-size:calc(var(--pw) * .014)}
.ff-pdf-field.ff-toggle{font-weight:700;font-size:calc(var(--pw) * .012)}
input[type=date].ff-pdf-field{font-size:calc(var(--pw) * .0105)}
.ff-pdf-field.ff-sign small{white-space:nowrap}
/* Edit Text */
.ff-text-item{position:absolute;pointer-events:none;color:transparent;font:calc(var(--pw) * var(--fs)) Helvetica,Arial,sans-serif;line-height:1.05;white-space:nowrap;overflow:visible;border-radius:2px}
.is-editing .ff-text-item{pointer-events:auto;cursor:text;background:rgba(255,214,102,.28);outline:1px dashed rgba(180,120,0,.55)}
.ff-text-item.is-edited{background:#fff;color:#10243f;outline:1px solid rgba(20,119,131,.35)}
.ff-text-item input{font:inherit;color:#10243f;width:max(100%,90px);min-height:0;height:100%;padding:0 2px;border:1px solid #147783;border-radius:2px;background:#fff;box-sizing:border-box}
.is-editing .ff-pdf-field,.is-editing .ff-mark{pointer-events:none;opacity:.45}
.ff-add-label{margin-left:8px}
.ff-pdf-field .ff-sign-empty{font-size:max(9px,calc(var(--pw) * .0085));line-height:1.1}
input[type=date].ff-pdf-field:invalid:not(:focus){color:transparent}
input[type=date].ff-pdf-field:invalid:not(:focus)::-webkit-datetime-edit{color:transparent}
/* Calmer look for found boxes: square corners, a hairline, a faint tint; stronger when touched */
.ff-pdf-field.ff-auto{border-radius:0!important;border:1px solid rgba(20,119,131,.32);background:rgba(20,119,131,.06);box-shadow:none}
.ff-pdf-field.ff-auto:hover{background:rgba(20,119,131,.12)}
.ff-pdf-field.ff-auto:focus{outline:2px solid #147783;outline-offset:0;background:#fff}
.ff-pdf-field.ff-auto.ff-sign{background:rgba(124,58,237,.05);border-color:rgba(124,58,237,.35)}
.ff-pdf-field.ff-auto.ff-sign .ff-sign-empty{color:#6d28d9;font-weight:600;opacity:.85}
.ff-pdf-field.ff-auto.ff-pdf-check{border-color:rgba(20,119,131,.55);background:rgba(255,255,255,.55)}
.ff-pdf-field.ff-auto.ff-pdf-check.is-on{background:rgba(236,253,243,.9)}
input[type=date].ff-pdf-field.ff-auto::-webkit-calendar-picker-indicator{opacity:.45;width:10px;height:10px;padding:0;margin:0}
/* Signing on a line: the signature sits above the line, the name and date beside it */
.ff-pdf-field.ff-sign.ff-sign-low{overflow:visible;display:flex;align-items:flex-end;justify-content:flex-start;gap:4px;padding:0 2px}
.ff-pdf-field.ff-sign.ff-sign-low .ff-sig-svg{height:calc(var(--pw) * .024);width:auto;max-height:none;max-width:55%;flex:none}
.ff-pdf-field.ff-sign.ff-sign-low small{font-size:calc(var(--pw) * .0062);white-space:nowrap;align-self:center}
.ff-pdf-field.ff-sign.ff-sign-low .ff-sign-empty{margin:auto}
/* Drag a card onto a folder to move it */
.dfold-hint{margin:0 0 8px;font-size:13px;color:#667085}
.is-draggable{cursor:grab}.is-draggable:active{cursor:grabbing}
.is-dragging{opacity:.45}
.is-drag-active .dfold-tile,.is-drag-active .dfold-path button,.is-drag-active .drawing-folder{outline:2px dashed #9fbfcd;outline-offset:2px}
.dfold-tile.is-drop-over,.dfold-path button.is-drop-over,.drawing-folder.is-drop-over{outline:2px solid #2e7d9a;background:#e6f3f8}
.drag-ghost{position:fixed;z-index:9999;transform:translate(-50%,-120%);max-width:70vw;padding:8px 12px;border-radius:8px;background:#17365d;color:#fff;font-size:14px;font-weight:700;box-shadow:0 6px 18px rgba(0,0,0,.25);pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Fold and unfold the parts of the Documents tab */
.dcol-toggle{display:inline-flex;align-items:center;gap:8px;background:none;border:0;padding:4px 0;margin:0;font:inherit;color:inherit;cursor:pointer;text-align:left;min-height:40px}
.dcol-chev,.docs-list-head .dcol-chev{display:inline-block;font-size:.8em;color:#147783;background:none;padding:0;border-radius:0;transition:transform .15s}
.dcol-toggle[aria-expanded="false"] .dcol-chev{transform:rotate(-90deg)}
.dcol-head{margin-bottom:10px}
[data-col-body][hidden]{display:none!important}
button.dcol-toggle,button.dcol-toggle:hover,button.dcol-toggle:focus,button.dcol-toggle:active{background:none!important;border:0!important;box-shadow:none!important;padding:4px 0!important;color:#17365d}
button.dcol-toggle:focus-visible{outline:2px solid #2e7d9a;outline-offset:2px}
.drawing-inside .dcol-head{margin-top:4px}
/* Form details fold (always open on wide screens) */
.ff-details>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;min-height:36px;font-weight:700;color:#17365d;font-size:14px}
.ff-details>summary::-webkit-details-marker{display:none}
.ff-details>summary::before{content:"▸";color:#147783;font-size:12px;transition:transform .15s}
.ff-details[open]>summary::before{transform:rotate(90deg)}
.ff-details>summary span{font-weight:400;color:#667085;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.ff-details[open]>summary span{display:none}
@media(min-width:761px){.ff-details>summary{display:none}}
/* Signature prompt sized to its box */
.ff-pdf-field.ff-sign .ff-sign-empty{font-size:min(calc(var(--pw) * .0085),calc(var(--pw) * var(--bh,.02) * .62));line-height:1;white-space:nowrap;overflow:hidden;max-width:100%}
.ff-pdf-field.ff-sign{overflow:hidden}
.ff-pdf-field.ff-sign.ff-sign-low{overflow:visible}
/* Phones: full screen, the form fills the space, whole page first, then zoom */
@media(max-width:760px){
 dialog.ff-dialog{width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:none;margin:0;inset:0;border-radius:0;padding:max(8px,env(safe-area-inset-top)) 10px max(8px,env(safe-area-inset-bottom));gap:6px;overflow:hidden}
 .ff-dialog>.dialog-head{margin:0;padding:0;gap:8px;align-items:center}
 .ff-dialog>.dialog-head h2{font-size:16px;line-height:1.25;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
 .ff-dialog>.dialog-head [data-close]{min-height:36px;min-width:36px;padding:0}
 .ff-details[open]>.ff-head{padding-bottom:6px}
 .ff-head input{min-height:38px;font-size:16px}
 .ff-tabs button{padding:4px 12px;min-height:34px;font-size:14px}
 .ff-tools{position:static;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding:2px 0 4px;gap:5px;scrollbar-width:none}
 .ff-tools::-webkit-scrollbar{display:none}
 .ff-tools button{min-height:34px;padding:0 10px;font-size:13px;flex:none}
 .ff-tools .ff-tool-label,.ff-tools .ff-zoom,.ff-tools .ff-mark-actions{flex:none;white-space:nowrap}
 .ff-zoom{margin-left:2px}.ff-zoom span{min-width:38px}
 .ff-dialog>.ff-body{flex:1 1 auto;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;margin:0 -10px;padding:6px 10px;background:#eef2f6}
 .ff-dialog>.ff-body[data-panel=form]{touch-action:pan-x pan-y}
 .ff-dialog>.ff-sign-panel{background:#fff}
 .ff-pdf-page{margin-bottom:10px}
 .ff-actions{position:static;padding:6px 0 0;margin:0;gap:6px;flex-wrap:nowrap}
 .ff-actions button{min-height:38px;padding:0 12px;font-size:14px;flex:none}
 .ff-status{font-size:12px;line-height:1.25;min-width:0}
}
@media(max-width:760px){.ff-details>summary{white-space:nowrap;font-size:14px;min-height:32px}.ff-details>summary span{flex:1}}
/* Drawings beside a form */
.ff-tabs .ff-drawings-tab{margin-left:auto;border:1px solid #b9dbe7!important;border-radius:8px!important;background:#e6f3f8;color:#147783;min-height:34px;align-self:center;padding:0 14px}
dialog.drawings-overlay{width:min(1400px,96vw);height:92vh;max-height:92vh;padding:0;border:0;border-radius:14px;display:flex;flex-direction:column;overflow:hidden}
dialog.drawings-overlay:not([open]){display:none}
.drawings-overlay-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid #d8e1ea;background:#fff}
.drawings-overlay-head strong{display:block;color:#17365d;font-size:17px}.drawings-overlay-head span{color:#667085;font-size:13px}
.drawings-overlay-body{flex:1;min-height:0;overflow:auto;padding:12px 14px;background:#f3f6f9}
@media(max-width:760px){dialog.drawings-overlay{width:100vw;max-width:100vw;height:100dvh;max-height:none;border-radius:0;margin:0}.drawings-overlay-head{padding:max(8px,env(safe-area-inset-top)) 10px 8px}.drawings-overlay-body{padding:8px}}
/* Tap to Sign in built-in documents */
.ts-sign{display:flex;align-items:center;justify-content:center;gap:4px;width:100%;height:100%;min-height:26px;margin:0;padding:1px 3px;border:1px dashed rgba(109,40,217,.5);border-radius:3px;background:rgba(109,40,217,.06);color:#6d28d9;font:600 12px/1.1 Arial,Helvetica,sans-serif;cursor:pointer;box-shadow:none;overflow:hidden;box-sizing:border-box}
.ts-sign:hover{background:rgba(109,40,217,.12)}
.ts-sign.is-signed{border-color:rgba(23,43,67,.15);background:rgba(255,255,255,.6)}
.ts-empty{white-space:nowrap}
.ts-prefix{color:#10243f;font-weight:400;margin-right:4px;white-space:nowrap}
.ts-signed{display:inline-flex;align-items:center;gap:4px;max-width:100%;overflow:hidden;vertical-align:middle}
.ts-svg{height:2.4em;width:auto;max-width:65%;flex:none}
.ts-signed small{font-size:.75em;line-height:1.1;color:#475467;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}
.concrete-overlay .ts-signed,.concrete-fill-box .ts-signed{height:100%}.concrete-overlay .ts-svg,.concrete-fill-box .ts-svg{height:100%}
.concrete-fill-box .ts-sign{min-height:0;font-size:inherit}
.concrete-sign-control{display:grid;gap:4px;font-size:13px;font-weight:700;color:#344054}.concrete-sign-control .ts-sign{min-height:52px;font-size:14px}.concrete-sign-control small{font-weight:400;color:#667085}
.xl-sign .ts-sign{min-height:40px}.xl-sign{min-width:120px}
