.rd-overlay{position:fixed;inset:0;z-index:180;background:#241a16a8;display:flex;align-items:center;justify-content:center;padding:18px;box-sizing:border-box}.rd-modal{width:min(1480px,100%);max-height:95vh;max-height:95dvh;display:flex;flex-direction:column;min-height:0;border:1px solid #dec8ae;border-radius:18px;background:#fffdf8;color:#493a33;box-shadow:0 24px 90px #120d0b40}.rd-modal>header{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;border-bottom:1px solid #eadccc;gap:16px}.rd-modal h2{margin:0;font-size:21px;color:#772e39}.rd-body{overflow:auto;overscroll-behavior:contain;min-height:0;padding:18px 22px}.rd-modal footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;padding:14px 22px;border-top:1px solid #eadccc}.rd-modal label{display:flex;flex-direction:column;gap:6px;margin:12px 0;font-size:14px}.rd-modal input:not([type=checkbox]),.rd-modal select,.rd-modal textarea{box-sizing:border-box;width:100%;font:inherit;font-size:14px;padding:8px 10px;border:1px solid #d9c8b3;border-radius:7px;background:#fff;color:#493a33}.rd-modal textarea{resize:vertical;line-height:1.6}.rd-modal pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:13px;line-height:1.8;max-height:380px;overflow:auto;background:#faf4eb;padding:12px;border-radius:8px}.rd-modal h3{font-size:17px;color:#753942;margin:0 0 12px}.rd-modal details{margin:14px 0}.rd-modal summary{cursor:pointer;color:#795c45;font-size:14px}.rd-error{color:#a43128;background:#fff0eb;white-space:pre-wrap;font-size:14px;line-height:1.6;padding:10px 22px}.rd-error:empty{display:none}.rd-note{color:#8a7562;font-size:13px;line-height:1.7}.rd-patient{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 14px;background:#f8efdf;border-radius:9px;margin-bottom:18px}.rd-patient b{font-size:19px}.rd-status{font-size:13px;padding:5px 10px;background:#fff4d9;color:#a66a16;border-radius:20px}.rd-status.approved{color:#26715b;background:#e6f5eb}.rd-status.rejected{color:#aa3b2a;background:#fff0eb}.rd-layout{display:grid;grid-template-columns:minmax(250px,35%) minmax(0,1fr);gap:22px;align-items:start}.rd-clinical{padding:14px;background:#faf6ef;border:1px solid #e6d9c9;border-radius:10px}.rd-case-fields>div{display:flex;align-items:flex-start;gap:6px;border-bottom:1px dashed #e9ddce;padding:7px 0;line-height:1.7;font-size:14px;overflow-wrap:anywhere}.rd-case-fields b{min-width:100px;font-weight:500;color:#8a5c40}.rd-case-fields span{white-space:pre-wrap}.rd-table-wrap{overflow:auto}.rd-table{width:100%;border-collapse:collapse;font-size:14px;table-layout:fixed}.rd-table th,.rd-table td{text-align:left;border-bottom:1px solid #e9ddce;padding:9px 7px;vertical-align:top;overflow-wrap:anywhere}.rd-table th:nth-child(1){width:25%}.rd-table th:nth-child(2){width:16%}.rd-table th:nth-child(3){width:19%}.rd-table th:last-child:empty{width:36px}.rd-table td small{display:block;color:#91765d;font-size:12px;line-height:1.6;margin-top:5px}.rd-table .rd-group th{background:#f1e4d1;color:#744b34;font-weight:600;width:auto}.rd-table .is-new{background:#fff4df}.rd-source{display:inline-block;font-size:12px;line-height:1.6;padding:3px 6px;border-radius:5px;background:#eee7dd;color:#74604e}.rd-source.new{background:#fbe2b1;color:#9f5a0e}.rd-source.retained{background:#edf0e5;color:#5d7047}.rd-checks{margin:16px 0;padding:14px;background:#fff8e9;border:1px solid #e6d0ac;border-radius:9px;font-size:14px;line-height:1.8}.rd-checks h3{font-size:16px}.rd-checks ul{padding-left:20px;margin:8px 0}.rd-checks small{color:#907a61}.rd-review-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.rd-review-fields label:first-child{grid-column:1/-1}.rd-modal .rd-ack{flex-direction:row;align-items:flex-start;gap:9px;line-height:1.7;color:#6d4733}.rd-ack input{margin-top:5px;flex-shrink:0}.rd-review-note{padding:12px;background:#f8eddd;border-left:3px solid #bc8e5a;white-space:pre-wrap}.rd-photos{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.rd-photos button{border:1px solid #d7bfa0;border-radius:7px;padding:3px;background:#fff;cursor:pointer}.rd-photos img{display:block;width:82px;height:105px;object-fit:cover}.rd-photo-overlay{position:fixed;inset:0;z-index:12000;background:#15120ff2;display:flex;align-items:center;justify-content:center}.rd-photo-overlay>img{width:100vw;height:100vh;object-fit:contain}.rd-photo-overlay>button{position:absolute;right:15px;top:15px;font-size:25px;background:#fff9}.rd-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:12px 0}.rd-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;border:1px solid #e1c18a;border-left:4px solid #bd893b;background:#fff7e7;border-radius:10px;padding:15px;text-align:left;cursor:pointer;font:inherit;color:#573c2d}.rd-card b{font-size:17px}.rd-card span,.rd-card small{font-size:13px;color:#92775f}.rd-card strong{font-size:14px;color:#a36518}.rd-card.approved{border-color:#9abca9;background:#f1f8f2}.rd-card.approved strong{color:#31795e}.rd-card.rejected{border-color:#d3a097;background:#fff3ee}.rd-card.rejected strong{color:#a34637}.rd-inbox>h3{font-size:18px;color:#7a3540}.rd-inbox>h3 span{font-weight:400;font-size:14px;margin-left:12px}.rd-message-button{margin-top:12px!important;border-color:#bc9362!important;color:#7e4734!important}.rd-final-confirm{padding:14px 22px;border-top:1px solid #e6caa5;background:#fff1d8;color:#784b27;font-size:14px;line-height:1.8}.rd-final-confirm .btn{margin-right:10px}.rd-diff .rd-table{font-size:13px}@media(max-width:800px){.rd-layout{grid-template-columns:1fr}.rd-overlay{padding:6px}.rd-body{padding:12px}.rd-modal>header,.rd-modal footer{padding:12px}.rd-modal h2{font-size:18px}.rd-table{min-width:580px}.rd-review-fields{grid-template-columns:1fr}.rd-review-fields label:first-child{grid-column:auto}}

.rd-modal pre.rd-source-text{max-height:none;font-size:15px;line-height:1.9;border:1px solid #eadccc;background:#fff9ef}

/* R4.4.92: fixed patient toolbar, inline original photo and optional final form. */
.rd-raw-modal{width:calc(100vw - 28px);max-width:1920px;max-height:calc(100dvh - 28px)}.rd-raw-modal>header,.rd-raw-modal>footer,.rd-raw-modal>.rd-review-toolbar,.rd-raw-modal>#rd-error{flex-shrink:0}.rd-raw-modal>.rd-review-toolbar{margin:0;padding:12px 20px;border-radius:0;border-bottom:1px solid #e4d3b9;background:#f8efdf;display:flex;justify-content:space-between;gap:14px;z-index:2}.rd-patient-identity{display:flex;gap:12px;flex-wrap:wrap;align-items:center;min-width:0}.rd-toolbar-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}.rd-raw-modal .rd-body{padding:14px 18px}.rd-case-context{border:1px solid #e8d9c4;border-radius:9px;padding:10px 14px;margin:0 0 14px!important;background:#faf6ef}.rd-case-context>.rd-case-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:20px;margin-top:12px}.rd-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}.rd-workspace.has-photo{grid-template-columns:minmax(0,.85fr) minmax(0,1.3fr)}.rd-workspace.has-final{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.rd-workspace.has-photo.has-final{grid-template-columns:minmax(0,.85fr) minmax(0,1.1fr) minmax(0,1.1fr)}.rd-workspace>section,.rd-workspace>aside{min-width:0}.rd-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.rd-panel-head h3{margin:0;line-height:1.6}.rd-panel-head .btn{flex-shrink:0}.rd-raw-modal .rd-source-text{font-size:15px;line-height:1.9;margin:0;max-height:none}.rd-draft-pane,.rd-final-pane,.rd-photo-pane{border:1px solid #e6d6bf;border-radius:10px;padding:14px;background:#fffdf8}.rd-final-pane{background:#fffaf1}.rd-photo-pane{position:sticky;top:0;background:#f5f0e8}.rd-workspace [hidden]{display:none!important}.rd-original-stage{height:min(64vh,800px);min-height:280px;overflow:auto;background:#e9e4db;border-radius:8px}.rd-original-stage img{display:block;width:100%;height:100%;object-fit:contain;transform-origin:top left;max-width:none}.rd-image-tools{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:8px 0 12px}.rd-image-tools .btn{padding:6px 9px;font-size:12px}.rd-final-pane .rd-review-fields{grid-template-columns:1fr}.rd-final-pane #rd-final-content{min-height:300px}.rd-workspace:not(.has-photo):not(.has-final) .rd-draft-pane{max-width:1200px;width:100%;box-sizing:border-box;justify-self:center}
@media(max-width:1000px){.rd-workspace.has-photo.has-final{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.rd-workspace.has-photo.has-final .rd-photo-pane{grid-column:1/-1;position:static}.rd-workspace.has-photo.has-final .rd-original-stage{height:45vh}.rd-case-context>.rd-case-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.rd-raw-modal{width:100%;max-height:calc(100dvh - 12px)}.rd-raw-modal>.rd-review-toolbar{padding:10px;gap:8px}.rd-patient-identity{gap:7px;font-size:12px}.rd-patient-identity b{font-size:16px}.rd-toolbar-actions .btn{padding:6px 9px;font-size:13px}.rd-workspace.has-photo,.rd-workspace.has-final,.rd-workspace.has-photo.has-final{grid-template-columns:minmax(0,1fr)}.rd-photo-pane{position:static}.rd-case-context>.rd-case-fields{grid-template-columns:1fr}.rd-raw-modal .rd-body{padding:10px}.rd-draft-pane,.rd-final-pane,.rd-photo-pane{padding:10px}.rd-raw-modal .rd-source-text{font-size:14px}.rd-original-stage{height:50vh}.rd-final-pane #rd-final-content{min-height:220px}}
.rd-original-stage{height:clamp(220px,calc(100dvh - 525px),720px);min-height:220px}
@media(max-width:650px){.rd-original-stage{height:50vh}}

/* Original image interaction follows the intake reference viewer. */
.rd-original-stage{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;cursor:grab;outline-offset:3px;user-select:none;-webkit-user-select:none}.rd-original-stage.is-dragging{cursor:grabbing}.rd-original-stage img{display:block;flex:none;max-width:none;max-height:none;object-fit:initial;transform-origin:center;pointer-events:none;image-rendering:auto;visibility:hidden}.rd-photo-resolution{display:block;font-size:12px;line-height:1.6;color:#9b846b;margin-top:4px}.rd-image-zoom{gap:5px;margin-top:-4px}.rd-image-zoom output{min-width:42px;text-align:center;font-size:12px;color:#85523a;font-variant-numeric:tabular-nums}.rd-photo-help{margin:9px 0 0;font-size:11px;line-height:1.65;text-align:center;color:#927960}.rd-photo-pane .rd-panel-head{align-items:flex-start}.rd-photo-pane{overflow:hidden}

/* Default review: confirmed case on the left, model draft on the right. */
.rd-raw-modal [hidden]{display:none!important}.rd-workspace.has-case{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.rd-case-pane{min-width:0;border:1px solid #e6d6bf;border-radius:10px;padding:14px;background:#faf6ef}.rd-raw-modal pre.rd-case-text{margin:0;padding:12px;border:1px solid #e7d8c4;border-radius:8px;background:#fffaf2;font-size:15px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;max-height:none}.rd-workspace.has-case .rd-case-pane,.rd-workspace.has-case .rd-draft-pane{box-sizing:border-box;max-height:calc(100dvh - 270px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.rd-workspace.has-case>.rd-draft-pane{max-width:none!important;width:auto!important;justify-self:stretch!important}.rd-workspace.has-case .rd-panel-head{position:sticky;top:-14px;z-index:1;background:inherit;padding:3px 0 8px;margin-bottom:4px}@media(max-width:650px){.rd-workspace.has-case{grid-template-columns:minmax(0,1fr)}.rd-case-pane{padding:10px}.rd-workspace.has-case .rd-case-pane,.rd-workspace.has-case .rd-draft-pane{max-height:60dvh}.rd-raw-modal pre.rd-case-text{font-size:14px}.rd-workspace.has-case .rd-panel-head{top:-10px}}

/* R4.4.92: both reading sheets always remain in the fixed review workspace. */
.rd-fixed-review{height:calc(100dvh - 28px);min-height:0;overflow:clip}.rd-fixed-review>.rd-body{display:flex;flex:1 1 0;min-height:0;overflow:clip;padding:14px 18px}.rd-fixed-review .rd-workspace{flex:1;min-height:0;height:100%;align-items:stretch;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:14px;overflow:clip}.rd-fixed-review .rd-workspace.has-photo,.rd-fixed-review .rd-workspace.has-final{grid-template-columns:minmax(0,.95fr) minmax(0,1.1fr) minmax(0,1.1fr)}.rd-fixed-review .rd-workspace.has-photo.has-final{grid-template-columns:minmax(0,.9fr) minmax(0,.95fr) minmax(0,1.1fr) minmax(0,1.15fr)}.rd-fixed-review .rd-case-pane,.rd-fixed-review .rd-draft-pane{display:flex;flex-direction:column;min-height:0;height:100%;max-height:none!important;overflow:clip!important;scrollbar-gutter:auto!important;box-sizing:border-box;position:relative}.rd-fixed-review .rd-panel-head{flex:none;position:static!important;padding:0 0 7px!important;top:auto!important;z-index:auto;min-width:0}.rd-fixed-review .rd-panel-head h3{font-size:16px;line-height:1.4;overflow-wrap:anywhere}.rd-fixed-review .rd-sheet-viewport{position:relative;flex:1 1 0;min-height:0;min-width:0;overflow:clip;touch-action:none;background:#fff9ef;border:1px solid #eadccc;border-radius:7px;padding:0}.rd-fixed-review pre.rd-sheet-text{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:auto;max-width:none;max-height:none;margin:0;padding:9px 10px;border:0;border-radius:0;overflow:visible;white-space:normal;font:inherit;font-size:16px;line-height:1.43;overflow-wrap:anywhere;transform-origin:top left;background:transparent;color:#493a33}.rd-sheet-line{display:block;white-space:normal;margin:0;padding:0}.rd-fixed-review .rd-photo-pane{display:flex;flex-direction:column;min-height:0;height:100%;position:static;grid-column:auto!important;box-sizing:border-box;overflow:clip}.rd-fixed-review .rd-original-stage{flex:1 1 0;min-height:0;height:auto!important}.rd-fixed-review .rd-photo-help{flex:none}.rd-fixed-review .rd-image-tools{flex:none}.rd-fixed-review .rd-final-pane{height:100%;min-height:0;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.rd-fixed-review>.rd-final-confirm{flex:none;max-height:30dvh;overflow:auto;overscroll-behavior:contain}.rd-fixed-review .rd-ack{flex:none;font-size:12px;margin:8px 0 0}.rd-fixed-review>header{padding:14px 18px}.rd-fixed-review>footer{padding:10px 18px}.rd-fixed-review>.rd-review-toolbar{padding:10px 18px}.rd-overlay:has(.rd-fixed-review){overscroll-behavior:none}@media(max-width:650px){.rd-fixed-review{height:calc(100dvh - 12px);max-height:calc(100dvh - 12px)}.rd-fixed-review>.rd-body{padding:8px}.rd-fixed-review .rd-workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:7px}.rd-fixed-review .rd-workspace.has-photo,.rd-fixed-review .rd-workspace.has-final{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(3,minmax(0,1fr))}.rd-fixed-review .rd-workspace.has-photo.has-final{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(4,minmax(0,1fr))}.rd-fixed-review .rd-panel-head h3{font-size:13px}.rd-fixed-review .rd-case-pane,.rd-fixed-review .rd-draft-pane,.rd-fixed-review .rd-photo-pane,.rd-fixed-review .rd-final-pane{padding:7px}.rd-fixed-review .rd-photo-pane .rd-panel-head,.rd-fixed-review .rd-image-tools{margin-bottom:3px}.rd-fixed-review .rd-image-tools .btn{padding:3px 5px;font-size:10px}.rd-fixed-review .rd-photo-help{display:none}.rd-fixed-review>header{padding:10px}.rd-fixed-review>header h2{font-size:16px}.rd-fixed-review>.rd-review-toolbar{padding:8px}.rd-fixed-review>footer{padding:8px}.rd-fixed-review>.rd-review-toolbar .rd-patient-identity b{font-size:14px}.rd-fixed-review>.rd-review-toolbar .rd-toolbar-actions .btn{padding:4px 7px;font-size:12px}}

/* Use the full sheet width instead of keeping one short original line per row. */
.rd-fixed-review .rd-source-text .rd-sheet-line{display:inline}.rd-fixed-review .rd-source-text .rd-sheet-heading{display:block;margin:4px 0 2px;font-weight:600}.rd-fixed-review .rd-source-text .rd-sheet-heading:first-child{margin-top:0}

/* Match the intake reference viewer inside the available review column. */
.rd-fixed-review .rd-photo-pane{position:relative!important;padding:0;background:#faf6ef;border-color:#cbb89d;box-shadow:0 4px 16px #3f231a14}
.rd-fixed-review .rd-photo-pane .rd-original-stage{position:absolute;inset:0;flex:none;width:100%;height:100%!important;border-radius:inherit;background:transparent}
.rd-fixed-review .rd-photo-pane .rd-original-stage img{box-shadow:0 4px 16px #3f231a33;border-radius:5px;background:#fff}
.rd-photo-head{position:absolute;top:7px;left:7px;right:7px;z-index:3;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:5px;pointer-events:none}
.rd-photo-caption{display:flex;flex-wrap:wrap;align-items:center;gap:4px;max-width:100%;min-width:0;box-sizing:border-box;padding:4px 7px;border:1px solid #e5d9c44d;border-radius:7px;background:rgba(255,253,248,.58);backdrop-filter:blur(4px);color:#5c3927;font-size:10px;line-height:1.5}
.rd-photo-caption b{font-size:12px}.rd-photo-caption .rd-photo-resolution{display:inline;margin:0;font-size:10px;color:#6f5646}
.rd-photo-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:4px;max-width:100%;min-width:0}
.rd-photo-tools .btn{pointer-events:auto;min-height:0;min-width:28px;height:30px;box-sizing:border-box;padding:0 7px;font:inherit;font-size:11px;font-weight:600;line-height:1;white-space:nowrap;border:1px solid rgba(141,108,81,.38);border-radius:7px;background:rgba(255,253,248,.58);backdrop-filter:blur(4px);box-shadow:0 1px 4px #2b1c1314;color:#643f2d}
.rd-photo-tools output{min-width:37px;height:30px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:0 3px;border-radius:7px;background:rgba(255,253,248,.58);backdrop-filter:blur(4px);color:#643f2d;font-size:11px;font-variant-numeric:tabular-nums}
.rd-photo-tools [data-rd-action="raw-photo-toggle"]{width:30px;border-radius:50%;font-size:20px;font-weight:400;padding:0}
.rd-photo-tools .btn:hover,.rd-photo-tools .btn:focus-visible{background:rgba(255,253,248,.9);border-color:#97674a}
.rd-photo-tools .btn:focus-visible{outline:2px solid #16725b;outline-offset:2px}
.rd-fixed-review .rd-photo-help{position:absolute;bottom:7px;left:7px;right:7px;z-index:2;max-width:calc(100% - 14px);width:max-content;margin:0 auto;box-sizing:border-box;padding:4px 7px;border-radius:7px;background:rgba(255,253,248,.58);backdrop-filter:blur(4px);pointer-events:none;color:#6f5646;font-size:10px}
.rd-photo-navigation .btn{min-height:0;position:absolute;top:50%;z-index:2;transform:translateY(-50%);width:30px;height:42px;padding:0;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border:0;border-radius:9px;background:rgba(83,42,29,.5);backdrop-filter:blur(3px);color:#fff;font-size:23px;line-height:1}
.rd-photo-navigation [data-rd-action="raw-photo-prev"]{left:4px}.rd-photo-navigation [data-rd-action="raw-photo-next"]{right:4px}.rd-photo-navigation .btn:hover{background:rgba(83,42,29,.8)}
@media(max-width:650px){.rd-photo-head{top:5px;left:5px;right:5px;gap:3px}.rd-photo-caption{padding:2px 5px}.rd-photo-caption b{font-size:11px}.rd-photo-tools{gap:3px}.rd-photo-tools .btn{min-width:25px;height:27px;padding:0 5px;font-size:10px}.rd-photo-tools output{min-width:32px;height:27px;font-size:10px}.rd-photo-tools [data-rd-action="raw-photo-toggle"]{width:27px;font-size:19px}.rd-photo-navigation .btn{width:24px;height:28px;font-size:20px}}

/* Clear field alignment and separate prescription groups in the fixed workspace. */
.rd-fixed-review .rd-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1.12fr)}
.rd-fixed-review .rd-workspace.has-photo{grid-template-columns:minmax(0,.72fr) minmax(0,1fr) minmax(0,1.24fr)}
.rd-fixed-review .rd-workspace.has-final{grid-template-columns:minmax(0,1fr) minmax(0,1.24fr) minmax(0,.84fr)}
.rd-fixed-review .rd-workspace.has-photo.has-final{grid-template-columns:minmax(0,.72fr) minmax(0,1.05fr) minmax(0,1.35fr) minmax(0,.85fr)}
.rd-fixed-review .rd-case-pane,.rd-fixed-review .rd-draft-pane{padding:15px;background:#fffdf8}
.rd-fixed-review .rd-sheet-viewport{container-type:inline-size;background:#fffefb;border-color:#ebdfd0}
.rd-fixed-review pre.rd-sheet-text{padding:.7em .8em;line-height:1.55;letter-spacing:.015em;color:#3f342f;font-variant-numeric:tabular-nums}
.rd-fixed-review pre.rd-case-text{display:grid;grid-template-columns:minmax(0,1fr);gap:.2em .8em;align-content:start}
.rd-case-field{display:grid;grid-template-columns:5.3em minmax(0,1fr);column-gap:.25em;min-width:0;padding:.1em 0}
.rd-case-label{color:#8b654d;font-weight:500}.rd-case-value{min-width:0;white-space:normal;overflow-wrap:anywhere}
.rd-case-wide{grid-column:1/-1;grid-template-columns:8.4em minmax(0,1fr)}
.rd-case-narrative{display:block;margin-top:.35em;padding-top:.45em;border-top:1px solid #eee3d6}
.rd-case-narrative .rd-case-label{display:block;margin-bottom:.15em;font-weight:600;color:#784a3c}
.rd-fixed-review .rd-case-text>.rd-sheet-line:not(.rd-case-field){grid-column:1/-1}
.rd-fixed-review .rd-source-text .rd-sheet-line{display:block;margin:0 0 .32em;line-height:1.6;white-space:pre-wrap}
.rd-fixed-review .rd-source-text .rd-sheet-heading{display:block;margin:.85em 0 .4em;padding:0 0 .3em;border-bottom:1px solid #e9dbc7;color:#793d35;font-weight:700;line-height:1.4}
.rd-fixed-review .rd-source-text .rd-sheet-heading:first-child{margin-top:0}
.rd-fixed-review .rd-source-text .rd-sheet-heading{border:0;padding:0}
.rd-section-label{display:block;padding-bottom:.3em;border-bottom:1px solid #e9dbc7;margin-bottom:.4em}.rd-section-rest{display:block;color:#3f342f;font-weight:400;line-height:1.6}.rd-section-rest:empty{display:none}
.rd-symptom-label{display:block;color:#82523c;font-weight:600;margin-bottom:.12em}
.rd-fixed-review .rd-panel-head h3{font-size:17px;line-height:1.5}.rd-fixed-review .rd-panel-head{margin-bottom:3px}
@container(min-width:560px){.rd-fixed-review pre.rd-case-text{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.rd-fixed-review .rd-workspace,.rd-fixed-review .rd-workspace.has-photo,.rd-fixed-review .rd-workspace.has-final,.rd-fixed-review .rd-workspace.has-photo.has-final{grid-template-columns:minmax(0,1fr)}.rd-fixed-review .rd-case-pane,.rd-fixed-review .rd-draft-pane{padding:7px}.rd-fixed-review .rd-panel-head h3{font-size:13px}}

/* Horizontal medicine text uses the full reading width and larger fitted type. */
.rd-fixed-review>header{padding:9px 16px}.rd-fixed-review>.rd-review-toolbar{padding:8px 16px}.rd-fixed-review>footer{padding:8px 16px}
.rd-fixed-review>.rd-body{padding:8px 10px}.rd-fixed-review .rd-workspace{gap:10px;grid-template-columns:minmax(0,.94fr) minmax(0,1.16fr)}
.rd-fixed-review .rd-workspace.has-photo{grid-template-columns:minmax(0,.7fr) minmax(0,.98fr) minmax(0,1.32fr)}
.rd-fixed-review .rd-workspace.has-final{grid-template-columns:minmax(0,.98fr) minmax(0,1.34fr) minmax(0,.8fr)}
.rd-fixed-review .rd-workspace.has-photo.has-final{grid-template-columns:minmax(0,.67fr) minmax(0,1fr) minmax(0,1.45fr) minmax(0,.8fr)}
.rd-fixed-review .rd-case-pane,.rd-fixed-review .rd-draft-pane{padding:8px}.rd-fixed-review pre.rd-sheet-text{padding:.45em .5em}
.rd-fixed-review .rd-source-text .rd-sheet-line{line-height:1.55;margin-bottom:.24em;white-space:normal}
.rd-fixed-review .rd-source-text .rd-public-row{display:inline;margin:0;white-space:normal}
.rd-fixed-review .rd-source-text .rd-sheet-heading{margin:.55em 0 .3em}.rd-fixed-review .rd-source-text .rd-sheet-heading:first-child{margin-top:0}
.rd-section-label{padding-bottom:.22em;margin-bottom:.25em}.rd-symptom-label{display:inline;margin:0 .3em 0 0;white-space:normal}
.rd-fixed-review .rd-source-text .rd-public-row::after{content:"";display:inline-block;width:.65em}
.rd-flow-unit{display:inline-block;white-space:nowrap;max-width:100%;vertical-align:baseline}
/* Compact final editor: three initial lines, full content height after typing/paste. */
.rd-fixed-review .rd-final-pane #rd-final-content,.rd-fixed-review .rd-final-pane [data-rd-adjustment]{display:block;box-sizing:border-box;min-height:0!important;max-height:none!important;height:auto;resize:none;overflow:hidden;font:inherit;font-size:15px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;padding:10px 11px}
.rd-final-pane .rd-agent-editor{margin:4px 0 16px;padding:0;border:0}
.rd-agent-editor>label{display:block;font-weight:600;color:#793d35;margin-bottom:7px}
.rd-raw-modal #rd-final-toggle,.rd-agent-editor #rd-calculate-final{background:#762c38;border-color:#762c38;color:#fff}
.rd-raw-modal #rd-final-toggle[aria-expanded="false"]:hover:not(:disabled),.rd-agent-editor #rd-calculate-final:hover:not(:disabled){background:#60222d;border-color:#60222d}
.rd-raw-modal #rd-final-toggle[aria-expanded="true"]{background:#4d1720;border-color:#4d1720;box-shadow:inset 0 2px 5px #24081066}
.rd-agent-editor #rd-calculate-final{margin-top:9px;font-weight:600}
.rd-agent-editor #rd-calculate-final:focus-visible{outline:3px solid #c8a770;outline-offset:2px}
#rd-agent-status{font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;color:#7a5844;margin:8px 0 0}
#rd-agent-status:empty{display:none}
#rd-agent-status.is-running::before{content:"";display:inline-block;width:12px;height:12px;margin-right:7px;border:2px solid #b8d5ca;border-top-color:#17745e;border-radius:50%;vertical-align:-2px;animation:rd-calculating .8s linear infinite}
@keyframes rd-calculating{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#rd-agent-status.is-running::before{animation:none}}
@media(max-width:650px){.rd-fixed-review .rd-workspace,.rd-fixed-review .rd-workspace.has-photo,.rd-fixed-review .rd-workspace.has-final,.rd-fixed-review .rd-workspace.has-photo.has-final{grid-template-columns:minmax(0,1fr);gap:7px}.rd-fixed-review>header{padding:8px 10px}.rd-fixed-review>.rd-review-toolbar{padding:8px}.rd-fixed-review>footer{padding:8px}}

/* Reserve one third of the screen width for the original on desktop.
   Opening the final editor redistributes only the remaining columns. */
@media(min-width:651px){
 .rd-fixed-review .rd-workspace.has-photo{grid-template-columns:minmax(0,33.333333vw) minmax(0,.98fr) minmax(0,1.32fr)}
 .rd-fixed-review .rd-workspace.has-photo.has-final{grid-template-columns:minmax(0,33.333333vw) minmax(0,1fr) minmax(0,1.45fr) minmax(0,.8fr)}
}

/* Final prescription: instructions first, generated course prescription below. */
.rd-agent-source{font-size:12px;line-height:1.65;color:#8a7562;margin:7px 0 0}
.rd-generated-prescription{padding:14px 0 4px;margin:0 0 8px;border-top:1px solid #e6d6bf}
.rd-generated-prescription>label{font-weight:600;color:#793d35;margin:0 0 7px}

.rd-name-confirmation{padding:12px;margin-top:10px;border:1px solid #d6b57e;border-radius:8px;background:#fff3db;font-size:14px;line-height:1.65}.rd-name-confirmation ul{padding-left:20px;margin:7px 0}.rd-name-confirmation p{margin:6px 0 10px}

.hc-v10-conflict{background:#fff0ed;border:1px solid #d44d40;border-radius:8px;padding:12px;margin:10px 0;color:#7f2d25;overflow-wrap:anywhere}.hc-v10-conflict mark{background:#ffdad3;color:#982418;font-weight:700}.hc-v10-conflict p{margin:6px 0;line-height:1.5}.hc-v10-conflict label{display:block;margin-top:8px}.hc-v10-conflict select,.hc-v10-conflict textarea,.hc-v10-packing input{box-sizing:border-box;width:100%;padding:8px;font:inherit}.hc-v10-packing{border:1px solid #d9c4a9;border-radius:10px;padding:16px;margin-top:16px}

/* R4.4.95: oldest submitted draft first, one red pending card per row. */
#rd-doctor-inbox>.rd-cards{grid-template-columns:minmax(0,1fr);gap:10px}
.rd-card.pending{background:#fff0ed;border-color:#d96a62;border-left:4px solid #af302d;color:#702e2c}
.rd-card.pending b{color:#7f2e2c}.rd-card.pending strong{color:#a32c27}.rd-card.pending span,.rd-card.pending small{color:#8b504a}
.rd-card.pending:hover{background:#ffe5df;border-color:#b73e36}.rd-card.pending:focus-visible{outline:2px solid #a9342f;outline-offset:3px}
.rd-card time{font-variant-numeric:tabular-nums}.rd-card-note{white-space:pre-wrap;overflow-wrap:anywhere}

/* R4.4.96: shared confirmation form, without opening the modification pane. */
.rd-modal>.rd-review-dialog{position:absolute;z-index:12;inset:9% 12% 7%;overflow:auto;max-height:none;background:#fffdf8;border:1px solid #d7b5a4;border-radius:14px;box-shadow:0 0 0 200vmax #29181288,0 12px 40px #29181244;padding:20px;}
.rd-review-dialog .rd-confirm-actions{display:flex;gap:10px;justify-content:flex-end;position:sticky;bottom:-20px;background:#fffdf8;padding:12px 0;}
.rd-review-dialog .rd-review-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.rd-review-dialog .rd-review-fields>label:last-child{grid-column:1/-1;}
@media(max-width:760px){.rd-modal>.rd-review-dialog{inset:5% 3%;padding:12px}.rd-review-dialog .rd-review-fields{grid-template-columns:1fr;}}

.rd-review-dialog.is-reject .rd-review-fields,.rd-review-dialog.is-reject #rd-v10-review,.rd-review-dialog.is-reject .rd-ack{display:none}

.rd-review-dialog .rd-review-fields>label{grid-column:auto;margin:0}
.rd-review-dialog .rd-review-fields>label:last-child{grid-column:1/-1}
.rd-review-dialog #rd-review-note{min-height:64px;height:64px}
.rd-review-dialog .rd-ack{margin-bottom:24px}

/* R4.4.103: three explicitly typed physician-edit fields. */
.rd-adjustment-field{margin:0 0 15px}
.rd-final-pane .rd-adjustment-field>label{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:7px;font-weight:600;color:#793d35;margin:0 0 7px}
.rd-adjustment-index{display:inline-flex;justify-content:center;align-items:center;width:21px;height:21px;border-radius:50%;background:#f0e4d1;color:#793d35;font-size:12px;flex:0 0 auto}
.rd-adjustment-field>small{display:block;font-size:12px;line-height:1.6;color:#8a7562;margin-top:5px}
.rd-legacy-adjustments{padding:9px 11px;background:#f6efdf;border-radius:8px;font-size:12px;line-height:1.65;color:#7a5844;margin:0 0 12px}
.rd-legacy-adjustments p{white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0}

/* R4.4.105: compact auto-height inputs and confirmation-only prescription fields. */
.rd-fixed-review #rd-review-note,.rd-fixed-review #rd-order{display:block;box-sizing:border-box;min-height:0!important;max-height:none!important;resize:none;overflow:hidden;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.rd-fixed-review .rd-final-pane .rd-review-fields{display:none}

/* R4.4.106: clearer review actions and slightly larger confirmation text. */
.rd-fixed-review>footer .btn,.rd-fixed-review .rd-confirm-actions .btn{border:1.5px solid #b28d75;background:#fffdf8;color:#503b30;font-size:15px;font-weight:600;line-height:1.5;min-height:40px;padding:8px 16px;border-radius:8px}
.rd-fixed-review>footer .btn:hover,.rd-fixed-review .rd-confirm-actions .btn:hover{border-color:#875e49;background:#f8efdf}
.rd-fixed-review>footer .btn[data-rd-action="approve"],.rd-review-dialog .rd-confirm-actions .btn[data-rd-action="confirm-review"]{background:#17745e;border-color:#17745e;color:#fff}
.rd-fixed-review>footer .btn[data-rd-action="approve"]:hover:not(:disabled),.rd-review-dialog .rd-confirm-actions .btn[data-rd-action="confirm-review"]:hover:not(:disabled){background:#125e4c;border-color:#125e4c}
.rd-fixed-review>footer .btn:focus-visible,.rd-fixed-review .rd-confirm-actions .btn:focus-visible{outline:3px solid #d5b988;outline-offset:2px}
.rd-fixed-review .rd-ack{font-size:15px;line-height:1.7}
.rd-fixed-review #rd-review-controls .rd-ack{font-weight:700}
.rd-fixed-review .rd-ack input[type=checkbox]{width:18px;height:18px;margin-top:3px;accent-color:#17745e}
.rd-fixed-review .rd-review-dialog label,.rd-fixed-review .rd-review-dialog input:not([type=checkbox]),.rd-fixed-review .rd-review-dialog select,.rd-fixed-review .rd-review-dialog textarea{font-size:15px}

/* Optional fee is confirmed by the store and never changes clinical doses. */
.rd-fee{display:inline-block;padding:4px 9px;border:1px solid #d5b988;border-radius:6px;background:#fff9ed;color:#71472f;font-weight:600;font-size:14px}

.rd-weight-check-actions{display:flex;justify-content:flex-end;margin:10px 0}.rd-weight-check-actions .btn{border:1px solid #8b5c3d;background:#fff9ed;color:#76482d;font-weight:700;padding:9px 18px}
.rd-weight-check-result{margin:10px 0 16px;padding:13px;border:1px solid #d6b98e;border-radius:9px;background:#fff8e9;color:#75532e;font-size:14px;line-height:1.7;overflow-wrap:anywhere}.rd-weight-check-result[hidden]{display:none}.rd-weight-check-result.is-passed{border-color:#8cbaa3;background:#edf6f0;color:#276548}.rd-weight-check-result.is-different{border-color:#ce8175;background:#fff0ed;color:#8b342b}.rd-weight-check-result>strong{font-size:16px}.rd-weight-check-result p{margin:7px 0}.rd-weight-check-result ul{margin:7px 0;padding-left:20px}.rd-weight-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.rd-weight-metrics>span{display:flex;flex-direction:column;border:1px solid #d7cbb9;border-radius:6px;padding:7px 9px;background:#ffffff80}.rd-weight-metrics b{font-size:17px}/* Compact verification summary; circle draws before the check. */
.rd-weight-check-heading{display:flex;align-items:center;gap:9px;min-height:28px}.rd-weight-check-heading strong{font-size:16px}.rd-weight-summary{display:block;font-size:12px;line-height:1.7;margin-top:8px}.rd-weight-differences{font-size:12px}
.rd-weight-checkmark{width:28px;height:28px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.rd-check-circle,.rd-check-tick{stroke-dasharray:100;stroke-dashoffset:0;animation:rd-check-draw .4s ease-out both}.rd-check-tick{animation-duration:.28s;animation-delay:.35s}
@keyframes rd-check-draw{from{stroke-dashoffset:100}to{stroke-dashoffset:0}}
@media(prefers-reduced-motion:reduce){.rd-check-circle,.rd-check-tick{animation:none;stroke-dashoffset:0}}

.rd-fixed-review .rd-final-pane details pre,.rd-confirm-prescription pre{max-height:none;overflow:visible;white-space:pre-wrap;overflow-wrap:anywhere}
.rd-confirm-prescription{margin:10px 0}
/* Source-format failures are distinct from clinical/rule conflicts; original text is immutable. */
.rd-format-checks{flex:none;margin:8px 10px;padding:10px 12px;border:1px solid #b45309;background:#fff7ed;color:#7c2d12;max-height:30vh;overflow:auto;font-size:14px;line-height:1.5}
.rd-format-checks p{margin:6px 0 0}.rd-format-checks code{display:block;white-space:pre-wrap;overflow-wrap:anywhere;color:inherit}
.rd-format-checks .btn{margin:4px 0;font-size:14px}.rd-source-issue{background:#fff0b3;outline:2px solid #b45309;outline-offset:1px}.rd-source-issue:focus{outline:3px solid #9a3412}
