@media screen{
.p4-editor .tb-report-heading,.p4-archive .tb-report-heading{text-align:center;padding:12px 16px;margin:0 0 12px}.p4-editor .tb-report-heading h2,.p4-archive .tb-report-heading h2{font-size:24px;margin:0 0 5px}.p4-tracker{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:10px 0 14px!important;padding:0!important}.p4-tracker li{min-width:0;min-height:48px!important;padding:7px 9px!important;gap:6px!important;display:flex;align-items:center;justify-content:center;font-size:14px;white-space:normal}.p4-tracker li .stage-icon{width:28px;height:28px;flex:0 0 28px;font-size:14px}.p4-tracker li.current{background:#eeebfc;color:#6545b1;border-color:#6545b1}.p4-tracker li.current .stage-icon{background:#6545b1;color:white}.p4-tracker li.complete .stage-icon{background:#18734c;color:white}.p4-sticky{position:sticky;bottom:0;z-index:12;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;padding:12px 16px;margin:12px 0 0;background:var(--surface,#fff);border:1px solid #cbd5e1;border-radius:12px;box-shadow:0 -4px 18px #112b4010}.p4-sticky #p4-tb-save-state{margin-right:auto;font-weight:600;align-self:center}.p4-editor-tools{display:flex;justify-content:flex-end;margin:8px 0}.p4-editor .tb-entry-wrap,.p4-archive .tb-entry-wrap{min-width:0}.p4-review .p3-paper-scroll{min-height:480px}.p4-review .p4-tracker{margin-top:12px!important}.p4-archive-filter .rms-module-grid{gap:12px}.p4-archive-filter details{margin:12px 0;padding:12px;border:1px solid #cbd5e1;border-radius:8px}.p4-archive-filter details summary{font-weight:600;cursor:pointer}.p4-archive .r12-grid{margin-bottom:12px}.p4-archive .r12-stat{cursor:default}.p4-info-stat{cursor:default!important}.p4-archive-tabs{margin-bottom:16px}.p4-archive-tabs button[aria-pressed=true]{outline:2px solid #6545b1;outline-offset:1px}.p4-archive [hidden],#p4-historical[hidden],#p4-laboratory[hidden]{display:none!important}.r12-layout[data-r12-theme=dark] .p4-sticky{background:#182b3c;color:#f1f5f9}.r12-layout[data-r12-theme=dark] .p4-tracker li.current{background:#382c58;color:#e4d7ff}.p4-archive td small{display:block}.p4-archive table td{white-space:normal;overflow-wrap:anywhere}.p4-archive-filter input[readonly]{background:#f0f5f8;color:#526779}.r12-layout[data-r12-theme=dark] .p4-archive-filter input[readonly]{background:#203345;color:#e2e8f0}
@media(max-width:760px){.p4-tracker{grid-template-columns:repeat(3,minmax(0,1fr))}.p4-sticky{position:sticky;gap:7px}.p4-sticky #p4-tb-save-state{flex-basis:100%}.p4-review .p3-paper-scroll{min-height:320px}}
}
@media screen{
.r12-layout .main .tb-module.p4-editor .tb-workspace{gap:8px}.r12-layout .main .p4-editor .tb-report-heading{margin:0;padding:6px 12px}.r12-layout .main .p4-editor .tb-report-heading h2{font-size:22px;margin:0 0 4px}.r12-layout .main .p4-editor .tb-report-heading p{margin:0 0 4px}.r12-layout .main .p4-editor .tb-report-heading .tag{padding:3px 8px}.r12-layout .main .p4-editor .p4-editor-tools{margin:0;padding:0;min-height:36px}.r12-layout .main .p4-editor .p4-tracker{margin:2px 0!important;width:100%;max-width:none}.r12-layout .main .p4-archive .p4-archive-filter{padding:18px}.r12-layout .main .p4-archive-filter #p4-archive-filters>.rms-module-grid:first-child{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:12px 16px}.p4-archive-filter #p4-archive-filters>.rms-module-grid:first-child>.field:first-child,.p4-archive-filter #p4-archive-filters>.rms-module-grid:first-child>.field:nth-child(4){grid-column:span 2}.r12-layout .main .p4-archive .r12-grid{margin:10px 0}.r12-layout .main .p4-archive .p4-archive-filter h3{margin:0 0 12px}.r12-layout .main .p4-archive-filter .field{margin:0}.r12-layout .main .p4-archive-filter .rms-module-grid input,.r12-layout .main .p4-archive-filter .rms-module-grid select{min-height:44px}.r12-layout .main .p4-archive .r12-stat .r12-stat-top{align-items:center}.p4-archive .r12-stat-top svg{width:32px;height:32px}.p4-archive .r12-stat small{font-size:13px;line-height:1.4}.p4-archive .p4-archive-filter [hidden]{display:none!important}
@container (max-width:800px){.r12-layout .main .p4-archive-filter #p4-archive-filters>.rms-module-grid:first-child{grid-template-columns:repeat(2,minmax(0,1fr))}.p4-archive-filter #p4-archive-filters>.rms-module-grid:first-child>.field:nth-child(4){grid-column:span 1}}
@container (max-width:420px){.r12-layout .main .p4-archive-filter #p4-archive-filters>.rms-module-grid:first-child{grid-template-columns:1fr}.p4-archive-filter #p4-archive-filters>.rms-module-grid:first-child>.field:first-child{grid-column:span 1}}
}
/* Rev 12 Figures 24 and 29 — screen-only shared report framing. */
@media screen {
.r12-layout .main:has(.rms-report-heading)>.page-header,.r12-layout .main>.page-header.rms-compact-report-header,.r12-layout .main:has(.rms-issue-view)>.page-header{display:flex!important;align-items:center;justify-content:space-between;text-align:left;gap:10px;padding:6px 0!important;margin:0 0 8px!important;background:transparent!important;box-shadow:none!important;border:0!important;min-height:0!important}
.r12-layout .main:has(.rms-report-heading)>.page-header .page-heading,.r12-layout .main>.page-header.rms-compact-report-header .page-heading{margin:0;text-align:left}.r12-layout .main:has(.rms-report-heading)>.page-header h1,.r12-layout .main>.page-header.rms-compact-report-header h1{margin:0 0 2px!important;line-height:1.2}.r12-layout .main:has(.rms-report-heading)>.page-header p,.r12-layout .main>.page-header.rms-compact-report-header p{margin:0!important;font-size:14px;font-weight:400}.r12-layout .main:has(.rms-report-heading)>.page-header .action-bar:empty,.r12-layout .main>.page-header.rms-compact-report-header .action-bar:empty{display:none}
.r12-layout .main .rms-report-heading,.r12-layout .main .p4-editor .tb-report-heading{text-align:center;margin:0 0 6px!important;padding:3px 8px!important}.r12-layout .main .rms-report-heading h2,.r12-layout .main .p4-editor .tb-report-heading h2{font-size:21px;line-height:1.2;margin:0 0 3px!important;color:var(--r12-text,#142d4e)}.r12-layout .main .rms-report-heading p,.r12-layout .main .p4-editor .tb-report-heading p{font-size:14px;line-height:1.3;margin:0!important;color:var(--r12-muted,#526779)}.r12-layout .main .p4-editor .tb-workspace{gap:7px!important}
.r12-layout .main ol.rms-connected-tracker{--stage-accent:#087f72;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:0!important;position:relative;max-width:none!important;width:100%;margin:5px 0 10px!important;padding:8px 5px!important;border:1px solid var(--r12-border,#d5e0e7);background:var(--r12-panel,#fff);border-radius:10px;list-style:none;box-sizing:border-box}
.r12-layout .main ol.rms-connected-tracker[data-lab=general]{--stage-accent:#245bb8}.r12-layout .main ol.rms-connected-tracker[data-lab=tb]{--stage-accent:#6545b1}.r12-layout .main ol.rms-connected-tracker[data-lab=hiv]{--stage-accent:#884c7f}
.r12-layout .main ol.rms-connected-tracker li{position:relative;display:flex!important;flex-direction:column;justify-content:flex-start!important;align-items:center!important;min-width:0;min-height:0!important;gap:4px!important;padding:0 2px!important;margin:0!important;background:none!important;border:0!important;border-radius:0!important;color:var(--r12-muted,#526779);text-align:center;white-space:normal;overflow:visible}
.r12-layout .main ol.rms-connected-tracker li:not(:last-child)::after{content:'';position:absolute;top:13px;left:50%;width:100%;height:2px;background:#d6dfe6;z-index:0}.r12-layout .main ol.rms-connected-tracker li.complete:not(:last-child)::after{background:#18734c}
.r12-layout .main ol.rms-connected-tracker li .stage-icon{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;margin:0;background:#e5eaf0;color:#526779;font-size:14px;font-weight:700;box-shadow:none}.r12-layout .main ol.rms-connected-tracker li.current{color:var(--stage-accent)}.r12-layout .main ol.rms-connected-tracker li.current .stage-icon{background:var(--stage-accent);color:white}.r12-layout .main ol.rms-connected-tracker li.complete{color:#18734c}.r12-layout .main ol.rms-connected-tracker li.complete .stage-icon{background:#18734c;color:white}.r12-layout .main ol.rms-connected-tracker li.returned{color:#b42335}.r12-layout .main ol.rms-connected-tracker li.returned .stage-icon{background:#b42335;color:white}.r12-layout .main ol.rms-connected-tracker li b{font-size:13px;line-height:1.2;font-weight:600;overflow-wrap:normal}.rms-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.r12-layout[data-r12-theme=dark] .rms-connected-tracker li.current{color:#d5e6ff}.r12-layout[data-r12-theme=dark] .rms-connected-tracker li.complete{color:#8ed8b3}.r12-layout[data-r12-theme=dark] .rms-connected-tracker li.returned{color:#f7a7b2}
.r12-layout .main .p2-selected{padding:10px 14px!important;margin:0 0 10px!important;gap:8px}.r12-layout .main .p2-selected h3{margin:0 0 3px}.r12-layout .main .p2-selected p{margin:0}
.r12-layout .main .rms-issue-status{display:inline-block;padding:6px 10px;border-radius:7px;background:#e8f0ff;color:#245bb8;font-weight:650;font-size:14px}.r12-layout .main .rms-issue-view{background:#e1e6eb;border:1px solid #cbd5e1;border-radius:12px;overflow:hidden}.r12-layout .main .rms-issue-view .p3-document-tools{position:static;justify-content:center;background:#e1e6eb;padding:8px 12px}.r12-layout .main .rms-issue-view .preview-toolbar-actions{justify-content:center;align-items:center;gap:8px}.r12-layout .main .rms-issue-view .p3-paper-scroll{height:clamp(300px,calc(100dvh - 265px),900px);min-height:260px;max-height:none;box-sizing:border-box;overflow:auto;resize:vertical;background:#e1e6eb;padding:12px;overscroll-behavior:contain}.r12-layout .main .rms-issue-view.rms-viewer-tall .p3-paper-scroll{height:85vh}.r12-layout .main .rms-issue-view .p3-paper-scroll #live-preview,.r12-layout .main .rms-issue-view .p3-paper-scroll #tb-live-preview{width:max-content;max-width:none;margin:0 auto;min-width:0}.r12-layout .main .rms-issue-view .paper,.r12-layout .main .rms-issue-view .tb-paper,.r12-layout .main .p4-review .tb-paper,.r12-layout .main .p4-archive .tb-paper{background:#fff!important;color:#161c27;box-shadow:0 2px 12px #0002;margin:0 auto;min-height:297mm;width:210mm;min-width:210mm;max-width:none;box-sizing:border-box}.r12-layout .main .rms-pan-mode{cursor:grab;touch-action:none}.r12-layout .main .rms-panning{cursor:grabbing;user-select:none}.r12-layout .main [data-viewer-control][aria-pressed=true]{outline:2px solid #245bb8;outline-offset:1px;background:#e8f0ff;color:#245bb8}
.r12-layout .main .rms-issue-actions{display:flex;gap:10px;margin:8px 0 0;flex-wrap:wrap}.r12-layout .main .rms-issue-actions button{flex:1 1 170px;min-height:44px;font-size:15px;font-weight:650;border-radius:8px;border:1px solid currentColor}.r12-layout .main .rms-output-print{background:#e4f4f0;color:#087f72}.r12-layout .main .rms-output-pdf{background:#e8f0ff;color:#245bb8}.r12-layout .main .rms-output-issue{background:#dff3e8;color:#18734c}.r12-layout .main .rms-tb-output{gap:0}.r12-layout .main .rms-tb-output #tb-notice:empty{display:none}
/* Give the long form and preview independent scroll regions above the action bar on desktop. */
@media(min-width:981px) and (min-height:650px){.r12-layout .main:has(.rms-report-heading) #resizable-editor,.r12-layout .main .p4-editor #tb-resizable-editor{height:clamp(290px,calc(100dvh - 340px),850px);align-items:stretch!important;min-height:0!important}.r12-layout .main:has(.rms-report-heading) #resizable-editor .report-entry-column,.r12-layout .main .p4-editor #tb-resizable-editor .tb-entry-wrap{min-height:0;overflow:auto;overscroll-behavior:contain;padding-bottom:8px}.r12-layout .main:has(.rms-report-heading) #resizable-editor .preview:not(.preview-fullscreen),.r12-layout .main .p4-editor #tb-resizable-editor .tb-preview-wrap:not(.tb-preview-fullscreen){position:relative!important;top:auto!important;height:100%!important;max-height:none!important;display:flex!important;flex-direction:column;min-height:0;overflow:hidden!important}.r12-layout .main .p4-editor #tb-resizable-editor .tb-preview-wrap:not(.tb-preview-fullscreen) .tb-preview-scroll,.r12-layout .main:has(.rms-report-heading) #resizable-editor .preview:not(.preview-fullscreen) .preview-scroll{flex:1 1 auto;min-height:0;max-height:none!important;overflow:auto!important}.r12-layout .main:has(.rms-report-heading) #resizable-editor .editor-resize-handle,.r12-layout .main .p4-editor #tb-resizable-editor .editor-resize-handle{position:relative!important;top:auto!important;min-height:0!important;height:100%;max-height:none!important}.r12-layout .main .p4-sticky{position:relative!important;bottom:auto;margin-top:8px!important;box-shadow:none}}
@media(max-width:980px),(max-height:649px){.r12-layout .main .p4-sticky{position:static!important;margin-top:10px!important;box-shadow:none}.r12-layout .main .rms-issue-view .p3-paper-scroll{height:55vh}}
@media(max-width:560px){.r12-layout .main ol.rms-connected-tracker li b{font-size:11px;overflow-wrap:anywhere}.r12-layout .main ol.rms-connected-tracker li .stage-icon{width:24px;height:24px;flex-basis:24px;font-size:12px}.r12-layout .main ol.rms-connected-tracker li:not(:last-child)::after{top:11px}.r12-layout .main .rms-report-heading h2,.r12-layout .main .p4-editor .tb-report-heading h2{font-size:18px}.r12-layout .main .rms-issue-actions button{flex-basis:100%}.r12-layout .main .rms-compact-report-header{flex-wrap:wrap}}
}
@media screen{.r12-layout .main .p4-editor #tb-notice:empty,.r12-layout .main:has(.p4-editor) #module-notice:empty{display:none}.r12-layout .main .p4-editor{gap:0}.r12-layout .main .rms-issue-view .p3-paper-scroll .paper{background:#fff!important}.r12-layout .main .p4-sticky button{min-height:42px}.r12-layout .main .p4-editor .tb-entry-form{scroll-margin-bottom:12px}}
@media screen and (min-width:981px) and (min-height:650px){.r12-layout .main:has(.rms-report-heading) #resizable-editor,.r12-layout .main .p4-editor #tb-resizable-editor{height:var(--rms-editor-height,clamp(250px,calc(100dvh - 435px),850px));}.r12-layout .main .p4-sticky{position:relative!important}}
@media screen{.r12-layout .main .rms-issue-view:not(.rms-viewer-tall) .p3-paper-scroll{height:var(--rms-viewer-height,calc(100dvh - 315px))}}
/* P4-R01–06. Screen-only compact report editor, document scroll. */
@media screen {
.r12-layout:has(.main .rms-report-heading,.main .p4-editor #tb-resizable-editor) .layout-content{--rms-editor-top:var(--rms-header-height,90px);--rms-editor-track:48px;--rms-editor-bottom:58px;overflow:visible}
.r12-layout:has(.main .rms-report-heading,.main .p4-editor #tb-resizable-editor) .topbar{position:sticky!important;top:0;z-index:80}
.r12-layout .main:has(.rms-report-heading),.r12-layout .main:has(.p4-editor #tb-resizable-editor){padding-top:9px;overflow:visible;min-height:calc(100dvh - var(--rms-editor-top))}
.r12-layout .main:has(.rms-report-heading)>.page-header,.r12-layout .main:has(.p4-editor #tb-resizable-editor)>.page-header{position:static!important;min-height:0!important;padding:2px 0!important;margin:0 0 3px!important;gap:6px}
.r12-layout .main:has(.rms-report-heading)>.page-header h1,.r12-layout .main:has(.p4-editor #tb-resizable-editor)>.page-header h1{font-size:18px!important;line-height:1.2!important}
.r12-layout .main .rms-report-heading,.r12-layout .main .p4-editor .tb-report-heading{position:static!important;padding:3px 4px 5px!important;margin:0!important}
.r12-layout .main .rms-report-heading h2,.r12-layout .main .p4-editor .tb-report-heading h2{font-size:clamp(20px,2vw,26px);font-weight:700;line-height:1.15;margin:0 0 3px!important;overflow-wrap:anywhere}
.r12-layout .main .rms-report-heading p,.r12-layout .main .p4-editor .tb-report-heading p{font-size:13px;line-height:1.3;overflow-wrap:anywhere}
.r12-layout .main:has(.rms-report-heading) ol.rms-connected-tracker,.r12-layout .main .p4-editor ol.rms-connected-tracker{position:sticky!important;top:var(--rms-editor-top,var(--rms-header-height,90px));z-index:35;margin:0 0 8px!important;padding:3px 5px!important;min-height:48px;box-shadow:0 2px 5px #112b4010;align-self:start}
.r12-layout .main:has(.rms-report-heading) ol.rms-connected-tracker li,.r12-layout .main .p4-editor ol.rms-connected-tracker li{gap:2px!important;min-height:0!important}
.r12-layout .main:has(.rms-report-heading) ol.rms-connected-tracker .stage-icon,.r12-layout .main .p4-editor ol.rms-connected-tracker .stage-icon{width:23px;height:23px;flex-basis:23px;font-size:12px}
.r12-layout .main:has(.rms-report-heading) ol.rms-connected-tracker li::after,.r12-layout .main .p4-editor ol.rms-connected-tracker li::after{top:11px}
.r12-layout .main:has(.rms-report-heading) ol.rms-connected-tracker li b,.r12-layout .main .p4-editor ol.rms-connected-tracker li b{font-size:12px;line-height:1.15}
.r12-layout .main:has(.rms-report-heading) #resizable-editor,.r12-layout .main .p4-editor #tb-resizable-editor{height:auto!important;min-height:0!important;align-items:start!important;overflow:visible!important}
.r12-layout .main:has(.rms-report-heading) #resizable-editor .report-entry-column,.r12-layout .main .p4-editor #tb-resizable-editor .tb-entry-wrap{height:auto!important;max-height:none!important;overflow:visible!important;overscroll-behavior:auto!important;min-height:0}
.r12-layout .main:has(.rms-report-heading) #resizable-editor .preview:not(.preview-fullscreen),.r12-layout .main .p4-editor #tb-resizable-editor .tb-preview-wrap:not(.tb-preview-fullscreen){height:auto!important;min-height:0!important;max-height:none!important;position:relative!important;top:auto!important;display:flex!important;flex-direction:column;overflow:hidden!important}
.r12-layout .main:has(.rms-report-heading) #resizable-editor .preview:not(.preview-fullscreen) .preview-scroll,.r12-layout .main .p4-editor #tb-resizable-editor .tb-preview-wrap:not(.tb-preview-fullscreen) .tb-preview-scroll{flex:1 1 auto;min-height:0;max-height:65dvh!important;overflow:auto!important}
.r12-layout .main:has(.rms-report-heading) .p4-sticky,.r12-layout .main .p4-editor .p4-sticky{position:sticky!important;bottom:0!important;z-index:40;background:var(--r12-panel,#fff);padding:7px 10px;margin-top:8px!important;gap:8px;border-radius:8px;box-shadow:0 -3px 10px #112b4015;align-self:end}
.r12-layout .main #p4-routine-save-state{margin-right:auto;font-weight:600;align-self:center;font-size:13px}
.r12-layout .main:has(.rms-report-heading) :is(.field,.editor-section,input,select,textarea,button),.r12-layout .main:has(.p4-editor #tb-resizable-editor) :is(.field,.editor-section,input,select,textarea,button){scroll-margin-top:calc(var(--rms-editor-top) + var(--rms-editor-track) + 10px);scroll-margin-bottom:calc(var(--rms-editor-bottom) + 12px)}
.r12-layout .main .p4-editor .tb-workspace{display:block;overflow:visible}.r12-layout .main .p4-editor .tb-workspace>.rms-correction-alert,.r12-layout .main .p4-editor .tb-workspace>.callout{margin-bottom:8px}
@container (min-width:880px){
 .r12-layout .main:has(.rms-report-heading) #resizable-editor:not(.preview-expanded),.r12-layout .main .p4-editor #tb-resizable-editor:not(.tb-expanded){display:grid!important;align-items:start!important}
 .r12-layout .main:has(.rms-report-heading) #resizable-editor:not(.preview-expanded) .preview:not(.preview-fullscreen),.r12-layout .main .p4-editor #tb-resizable-editor:not(.tb-expanded) .tb-preview-wrap:not(.tb-preview-fullscreen){position:sticky!important;top:calc(var(--rms-editor-top) + var(--rms-editor-track) + 9px)!important;height:var(--rms-editor-view-height,max(180px,calc(100dvh - var(--rms-editor-top) - var(--rms-editor-track) - var(--rms-editor-bottom) - 26px)))!important;max-height:none!important;align-self:start}
 .r12-layout .main:has(.rms-report-heading) #resizable-editor .preview:not(.preview-fullscreen) .preview-scroll,.r12-layout .main .p4-editor #tb-resizable-editor .tb-preview-wrap:not(.tb-preview-fullscreen) .tb-preview-scroll{max-height:none!important}
 .r12-layout .main:has(.rms-report-heading) #resizable-editor:not(.preview-expanded) .editor-resize-handle,.r12-layout .main .p4-editor #tb-resizable-editor:not(.tb-expanded) .editor-resize-handle{display:flex!important;position:sticky!important;top:calc(var(--rms-editor-top) + var(--rms-editor-track) + 9px)!important;height:var(--rms-editor-view-height,max(180px,calc(100dvh - var(--rms-editor-top) - var(--rms-editor-track) - var(--rms-editor-bottom) - 26px)))!important;min-height:0!important;max-height:none!important;align-self:start}
}
@container (max-width:879px){
 .r12-layout .main:has(.rms-report-heading) #resizable-editor,.r12-layout .main .p4-editor #tb-resizable-editor{display:block!important}
 .r12-layout .main:has(.rms-report-heading) #resizable-editor .editor-resize-handle,.r12-layout .main .p4-editor #tb-resizable-editor .editor-resize-handle{display:none!important}
 .r12-layout .main:has(.rms-report-heading) #resizable-editor .preview:not(.preview-fullscreen),.r12-layout .main .p4-editor #tb-resizable-editor .tb-preview-wrap:not(.tb-preview-fullscreen){margin-top:10px}
}
@media (max-width:560px){
 .r12-layout .main:has(.rms-report-heading) ol.rms-connected-tracker li b,.r12-layout .main .p4-editor ol.rms-connected-tracker li b{font-size:11px;overflow-wrap:anywhere}
 .r12-layout .main:has(.rms-report-heading) .p4-sticky,.r12-layout .main .p4-editor .p4-sticky{gap:5px;padding:6px}
 .r12-layout .main .p4-sticky button{padding:7px 10px;font-size:13px}
}
}
@media screen{
body:has(.r12-layout .main .rms-report-heading,.r12-layout .main .p4-editor #tb-resizable-editor) #toast{bottom:84px}
}
@media screen and (max-width:560px){body:has(.r12-layout .main .rms-report-heading,.r12-layout .main .p4-editor #tb-resizable-editor) #toast{bottom:125px;right:10px;left:10px;max-width:none}}
/* Constrain the TB grid's intrinsic content width so long labels and the
   natural-width A4 preview cannot force horizontal page scrolling. */
@media screen{
.r12-layout .main:has(.p4-editor #tb-resizable-editor) #tb-report-root,.r12-layout .main .tb-module.p4-editor,.r12-layout .main .p4-editor .tb-workspace{width:100%;max-width:100%;min-width:0;grid-template-columns:minmax(0,1fr)}
.r12-layout .main .p4-editor #tb-entry-form,.r12-layout .main .p4-editor #tb-resizable-editor .tb-entry-wrap,.r12-layout .main .p4-editor #tb-resizable-editor .tb-preview-wrap:not(.tb-preview-fullscreen){min-width:0;max-width:100%}
.r12-layout .main .p4-editor #tb-resizable-editor .tb-preview-scroll{min-width:0;max-width:100%}
.r12-layout .main .p4-editor #tb-entry-form .rms-module-grid{grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr))}
.r12-layout .main .p4-editor #tb-entry-form .field{min-width:0;overflow-wrap:anywhere}
.r12-layout .main .p4-editor #tb-entry-form :is(input,select,textarea){max-width:100%;min-width:0}
.r12-layout .main .p4-editor #tb-entry-form .action-bar{flex-wrap:wrap}
}
