.mh-pdf-surface{background:#fff;border:1px solid #dfe9e5;border-radius:22px;box-shadow:0 14px 34px rgba(22,67,58,.05)}
.mh-pdf-designer-shell,.mh-pdf-client-shell{display:grid;gap:18px}.mh-pdf-designer-top,.mh-pdf-client-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 28px;background:linear-gradient(135deg,#fff,#f5fbf8);border:1px solid #dce9e4;border-radius:24px}.mh-pdf-designer-top span,.mh-pdf-client-intro span{display:block;color:#078671;font-size:12px;font-weight:900;letter-spacing:.16em}.mh-pdf-designer-top h2,.mh-pdf-client-intro h2{margin:5px 0 6px;font-size:26px;letter-spacing:-.035em;color:#152d28}.mh-pdf-designer-top p,.mh-pdf-client-intro p{margin:0;color:#6b7d78}.mh-pdf-top-actions{display:flex;gap:9px;flex-wrap:wrap}
.mh-pdf-designer-grid{display:grid;grid-template-columns:230px minmax(0,1fr) 280px;align-items:start;gap:16px}.mh-pdf-toolbox,.mh-pdf-inspector{padding:18px;position:sticky;top:92px;max-height:calc(100vh - 120px);overflow:auto}.mh-pdf-toolbox h3,.mh-pdf-inspector h3{margin:0 0 6px;font-size:17px}.mh-pdf-toolbox>p{font-size:13px;color:#768681;line-height:1.5;margin:0 0 15px}.mh-pdf-tool-list{display:grid;gap:8px}.mh-pdf-tool-list button{border:1px solid #dce8e4;background:#f9fbfa;border-radius:13px;padding:11px;display:flex;align-items:center;gap:10px;text-align:left;font-weight:900;color:#23423b;cursor:pointer}.mh-pdf-tool-list button>span{font-size:13px}.mh-pdf-tool-list button.active{border-color:#0b8f78;background:#eaf8f3;color:#06745f;box-shadow:0 0 0 2px rgba(11,143,120,.08)}.mh-pdf-help{border-top:1px solid #e9efec;margin-top:16px;padding-top:14px;font-size:12px;color:#697a75}.mh-pdf-help ol{margin:8px 0 0;padding-left:17px;display:grid;gap:5px}
.mh-pdf-canvas-column,.mh-pdf-client-pages{display:grid;gap:18px;min-width:0}.mh-pdf-pages{display:grid;gap:18px}.mh-pdf-page-wrap{position:relative;width:100%;max-width:860px;margin:0 auto;background:#fff;border:1px solid #d9e4df;border-radius:6px;overflow:hidden;box-shadow:0 16px 38px rgba(24,58,51,.1)}.mh-pdf-page-wrap>canvas{display:block;width:100%;height:100%;object-fit:fill}.mh-pdf-page-badge{position:absolute;right:10px;top:10px;background:rgba(18,45,40,.82);color:#fff;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:800;z-index:4}.is-placing .mh-pdf-page-wrap{cursor:crosshair}.mh-pdf-loading{padding:22px;text-align:center;border:1px dashed #d4e2dc;border-radius:18px;color:#6f817c;background:#f9fbfa}.mh-pdf-loading.error{border-color:#f2c5bd;color:#9e4436;background:#fff7f5}
.mh-pdf-field-marker{position:absolute;z-index:8;border:2px solid #078671;background:rgba(218,248,239,.72);border-radius:7px;display:flex;align-items:center;justify-content:center;min-width:20px;min-height:16px;cursor:grab;touch-action:none;box-shadow:0 3px 10px rgba(8,120,101,.14)}.mh-pdf-field-marker.dragging{cursor:grabbing;opacity:.82}.mh-pdf-field-marker span{font-size:10px;font-weight:900;color:#075f50;padding:2px 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.mh-pdf-field-marker button{position:absolute;right:-8px;top:-8px;width:19px;height:19px;border:0;border-radius:50%;background:#173a34;color:#fff;display:grid;place-items:center;cursor:pointer;font-size:13px}.mh-pdf-field-marker.type-signature{border-color:#7969c7;background:rgba(236,232,255,.7)}.mh-pdf-field-marker.type-checkbox{border-color:#dc9a25;background:rgba(255,244,216,.8)}
.mh-pdf-inspector-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.mh-pdf-inspector-head span{background:#e7f7f1;color:#087763;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:900}.mh-pdf-field-row{border-top:1px solid #e7efeb;padding:13px 0;display:grid;gap:8px}.mh-pdf-field-row:first-child{border-top:0}.mh-pdf-field-row-head{display:flex;justify-content:space-between;gap:8px}.mh-pdf-field-row-head b{font-size:12px}.mh-pdf-field-row-head button{border:0;background:none;color:#a54739;font-size:11px;font-weight:800;cursor:pointer}.mh-pdf-field-row label{display:grid;gap:4px;font-size:11px;color:#63746f;font-weight:700}.mh-pdf-field-row input[type=text]{width:100%;box-sizing:border-box;border:1px solid #d7e2de;border-radius:9px;padding:8px;font:inherit;color:#223b35;background:#fff}.mh-pdf-field-row input[type=range]{width:100%}.mh-pdf-field-row label>span{font-size:10px}.mh-pdf-field-row .mh-pdf-check{display:flex;align-items:center;gap:6px}.mh-pdf-field-row small{color:#8a9995}.mh-pdf-empty-mini{padding:20px 5px;color:#84938f;font-size:12px}.mh-pdf-savebar{position:sticky;bottom:12px;z-index:30;border:1px solid #cfe2db;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-radius:18px;padding:13px 16px;display:flex;justify-content:space-between;align-items:center;gap:20px;box-shadow:0 12px 35px rgba(15,65,55,.12)}.mh-pdf-savebar div{display:grid}.mh-pdf-savebar span{font-size:12px;color:#72827e;margin-top:3px}
.mh-pdf-client-workspace{display:grid;gap:16px}.mh-pdf-client-toolbar{position:sticky;top:76px;z-index:28;display:grid;grid-template-columns:minmax(180px,1fr) minmax(120px,300px) auto;gap:18px;align-items:center;padding:14px 18px}.mh-pdf-client-toolbar>div:first-child{display:grid}.mh-pdf-client-toolbar b{color:#183a33}.mh-pdf-client-toolbar span{font-size:12px;color:#72837e;margin-top:2px}.mh-pdf-progress-track{height:7px;background:#edf2f0;border-radius:999px;overflow:hidden}.mh-pdf-progress-track i{display:block;height:100%;width:0;background:#0a947c;border-radius:inherit;transition:width .2s}.mh-pdf-input-overlay{position:absolute;z-index:10;box-sizing:border-box}.mh-pdf-input-overlay input[type=text],.mh-pdf-input-overlay input[type=date],.mh-pdf-input-overlay textarea{width:100%;height:100%;box-sizing:border-box;border:1.5px solid #28a58f;background:rgba(255,255,255,.94);border-radius:5px;padding:3px 6px;color:#183d35;font:700 clamp(9px,1vw,14px)/1.2 Arial,sans-serif;outline:0;box-shadow:0 2px 8px rgba(10,148,124,.08)}.mh-pdf-input-overlay textarea{resize:none}.mh-pdf-input-overlay input:focus,.mh-pdf-input-overlay textarea:focus{border-color:#067864;box-shadow:0 0 0 2px rgba(6,120,100,.12)}.mh-pdf-input-overlay[data-required="1"]:not(.filled) input,.mh-pdf-input-overlay[data-required="1"]:not(.filled) textarea{border-color:#d8a040}.mh-pdf-input-overlay.type-checkbox label{width:100%;height:100%;display:grid;place-items:center;cursor:pointer;background:rgba(255,255,255,.94);border:1.5px solid #d29a34;border-radius:5px}.mh-pdf-input-overlay.type-checkbox input{position:absolute;opacity:0;pointer-events:none}.mh-pdf-input-overlay.type-checkbox span{font-weight:1000;color:transparent;font-size:clamp(12px,2vw,24px)}.mh-pdf-input-overlay.type-checkbox input:checked+span{color:#078671}.mh-pdf-sign-button{width:100%;height:100%;border:1.5px dashed #7969c7;border-radius:6px;background:rgba(251,250,255,.94);display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr 1fr;align-items:center;text-align:left;gap:0 5px;padding:4px 7px;color:#514796;cursor:pointer;overflow:hidden}.mh-pdf-sign-button>span{grid-row:1/3;font-size:18px}.mh-pdf-sign-button b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mh-pdf-sign-button small{font-size:8px;color:#7b75a1}.mh-pdf-input-overlay.type-signature.filled{background:rgba(255,255,255,.92);border:1px solid #7969c7;border-radius:5px;display:flex;align-items:center;justify-content:center}.mh-pdf-input-overlay.type-signature.filled img{max-width:94%;max-height:80%;object-fit:contain}.mh-pdf-input-overlay.type-signature.filled small{position:absolute;left:3px;bottom:1px;font-size:7px;color:#5f5a78}.mh-pdf-submit-error{padding:13px 16px;border-radius:13px;background:#fff2ef;border:1px solid #f0c4bb;color:#9e3e31;font-weight:800}.mh-pdf-sign-modal{position:fixed;inset:0;z-index:9999;background:rgba(10,31,27,.55);display:grid;place-items:center;padding:20px}.mh-pdf-sign-modal[hidden]{display:none}.mh-pdf-sign-dialog{width:min(720px,100%);background:#fff;border-radius:24px;padding:22px;box-shadow:0 26px 80px rgba(0,0,0,.25)}.mh-pdf-sign-head{display:flex;justify-content:space-between;gap:20px}.mh-pdf-sign-head small{font-size:11px;color:#087a66;font-weight:900;letter-spacing:.12em}.mh-pdf-sign-head h3{margin:4px 0;font-size:22px}.mh-pdf-sign-head p{margin:0;color:#73827e;font-size:13px}.mh-pdf-sign-head>button{width:36px;height:36px;border:0;border-radius:10px;background:#eef4f1;font-size:22px}.mh-pdf-sign-dialog canvas{display:block;width:100%;height:210px;border:1px dashed #a8bdb6;border-radius:14px;background:#fbfdfc;margin:18px 0;touch-action:none}.mh-pdf-sign-actions{display:flex;justify-content:flex-end;gap:9px}.mh-pdf-sign-actions button{border:1px solid #d8e4df;background:#fff;border-radius:11px;padding:10px 15px;font-weight:800}.mh-pdf-sign-actions .primary{background:#087d69;color:#fff;border-color:#087d69}.mh-pdf-complete-card{padding:24px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px}.mh-pdf-complete-icon{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#dff6ed;color:#07836c;font-size:25px;font-weight:900}.mh-pdf-complete-card small{color:#087e69;font-weight:900;letter-spacing:.14em}.mh-pdf-complete-card h2{margin:3px 0 5px}.mh-pdf-complete-card p{margin:0;color:#73827e}.mh-pdf-complete-actions{display:flex;gap:8px;flex-wrap:wrap}
.mh-pdf-print-page{margin:0;background:#e8eeeb;font-family:Arial,sans-serif;color:#183a33}.mh-pdf-print-toolbar{position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid #dbe5e1;padding:10px 18px;display:flex;align-items:center;gap:12px}.mh-pdf-print-toolbar img{width:110px}.mh-pdf-print-toolbar div{display:grid;flex:1}.mh-pdf-print-toolbar span{font-size:11px;color:#71827d}.mh-pdf-print-toolbar button,.mh-pdf-print-toolbar a{border:0;border-radius:10px;padding:9px 13px;background:#087d69;color:#fff;text-decoration:none;font-weight:800;cursor:pointer}.mh-pdf-print-page main{display:grid;gap:14px;justify-items:center;padding:22px}.mh-pdf-print-page main canvas{width:min(100%,900px);height:auto;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.12)}
@media(max-width:1180px){.mh-pdf-designer-grid{grid-template-columns:190px minmax(0,1fr)}.mh-pdf-inspector{grid-column:1/-1;position:static;max-height:none}.mh-pdf-inspector>[data-pdf-field-list]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}}
@media(max-width:760px){.mh-pdf-designer-top,.mh-pdf-client-intro{align-items:flex-start;flex-direction:column}.mh-pdf-designer-grid{grid-template-columns:1fr}.mh-pdf-toolbox,.mh-pdf-inspector{position:static;max-height:none}.mh-pdf-tool-list{grid-template-columns:repeat(2,minmax(0,1fr))}.mh-pdf-inspector>[data-pdf-field-list]{grid-template-columns:1fr}.mh-pdf-client-toolbar{top:62px;grid-template-columns:1fr;gap:9px}.mh-pdf-client-toolbar .clinic-button{width:100%}.mh-pdf-savebar{position:static;align-items:stretch;flex-direction:column}.mh-pdf-savebar button{width:100%}.mh-pdf-input-overlay input[type=text],.mh-pdf-input-overlay input[type=date],.mh-pdf-input-overlay textarea{font-size:10px;padding:1px 3px}.mh-pdf-complete-card{grid-template-columns:auto 1fr}.mh-pdf-complete-actions{grid-column:1/-1}.mh-pdf-complete-actions a{flex:1;text-align:center}.mh-pdf-print-toolbar div{display:none}.mh-pdf-print-toolbar img{width:90px}}
@media print{.mh-pdf-print-toolbar{display:none!important}.mh-pdf-print-page{background:#fff}.mh-pdf-print-page main{padding:0;display:block}.mh-pdf-print-page main canvas{display:block;width:100%!important;height:auto!important;box-shadow:none;page-break-after:always;break-after:page}.mh-pdf-print-page main canvas:last-child{page-break-after:auto}}
.mh-pdf-how{grid-template-columns:repeat(3,minmax(0,1fr))}.mh-pdf-how article{min-height:150px}.mh-pdf-how article>span{color:#08836e;font-size:11px;font-weight:900;letter-spacing:.12em}.mh-pdf-how h3{margin:8px 0 7px;font-size:18px}.mh-pdf-how p{margin:0;color:#73827e;line-height:1.55}.mh-pdf-template-grid{display:grid;gap:10px}.mh-pdf-template-card{border:1px solid #e0e9e5;border-radius:16px;padding:14px;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:14px;align-items:center;background:#fff}.mh-pdf-template-icon{width:48px;height:54px;border-radius:12px;background:#e8f7f2;color:#087b67;display:grid;place-items:center;font-size:11px;font-weight:1000;letter-spacing:.05em}.mh-pdf-template-copy{display:grid;min-width:0}.mh-pdf-template-copy small{font-size:10px;color:#08806b;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.mh-pdf-template-copy b{font-size:14px;color:#213d37;margin:3px 0}.mh-pdf-template-copy span{font-size:11px;color:#80908b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mh-pdf-template-status em{font-style:normal;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:900}.mh-pdf-template-status .ready{background:#e8f7f2;color:#087b67}.mh-pdf-template-status .setup{background:#fff3df;color:#9a6510}.mh-pdf-template-card .pro-doc-actions form{display:inline}.mh-pdf-template-card .pro-doc-actions button{border:0;background:none;color:#9a4c41;font-weight:800;font-size:11px;cursor:pointer}.mh-pdf-waiting{font-size:11px;color:#8a6c32;font-weight:800}.mh-pdf-mini-stats{display:flex;gap:10px}.mh-pdf-mini-stats b{min-width:86px;border:1px solid #d9e7e2;border-radius:15px;padding:12px;text-align:center;font-size:22px;color:#087d69;background:#fff}.mh-pdf-mini-stats small{display:block;margin-top:2px;font-size:10px;color:#74837f;font-weight:800}.mh-pdf-card-actions{display:flex;gap:7px;flex-wrap:wrap}.mh-pdf-client-card .metric-icon{font-size:9px;font-weight:1000}.mh-pdf-client-list .form-card-foot{align-items:flex-end}
@media(max-width:900px){.mh-pdf-how{grid-template-columns:1fr}.mh-pdf-template-card{grid-template-columns:auto minmax(0,1fr)}.mh-pdf-template-status,.mh-pdf-template-card>.pro-doc-actions{grid-column:2}.mh-pdf-mini-stats{width:100%}.mh-pdf-mini-stats b{flex:1}}
@media(max-width:600px){.mh-pdf-template-card{grid-template-columns:1fr}.mh-pdf-template-icon{width:44px;height:44px}.mh-pdf-template-status,.mh-pdf-template-card>.pro-doc-actions{grid-column:1}.mh-pdf-client-list .form-card-foot{align-items:stretch}.mh-pdf-card-actions{width:100%}.mh-pdf-card-actions a{flex:1;text-align:center}}
