﻿.imaging-report { position:fixed;top:12px;right:12px;bottom:12px;width:min(460px,calc(100vw - 24px));z-index:1250;display:flex;flex-direction:column;box-sizing:border-box;background:#10212b;color:#ecf4f7;border:1px solid #6c9bab;border-radius:12px;box-shadow:0 12px 48px #0008;font:14px/1.45 system-ui,sans-serif; }
.imaging-report[hidden] { display:none; }
.imaging-report * { box-sizing:border-box; }
.imaging-report header { display:flex;align-items:center;gap:8px;padding:12px;border-bottom:1px solid #38525f; }
.imaging-report h2 { flex:1;font-size:18px;line-height:1.3;margin:0; }
.imaging-report h3 { font-size:15px;line-height:1.4;margin:18px 0 8px; }
.imaging-report-patient { white-space:pre-wrap;padding:8px 14px;margin:0;background:#19323f;font-weight:600; }
.imaging-report-status { min-height:24px;padding:8px 14px;margin:0;color:#c6e5ef;font-size:13px; }
.imaging-report-body { overflow:auto;overscroll-behavior:contain;padding:0 14px 14px;flex:1;min-height:0; }
.imaging-report-tabs { display:flex;gap:2px;padding:0 8px 8px; }
.imaging-report-tabs button { flex:1;min-width:0!important;font-size:12px;padding:5px 3px; }
.imaging-report-tabs button[aria-selected="true"] { background:#126678;border-color:#65c7d9; }
.imaging-report [role="tabpanel"][hidden] { display:none; }
.imaging-report label { display:block;font-weight:600;margin:12px 0 5px; }
.imaging-report input,.imaging-report select,.imaging-report textarea { display:block;width:100%;background:#081820;color:#f2f7f9;border:1px solid #67818e;border-radius:5px;padding:8px;font:inherit;min-height:38px; }
.imaging-report textarea { resize:vertical; }
.imaging-report-editor { min-height:72px;padding:9px;background:#081820;border:1px solid #67818e;border-radius:5px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.5; }
.imaging-report-editor[aria-readonly="true"] { opacity:.75; }
.imaging-report-editor div,.imaging-report-editor p { margin:0; }
.imaging-report-editor ul,.imaging-report-editor ol { margin:4px 0;padding-left:24px; }
#imaging_report_findings { min-height:120px; }
.imaging-report-formatbar { display:flex;flex-wrap:wrap;gap:4px;position:sticky;top:0;background:#10212bf5;padding:8px 0;z-index:1;border-bottom:1px solid #38525f;margin-top:10px; }
.imaging-report-formatbar { flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin; }
.imaging-report-formatbar button { flex:0 0 auto; }
.imaging-report-formatbar button[aria-pressed="true"] { background:#126678;border-color:#65c7d9; }
.imaging-report-formatbar button { min-width:36px;padding:5px 8px; }
#imaging_report_format_bold { font-weight:700; } #imaging_report_format_italic { font-style:italic; } #imaging_report_format_underline { text-decoration:underline; }
.imaging-report button { min-height:36px;border:1px solid #7197a7;border-radius:5px;background:#203f4e;color:#f2f7f9;padding:6px 10px;font:inherit;cursor:pointer; }
.imaging-report button:disabled,.imaging-report input:disabled,.imaging-report textarea:disabled,.imaging-report select:disabled { opacity:.65;cursor:default; }
.imaging-report :focus-visible { outline:2px solid #83ddfa;outline-offset:2px; }
.imaging-report-actions { display:flex;gap:6px;flex-wrap:wrap; }
.imaging-report-actions select { flex:1;min-width:150px; }
.imaging-report footer { display:flex;flex-wrap:wrap;gap:8px;padding:12px;border-top:1px solid #38525f; }
.imaging-report button.imaging-report-primary { width:100%;background:#126678;border-color:#65c7d9;font-weight:600; }
.imaging-report-evidence { display:flex;flex-direction:column;gap:8px;border:1px solid #496471;padding:10px;border-radius:6px;margin-top:12px; }
.imaging-report-evidence img { max-width:100%;max-height:220px;object-fit:contain;background:black; }
.imaging-report-measurement { display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #496471;padding:10px 0; }
@media(max-width:600px) { .imaging-report { inset:6px;width:calc(100vw - 12px); }.imaging-report header { flex-wrap:wrap; } }
@media(pointer:coarse),(max-width:900px) {
 .imaging-report button,.imaging-report-formatbar button { min-height:44px;min-width:44px;touch-action:manipulation; }
 .imaging-report input,.imaging-report select,.imaging-report textarea { font-size:16px;min-height:44px; }
 .imaging-report { padding-bottom:env(safe-area-inset-bottom,0px); }
}
@media(max-height:500px) {
 .imaging-report header { padding:5px 10px; }.imaging-report-patient { font-size:12px;padding:4px 10px;white-space:normal; }
 .imaging-report-status { padding:3px 10px;font-size:12px; }.imaging-report footer { padding:6px;gap:4px; }
 .imaging-report button.imaging-report-primary { width:auto;flex:1 0 190px; }
}
@media(pointer:coarse) and (max-height:500px) and (min-width:600px) {
 .imaging-report { width:calc(100vw - 12px);right:6px; }
 .imaging-report footer { flex-wrap:nowrap; }.imaging-report footer button { white-space:normal;font-size:12px; }
 .imaging-report-tabs button { white-space:nowrap; }.imaging-report-formatbar { margin-top:0;padding:4px 0; }
}
.imaging-report.is-short .imaging-report-patient,.imaging-report.is-short .imaging-report-tabs,
.imaging-report.is-keyboard .imaging-report-patient,.imaging-report.is-keyboard .imaging-report-tabs { display:none; }
.imaging-report.is-short footer button:not(#imaging_report_save),.imaging-report.is-keyboard footer button:not(#imaging_report_save) { display:none; }
.imaging-report.is-short header,.imaging-report.is-keyboard header { padding:4px 8px; }
.imaging-report.is-short .imaging-report-formatbar,.imaging-report.is-keyboard .imaging-report-formatbar { margin-top:0;padding:4px 0; }
.imaging-report-preview { box-sizing:border-box;width:min(940px,calc(100vw - 16px));height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border:1px solid #7197a7;border-radius:10px;background:#19323f;color:#ecf4f7;padding:12px;overflow:auto;overscroll-behavior:contain; }
.imaging-report-preview::backdrop { background:#000a; }
.imaging-report-confirm { box-sizing:border-box;width:min(520px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);margin:auto;padding:24px;border:1px solid #7197a7;border-radius:12px;background:#10212b;color:#ecf4f7;box-shadow:0 16px 64px #0009;font:16px/1.5 system-ui,sans-serif;overflow:auto;overscroll-behavior:contain;z-index:2147483647; }
.imaging-report-confirm::backdrop { background:#000a; }

.imaging-report-confirm h2 { margin:0 0 12px;font-size:20px;line-height:1.3; }
.imaging-report-confirm p { margin:0 0 24px;overflow-wrap:anywhere; }
.imaging-report-confirm-actions { display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap; }
.imaging-report-confirm button { min-height:44px;min-width:44px;padding:9px 14px;border:1px solid #7197a7;border-radius:6px;background:#203f4e;color:#f2f7f9;font:inherit;cursor:pointer;touch-action:manipulation; }
.imaging-report-confirm button.imaging-report-confirm-primary { background:#126678;border-color:#65c7d9;font-weight:600; }
.imaging-report-confirm :focus-visible { outline:2px solid #83ddfa;outline-offset:3px; }
@media(max-width:400px),(max-height:450px) { .imaging-report-confirm { padding:16px; }.imaging-report-confirm p { margin-bottom:16px; } }
.imaging-report-preview>button { min-height:44px;background:#ecf4f7;color:#10212b;border:0;border-radius:5px;padding:8px 14px;position:sticky;top:0; }
.imaging-report-paper { background:white;color:#15212a;padding:clamp(16px,4vw,48px);font:14px/1.55 system-ui,sans-serif;margin:12px auto;max-width:794px;overflow-wrap:anywhere; }
.imaging-report-paper.is-landscape { max-width:1123px; }
.imaging-report-paper h1 { font-size:24px;line-height:1.3; }.imaging-report-paper h2 { font-size:17px;margin-top:24px; }
.imaging-report-paper-images { display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin-top:30px; }
.imaging-report-paper-images.is-pair { grid-template-columns:repeat(2,minmax(0,1fr)); }
.imaging-report-paper figure { margin:0;min-width:0; }.imaging-report-paper img { width:100%;max-height:420px;object-fit:contain; }.imaging-report-paper figcaption { font-size:12px;white-space:pre-wrap; }
.quick-preview-document { position:absolute;inset:0;display:flex;flex-direction:column;min-width:0;min-height:0;background:#20303b;color:#eaf3f8;font:14px/1.3 system-ui,sans-serif;cursor:default; }
.quick-preview-document-toolbar { min-width:0; }
.quick-preview-document-tools { display:flex;flex-wrap:wrap;gap:8px;align-items:center;font:13px/1.3 system-ui,sans-serif;color:#ecf4f7; }
.quick-preview-document-toolgroup { display:flex;align-items:center;gap:0;flex:0 0 auto;border:1px solid #38525f;border-radius:7px;background:#112630;overflow:hidden; }
.quick-preview-document-tools button,.quick-preview-document-tools a,.quick-preview-document-tools input { display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;flex-shrink:0;min-width:44px;height:44px;margin:0;padding:0 9px;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;touch-action:manipulation; }
.quick-preview-document-tools button:hover:not(:disabled),.quick-preview-document-tools a:hover { background:#254856;color:#fff; }
.quick-preview-document-tools .material-icons { font-size:22px; }
.quick-preview-document-tools input { width:40px;min-width:40px;height:32px;padding:2px;background:#071b24;border:1px solid #547481;border-radius:4px;text-align:center;font-size:16px;appearance:textfield;cursor:text; }
.quick-preview-document-tools input::-webkit-inner-spin-button,.quick-preview-document-tools input::-webkit-outer-spin-button { appearance:none;margin:0; }
.quick-preview-document-zoom { min-width:48px;text-align:center;font-variant-numeric:tabular-nums; }
.quick-preview-document-tools button:disabled { opacity:.45; }
.quick-preview-document-toolbar[hidden],.quick-preview-document-tools [hidden],.quick-preview-document [hidden] { display:none; }
.quick-preview-document-count { min-width:20px;flex-shrink:0;white-space:nowrap;font-variant-numeric:tabular-nums;padding-left:2px; }
.quick-preview-toolbar.is-document [data-image-controls],.quick-preview-viewport-link.is-document-unavailable { display:none!important; }
.quick-preview-shell:has(>.quick-preview-toolbar.is-document)>.quick-preview-measure-panel { display:none!important; }
/* PDF occupies the same toolbar slots and row metrics as image tools. */
.quick-preview-document-tools { flex-wrap:nowrap; }
.quick-preview-document-toolgroup { box-sizing:border-box;height:36px; }
.quick-preview-document-tools button,.quick-preview-document-tools a { height:34px;min-width:34px;font-size:12px; }
.quick-preview-document-tools input { height:28px; }
.quick-preview-document-toolbar { overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain; }
.quick-preview-document-toolbar::-webkit-scrollbar { display:none; }
.quick-preview-toolbar-primary>.quick-preview-document-toolbar { flex:0 1 auto; }
@media(pointer:coarse),(max-width:1100px) {
 .quick-preview-document-toolgroup { height:44px; }
 .quick-preview-document-tools button,.quick-preview-document-tools a { height:42px;min-width:44px; }
 .quick-preview-document-tools input { height:32px; }
}
.is-document.is-compact .quick-preview-toolbar-actions { display:flex; }
 .is-document.is-compact .quick-preview-toolbar-actions>.quick-preview-layout-picker { flex:0 0 calc((100% - 15px)/6); }
 .is-document.is-compact .quick-preview-document-toolbar { flex:1 1 0; }
 .is-document.is-compact .quick-preview-document-tools { gap:4px; }
 .is-document.is-compact .quick-preview-document-tool-label { display:none; }
 .is-document.is-compact .quick-preview-document-toolgroup { height:44px; }
 .is-document.is-compact .quick-preview-document-tools button,.is-document.is-compact .quick-preview-document-tools a { height:42px;min-width:44px; }
 .is-document.is-compact .quick-preview-document-tools input { height:32px; }
@media(max-width:600px) {
 .quick-preview-document-zoom { display:none; }
 .quick-preview-document-tools input { width:36px;min-width:36px; }
 .quick-preview-document-count { min-width:18px;padding-left:0;font-size:12px; }
}
.quick-preview-document-pages { position:relative;flex:1;min-width:0;min-height:0;overflow:hidden;touch-action:none;overscroll-behavior:contain;cursor:grab;user-select:none; }
.quick-preview-document-pages.is-dragging { cursor:grabbing; }
.quick-preview-document-surface { position:absolute;left:50%;top:50%;transform-origin:center;pointer-events:none; }
.quick-preview-document-pages canvas { display:block;width:100%;height:100%;max-width:none;max-height:none; }
.quick-preview-document-page { background:#fff;box-shadow:0 1px 8px #0008; }
.quick-preview-document-images { position:absolute;inset:0; }
.quick-preview-document-sheet { background:#fff; }
.quick-preview-document-references { position:absolute;inset:0; }
.quick-preview-document-references button { position:absolute;pointer-events:auto;border:2px solid transparent;background:transparent;padding:0;cursor:pointer;min-width:0;min-height:0; }
.quick-preview-document-references button:hover,.quick-preview-document-references button:focus-visible { border-color:#eeff41;background:#eeff4114; }
.quick-preview-document-sheet:has(.quick-preview-document-page[width="1"]) { visibility:hidden; }
.quick-preview-document.is-inverted .quick-preview-document-page { filter:invert(1) hue-rotate(180deg);box-shadow:none; }
.quick-preview-document-tools button[aria-pressed="true"] { color:#eeff41;background:#26341a; }
.quick-preview-document-status { padding:10px;margin:0; }
.imaging-report-letterhead { color:#255b6f;border-bottom:2px solid #255b6f;padding-bottom:8px;margin-bottom:16px;font-size:12px; }
.imaging-report-paper-patient { background:#f0f4f6;padding:12px;white-space:pre-line; }

.quick-preview-document-reference-label { position:absolute;right:4px;bottom:4px;display:flex;align-items:center;gap:4px;max-width:calc(100% - 8px);padding:4px 7px;border-radius:5px;background:#10212bee;color:#fff;font:12px/1.3 system-ui,sans-serif;box-shadow:0 1px 4px #0008;pointer-events:none; }
.quick-preview-document-reference-label .material-icons { font-size:17px; }
.quick-preview-document-reference-label span { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.quick-preview-layout-cell.is-report-reference { box-shadow:inset 0 0 0 4px #67d5e5;animation:report-reference-pulse 1.8s ease-out; }
@keyframes report-reference-pulse { from { box-shadow:inset 0 0 0 7px #eeff41; } to { box-shadow:inset 0 0 0 4px #67d5e5; } }
@media(prefers-reduced-motion:reduce){.quick-preview-layout-cell.is-report-reference { animation:none; }}
.quick-preview-document-version { flex:0 0 auto;padding:5px 12px;color:#bce8dc;background:#123138;font-size:12px; }
.quick-preview-document-version[data-status="historical"] { color:#ffe3a0;background:#342d20; }
.quick-preview-document-version[hidden],.quick-preview-document-search[hidden] { display:none; }
.imaging-report-version { margin:0;padding:5px 14px;font-size:12px;background:#123138;color:#bce8dc; }
.imaging-report-version[data-status="historical"] { background:#342d20;color:#ffe3a0; }
.quick-preview-document-search { display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:5px 8px;background:#10212b;flex:0 0 auto; }
.quick-preview-document-search input { flex:1 1 100px;min-width:60px;width:100px;height:40px;box-sizing:border-box;border:1px solid #67818e;border-radius:5px;background:#081820;color:#fff;padding:6px 8px;font:16px system-ui,sans-serif; }
.quick-preview-document-search button { flex:0 0 auto;min-width:40px;min-height:40px;border:1px solid #67818e;border-radius:5px;background:#203f4e;color:#fff;cursor:pointer; }
.quick-preview-document-search button:disabled { opacity:.45; }
.quick-preview-document-search-count { font-size:12px;max-width:100%;overflow-wrap:anywhere; }
/* TextLayer geometry follows the locally shipped PDF.js 6.3.289 text_layer_builder.css. */
.quick-preview-document-text { position:absolute;inset:0;width:100%!important;height:100%!important;overflow:clip;line-height:1;letter-spacing:normal;word-spacing:normal;text-align:initial;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;pointer-events:none;--scale-round-x:1px;--scale-round-y:1px;--min-font-size:1;--text-scale-factor:calc(var(--total-scale-factor)*var(--min-font-size));--min-font-size-inv:calc(1/var(--min-font-size)); }
.quick-preview-document-text :is(span,br) { position:absolute;white-space:pre;color:transparent;transform-origin:0 0;user-select:text;-webkit-user-select:text;cursor:text; }
.quick-preview-document-text > :not(.markedContent),.quick-preview-document-text .markedContent span:not(.markedContent) { font-size:calc(var(--text-scale-factor)*var(--font-height));transform:rotate(var(--rotate,0deg)) scaleX(var(--scale-x,1)) scale(var(--min-font-size-inv)); }
.quick-preview-document-text .markedContent { display:contents; }
.quick-preview-document-text ::selection { color:transparent;background:#3bb9e788; }
.quick-preview-document-text mark { color:transparent;background:#ffd74077; }
.quick-preview-document-text mark.is-current { background:#ff8f00bb;outline:1px solid #ff8f00; }
.quick-preview-document.is-text-selecting .quick-preview-document-pages { touch-action:auto;user-select:text;-webkit-user-select:text; }
.quick-preview-document.is-text-selecting .quick-preview-document-text { pointer-events:auto; }
.quick-preview-series-card.is-pdf .quick-preview-series-thumb { background:#21333e; }
.quick-preview-series-card.is-pdf .quick-preview-series-thumb img { object-fit:contain; }
.imaging-report-paper h2 { color:#255b6f; }
.imaging-report-paper figure { break-inside:avoid; }
.imaging-report-paper figcaption { white-space:pre-wrap;overflow-wrap:anywhere; }
.quick-preview-stage.has-document > :not(.quick-preview-document):not(.quick-preview-series-access) { display:none!important; }
.quick-preview-layout-cell.has-document > :not(.quick-preview-document) { display:none!important; }
.quick-preview-layout-cell.has-document { cursor:default; }
.quick-preview-document :focus-visible,.quick-preview-document-tools :focus-visible { outline:2px solid #eeff41;outline-offset:-2px; }

/* The document canvas edits the same ordered blocks that the PDF renderer consumes. */
.imaging-report { width:min(640px,calc(100vw - 24px)); }
.imaging-report.is-expanded { width:min(1060px,calc(100vw - 24px)); }
.imaging-report header h2 { min-width:100px; }
.report-design-insert { display:flex;gap:6px;padding:8px 0; }
.report-design-insert button { display:inline-flex;align-items:center;justify-content:center; }
.report-design-insert button:last-child { margin-left:auto; }
.report-design-paper { --report-accent:#255b6f;background:#fff;color:#17232a;box-shadow:0 3px 14px #0005;padding:24px clamp(12px,3vw,32px);font:14px/1.5 system-ui,sans-serif;border-radius:2px;overflow-wrap:anywhere; }
.report-design-paper[data-design="illustrated"] { line-height:1.65; }
.report-design-letterhead { display:flex;align-items:center;gap:14px;color:var(--report-accent);border-bottom:2px solid var(--report-accent);padding-bottom:10px;margin-bottom:16px;font-size:11px;white-space:pre-line; }
.report-design-letterhead img { max-width:100px;max-height:48px;object-fit:contain; }
.report-design-letterhead>div { min-width:0; }
.report-design-mark { flex:0 0 38px;align-self:flex-start; }
.report-design-mark[hidden] { display:none; }
.report-design-mark svg { display:block;width:38px;height:36px; }
.report-design-sender { flex:1; }
.report-design-sender strong { display:block;font-size:15px;line-height:1.3;margin-bottom:5px; }
.report-design-contact { flex:0 1 34%;border-left:1px solid #afc6d0;padding-left:12px;font-size:10px; }
.report-design-paper input.report-design-title { font-size:23px;font-weight:700;line-height:1.3;min-height:44px;padding:4px 0;color:#142630;background:transparent;border:1px solid transparent; }
.report-design-title:focus { border-color:var(--report-accent)!important; }
.report-design-patient { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));white-space:pre-line;background:#eff5f8;padding:12px;margin:8px 0 12px;font-size:12px;border-radius:7px; }
.report-design-patient-cell { min-width:0;padding-right:12px; }
.report-design-patient-cell+div { padding-left:12px;padding-right:0;border-left:1px solid #b8ccd7; }
.report-design-patient-cell>strong { display:block;color:var(--report-accent);text-transform:uppercase;letter-spacing:.07em;font-size:10px;margin-bottom:6px; }
.report-design-patient-cell small { display:block;margin-top:3px; }
.report-design-foot { white-space:pre-line;border-top:1px solid var(--report-accent);margin-top:24px;padding-top:8px;font-size:11px;color:var(--report-accent); }
.report-design-foot:empty { display:none; }
@font-face { font-family:ReportAllura;src:url('../fonts/report-allura.ttf') format('truetype');font-display:swap; }
.report-design-paper { container-type:inline-size;color:#264858;color-scheme:light; }
.report-design-letterhead.stationery-masthead { display:grid;grid-template-columns:15% 48% 20% 17%;gap:0;align-items:center;border-bottom:1px solid #5890a9;padding:0 0 14px;margin:0;white-space:normal; }
.stationery-masthead img.stationery-logo { width:100%;max-width:none;max-height:110px;aspect-ratio:1;object-fit:contain; }
.stationery-wordmark { padding:0 8px; }
.stationery-kicker { font-size:clamp(11px,2.85cqw,24px);font-weight:300;letter-spacing:.07em;line-height:1.2;text-transform:uppercase; }
.report-design-paper .stationery-wordmark input.report-design-title { width:100%;font-size:clamp(19px,4cqw,34px);font-weight:800;letter-spacing:.04em;text-transform:uppercase;min-height:0;padding:0;line-height:1.2;color:var(--report-accent); }
.stationery-tagline { margin-top:6px;color:#739ab0;font-size:clamp(5px,.94cqw,8px);font-weight:600;letter-spacing:.18em;text-transform:uppercase; }
.stationery-expertise { border-left:1px solid #8bb0c2;padding:2px 10px;font-size:clamp(6px,1.12cqw,10px);line-height:1.55; }
.stationery-expertise strong,.stationery-expertise>span { display:block;letter-spacing:.13em;text-transform:uppercase; }
.stationery-expertise hr { width:20px;margin:8px 0;border:0;border-top:1px solid #8bb0c2; }
.stationery-motto { border-left:1px solid #adc4d0;padding-left:12px;font-family:ReportAllura,cursive;font-size:clamp(15px,3cqw,27px);color:#879aaa;line-height:.95; }
.stationery-contact-row { display:grid;grid-template-columns:45% 29% 26%;gap:0;padding:13px 5px;align-items:start;font-size:11px; }
.stationery-contact-row>div { min-width:0;padding-right:12px; }
.stationery-contact-row>div:first-child input { font-weight:700;color:var(--report-accent); }
.stationery-modalities { border-left:1px solid #8bb0c2;padding-left:16px;font-size:9px;letter-spacing:.15em;color:#759bb1; }
.stationery-modalities span { display:block;line-height:1.8; }
.stationery-identity.report-design-patient { display:grid;grid-template-columns:53% 47%;padding:12px 14px;margin:0 0 18px;background:#f0f5f8;border-radius:9px;white-space:normal; }
.stationery-info-panel { min-width:0;padding-right:16px; }
.stationery-info-panel+section { padding-left:16px;padding-right:0;border-left:1px solid #b7cdd9; }
.stationery-info-panel h3 { margin:0 0 8px;padding:0 0 6px;border-bottom:1px solid #97b9cb;display:flex;align-items:center;gap:9px;color:var(--report-accent);font-size:11px;letter-spacing:.11em;text-transform:uppercase; }
.stationery-info-panel h3 i { font-family:"Material Icons"!important;font-size:21px;font-weight:normal;font-style:normal;text-transform:none;letter-spacing:normal;flex:0 0 21px; }
.stationery-field { display:grid!important;grid-template-columns:32% minmax(0,1fr);align-items:baseline;gap:6px;margin:0!important;font-size:11px!important;font-weight:400!important; }
.report-design-paper .stationery-value { display:block;width:100%;min-width:0;min-height:25px!important;margin:0!important;padding:3px 0!important;background:transparent!important;color:#294b60!important;border:0!important;border-bottom:1px solid #a9b9c5!important;border-radius:0!important;font:inherit;line-height:1.4;resize:vertical;box-sizing:border-box; }
.report-design-paper .stationery-value:focus { outline:1px solid #4d98b3;outline-offset:2px;background:#ffffffb0!important; }
.report-design-paper .stationery-value::placeholder { color:#899da9;opacity:.8;font-weight:400; }
.stationery-value.is-readonly { overflow-wrap:anywhere; }
.stationery-contact-row .stationery-value { border:0!important; }
.stationery-context { display:grid;grid-template-columns:49% 51%;padding:0 6px;margin:0 0 18px; }
.stationery-question { margin-top:6px;font-size:11px; }
.stationery-question .imaging-report-editor { min-height:36px;border-bottom:1px solid #a9b9c5; }
.stationery-optional { font-size:11px;color:#617f90; }
.stationery-optional summary { cursor:pointer;min-height:26px;padding:3px 100px 3px 0; }
.stationery-closing { display:grid;grid-template-columns:39% 34% 27%;align-items:end;gap:0;margin:40px 0 18px;color:var(--report-accent); }
.stationery-signature { padding-right:24px; }
.stationery-greeting { font-family:ReportAllura,cursive;font-size:clamp(22px,4cqw,34px);line-height:1.2;padding:0 0 18px; }
.stationery-signature .stationery-value { font-size:10px; }
.stationery-signature input { font-weight:700;border-top:1px solid #a9b9c5!important; }
.stationery-quote { background:#f2f6f9;border-radius:7px;padding:16px 14px;font-family:Georgia,serif;font-style:italic;font-size:13px;line-height:1.5; }
.stationery-quote small { display:block;font:7px/1.5 system-ui,sans-serif;letter-spacing:.16em;margin-top:18px; }
.stationery-watermark { width:100%;max-height:120px;object-fit:contain;opacity:.10; }
.stationery-footer { display:grid;grid-template-columns:43% 37% 20%;gap:8px;font-size:9px;border-color:#5890a9;padding-top:12px; }
.stationery-footer-tagline { grid-column:1/-1;text-align:center;text-transform:uppercase;letter-spacing:.18em;color:#739ab0;font-size:7px;padding-top:10px; }
.report-design-block-actions { position:absolute;right:5px;top:5px;z-index:1; }
.report-design-section h3 { padding-right:105px; }
.report-design-section:has(#imaging_report_findings),.report-design-section:has(#imaging_report_impression),.report-design-section:has(#imaging_report_recommendation) { margin-bottom:24px; }
@container(max-width:440px) {
 .stationery-masthead { grid-template-columns:21% 79%!important;row-gap:12px!important; }
 .stationery-expertise,.stationery-motto { display:none; }
 .stationery-kicker { font-size:4.3cqw; }
 .report-design-paper .stationery-wordmark input.report-design-title { font-size:6cqw; }
 .stationery-tagline { font-size:1.6cqw; }
 .stationery-identity.report-design-patient,.stationery-context { grid-template-columns:1fr;gap:18px; }
 .stationery-info-panel { padding:0; }
 .stationery-info-panel+section { padding:12px 0 0;border-left:0;border-top:1px solid #b7cdd9; }
 .stationery-contact-row { grid-template-columns:60% 40%; }
 .stationery-modalities { display:none; }
 .stationery-closing { grid-template-columns:60% 40%; }
 .stationery-quote { display:none; }
 .stationery-footer { grid-template-columns:1fr 1fr; }
 .stationery-greeting { font-size:27px; }
}
.report-design-block { position:relative;border:1px solid transparent;border-radius:5px;margin:6px -5px;padding:5px; }
.report-design-block:is(:hover,:focus-within,.is-selected) { border-color:#9cb8c6; }
.report-design-block.is-drop-target { border-top:4px solid #13849a;background:#eaf6fa; }
.report-design-block-actions { display:flex;gap:3px;justify-content:flex-end;opacity:.35; }
.report-design-block:is(:hover,:focus-within,.is-selected) .report-design-block-actions { opacity:1; }
.report-design-block-actions button,.report-design-properties button,.report-design-original { display:inline-flex;align-items:center;justify-content:center;background:#f1f6f8!important;color:#244a5c!important;border-color:#c1d2db!important;padding:3px!important;min-width:30px!important;min-height:30px!important; }
.report-design-block .material-icons { font-size:19px; }
.report-design-section h3,.report-design-block-content h3 { color:var(--report-accent);font-size:14px;margin:4px 0 8px;padding-bottom:4px;border-bottom:1px solid #9dbac7;letter-spacing:.06em;text-transform:uppercase; }
.report-design-paper .imaging-report-editor { background:transparent;color:#17232a;border:1px solid transparent;border-radius:2px;padding:4px 0;min-height:34px;line-height:1.5; }
.report-design-paper .imaging-report-editor:is(:hover,:focus) { border-color:#b3c7d1;background:#faffff; }
.report-design-paper #imaging_report_findings { min-height:72px; }
.report-design-paper .imaging-report-editor[aria-readonly="true"] { opacity:1; }
.report-design-paper input.report-design-extra-heading { border:1px solid transparent;background:transparent;color:var(--report-accent);font-weight:700;padding:3px 0; }
.report-design-images { position:relative;margin:8px auto;display:grid;grid-template-columns:minmax(0,1fr);gap:12px; }
.report-design-images[data-layout="pair"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
.report-design-images figure { margin:0;min-width:0;position:relative; }
.report-design-images img { display:block;width:100%;height:auto;max-height:none;object-fit:contain;background:#080d10; }
.report-design-paper textarea.report-design-caption { min-height:54px;background:transparent;color:#17232a;border:1px dashed #a5bbc6;font-size:13px;padding:5px;margin:6px 0;resize:vertical; }
.report-design-images[data-layout="caption-side"] figure { display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:8px;align-items:start; }
.report-design-images[data-layout="caption-side"] textarea { margin:0; }
.report-design-images .report-design-original { position:absolute;left:3px;top:3px; }
.report-design-resize { position:absolute;right:-8px;bottom:-8px;width:30px;height:30px;background:var(--report-accent)!important;color:white!important;padding:0!important;cursor:ew-resize!important;z-index:2; }
.report-design-properties { display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 0;font-size:12px; }
.report-design-properties select { flex:1 1 130px;background:#f2f6f8!important;color:#244a5c!important;min-width:0;width:130px!important;font-size:12px; }
.report-design-properties input[type="range"] { flex:1 1 60px;min-width:60px;width:80px;padding:0;accent-color:var(--report-accent); }
.report-design-properties output { color:#244a5c;min-width:34px; }
.report-design-page-break { border-top:2px dashed #8ca7b5;margin:14px 0;text-align:center;padding-top:5px;color:#597889;font-size:12px; }
.report-design-measurements { width:100%;border-collapse:collapse;font-size:12px; }
.report-design-measurements td { padding:6px;border-bottom:1px solid #cfdae0;vertical-align:top; }
.report-design-measurements td:last-child { white-space:nowrap;text-align:right; }
.report-design-note { color:#b6cdd7;font-size:12px;line-height:1.5; }
.report-design-settings details { border-top:1px solid #496471;margin-top:18px;padding:12px 0; }
.report-design-settings summary { cursor:pointer;font-weight:600;min-height:32px; }
.report-design-settings input[type="color"] { height:44px;padding:3px; }
.report-design-settings label.report-design-check { display:flex;align-items:center;gap:8px;font-weight:400; }
.report-design-check input { width:20px;min-height:20px;flex:0 0 20px; }
.report-design-template { display:flex;align-items:center;gap:6px;padding:10px 0;border-bottom:1px solid #496471; }
.report-design-template strong { flex:1;min-width:0;overflow-wrap:anywhere; }
.report-design-template button { flex:0 0 auto;display:flex;align-items:center; }
.report-preview-header { display:flex;align-items:center;gap:12px;flex:0 0 auto; }
.report-preview-header p { flex:1;font:13px/1.4 system-ui,sans-serif; }
.report-preview-header button { min-height:44px;border:1px solid #67818e;background:#203f4e;color:#fff;border-radius:5px;padding:6px 10px; }
.report-preview-tools { flex:0 0 auto;overflow-x:auto;max-width:100%;padding:6px 0; }
.report-preview-viewport { position:relative;flex:1;min-height:60px; }
.imaging-report-preview[open] { display:flex;flex-direction:column;overflow:hidden; }
@media(min-width:1200px) {
 body:has(>.imaging-report:not([hidden]):not(.is-expanded)) .quick-preview-overlay .quick-preview-shell { width:calc(100vw - 656px);margin-right:656px; }
}
@media(max-width:600px) {
 .imaging-report,.imaging-report.is-expanded { width:calc(100vw - 12px); }
 .report-design-paper { padding:14px 12px; }
 .report-design-properties select { flex-basis:100%; }
 .report-design-paper input.report-design-title { font-size:20px; }
 .report-design-letterhead { flex-wrap:wrap;gap:10px; }
 .report-design-contact { flex:1 1 100%;border-left:0;padding-left:0; }
 .report-design-patient { grid-template-columns:minmax(0,1fr);gap:10px; }
 .report-design-patient-cell+div { border-left:0;border-top:1px solid #b8ccd7;padding:10px 0 0; }
 .imaging-report-body { padding:0 8px 8px; }
}
@media(pointer:coarse) {
 .report-design-block-actions { opacity:1; }
 .report-design-block-actions button,.report-design-properties button { min-height:44px!important;min-width:44px!important; }
 .report-design-resize { width:44px;height:44px; }
}


.report-design-section h3 i { font-family:"Material Icons"!important;text-transform:none;letter-spacing:normal;font-size:21px;font-weight:normal;font-style:normal;vertical-align:middle;margin-right:9px; }

/* A factual sign-off replaces the decorative stationery ending. */
.stationery-closing { display:block;margin:24px 0 14px; }
.stationery-signature { max-width:60%;padding:0; }
.stationery-footer-tagline:empty { display:none; }
@container(max-width:440px) { .stationery-signature { max-width:100%; } }
.report-instance-settings { width:min(660px,calc(100vw - 24px));max-height:90dvh;box-sizing:border-box;overflow:auto;border:1px solid #668b9b;border-radius:12px;background:#102732;color:#e5f0f5;padding:20px;z-index:2147483647; }
.report-instance-settings::backdrop { background:#0009; }
.report-instance-settings header,.report-instance-settings footer { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.report-instance-settings h2 { font-size:19px;margin:0; }
.report-instance-settings label { display:block;margin:14px 0;font-size:13px; }
.report-instance-settings input,.report-instance-settings textarea { display:block;box-sizing:border-box;width:100%;min-height:44px;margin-top:5px;padding:9px;background:#1d3a48;color:#f0f5f8;border:1px solid #7293a3;border-radius:5px; }
.report-instance-settings button { min-height:44px;padding:7px 14px;border:1px solid #6d96a8;background:#1c5268;color:#fff;border-radius:5px;cursor:pointer; }
.report-instance-settings img { max-width:180px;max-height:80px;object-fit:contain;background:white;padding:6px; }
.report-instance-settings [role=status] { min-height:24px; }

.report-instance-settings :disabled { opacity:.5;cursor:not-allowed; }
.report-instance-settings footer { position:sticky;bottom:-20px;background:#102732;padding:10px 0;flex-wrap:wrap; }
.report-instance-settings [hidden] { display:none!important; }

.report-instance-settings input,.report-instance-settings textarea { font:inherit; }
.report-instance-settings img { display:block;margin:8px 0; }

/* Customer-neutral clinic profiles and the stationery preview. */
.report-instance-settings { width:min(1120px,calc(100vw - 24px)); }
.report-instance-body { display:grid;grid-template-columns:minmax(260px,1fr) minmax(300px,1fr);gap:24px; }
.report-instance-settings select { width:100%;min-height:44px;background:#1d3a48;color:#f0f5f8;border:1px solid #7293a3;border-radius:5px;padding:8px;font:inherit; }
.report-profile-actions { display:flex;gap:8px;flex-wrap:wrap; }
.report-instance-settings .report-profile-default { display:flex;align-items:center;gap:10px; }
.report-instance-settings input[type=checkbox] { width:20px;min-height:20px;margin:0; }
.report-instance-settings summary { cursor:pointer;padding:10px 0; }
.report-instance-preview { min-width:0; }
.report-profile-preview { width:100%;overflow:hidden; }
.report-profile-preview .report-design-paper { box-sizing:border-box;min-height:1123px;padding:24px;pointer-events:none; }
.report-instance-settings .report-profile-preview input,.report-instance-settings .report-profile-preview textarea { font:inherit;color:#244554;background:transparent;border:0;border-bottom:1px solid #aac1cb;min-height:24px;padding:2px;margin:0;opacity:1; }
.report-instance-settings .report-profile-preview label { margin:0;font:inherit; }
.report-instance-settings .report-profile-preview img { margin:0;display:block;padding:0;background:transparent;max-height:none;max-width:none; }
.report-profile-sample-lines { height:85px;background:repeating-linear-gradient(transparent 0,transparent 24px,#dce5e9 25px,transparent 26px);margin:10px 0 25px; }
.report-profile-pdf { width:min(1100px,96vw);height:92dvh;background:#102732;color:#fff;border:1px solid #7293a3;display:flex;flex-direction:column;gap:8px;padding:12px; }
.report-profile-pdf:not([open]) { display:none; }
.report-profile-pdf::backdrop { background:#0009; }
.report-profile-pdf>div:last-child { position:relative;flex:1;min-height:0; }
.report-profile-pdf>button { align-self:flex-end;min-height:44px;padding:8px 16px; }
.report-clinic-choice { display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 14px 6px; }
.report-clinic-choice small { width:100%;color:#aac3cd; }
.report-clinic-choice select { min-height:36px;max-width:100%;flex:1; }
.stationery-source { display:block;font:9px/1.2 system-ui,sans-serif;color:#617d89; }
.has-missing-value .stationery-source { color:#876223; }
.report-preflight-checks { max-height:40dvh;overflow:auto; }
.report-preflight-checks ul { padding-left:20px; }
.report-preflight-checks .is-error { color:#ffaaaa; }
.report-preflight-checks .is-warning { color:#f2d297; }
@media(max-width:850px) { .report-instance-body { grid-template-columns:1fr; }.report-instance-settings { width:min(660px,calc(100vw - 24px)); }.report-clinic-choice select { min-height:44px; } }

.report-profile-pdf>div:nth-child(2) { overflow-x:auto;flex-shrink:0; }

.report-instance-settings { font:14px/1.45 system-ui,sans-serif; }
.report-instance-settings .report-profile-preview input.report-design-title { font-size:32px;font-weight:800;line-height:1.2; }

/* Clinical stationery: logo, report title and document facts share one header. */
.report-design-letterhead.stationery-masthead { grid-template-columns:22% minmax(0,54%) minmax(0,24%);align-items:center;padding:8px 0 20px;min-height:150px; }
.stationery-masthead img.stationery-logo { width:100%;height:auto;max-height:100px;aspect-ratio:auto;object-fit:contain;object-position:left center;padding-right:16px; }
.stationery-wordmark { min-width:0;padding:0 16px 0 8px; }
.report-design-paper .stationery-wordmark input.report-design-title,.report-instance-settings .report-profile-preview input.report-design-title { font-size:clamp(22px,5.7cqw,44px);font-weight:750;letter-spacing:-.025em;text-transform:none;line-height:1.2;border:0; }
.stationery-subtitle { margin-top:8px;color:#61869a;font-size:clamp(10px,1.7cqw,14px);line-height:1.4;overflow-wrap:anywhere; }
.stationery-document-meta { border-left:1px solid #8bb0c2;margin:0;padding:0 0 0 16px;font-size:clamp(9px,1.5cqw,12px);line-height:1.35; }
.stationery-document-meta>div+div { margin-top:5px; }.stationery-document-meta dt { color:var(--report-accent);font-weight:650; }.stationery-document-meta dd { margin:0;overflow-wrap:anywhere; }
.stationery-contact-row { grid-template-columns:56% minmax(0,44%);padding:15px 2px 22px;font-size:13px; }
.stationery-contact-row>div { padding-right:14px; }.stationery-contact-row textarea[data-stationery-field=contact] { min-height:75px!important; }
.stationery-contact-row textarea[data-stationery-field=address] { min-height:50px!important; }
.stationery-identity.report-design-patient,.stationery-context { display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0;margin:0 0 16px;background:transparent;border-radius:0; }
.stationery-info-panel,.stationery-info-panel+section { padding:0 10px 10px;border:1px solid #e7eef2;border-radius:3px;background:#f8fbfc; }
.stationery-info-panel h3 { margin:0 -10px 5px;padding:9px 10px;background:#edf4f7;border:0;font-size:12px;letter-spacing:0;min-height:42px; }
.stationery-field { grid-template-columns:36% minmax(0,1fr);border-bottom:1px solid #d5e0e7;min-height:27px; }
.report-design-paper .stationery-field .stationery-value { border-bottom:0!important; }
.stationery-question { display:grid;grid-template-columns:36% minmax(0,1fr);gap:6px;border-bottom:1px solid #d5e0e7; }
.stationery-question .imaging-report-editor { min-width:0; }
@container(max-width:440px) {
 .report-design-letterhead.stationery-masthead { grid-template-columns:24% minmax(0,76%)!important;min-height:0;gap:12px 0!important;padding-bottom:12px; }
 .stationery-document-meta { grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:7px 14px;border-left:0;border-top:1px solid #d5e0e7;padding:10px 0 0;font-size:11px; }
 .stationery-document-meta>div+div { margin-top:0; }.stationery-wordmark { padding-right:0; }
 .stationery-contact-row { grid-template-columns:1fr;font-size:12px;gap:4px; }
 .stationery-identity.report-design-patient,.stationery-context { grid-template-columns:1fr;gap:12px; }
 .stationery-info-panel,.stationery-info-panel+section { padding:0 10px 10px;border:1px solid #e7eef2; }
}

/* Native popup menus need explicit foreground/background pairs in both themes. */
.imaging-report select,.report-instance-settings select { color-scheme:dark; }
.imaging-report select option,.report-instance-settings select option { color:#f2f7f9;background:#10212b; }
.report-design-properties select { color-scheme:light;font-size:14px; }
.report-design-properties select option { color:#17232a;background:#fff; }
