/* ============================================================
   DentPilot — Operative Dentistry Clinical Case Sheet
   شاشة إدخال Mobile-first + قالب A4 أكاديمي حقيقي للطباعة
   ============================================================ */
.op-app-shell{width:min(100%,920px);margin:0 auto;padding:2px 0 30px;color:var(--ink)}
.op-page-head{display:flex;align-items:center;gap:11px;margin:2px 0 13px}.op-page-head>div{min-width:0;flex:1}.op-page-head h2{margin:3px 0 1px;color:var(--navy-800);font-family:'Cairo',sans-serif;font-size:1.16rem;line-height:1.35}.op-page-head p{margin:0;color:var(--muted);font-size:.72rem;line-height:1.5}.op-round-back{display:grid;place-items:center;flex:0 0 auto;width:39px;height:39px;border:1px solid var(--line);border-radius:13px;background:var(--card-surface);color:var(--teal-700);font:1.7rem/1 inherit;cursor:pointer;box-shadow:var(--shadow-sm)}.op-live-save{display:inline-flex;align-items:center;gap:5px;flex:0 0 auto;color:#21745e;font-size:.65rem;font-weight:800;white-space:nowrap}.op-live-save i,.op-autosave-note i{width:6px;height:6px;border-radius:50%;background:#25a678;box-shadow:0 0 0 4px rgba(37,166,120,.12)}
.op-context-bar{margin-bottom:14px}.op-workflow-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 2px 9px;padding:11px 13px;border-radius:15px;background:#f3faf9;border:1px solid #dcefeb;color:#277376}.op-workflow-summary>span{font-size:.72rem;font-weight:800}.op-workflow-summary>div{display:flex;align-items:baseline;gap:4px}.op-workflow-summary b{font-family:'Cairo',sans-serif;font-size:1.1rem;color:var(--navy-800)}.op-workflow-summary small{color:#638082;font-size:.66rem}
.op-new-sheet{margin-top:0}.op-subject-sections{display:flex;flex-direction:column;gap:10px}.op-status-section{padding:13px;border:1px solid var(--line);border-radius:18px;background:var(--card-surface);box-shadow:var(--shadow-sm)}.op-status-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.op-status-section-head>div{display:flex;align-items:flex-start;gap:9px;min-width:0}.op-status-section-head h3{margin:0;color:var(--navy-800);font-family:'Cairo',sans-serif;font-size:.88rem}.op-status-section-head p{margin:2px 0 0;color:var(--muted);font-size:.68rem;line-height:1.45}.op-status-section-head>b{display:grid;place-items:center;min-width:25px;height:25px;border-radius:999px;background:#eef4f7;color:#4b687a;font-family:'Cairo',sans-serif;font-size:.72rem}.op-status-icon{display:grid;place-items:center;flex:0 0 auto;width:33px;height:33px;border-radius:11px;background:#eef5fa;color:#54768f;font-weight:800}.op-status-ready .op-status-icon{background:#fff6df;color:#a8700b}.op-status-followup .op-status-icon{background:#e9f5ff;color:#3676a0}.op-status-approved .op-status-icon{background:#e7f8ef;color:#16815b}.op-section-empty{margin-top:9px;padding:9px 10px;border-radius:11px;background:#f7fafb;color:#71838e;font-size:.69rem}.op-sheet-list{display:flex;flex-direction:column;gap:7px;margin-top:10px}.op-sheet-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;width:100%;border:1px solid #e3ebee;border-radius:12px;padding:9px;background:#fff;color:inherit;font-family:inherit;text-align:start;cursor:pointer}.op-sheet-row-main{min-width:0}.op-sheet-row-main b{display:block;overflow:hidden;color:var(--navy-800);font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}.op-sheet-row-main small{display:block;margin-top:2px;color:var(--muted);font-size:.65rem}.op-status{display:inline-flex;align-items:center;height:max-content;padding:4px 6px;border-radius:999px;background:#eef4f7;color:#506b7e;font-size:.59rem;font-weight:800;white-space:nowrap}.op-status-ready{background:#fff6df;color:#92640b}.op-status-under-review,.op-status-resubmitted{background:#e9f5ff;color:#33749c}.op-status-needs-revision{background:#fff0ef;color:#aa514c}.op-status-approved{background:#e8f8ef;color:#167d58}.op-row-date{display:none}.op-sheet-row i{grid-column:2;grid-row:1;align-self:center;color:var(--teal-600);font-style:normal;font-size:1.35rem;transform:rotate(180deg)}
.op-stepper{display:flex;gap:4px;overflow-x:auto;margin:13px -1px 11px;padding:2px 1px 7px;scrollbar-width:none}.op-stepper::-webkit-scrollbar{display:none}.op-step{position:relative;display:grid;grid-template-columns:auto auto;align-items:center;column-gap:6px;min-width:124px;border:1px solid #dbe5ea;border-radius:13px;padding:8px;background:#fff;color:#6c808c;font-family:inherit;text-align:start;cursor:pointer}.op-step>span{display:grid;grid-row:1 / span 2;place-items:center;width:22px;height:22px;border-radius:50%;background:#edf2f5;color:#657a88;font-size:.65rem;font-weight:800}.op-step b{color:#536a79;font-size:.68rem;line-height:1.15}.op-step small{font-size:.57rem}.op-step.is-active{border-color:#67b9b5;background:#f1fcfa;box-shadow:0 5px 12px rgba(21,129,127,.09)}.op-step.is-active>span{background:var(--dp-elite-gradient);color:#fff}.op-step.is-active b{color:#0e696b}.op-step.is-done>span{background:#def4ec;color:#1a835f}.op-autosave-note{display:flex;align-items:center;gap:7px;margin:0 2px 10px;color:#528073;font-size:.67rem}.op-form-card{margin-top:10px;padding:15px;border:1px solid var(--line);border-radius:19px;background:var(--card-surface);box-shadow:var(--shadow-sm)}.op-card-heading{display:flex;align-items:center;gap:8px;margin-bottom:13px}.op-card-heading>span{display:grid;place-items:center;width:23px;height:23px;border-radius:8px;background:#e7f7f4;color:#107a78;font-size:.61rem;font-weight:800}.op-card-heading h3{margin:0;color:var(--navy-800);font-family:'Cairo',sans-serif;font-size:.92rem}.op-field-grid{display:grid;grid-template-columns:1fr;gap:10px}.op-field{display:flex;flex-direction:column;min-width:0;gap:5px}.op-field-wide{grid-column:1 / -1}.op-label,.op-choice-set legend{color:#506879;font-size:.68rem;font-weight:800}.op-field input,.op-field select,.op-field textarea{box-sizing:border-box;width:100%;min-height:40px;border:1px solid #d8e3e8;border-radius:10px;padding:9px 10px;background:#fff;color:var(--ink);font:inherit;font-size:.8rem;outline:none;transition:border .18s ease,box-shadow .18s ease}.op-field textarea{min-height:76px;resize:vertical;line-height:1.55}.op-field input:focus,.op-field select:focus,.op-field textarea:focus{border-color:#289a99;box-shadow:0 0 0 3px rgba(40,154,153,.12)}.op-academic-readonly{display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px 9px;margin:0 0 13px;padding:10px 11px;border-radius:11px;background:#f3faf9;color:#558083;font-size:.67rem}.op-academic-readonly b{overflow:hidden;color:#0d555b;text-overflow:ellipsis;white-space:nowrap;font-size:.72rem}.op-choice-set{min-width:0;margin:13px 0 0;padding:0;border:0}.op-choice-set legend{margin-bottom:7px}.op-chips{display:flex;flex-wrap:wrap;gap:6px}.op-chip{border:1px solid #d6e2e7;border-radius:999px;padding:7px 9px;background:#fff;color:#587180;font:700 .68rem inherit;cursor:pointer}.op-chip.is-selected{border-color:#2b9a98;background:#e5f8f5;color:#0e7373}.op-two-choices,.op-tri-grid{display:grid;grid-template-columns:1fr;gap:2px 14px}.op-tri-grid{margin-top:12px}.op-tooth-selector{margin:0;padding:0;border:0}.op-tooth-selector legend{margin-bottom:9px;color:#506879;font-size:.69rem;font-weight:800}.op-tooth-row{display:grid;grid-template-columns:repeat(16,minmax(26px,1fr));gap:3px;margin-top:4px}.op-tooth{min-width:0;border:1px solid #d9e4e9;border-radius:7px;padding:6px 1px;background:#fff;color:#587080;font:700 .61rem inherit;cursor:pointer}.op-tooth.is-selected{border-color:#1a8d8b;background:#ddf5f1;color:#096d70}.op-tooth-selector p{margin:8px 0 0;color:#5d7882;font-size:.68rem}.op-tooth-selector p b{color:#0a7777}.op-health-conditions{padding:1px 0;transition:opacity .18s}.op-health-conditions.is-muted{opacity:.52}.op-supervisor-readonly{padding:11px 12px;border:1px solid #d8e7ec;border-radius:12px;background:#f8fbfc}.op-supervisor-readonly>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.op-supervisor-readonly span{color:#5a7786;font-size:.68rem;font-weight:800}.op-supervisor-readonly b{color:#0b5960;font-size:.75rem}.op-supervisor-readonly p{margin:6px 0 0;color:#71848c;font-size:.68rem;line-height:1.55}.op-image-grid{display:grid;grid-template-columns:1fr;gap:9px}.op-image-slot{display:grid;grid-template-columns:80px minmax(0,1fr);gap:9px;align-items:center;padding:8px;border:1px solid #dce7eb;border-radius:12px;background:#fbfdfd}.op-image-thumb{display:grid;place-items:center;overflow:hidden;aspect-ratio:1.2/1;border-radius:8px;background:#f0f5f7;color:#7c8d96;font-size:.62rem;text-align:center}.op-image-thumb img{width:100%;height:100%;object-fit:contain}.op-image-slot b,.op-image-slot small{display:block}.op-image-slot b{color:var(--navy-800);font-size:.72rem}.op-image-slot small{margin-top:2px;color:#71838d;font-size:.6rem;line-height:1.4}.op-image-actions{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.op-image-actions button{border:1px solid #cde0e5;border-radius:7px;padding:5px 6px;background:#fff;color:#26757d;font:700 .59rem inherit;cursor:pointer}.op-image-actions button.danger{border-color:#efc8c4;color:#af534c}.op-editor-footer,.op-review-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;position:sticky;bottom:0;z-index:3;margin-top:14px;padding:10px 0;background:linear-gradient(0deg,var(--app-bg,#f8fafc) 70%,transparent)}.op-editor-footer>div,.op-review-actions{display:flex;flex-wrap:wrap;gap:8px}.op-editor-footer .btn,.op-review-actions .btn{min-height:37px;padding:7px 11px;font-size:.73rem}.op-delete-draft{display:block;margin:16px auto 0;border:0;background:none;color:#b2514c;font:700 .7rem inherit;cursor:pointer}.op-review-teaser{display:flex;align-items:center;justify-content:space-between;gap:12px}.op-review-teaser b{color:var(--navy-800);font-size:.79rem}.op-review-teaser p{margin:3px 0 0;color:var(--muted);font-size:.67rem;line-height:1.4}.op-review-teaser .btn{white-space:nowrap;padding:8px 10px;font-size:.7rem}
.op-review-status{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px;padding:13px;border:1px solid #e9d4aa;border-radius:16px;background:#fffaf0}.op-review-status.is-complete{border-color:#b9e4d3;background:#f2fcf7}.op-review-status b{color:#846012;font-size:.81rem}.op-review-status.is-complete b{color:#147354}.op-review-status p{margin:3px 0 0;color:#776d56;font-size:.68rem;line-height:1.45}.op-review-status span{border-radius:999px;padding:5px 7px;background:#fff1ca;color:#8a671d;font-size:.61rem;font-weight:800;white-space:nowrap}.op-review-status.is-complete span{background:#daf3e6;color:#147354}.op-review-grid{display:grid;grid-template-columns:1fr;gap:9px}.op-review-block{overflow:hidden;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:var(--shadow-sm)}.op-review-block header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border-bottom:1px solid #edf1f3;background:#f9fbfc}.op-review-block h3{margin:0;color:var(--navy-800);font-family:'Cairo',sans-serif;font-size:.79rem}.op-review-block header button{border:0;background:transparent;color:#097a79;font:800 .66rem inherit;cursor:pointer}.op-review-block>div{display:grid;gap:8px;padding:10px 11px}.op-review-value{display:grid;grid-template-columns:104px minmax(0,1fr);gap:8px}.op-review-value span{color:#71818b;font-size:.64rem}.op-review-value b{overflow-wrap:anywhere;color:#344f5e;font-size:.68rem;font-weight:700}.op-empty-value{color:#8c9ba3;font-weight:500}.op-preview-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:11px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:var(--shadow-sm)}.op-preview-controls label{display:flex;align-items:center;gap:7px;color:#59727e;font-size:.67rem;font-weight:800}.op-preview-controls input{width:80px;accent-color:#0c827f}.op-preview-note{margin:9px 3px 12px;color:#67818b;font-size:.68rem;line-height:1.5}
/* A4 preview uses the exact print DOM. */
#opPrintRoot{--op-preview-scale:.42;display:none;overflow:hidden;padding:0 0 24px}.op-preview-active #opPrintRoot{display:block}.op-print-pages{display:flex;flex-direction:column;align-items:center;gap:16px;width:100%;transform-origin:top center}.casesheet-print-page{box-sizing:border-box;position:relative;display:flex;flex-direction:column;width:210mm;min-height:297mm;padding:10mm 12mm 12mm;background:#fff;color:#121a1e;font-family:Arial,Helvetica,sans-serif;font-size:10pt;line-height:1.35;box-shadow:0 8px 24px rgba(22,42,50,.18);transform:scale(var(--op-preview-scale));transform-origin:top center;margin-bottom:calc((297mm * (var(--op-preview-scale) - 1)) + 2px);overflow:hidden}.casesheet-print-page main{display:flex;flex-direction:column;gap:3.8mm;flex:1;padding-top:3.5mm}.op-paper-header{display:grid;grid-template-columns:1fr 1.35fr 1fr;align-items:end;min-height:19mm;padding-bottom:3mm;border-bottom:.38mm solid #192f3c;color:#182c37}.op-paper-brand{display:flex;flex-direction:column;gap:1mm}.op-paper-brand b{font-size:13pt;letter-spacing:.15mm}.op-paper-brand span{font-size:7.8pt;color:#53636b}.op-paper-title{text-align:center}.op-paper-title strong{display:block;font-size:12.5pt;letter-spacing:.22mm}.op-paper-title span{display:block;margin-top:.6mm;font-size:8pt;letter-spacing:.28mm}.op-paper-title em{display:block;margin-top:1mm;color:#53656e;font-size:7.4pt;font-style:normal;font-weight:700}.op-paper-meta{display:flex;flex-direction:column;gap:1.2mm;text-align:right;font-size:7.2pt}.op-paper-meta span{display:flex;justify-content:space-between;gap:4mm}.op-paper-meta b{font-size:7.2pt}.op-paper-section{break-inside:avoid}.op-paper-section h3{margin:0 0 1.5mm;padding:1.4mm 1.8mm;border:0;border-left:.8mm solid #263e4d;background:#f0f3f4;color:#1d3441;font-size:10.8pt;letter-spacing:.08mm}.op-paper-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:.26mm solid #a9b4ba;border-left:.26mm solid #a9b4ba}.op-paper-grid-academic{grid-template-columns:2fr 1fr 1fr 1fr}.op-paper-grid-four{grid-template-columns:repeat(4,minmax(0,1fr))}.op-paper-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}.op-paper-cell{display:flex;flex-direction:column;min-width:0;min-height:11mm;padding:1.6mm 2mm;border-right:.26mm solid #a9b4ba;border-bottom:.26mm solid #a9b4ba;overflow:hidden}.op-paper-cell.is-wide{grid-column:span 2}.op-paper-cell span{color:#56656c;font-size:7pt;font-weight:700}.op-paper-cell b{margin-top:1.1mm;overflow-wrap:anywhere;color:#111b21;font-size:8.6pt;font-weight:700}.op-paper-text{min-height:9mm;margin:0;padding:2mm;border:.26mm solid #a9b4ba;overflow-wrap:anywhere;white-space:pre-wrap}.op-paper-text.is-empty{color:#6c787d;font-style:italic}.op-paper-table{width:100%;border-collapse:collapse;font-size:8.2pt}.op-paper-table th,.op-paper-table td{padding:2mm;border:.26mm solid #9eaab0;text-align:left}.op-paper-table th{background:#eff2f3;color:#263d49;font-size:8pt}.op-paper-total td{font-weight:800;background:#f5f6f6}.op-paper-images{display:grid;grid-template-columns:1fr 1fr;gap:4mm}.op-paper-image{display:flex;flex-direction:column;min-width:0;margin:0}.op-paper-image>div{display:grid;place-items:center;overflow:hidden;height:104mm;border:.3mm solid #89999f;background:#fafafa;color:#66767b;font-size:9pt}.op-paper-image img{width:100%;height:100%;object-fit:contain}.op-paper-image figcaption{padding-top:1.5mm;color:#263f4b;font-size:8pt;font-weight:700}.op-paper-footer{display:flex;justify-content:space-between;gap:8mm;margin-top:auto;padding-top:2.5mm;border-top:.26mm solid #9caab0;color:#53626a;font-size:7.2pt}
@media (min-width:540px){.op-field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.op-two-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.op-tri-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.op-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.op-review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.op-sheet-row{grid-template-columns:minmax(0,1fr) auto auto auto}.op-row-date{display:block;align-self:center;color:#758791;font-size:.61rem}.op-sheet-row i{grid-column:auto;grid-row:auto}.op-subject-sections{gap:12px}}@media (min-width:760px){.op-tri-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.op-context-bar{grid-template-columns:repeat(4,minmax(0,1fr))}.op-form-card{padding:18px}.op-page-head h2{font-size:1.3rem}}
@media (max-width:359px){.op-tooth-row{grid-template-columns:repeat(8,minmax(29px,1fr))}.op-page-head{align-items:flex-start}.op-live-save{display:none}.op-image-slot{grid-template-columns:65px minmax(0,1fr)}.op-preview-controls{align-items:flex-start;flex-direction:column}.op-preview-controls label{width:100%;justify-content:space-between}.op-preview-controls input{width:58%}}
@media (hover:hover) and (pointer:fine){.op-sheet-row:hover{border-color:#acd9d7;background:#fbfefe}.op-chip:hover{border-color:#87c7c5;background:#f3fdfb}}
@page{size:A4 portrait;margin:0}
@media print{html,body{width:210mm!important;height:auto!important;margin:0!important;padding:0!important;background:#fff!important;print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}body>*{display:none!important}#opPrintRoot,#opPrintRoot *{visibility:visible!important}#opPrintRoot{display:block!important;position:static!important;width:210mm!important;margin:0!important;padding:0!important;overflow:visible!important}#opPrintRoot .op-print-pages{display:block!important;width:210mm!important;transform:none!important}#opPrintRoot .casesheet-print-page{display:flex!important;width:210mm!important;min-height:297mm!important;height:297mm!important;margin:0!important;padding:10mm 12mm 12mm!important;box-shadow:none!important;transform:none!important;break-after:page!important;page-break-after:always!important;overflow:hidden!important}#opPrintRoot .casesheet-print-page:last-child{break-after:auto!important;page-break-after:auto!important}#opPrintRoot .op-paper-section,#opPrintRoot .op-paper-table,#opPrintRoot .op-paper-image{break-inside:avoid!important;page-break-inside:avoid!important}}

/* ==================================================================
   A4 academic refinement — same DOM for preview and print.
   Dense document hierarchy only: no cards, no rounded corners, no shadows.
   ================================================================== */
.casesheet-print-page{padding:8.5mm 10.5mm 9.5mm;font-size:9.15pt;line-height:1.27;color:#10191e}
.casesheet-print-page main{gap:2.15mm;padding-top:2.4mm;justify-content:space-between}
.op-paper-header{min-height:15.5mm;padding-bottom:2mm;border-bottom:.42mm solid #1d303b}
.op-paper-brand{gap:.55mm}.op-paper-brand b{font-size:11.6pt;letter-spacing:.08mm}.op-paper-brand span{font-size:6.7pt;color:#5f6c72}
.op-paper-title strong{font-size:11.2pt;letter-spacing:.18mm}.op-paper-title span{margin-top:.25mm;font-size:7.15pt;letter-spacing:.2mm}.op-paper-title em{margin-top:.45mm;font-size:6.55pt;letter-spacing:.06mm}
.op-paper-meta{gap:.55mm;font-size:6.5pt}.op-paper-meta span{gap:2.7mm}.op-paper-meta b{font-size:6.55pt}
.op-paper-section h3{margin:0 0 .85mm;padding:.85mm 1.35mm;border-left:.72mm solid #243b49;background:#edf0f1;color:#162d39;font-size:8.9pt;letter-spacing:.055mm}
.op-paper-grid{border-top:.22mm solid #9da9ae;border-left:.22mm solid #9da9ae}.op-paper-cell{min-height:8.25mm;padding:1.05mm 1.35mm;border-right:.22mm solid #9da9ae;border-bottom:.22mm solid #9da9ae}.op-paper-cell span{font-size:6.25pt;line-height:1.18}.op-paper-cell b{margin-top:.55mm;font-size:7.5pt;line-height:1.2}
.op-paper-text{min-height:7mm;padding:1.25mm 1.45mm;border:.22mm solid #9da9ae;font-size:7.65pt;line-height:1.3}.op-paper-table{font-size:7.3pt}.op-paper-table th,.op-paper-table td{padding:1.15mm 1.4mm;border:.22mm solid #9da9ae;line-height:1.24}.op-paper-table th{font-size:7.05pt;background:#edf0f1}
.op-paper-images{gap:3mm}.op-paper-image>div{height:108mm;border:.25mm solid #89979d;background:#fbfbfb}.op-paper-image figcaption{padding-top:.85mm;font-size:7.25pt;color:#233b47}
.op-paper-footer{padding-top:1.65mm;border-top:.22mm solid #9ca7ac;color:#536168;font-size:6.5pt}
@media print{#opPrintRoot .casesheet-print-page{padding:8.5mm 10.5mm 9.5mm!important}.casesheet-print-page main{gap:2.15mm!important;padding-top:2.4mm!important;justify-content:space-between!important}}

/* Table-based academic page distribution for the four fixed A4 pages. */
.op-paper-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}.op-paper-grid-five{grid-template-columns:repeat(5,minmax(0,1fr))}
.op-paper-long-grid{display:grid;grid-template-columns:1fr;min-height:0;border-top:.22mm solid #9da9ae;border-left:.22mm solid #9da9ae}.op-paper-long-grid-two{grid-template-columns:1fr 1fr}.op-paper-long-grid-single{grid-template-columns:1fr}
.op-paper-long-field{display:flex;flex-direction:column;min-height:0;padding:1.2mm 1.45mm;border-right:.22mm solid #9da9ae;border-bottom:.22mm solid #9da9ae}.op-paper-long-field span{color:#56656c;font-size:6.25pt;font-weight:700;line-height:1.18}.op-paper-long-field b{display:block;margin-top:.7mm;overflow-wrap:anywhere;color:#111b21;font-size:7.6pt;line-height:1.32}.op-paper-empty{color:#6c787d;font-style:italic;font-weight:400}
.op-paper-section-fill{display:flex;flex-direction:column;min-height:0}.op-paper-section-fill>.op-paper-grid,.op-paper-section-fill>.op-paper-long-grid{flex:1}.op-paper-section-fill>.op-paper-grid .op-paper-cell,.op-paper-section-fill>.op-paper-long-grid .op-paper-long-field{height:100%}
.op-print-page-history main{display:grid;grid-template-rows:auto auto minmax(0,1fr) minmax(0,1.28fr)}.op-print-page-diagnosis main{display:grid;grid-template-rows:auto auto minmax(0,1.16fr) minmax(0,.88fr)}.op-print-page-procedure main{display:grid;grid-template-rows:auto minmax(0,.9fr) minmax(0,1.18fr) minmax(0,.78fr)}.op-print-page-docs main{display:flex}
.op-paper-section-evaluation .op-paper-table{height:100%}.op-paper-section-evaluation .op-paper-table tbody tr{height:13%}
.op-print-page-docs .op-paper-images{flex:1;min-height:0;grid-auto-rows:minmax(0,1fr)}.op-print-page-docs .op-paper-image{min-height:0}.op-print-page-docs .op-paper-image>div{height:auto;min-height:0;flex:1}
@media print{#opPrintRoot .op-print-page-history main{display:grid!important;grid-template-rows:auto auto minmax(0,1fr) minmax(0,1.28fr)!important}#opPrintRoot .op-print-page-diagnosis main{display:grid!important;grid-template-rows:auto auto minmax(0,1.16fr) minmax(0,.88fr)!important}#opPrintRoot .op-print-page-procedure main{display:grid!important;grid-template-rows:auto minmax(0,.9fr) minmax(0,1.18fr) minmax(0,.78fr)!important}}

/* ==================================================================
   Flexible Premium Clinical Print — no fixed page count, no score/supervisor areas.
   This layer supersedes legacy four-page styles while retaining the same data source.
   ================================================================== */
#opPrintRoot{--op-preview-scale:.42;display:none;overflow:hidden;padding:0 0 28px}
.op-preview-active #opPrintRoot{display:block}
#opPrintRoot .op-print-document{display:none}
#opPrintRoot .op-preview-pages{display:flex;flex-direction:column;align-items:center;gap:18px;width:100%}
#opPrintRoot .op-preview-paper{box-sizing:border-box;display:flex;flex-direction:column;width:210mm;height:297mm;padding:10mm 11mm 9mm;background:#fff;color:#172b36;font-family:Arial,Helvetica,sans-serif;font-size:8.1pt;line-height:1.32;box-shadow:0 12px 34px rgba(7,42,58,.20);transform:scale(var(--op-preview-scale));transform-origin:top center;margin-bottom:calc((297mm * (var(--op-preview-scale) - 1)) + 3px);overflow:hidden}
#opPrintRoot .op-preview-paper-main{display:block;flex:1;min-height:0;padding-top:3mm;overflow:hidden}
#opPrintRoot .op-paper-header{display:grid;grid-template-columns:1fr 1.35fr 1fr;align-items:end;min-height:15.5mm;padding:0 0 2.2mm;border:0;border-bottom:.5mm solid #0a3447;color:#0a2939}
#opPrintRoot .op-paper-brand{gap:.35mm}#opPrintRoot .op-paper-brand b{font-size:12pt;letter-spacing:.05mm;color:#082f43}#opPrintRoot .op-paper-brand span{font-size:6.4pt;letter-spacing:.04mm;color:#64737b}
#opPrintRoot .op-paper-title{text-align:center}#opPrintRoot .op-paper-title strong{font-size:10.6pt;letter-spacing:.24mm;color:#07384f}#opPrintRoot .op-paper-title span{display:block;margin-top:.25mm;font-size:6.9pt;letter-spacing:.27mm;color:#3b5662}
#opPrintRoot .op-paper-meta{gap:.55mm;text-align:right;font-size:6.25pt;color:#4d626b}#opPrintRoot .op-paper-meta span{display:flex;justify-content:space-between;gap:2.6mm}#opPrintRoot .op-paper-meta b{font-size:6.35pt;color:#163848}
#opPrintRoot .op-paper-running-head{display:flex;align-items:center;justify-content:space-between;gap:8mm;min-height:7.5mm;padding-bottom:1.6mm;border-bottom:.32mm solid #143f51;color:#234957;font-size:6.7pt;letter-spacing:.07mm}#opPrintRoot .op-paper-running-head b{font-weight:700;color:#0b3345}
#opPrintRoot .op-preview-page-footer,#opPrintRoot .op-paper-footer{display:flex;justify-content:space-between;gap:8mm;margin-top:auto;padding-top:1.65mm;border-top:.25mm solid #9caab0;color:#68777d;font-size:6.25pt;letter-spacing:.02mm}
#opPrintRoot .op-paper-section{margin:0 0 2.1mm;break-inside:avoid-page;page-break-inside:avoid;overflow:visible}
#opPrintRoot .op-paper-section h3{margin:0 0 .7mm;padding:.9mm 1.35mm;border:0;border-left:.8mm solid #0d6575;background:linear-gradient(90deg,#e5eef0,#f6f8f8);color:#0a3447;font-size:7.75pt;line-height:1.16;letter-spacing:.1mm}
#opPrintRoot .op-paper-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:.2mm solid #a7b4b9;border-left:.2mm solid #a7b4b9;background:#fff}
#opPrintRoot .op-paper-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}#opPrintRoot .op-paper-grid-five{grid-template-columns:repeat(5,minmax(0,1fr))}#opPrintRoot .op-paper-grid-six{grid-template-columns:repeat(6,minmax(0,1fr))}
#opPrintRoot .op-paper-cell{display:flex;flex-direction:column;min-width:0;min-height:0;padding:1.05mm 1.35mm;border-right:.2mm solid #a7b4b9;border-bottom:.2mm solid #a7b4b9;overflow:visible}#opPrintRoot .op-paper-cell.is-wide{grid-column:span 2}
#opPrintRoot .op-paper-cell span{color:#65757b;font-size:5.95pt;font-weight:700;line-height:1.18}#opPrintRoot .op-paper-cell b{margin-top:.5mm;overflow-wrap:anywhere;color:#152c36;font-size:7.1pt;font-weight:700;line-height:1.25}
#opPrintRoot .op-paper-text{margin:0;padding:1.25mm 1.45mm;border:.2mm solid #a7b4b9;color:#1b3039;font-size:7.25pt;line-height:1.34;overflow-wrap:anywhere;white-space:pre-wrap;min-height:0}#opPrintRoot .op-paper-text.is-compact-empty{padding:.9mm 1.45mm;color:#718087;font-style:italic}
#opPrintRoot .op-paper-images{display:grid;gap:2.6mm}#opPrintRoot .op-paper-images-1{grid-template-columns:minmax(0,1fr)}#opPrintRoot .op-paper-images-2{grid-template-columns:repeat(2,minmax(0,1fr))}#opPrintRoot .op-paper-images-3,#opPrintRoot .op-paper-images-4{grid-template-columns:repeat(2,minmax(0,1fr))}
#opPrintRoot .op-paper-image{display:flex;flex-direction:column;min-width:0;margin:0;break-inside:avoid-page;page-break-inside:avoid}#opPrintRoot .op-paper-image>div{display:grid;place-items:center;overflow:hidden;height:48mm;border:.24mm solid #95a5aa;background:#fbfcfc}#opPrintRoot .op-paper-images-1 .op-paper-image>div{height:82mm}#opPrintRoot .op-paper-images-2 .op-paper-image>div{height:64mm}#opPrintRoot .op-paper-image img{display:block;width:100%;height:100%;object-fit:contain}#opPrintRoot .op-paper-image figcaption{padding-top:.7mm;color:#2b4a56;font-size:6.75pt;font-weight:700}
#opPrintRoot .op-paper-footer{display:block}
@media print{
  @page{size:A4 portrait;margin:0}
  html,body{width:210mm!important;height:auto!important;margin:0!important;padding:0!important;background:#fff!important;print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}
  body>*{display:none!important}
  #opPrintRoot,#opPrintRoot *{visibility:visible!important}
  #opPrintRoot{display:block!important;position:static!important;width:210mm!important;margin:0!important;padding:0!important;overflow:visible!important}
  #opPrintRoot .op-preview-pages{display:none!important}
  #opPrintRoot .op-print-document{display:block!important;box-sizing:border-box!important;width:210mm!important;margin:0!important;padding:10mm 11mm 9mm!important;background:#fff!important;color:#172b36!important;font-family:Arial,Helvetica,sans-serif!important;font-size:8.1pt!important;line-height:1.32!important;box-shadow:none!important;overflow:visible!important}
  #opPrintRoot .op-print-flow{display:block!important;padding-top:3mm!important}
  #opPrintRoot .op-paper-section{margin:0 0 2.1mm!important;break-inside:avoid-page!important;page-break-inside:avoid!important}
  #opPrintRoot .op-paper-image{break-inside:avoid-page!important;page-break-inside:avoid!important}
  #opPrintRoot .op-paper-footer{display:block!important;margin-top:2mm!important}
}

/* Content-adaptive density: rows follow their actual values, never a fixed empty height. */
#opPrintRoot .op-paper-cell{align-self:stretch}
#opPrintRoot .op-paper-cell.is-empty{padding-top:.82mm;padding-bottom:.82mm;background:#fcfdfd}
#opPrintRoot .op-paper-cell.is-empty b{color:#8b989d;font-weight:600}
#opPrintRoot .op-paper-text.is-short{padding-top:1.05mm;padding-bottom:1.05mm;line-height:1.28}
#opPrintRoot .op-paper-text.is-noted{padding-top:1.4mm;padding-bottom:1.4mm;line-height:1.38}
#opPrintRoot .op-paper-text.is-extended{padding-top:1.75mm;padding-bottom:1.75mm;line-height:1.46}
#opPrintRoot .op-paper-text.is-compact-empty{padding-top:.78mm;padding-bottom:.78mm;line-height:1.2}
