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:normal}.report-paper-author,.report-paper-signature{overflow:visible!important}.report-paper-signature img{position:relative;z-index:3;mix-blend-mode:normal;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:normal}

/* Revisi 510: readable creator heading and compact report form. */
html body #awpPdfActions #awpReportAuthor summary{background:#245578!important;color:#fff!important;-webkit-text-fill-color:#fff!important;padding:8px 10px!important;margin:0 0 8px!important;line-height:1.3!important}
html body #awpPdfActions #awpReportAuthor summary *,html body #awpPdfActions #awpReportAuthor summary::marker{color:#fff!important;-webkit-text-fill-color:#fff!important}
html body #awpPdfActions #awpReportAuthor{padding:10px!important;margin:8px 0!important}
html body #awpPdfActions #awpReportAuthor .rc-fields{gap:8px!important;margin:6px 0!important}
html body #awpPdfActions #awpReportAuthor label{margin:0 0 5px!important;line-height:1.3!important}
html body #awpPdfActions #awpReportAuthor input:not([type=range]){margin-top:4px!important;padding:7px 9px!important;min-height:32px!important}
html body #awpPdfActions #awpReportAuthor .rc-actions{gap:6px!important;margin:6px 0!important}
html body #awpPdfActions #awpReportAuthor .rc-size{margin:6px 0!important}
html body #awpPdfActions #awpReportAuthor .rc-status:empty{display:none!important}
/* Revisi 510: explicit text contrast for both display themes. */
html body #awpPdfActions #awpReportAuthor{--creator-ink:#17334c;--creator-bg:#ffffff;--creator-field:#f5f9fc;background:var(--creator-bg)!important;color:var(--creator-ink)!important}
html body.dark-theme #awpPdfActions #awpReportAuthor{--creator-ink:#f1f6fc;--creator-bg:#172f41;--creator-field:#203c51}
html body #awpPdfActions #awpReportAuthor :is(label,p,output){color:var(--creator-ink)!important;-webkit-text-fill-color:var(--creator-ink)!important;opacity:1!important}
html body #awpPdfActions #awpReportAuthor input{background:var(--creator-field)!important;color:var(--creator-ink)!important;-webkit-text-fill-color:var(--creator-ink)!important;border-color:#8ca6bc!important}
html body #awpPdfActions #awpReportAuthor input::placeholder{color:var(--creator-ink)!important;-webkit-text-fill-color:var(--creator-ink)!important;opacity:.7}
html body #awpPdfActions #awpReportAuthor .rc-mini-author,html body #awpPdfActions #awpReportAuthor .rc-mini-author *{color:#17334c!important;-webkit-text-fill-color:#17334c!important}

/* R584: live paper preview for attendance, wage/cash reports and documentation. */
html body :is(#awpPdfActions,#sobatPhotoDialog) .report-creator .rc-preview{background:#fff!important;color:#17334c!important;width:100%;max-width:320px;box-sizing:border-box;overflow:hidden!important;min-height:150px;padding:12px!important}
html body :is(#awpPdfActions,#sobatPhotoDialog) .report-creator .rc-mini-author,html body :is(#awpPdfActions,#sobatPhotoDialog) .report-creator .rc-mini-author *{color:#17334c!important;-webkit-text-fill-color:#17334c!important;opacity:1!important;text-shadow:none!important}
html body :is(#awpPdfActions,#sobatPhotoDialog) .report-creator .rc-mini-sign{position:relative!important;display:block!important;height:70px!important;overflow:visible!important}
html body :is(#awpPdfActions,#sobatPhotoDialog) .report-creator .rc-mini-sign img{position:absolute!important;max-width:none!important;max-height:none!important;object-fit:contain;transform-origin:center}
html body :is(#awpPdfActions,#sobatPhotoDialog) .report-creator .rc-size{display:grid!important;grid-template-columns:minmax(0,1fr) 45px!important;gap:4px!important;margin:7px 0!important}
html body :is(#awpPdfActions,#sobatPhotoDialog) .report-creator .rc-size input{grid-column:1!important;padding:0!important;min-height:28px!important;margin:0!important}
html body :is(#awpPdfActions,#sobatPhotoDialog) .report-creator .rc-size output{grid-column:2!important;grid-row:2!important;align-self:center;font-size:11px}

html body :is(#awpPdfActions,#sobatPhotoDialog) .report-creator .rc-preview svg,html body .awp-footer-preview svg{max-width:100%;overflow:hidden;background:#fff;color:#142636;-webkit-text-fill-color:initial}html body :is(#awpPdfActions,#sobatPhotoDialog) .report-creator .rc-preview{min-height:0!important}html body :is(#awpPdfActions,#sobatPhotoDialog) .report-creator .rc-preview svg text,html body .awp-footer-preview svg text{fill:#142636!important;-webkit-text-fill-color:#142636!important}
