:root{--bg: #F6F7F5;--surface: #FFFFFF;--ink: #17262A;--ink-soft: #5B6B6D;--ink-faint: #93A0A1;--primary: #0E5C56;--primary-dark: #0A4741;--primary-soft: #E4EEEC;--track: #D7DEDA;--line: #E4E7E3;--alert: #B14638;--alert-soft: #F7E3DF;--ontrack: #4C7A5E;--ontrack-soft: #E7EFE7;--warn: #B8863A;--warn-soft: #F5EBD8;--wa: #1F9E5A;--wa-soft: #E4F3EA;--admin: #7A3B69;--admin-soft: #F1E4EE}*{box-sizing:border-box}html,body{margin:0;padding:0}body{background:var(--bg);color:var(--ink);font-family:Inter,sans-serif;-webkit-font-smoothing:antialiased}.serif{font-family:Newsreader,serif}.mono{font-family:IBM Plex Mono,monospace}#root{min-height:100vh}button{font-family:inherit;cursor:pointer}input,select{font-family:inherit}label{display:block}.field{border:1px solid var(--line);border-radius:7px;padding:8px 10px;font-size:12.5px;width:100%;min-width:0;outline:none}.field:focus{border-color:var(--primary)}.flabel{font-size:11px;color:var(--ink-faint);font-weight:600;margin-bottom:4px;display:block}.card{background:var(--surface);border:1px solid var(--line);border-radius:12px}.btn-primary{border:none;background:var(--primary);color:#fff;border-radius:7px;padding:9px 16px;font-size:12.5px;font-weight:600}.btn-ghost{border:1px solid var(--line);background:none;border-radius:7px;padding:9px 16px;font-size:12.5px;color:var(--ink-soft)}.back-btn{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:40px;margin-bottom:14px;padding:4px 16px 4px 5px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--primary-dark);font-size:13px;font-weight:600;line-height:1.2;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .12s,border-color .12s,transform .12s}.back-btn--inline{margin-bottom:0}.back-btn--compact{min-height:34px;padding-right:12px;font-size:12.5px}.back-btn__icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:30px;height:30px;border-radius:50%;background:var(--primary-soft);color:var(--primary);transition:background .12s,color .12s}.back-btn--compact .back-btn__icon{width:24px;height:24px}.back-btn__label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.back-btn:hover{background:var(--primary-soft);border-color:var(--primary)}.back-btn:hover .back-btn__icon{background:var(--primary);color:#fff}.back-btn:active{transform:translate(-2px)}.back-btn:focus-visible{outline:2px solid var(--primary);outline-offset:2px}@media (max-width: 860px){.back-btn{min-height:46px;font-size:14px;padding-right:18px}.back-btn__icon{width:34px;height:34px}.back-btn--compact{min-height:42px;font-size:13.5px}.back-btn--compact .back-btn__icon{width:30px;height:30px}}.save-bar{position:sticky;bottom:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:10px 14px;flex-wrap:wrap;margin:18px -18px -18px;padding:12px 18px;border-radius:0 0 12px 12px;box-shadow:0 -6px 14px #0000000f}.save-bar__status{flex:1 1 260px;min-width:0;font-size:13px;font-weight:600;line-height:1.35}.save-bar__status--pop{animation:save-bar-pop .6s ease-out}.save-bar__actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}@keyframes save-bar-pop{0%{transform:scale(.96);opacity:.3}60%{transform:scale(1.03);opacity:1}to{transform:scale(1)}}@media (max-width: 860px){.save-bar{gap:8px;padding:10px 18px}.save-bar__status{flex-basis:100%;font-size:12.5px}.save-bar__actions{width:100%;gap:6px}.save-bar__actions>button{flex:1 1 calc(50% - 3px);min-height:42px;padding:8px 6px;font-size:12px}.save-bar__actions>button:first-child{flex-basis:100%;font-size:13px}}.sectionlabel{font-size:11px;font-weight:700;color:var(--ink-faint);text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px}.shell-content{padding:24px}.shell-tabs-desktop{display:flex;gap:4px}.shell-header-meta{display:flex}.shell-hamburger,.shell-mobile-actions,.shell-drawer{display:none}@media (max-width: 860px){.shell-content{padding:14px}.shell-header{padding:12px 16px!important}.shell-tabs-desktop,.shell-header-meta{display:none!important}.shell-hamburger{display:inline-flex}.shell-mobile-actions{display:flex;align-items:center;gap:8px}.help-launcher{display:none!important}.shell-drawer.open{display:block}}.shell-tab-mobile{display:flex;align-items:center;justify-content:space-between;width:100%;border:none;text-align:left;border-radius:8px;padding:12px 14px;font-size:14px}@media (max-width: 600px){div[style*=grid-template-columns]:not([style*="repeat(7"]):has(.flabel){grid-template-columns:repeat(auto-fit,minmax(130px,1fr))!important}div[style*="grid-template-columns: 90px auto 1fr 1fr"]{grid-template-columns:1fr 1fr!important}div[style*="display: flex"]:not([style*="flex-direction: column"]):has(>div>.flabel){flex-wrap:wrap}div[style*="display: flex"]:not([style*="flex-direction: column"]):has(>div>.flabel)>div{flex:1 1 130px!important;min-width:0;max-width:none!important;width:auto!important}}@media (max-width: 860px){.patient-head-row{flex-wrap:wrap}.patient-head-row>div{flex:1 1 100%!important;width:auto!important}.patient-head-row>.patient-notes-btn{flex:1 1 100%!important;flex-direction:row!important;min-height:48px}}.notes-back{display:none}@media (max-width: 860px){.notes-layout{flex-direction:column}.notes-list{flex:1 1 auto!important;max-width:none!important;width:100%!important}.notes-layout.has-selection .notes-list{display:none!important}.notes-layout:not(.has-selection) .notes-thread{display:none!important}.notes-thread{width:100%}.notes-back{display:inline-flex}}@media (max-width: 860px){.hide-mobile{display:none!important}}@media (min-width: 861px){.textarea-desktop-tall{min-height:80px}}@supports (min-height: 100svh){#root,[style*="min-height: 100vh"]{min-height:100svh!important}}.shell-drawer-menu{max-height:calc(100vh - var(--shell-header-offset, 64px) - 24px);max-height:calc(100dvh - var(--shell-header-offset, 64px) - 24px);overflow-y:auto;overscroll-behavior:contain}@media screen and (max-width: 860px){html,body{overscroll-behavior-y:contain}[data-overlay=dialog]{align-items:flex-start!important;overflow-y:auto!important;overscroll-behavior:contain;padding-left:10px!important;padding-right:10px!important;padding-bottom:calc(32px + var(--keyboard-inset, 0px))!important}[data-overlay=dialog]:not([style*=--shell-header-offset]){padding-top:12px!important}[data-overlay=dialog]>*{margin-top:auto!important;margin-bottom:auto!important;max-height:none!important;overflow:visible!important}[data-overlay-host]{z-index:200!important}.record-panel-body{padding:12px!important;overscroll-behavior:contain}.notes-list,.notes-thread{position:static!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}.notes-list-head{position:static!important}.notes-thread-head{top:var(--shell-header-offset, 0px)!important}.notes-thread .notes-toolbar{top:calc(var(--shell-header-offset, 0px) + var(--notes-head-height, 0px))!important;padding-bottom:6px!important}.notes-thread .notes-toolbar-title{display:none!important}.notes-thread-head .back-btn__label{display:none}.notes-thread-head .back-btn{padding:0 4px}.notes-thread-head>div:last-child{flex-wrap:nowrap!important;flex-shrink:0;gap:4px!important}.notes-thread-head>div:last-child>button{padding:6px 8px!important}.scroll-top-btn{right:14px!important;bottom:140px!important}.ai-composer{position:sticky;bottom:0;background:var(--surface);border-radius:0 0 12px 12px}.discussion-list{max-height:55vh!important;max-height:55dvh!important}.agenda-grid-scroll{max-height:62vh!important;max-height:62dvh!important}.split-layout{flex-direction:column;align-items:stretch!important}.split-list{position:static!important;flex:0 0 auto!important;max-width:none!important;max-height:42vh!important;max-height:42dvh!important}.attendance-widget{left:8px;right:8px!important;bottom:8px!important;width:auto!important;max-width:none!important;max-height:calc(100vh - 16px)!important;max-height:calc(100dvh - 16px)!important;overscroll-behavior:contain}.shell-content div:has(>table),[data-overlay] div:has(>table){overflow-x:auto;max-width:100%}}.attendance-tab{position:fixed;right:0;z-index:150;width:64px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:9px 4px;font:inherit;color:var(--ink);background:var(--surface);border:2px solid var(--primary);border-right:0;border-radius:14px 0 0 14px;box-shadow:0 4px 16px #0003;cursor:pointer;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.attendance-tab__time{font-size:12.5px;font-weight:700;color:var(--primary-dark);font-variant-numeric:tabular-nums}.attendance-tab__name{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:10.5px;font-weight:600;color:var(--ink-soft)}.attendance-tab__rec{font-size:10px;font-weight:700;color:var(--alert)}@media (max-width: 600px){.shortcut-card{flex:1 1 calc(50% - 6px)!important;gap:10px!important;padding:12px!important}.shortcut-card-sub{display:none!important}}.chart-bar-row{position:relative}.chart-bar-row .chart-tooltip{position:absolute;opacity:0;pointer-events:none;transition:opacity .1s}.chart-bar-row:hover .chart-tooltip{opacity:1}@media print{body *{visibility:hidden}#patient-label-print,#patient-label-print *,#medication-label-print,#medication-label-print *,#discharge-summary-print,#discharge-summary-print *,#prescription-print,#prescription-print *{visibility:visible}#patient-label-print,#medication-label-print{position:fixed;top:40px;left:40px}#discharge-summary-print,#prescription-print{display:block!important;position:fixed;top:20px;left:20px;right:20px}}
