/* Square viewer never shrinks when the adjacent gallery is long. */
body#mcTypography.suite-vlm .imageViewer{width:calc(100% - 24px)!important;aspect-ratio:1/1!important;height:auto!important;min-height:0!important;max-height:none!important;flex:0 0 auto!important;margin:12px!important;box-sizing:border-box!important;overflow:hidden!important}
body#mcTypography.suite-vlm .imageViewer img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;position:absolute!important;inset:0!important}
/* Lists get a finite viewport and scroll only when they overflow. */
body#mcTypography :is(.attentionList,.reasonList,.lifestyleList,.factorList,.task-list,.record-list,.progress-rows,.emergencyList,.assignCaseList,.deviceList,.roomSurgeryList,.statusStageList,.historyMini,.paneBody,#historyRows,#historyList){max-height:560px!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable;}
body#mcTypography :is(.table-scroll,.od-table-scroll,.eqList,.caseList){max-height:600px!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable;}
body#mcTypography.mc-or #casesPage .caseList{max-height:none!important;}
body#mcTypography :is(.table-scroll,.od-table-scroll) thead{position:sticky;top:0;z-index:2;background:var(--tool-soft,#f4f9fc)}
body#mcTypography :is(.caseListHead,.eqHead){position:sticky!important;top:0!important;z-index:2!important;background:var(--tool-soft,#f4f9fc)!important}
body#mcTypography.mc-or #odTodayDoctors{display:flex!important;flex-wrap:nowrap!important;gap:14px!important;overflow-x:auto!important;overflow-y:hidden!important;min-width:0!important;scroll-snap-type:x proximity;padding-bottom:14px!important}
body#mcTypography.mc-or #odTodayDoctors .od-today-card{flex:0 0 calc((100% - (var(--od-page-size) - 1)*14px)/var(--od-page-size))!important;min-width:230px!important;max-width:none!important;scroll-snap-align:start;display:flex!important;flex-direction:column!important;animation:od-page-in .2s ease-out}
body#mcTypography.mc-or .od-today-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap;padding:0 26px 22px}
body#mcTypography.mc-or .od-today-pagination select{width:70px;min-height:42px;padding:8px;border:1px solid var(--tool-line,#d5e6f0);border-radius:9px;background:#fff}
body#mcTypography.mc-or #odTodayPageLabel{margin-right:8px;color:#475569;font-size:14px}
@keyframes od-page-in{from{opacity:.4;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){body#mcTypography.mc-or #odTodayDoctors .od-today-card{animation:none}}
@media(max-width:600px){body#mcTypography :is(.attentionList,.reasonList,.lifestyleList,.factorList,.task-list,.record-list,.emergencyList){max-height:480px!important}body#mcTypography.mc-or .od-today-pagination{padding-inline:16px;justify-content:flex-start}}
body#mcTypography.suite-postop #reasonList{max-height:560px!important;overflow-y:auto!important;min-height:0!important}
body#mcTypography.suite-diabetes #reasonList{max-height:560px!important;overflow-y:auto!important;min-height:0!important}

body#mcTypography .meli-copyright{padding:20px 24px;text-align:center;border-top:1px solid var(--tool-line,#e0e9ee);color:#475569;font-family:var(--mc-font-body);font-size:14px;line-height:1.5;background:var(--tool-soft,#f8fbfd)}
body#mcTypography.suite-voice .card.table,body#mcTypography.suite-ocr .card.history{max-height:600px!important;min-height:0!important;overflow:auto!important;scrollbar-gutter:stable}
body#mcTypography.suite-voice .card.table thead,body#mcTypography.suite-ocr .card.history thead{position:sticky;top:0;z-index:2;background:var(--tool-soft,#f4f9fc)}
