html body :is(#awpPdfActions,#sobatPhotoDialog) .report-creator{--rev-ink:#17334c;--rev-field:#fff;--rev-line:#afbed0;box-sizing:border-box;background:#fff;color:#17334c;border:1px solid #afbed0;border-radius:9px;padding:12px;margin:12px 0;color-scheme:light}
html body :is(#awpPdfActions,#sobatPhotoDialog) .report-creator *{box-sizing:border-box;-webkit-text-fill-color:currentColor}
html body :is(#awpPdfActions,#sobatPhotoDialog) .report-creator summary{font-weight:700;cursor:pointer;padding:3px 0 10px;font-size:13px;color:#17334c}
html body :is(#awpPdfActions,#sobatPhotoDialog) .rc-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
html body :is(#awpPdfActions,#sobatPhotoDialog) .report-creator label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#17334c;min-width:0}
html body :is(#awpPdfActions,#sobatPhotoDialog) .report-creator input{width:100%;min-width:0;background:#fff;color:#17334c;border:1px solid #afbed0;border-radius:6px;padding:8px;font-size:13px}
html body :is(#awpPdfActions,#sobatPhotoDialog) .rc-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
html body :is(#awpPdfActions,#sobatPhotoDialog) .report-creator button{min-height:34px;padding:7px 10px;border:1px solid #acc0d1;border-radius:6px;background:#075e91!important;color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:12px;cursor:pointer}
html body :is(#awpPdfActions,#sobatPhotoDialog) .report-creator button:active{background:#123b58!important;transform:translateY(1px)}
html body :is(#awpPdfActions,#sobatPhotoDialog) .report-creator button:disabled{opacity:.5;cursor:wait}
html body :is(#awpPdfActions,#sobatPhotoDialog) .rc-preview{background:#fff;color:#51647a;border:1px dashed #afbed0;border-radius:6px;max-width:260px;padding:8px;min-height:70px;display:flex;align-items:center;justify-content:center;font-size:12px}
html body :is(#awpPdfActions,#sobatPhotoDialog) .rc-preview img{max-width:100%;height:75px;object-fit:contain}
html body :is(#awpPdfActions,#sobatPhotoDialog) :is(.rc-help,.rc-status){font-size:12px;line-height:1.5;color:#17334c;white-space:pre-wrap}
html body :is(#awpPdfActions,#sobatPhotoDialog) .report-creator [hidden]{display:none!important}
#awpPdfActions{width:760px;max-width:calc(100vw - 20px);max-height:92dvh;overflow:auto}
html body #sobatPhotoDialog #spAuthor{margin:0 18px 12px}
.awp-footer-preview{width:42%;margin:5px 0 8px auto;text-align:center;font:10px/1.3 Arial,sans-serif;overflow-wrap:anywhere;flex-shrink:0;color:#17334c}
.awp-footer-preview img{display:block;margin:6px auto;max-width:90%;height:50px;object-fit:contain}
.awp-footer-preview .af-name{border-bottom:1px solid #8da0af;padding-bottom:3px;margin-bottom:3px}
@media(max-width:600px){html body :is(#awpPdfActions,#sobatPhotoDialog) .rc-fields{grid-template-columns:1fr}html body #sobatPhotoDialog #spAuthor{margin:0 10px 10px}.awp-footer-preview{font-size:8px}.awp-footer-preview img{height:30px}}

/* Fix41: TTD can cross header/name text without clipping. */
.report-creator .rc-size{margin:12px 0;display:grid;grid-template-columns:minmax(140px,1fr) 55px;gap:6px}.report-creator .rc-size input{grid-column:1;min-height:30px;padding:0;accent-color:#176b9b}.report-creator .rc-size output{grid-column:2;font-size:13px;font-weight:700}.report-creator .rc-preview{display:block;max-width:320px;min-height:160px;overflow:visible}.rc-mini-author{text-align:center;font:13px/1.5 Arial;color:#17334c;overflow:visible}.rc-mini-sign{height:90px;display:flex;align-items:center;justify-content:center;position:relative;overflow:visible}.report-creator .rc-mini-sign img{height:85px;max-width:220px;object-fit:contain;transform-origin:center;position:relative;z-index:3;mix-blend-mode:multiply}.report-paper-author,.report-paper-signature{overflow:visible!important}.report-paper-signature img{position:relative;z-index:3;mix-blend-mode:multiply;transform-origin:center}.report-paper-name{position:relative;z-index:1}

html body :is(#awpPdfActions,#sobatPhotoDialog) .report-creator input[type=range]{padding:0!important;min-height:32px;accent-color:#176b9b}html body :is(#awpPdfActions,#sobatPhotoDialog) .rc-preview{overflow:visible;max-height:none;min-height:160px}html body :is(#awpPdfActions,#sobatPhotoDialog) details>summary{background:#dcefe3;border:1px solid #9bc7ad;border-radius:7px;padding:9px;color:#173f2c}
html body .awp-footer-preview{overflow:visible!important}html body .awp-footer-preview img{position:relative;z-index:3;transform-origin:center;mix-blend-mode:multiply}

#landReportAuthor{background:var(--card,#fff);border:1px solid #8ea9b7;border-radius:10px;padding:12px;margin:12px 0}#landReportAuthor .rc-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}#landReportAuthor input:not([type=range]){box-sizing:border-box;width:100%;padding:8px}#landReportAuthor summary{background:#dcefe3;color:#17462e;padding:10px;border-radius:6px;cursor:pointer}#landReportAuthor .rc-actions{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}#landReportAuthor button{padding:8px;border-radius:6px;border:1px solid #90a7b8;background:#e6f1f7;color:#123b5d}#landReportAuthor .rc-preview{max-height:none} @media print{#landReportAuthor{display:none!important}}
/* Fix46: readable creator controls in both application themes. */
@media screen {
html body #landReportAuthor,html body #sobatPhotoDialog .report-creator{background:#fff!important;color:#17334c!important;color-scheme:light}
html body #landReportAuthor :is(label,p,output,.rc-status,.rc-help),html body #sobatPhotoDialog .report-creator :is(label,p,output,.rc-status,.rc-help){color:#17334c!important;opacity:1!important}
html body #landReportAuthor input:not([type=range]),html body #sobatPhotoDialog .report-creator input:not([type=range]){background:#f7fbff!important;color:#142f47!important;border:1px solid #8099ad!important;color-scheme:light}
html body #landReportAuthor input::placeholder,html body #sobatPhotoDialog .report-creator input::placeholder{color:#526779!important;opacity:1!important}
html body :is(#landReportAuthor,#sobatPhotoDialog) .rc-preview{background:#fff!important;color:#17334c!important;padding:10px;border-radius:7px}
html body :is(#landReportAuthor,#sobatPhotoDialog) .rc-help{font-size:13px;line-height:1.5}
html.land-dark body #landReportAuthor{background:#1c2c40!important;border-color:#718298!important;color:#edf4fc!important}
html.land-dark body #landReportAuthor :is(label,p,output,.rc-status,.rc-help){color:#edf4fc!important}
html.land-dark body #landReportAuthor input:not([type=range]){background:#26394d!important;color:#f2f6fb!important;color-scheme:dark}
html.land-dark body #landReportAuthor input::placeholder{color:#c4d1df!important}
html body #sobatPhotoDialog :is(.sp-help,.sp-status,.sp-report-fields label,.sp-report-fields p){color:#17334c!important;opacity:1!important}
}

/* Fix68: fixed text positions; signature paints over surrounding text. */
html body .report-creator .rc-mini-sign{height:48px!important;overflow:visible!important}
html body .report-creator .rc-mini-sign img{position:absolute!important;z-index:10!important;max-width:none!important;width:180px!important;height:70px!important;object-fit:contain!important;mix-blend-mode:multiply!important}
html body .report-creator .rc-mini-author{overflow:visible!important;isolation:isolate}
html body .awp-footer-preview .af-sign-slot{height:36px;position:relative;overflow:visible}
html body .awp-footer-preview .af-sign-slot img{position:absolute!important;left:50%;top:50%;width:180px!important;height:48px!important;max-width:none!important;margin:0!important;object-fit:contain!important;z-index:10!important;transform:translate(-50%,-50%) scale(var(--signature-scale,1))!important;mix-blend-mode:multiply!important}

/* Fix69: one exact layout for preview and output; no preview-specific image sizing. */
html body .rc-preview{background:white!important;color:#17334c!important;overflow:auto!important;max-width:100%!important;padding:10px!important;min-height:160px!important}
html body .awp-footer-preview{overflow:auto!important}
html body .signature69 img{border:0!important;border-radius:0!important;background:transparent!important}

/* Fix72: identical compact author block on screen and paper. */
html body .rc-preview{min-height:0!important;height:auto!important;padding:6px!important;margin:4px 0!important;overflow:auto!important}
html body :is(#landReportAuthor,#sobatPhotoDialog) .rc-fields{gap:6px!important}
html body :is(#landReportAuthor,#sobatPhotoDialog) .rc-actions{gap:5px!important;margin:5px 0!important}
html body :is(#landReportAuthor,#spAuthor) .rc-fields label{margin:3px 0!important;gap:3px!important}
html body :is(#landReportAuthor,#spAuthor) .rc-size{margin:5px 0!important;gap:4px!important}
html body #land67AuthorDialog #landReportAuthor{padding:8px!important;margin:5px 0!important}
html body :is(#landReportAuthor,#sobatPhotoDialog) .rc-help{margin:4px 0!important;line-height:1.2!important}

/* Fix75: keep the signature location visible even before data/image is entered. */
@media screen{
html body :is(#landReportAuthor,#spAuthor) .rc-preview{display:block!important;box-sizing:border-box!important;min-height:128px!important;height:auto!important;padding:12px 10px!important;background:#fff!important;color:#17334c!important;border:1px dashed #9aafc1!important;overflow:auto!important}
html body :is(#landReportAuthor,#spAuthor) .rc75-preview-label{margin:6px 0 3px!important;font-weight:700!important;font-size:12px!important}
html body .rc-preview .rc75-empty-sign{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:180px;height:45px;border:1px dashed #91a9ba;border-radius:4px;background:transparent;color:#617d91;font:8pt/1.1 Arial;z-index:0;pointer-events:none}
}
@media print{.rc75-preview-label,.rc75-empty-sign{display:none!important}}
