:root{--cg-0: #ffffff;--cg-10: #f4f4f4;--cg-20: #e0e0e0;--cg-30: #c6c6c6;--cg-40: var(--cg-40);--cg-50: #8d8d8d;--cg-60: #6f6f6f;--cg-70: #525252;--cg-80: #393939;--cg-90: #262626;--cg-100: #161616;--bg: var(--cg-10);--bg2: var(--cg-10);--card-bg: var(--cg-0);--primary: #0f62fe;--primary-hover: #0043ce;--text: var(--cg-100);--muted: var(--cg-70);--border: var(--cg-20);--radius: 4px;--radius-sm: 2px;--radius-md: 4px;--radius-lg: 6px;--ring: 0 0 0 2px var(--primary);--shadow-sm: none;--shadow-md: none;--shadow-lg: none}html[data-theme=dark]{--bg: #161616;--bg2: #161616;--card-bg: #262626;--text: #f4f4f4;--muted: #c6c6c6;--border: #525252;--primary: #4589ff;--primary-hover: #0f62fe;--surface: #262626;--surface-muted: #393939;--surface-hover: #4c4c4c;--surface-sunken: #161616;--text-soft: #c6c6c6;--muted-soft: #8d8d8d;--border-soft: #393939;--border-strong: #6f6f6f;color-scheme:dark}*,*:before,*:after{box-sizing:border-box}body{margin:0;font-family:IBM Plex Sans,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);line-height:1.4;font-feature-settings:"tnum" 1,"cv01" 1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;padding:8px 16px;background:var(--surface);border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:.5rem;cursor:pointer}.brand .logo{font-size:1.25rem;color:var(--primary)}.brand .title{font-weight:600}.topbar .hint{color:var(--muted);font-size:.9rem;margin-right:.5rem}#users-btn{font-weight:600}.users-dropdown{position:relative}.users-menu{position:absolute;right:0;top:calc(100% + 6px);background:#fff;border:1px solid var(--cg-20);border-radius:var(--radius);box-shadow:var(--shadow-lg);width:280px;padding:.5rem;z-index:20}.users-menu-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.25rem}.user-list{display:flex;flex-direction:column;gap:.25rem;margin:0;padding:0;max-height:240px;overflow-y:auto}.user-list li{list-style:none;display:flex;align-items:center;gap:.35rem;background:#eef2ff;color:#1e3a8a;border-radius:999px;padding:.15rem .5rem;font-size:.85rem}.user-list li .name{flex:1;cursor:pointer}.users-menu .icon-btn.small{padding:.15rem .35rem}.app{padding:1rem;max-width:720px;margin:0 auto}@media (min-width: 900px){.app{max-width:100%;padding:8px}}@media (min-width: 900px){#user-detail{width:50%;margin-left:auto;margin-right:auto}}h1,h2,h3{font-weight:600;margin:0 0 1rem;color:var(--primary)}ul{list-style:none;padding:0;margin:0}.card{background:var(--card-bg);border-radius:var(--radius);box-shadow:none;padding:12px;margin-bottom:16px;border:1px solid var(--border)}.case-mobile-tabs{display:none;position:sticky;top:var(--table-sticky-offset, 56px);z-index:6;background:#fff;padding:6px 0;margin:0 0 10px;gap:4px;border-bottom:1px solid var(--border-soft, var(--cg-20))}.case-mobile-tab{flex:1 1 0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:1px solid transparent;border-radius:4px;padding:8px 10px;font:inherit;font-weight:600;font-size:.9rem;color:var(--muted, var(--cg-60));cursor:pointer;transition:background .12s ease,color .12s ease,border-color .12s ease}.case-mobile-tab:hover{background:var(--surface-hover, #f1f5f9);color:var(--text, var(--cg-100))}.case-mobile-tab.active{background:var(--text, var(--cg-100));color:#fff;border-color:var(--text, var(--cg-100))}.case-panels{display:grid;grid-template-columns:1fr;gap:12px}@media (min-width: 900px){.case-panels{grid-template-columns:1fr 1fr;align-items:start}.case-panels #notes{grid-column:1}.case-panels #tasks{grid-column:2}.case-panels #ward-notes.case-panel--drawer{position:fixed;top:0;right:0;height:100dvh;width:min(560px,92vw);background:#fff;border-left:1px solid var(--border-soft, var(--cg-20));box-shadow:-1px 0 #0000001f;z-index:40;transform:translate(100%);transition:transform .24s cubic-bezier(.22,.8,.36,1);display:flex;flex-direction:column;padding:12px 16px 16px;overflow:hidden}body.ward-notes-drawer-open .case-panels #ward-notes.case-panel--drawer{transform:translate(0)}.case-drawer-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid var(--border-soft, var(--cg-20));margin-bottom:10px}.case-drawer-title{margin:0;font-size:1.05rem;font-weight:700;letter-spacing:-.01em;color:var(--text, var(--cg-100))}.case-drawer-close{width:28px;height:28px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;font-size:14px}.case-panels #ward-notes .ward-notes-list{flex:1 1 auto;overflow-y:auto;padding-right:4px}.ward-notes-scrim{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a52;z-index:39;opacity:0;pointer-events:none;transition:opacity .2s ease}body.ward-notes-drawer-open .ward-notes-scrim{opacity:1;pointer-events:auto}}@media (max-width: 899.98px){.case-mobile-tabs{display:flex}#ward-notes-drawer-toggle{display:none!important}.case-panels{display:flex;grid-template-columns:none;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;overflow-y:visible;scroll-snap-type:x mandatory;scroll-behavior:smooth;gap:0;margin-inline:calc(-1 * var(--case-card-padding, 10px));padding-inline:0;scrollbar-width:none}.case-panels::-webkit-scrollbar{display:none}.case-panel{flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always;min-width:0;padding-inline:var(--case-card-padding, 10px);align-self:start}.case-panels #ward-notes.case-panel--drawer{position:static;transform:none;box-shadow:none;border-left:none;padding:0 var(--case-card-padding, 10px);background:transparent;height:auto;width:auto;display:block}.case-drawer-header{display:none}.ward-notes-scrim{display:none!important}}.ward-notes-toolbar{display:flex;justify-content:flex-end;margin-bottom:8px}.ward-notes-list{display:grid;gap:12px}.ward-note-item{border:1px solid var(--cg-20);border-radius:4px;padding:12px 14px;background:#fff;box-shadow:none}.ward-note-head{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}.ward-note-head strong{font-size:16px;letter-spacing:-.01em;color:var(--cg-100)}.ward-note-head .meta{color:var(--cg-60);font-size:12px}.ward-note-preview{display:grid;gap:10px;margin-top:10px}.ward-note-section{background:#fff;border:1px solid var(--cg-20);border-radius:4px;padding:8px 10px}.ward-note-section--dx{border-left:4px solid #0ea5e9}.ward-note-section--other{border-left:4px solid #f59e0b}.ward-note-section--tasks{border-left:4px solid #10b981}.ward-note-group{display:grid;gap:8px}.ward-note-group-head{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--cg-100);margin-left:2px}.ward-note-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--cg-60)}.ward-note-subhead{font-weight:600;color:var(--cg-100);margin-bottom:4px}.ward-note-text{color:var(--cg-80);font-size:14px;white-space:pre-wrap}.ward-note-tasks{display:grid;gap:6px;padding-left:18px;margin:6px 0 0;color:var(--cg-80);font-size:14px}.ward-note-tasks li{list-style:disc}.ward-notes-print-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin:12px 12px 6px}.ward-notes-print-title{font-weight:700;color:var(--cg-100);font-size:18px}.ward-notes-print-range{font-size:12px;color:var(--cg-60);margin-top:4px}.ward-notes-print{display:grid;gap:16px;padding:12px}.ward-note-page{-moz-column-break-after:page;break-after:page;page-break-after:always}.ward-note-page:last-child{-moz-column-break-after:auto;break-after:auto;page-break-after:auto}.ward-note-page-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid var(--cg-20);padding-bottom:8px;margin-bottom:10px}.ward-note-page-title{display:grid;gap:2px}.ward-note-patient{font-size:18px;font-weight:700;color:var(--cg-100)}.ward-note-heading{font-size:13px;color:var(--cg-70)}.ward-note-page-meta{font-size:12px;color:var(--cg-60);white-space:nowrap}.ward-notes-print .ward-note-item{box-shadow:none}@media print{.ward-notes-print-header{display:none!important}.ward-notes-print{padding:0}.ward-notes-print .ward-note-item{box-shadow:none}}.modal-task{padding:6px 8px;border-radius:4px}.modal-task--new{background:#ecfdf5;border:1px solid #bbf7d0}.modal-task .badge-new{font-size:11px;color:#065f46;background:#a7f3d0;border-radius:999px;padding:2px 6px;margin-left:8px}.modal-task--excluded{opacity:.5;background:var(--cg-10)}.modal-task .badge-excluded{font-size:11px;color:var(--cg-60);background:var(--cg-20);border-radius:999px;padding:2px 6px;margin-left:8px}.stack>*+*{margin-top:.75rem}input,select,textarea,button{font:inherit}input,select,textarea{width:100%;padding:8px 8px 6px;border:0;border-bottom:1px solid var(--border-strong);border-radius:0;background:var(--surface-muted);color:var(--text);transition:border-color .12s ease,background .12s ease}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--primary);outline-offset:-2px;background:var(--surface)}textarea{min-height:4rem;resize:vertical}label{display:block;font-size:12px;font-weight:400;color:var(--muted);letter-spacing:0}label>input,label>select,label>textarea{margin-top:2px}.field-help,.helper-text{display:block;margin-top:4px;font-size:12px;color:var(--muted);line-height:1.35}.field-help--error,.helper-text--error{color:var(--status-danger)}button{padding:.6rem .9rem;border:0;border-radius:var(--radius);cursor:pointer;transition:background .12s ease,color .12s ease}button.primary{background:var(--primary);color:#fff;border-radius:var(--radius)}button.primary:hover{background:var(--primary-hover)}.back-btn{background:transparent;color:var(--muted);padding:.25rem;margin-bottom:.5rem;border-radius:var(--radius)}#case-list li,#task-list li,#notes-list li{padding:.75rem;border:1px solid var(--cg-20);border-radius:var(--radius);margin-bottom:.5rem;background:#fff;box-shadow:none;transition:background .2s ease,transform .05s ease}#case-list li{cursor:pointer;transition:background .2s}#case-list li:hover{background:var(--cg-10);transform:translateY(-1px)}#task-form,#note-form{margin-top:1rem}#task-form select{margin-top:.75rem}#task-form.composer{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;border:1px solid var(--cg-20);border-radius:4px;padding:8px;background:#fff}#task-form.composer input{border:none;box-shadow:none;padding:.5rem .25rem;height:48px}#task-form.composer .primary{height:48px;border-radius:4px;padding:0 14px}.composer-opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0 12px}.composer-opts label{display:grid;gap:4px;color:var(--muted);font-size:.9rem}.composer-opts select{width:100%}.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}.chip{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 8px;border:1px solid var(--cg-20);border-radius:9999px;font-size:12px;color:var(--cg-80);background:#fff}.chip.pri-high{background:#fee2e2;color:#991b1b;border-color:#fecaca}.chip.pri-medium{background:#fef3c7;color:#92400e;border-color:#fde68a}.chip.pri-low{background:#dbeafe;color:#1e3a8a;border-color:#bfdbfe}.avatar{width:22px;height:22px;border-radius:9999px;background:var(--cg-20);color:var(--cg-80);display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:600}#notes-list li button{margin-left:.5rem;background:none;color:var(--primary);border-radius:var(--radius);padding:.25rem .5rem}#task-list li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;row-gap:.25rem;-moz-column-gap:.25rem;column-gap:.25rem}.task-main{display:flex;align-items:center;gap:.35rem;min-width:0}.task-title{font-weight:500}.task-main .task-title{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-status-btn{font-size:1.6rem;font-weight:700;width:2.2rem;height:2.2rem;line-height:2rem;text-align:center;padding:0}.task-actions{display:flex;align-items:center;gap:.25rem;flex-wrap:wrap;justify-content:flex-end;max-width:100%}.task-actions select{flex:0 0 auto;max-width:7rem;min-width:0}.icon-btn{background:none;border:none;color:var(--primary);padding:.4rem .5rem;border-radius:var(--radius);cursor:pointer;transition:background .15s ease,transform .05s ease;min-height:36px}.icon-btn:hover{background:var(--cg-20);transform:translateY(-1px)}.delete-btn{color:#ef4444}.add-comment-btn{color:#10b981}.status-select{border:none;border-radius:999px;padding:.15rem .5rem;font-size:.8rem;font-weight:600;text-transform:capitalize;box-shadow:var(--shadow-sm)}.status-select[data-status=open]{background:#fee2e2;color:#991b1b}.status-select[data-status="in progress"]{background:#fef3c7;color:#92400e}.status-select[data-status=complete]{background:#dcfce7;color:#166534}.task-item[data-status=complete] .task-title{text-decoration:line-through;color:var(--muted)}.task-item[data-status=open]{border-left:4px solid #3b82f6;background:#eff6ff}.task-item[data-status="in progress"]{border-left:4px solid #f59e0b;background:#fffbeb}.task-item[data-status=complete]{border-left:4px solid #34d399;background:#dcfce7}.comment-section{margin-left:1rem;display:flex;flex-direction:column;gap:.25rem;padding:.25rem .5rem;border-left:2px dashed rgba(0,0,0,.08);background:var(--cg-10);border-radius:var(--radius)}.comment-section .comments{max-height:220px;overflow-y:auto}.comments li{display:flex;align-items:center;gap:.25rem}.comments li>span{flex:1 1 auto;min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:break-word}.comments .case-actions{display:inline-flex;gap:.25rem;margin-left:auto}.comments .icon-btn{padding:.15rem}.comment-section[hidden]{display:none!important}.comments{font-size:.9rem;line-height:1.35}.comments li{border:none;padding:.2rem 0}.comment-form{display:flex;gap:.5rem}.comment-form input{flex:1;padding:.5rem;font-size:.9rem}@media (min-width: 600px){#case-form,#task-form{display:flex;gap:.5rem;align-items:center}#case-form input,#task-form input{flex:1}#task-form select,#case-form select{flex:0 0 40%;margin-top:0}#case-form button,#task-form button{flex:0 0 auto}}.chip.location{background:#e0f2fe;color:#075985;border-color:#bae6fd;cursor:pointer}#case-list:empty:before{content:"No cases yet. Add your first case.";display:block;color:var(--muted);font-size:.95rem}#task-list:empty:before{content:"No tasks yet. Add one above.";display:block;color:var(--muted);font-size:.95rem}#notes-list:empty:before{content:"No notes yet. Capture key details.";display:block;color:var(--muted);font-size:.95rem}.comments:empty:before{content:"No comments yet.";display:block;color:var(--muted);font-size:.9rem}.comments li.optimistic{opacity:.6;font-style:italic}.comments li.failed{opacity:1;color:#b91c1c}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible{outline:none;box-shadow:var(--ring)}.tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-bottom:.75rem;border:1px solid var(--cg-20);border-radius:4px;overflow:hidden}.tab{height:44px;display:flex;align-items:center;justify-content:center;background:#fff;color:var(--cg-80);border-right:1px solid var(--cg-20)}.tab:last-child{border-right:none}.tab.active{background:var(--primary);color:#fff}#main-tabs{display:flex;justify-content:center;gap:8px;border:none}#main-tabs .tab{border:1px solid var(--cg-20);border-right:none;border-radius:999px;padding:0 14px;height:40px}#main-tabs .tab.active{background:var(--primary);color:#fff}.task-main{grid-column:1 / 2}.task-actions{grid-column:2 / 3;display:inline-flex;align-items:center;gap:.25rem;justify-self:end;max-width:100%;white-space:nowrap}.comment-section{grid-column:1 / -1;margin-top:.25rem}.emoji{margin-right:.35rem}.case-heading{margin-top:.25rem}.change-user-link{font-size:.9rem;color:var(--muted);background:none;border:none;padding:0;margin-left:8px;cursor:pointer}.change-user-link:hover{text-decoration:underline;color:var(--cg-70)}.c-toolbar{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid var(--cg-20);border-radius:4px;background:#fff}.c-toolbar--stack{flex-direction:column;gap:6px}.c-row{display:flex;align-items:center;gap:8px;width:100%}.c-row--center{justify-content:center;gap:12px}.c-row .c-field--grow{flex:1 1 100%}.segmented{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--cg-20);border-radius:999px;padding:2px;background:#fff}.segmented .sep{width:1px;background:var(--cg-20);height:18px}.segmented .pill{background:none;border:none;border-radius:999px;padding:6px 10px;color:var(--cg-80)}.segmented .pill.active{background:var(--cg-20);color:#1e3a8a}.c-search{width:100%}.c-select-btn{white-space:nowrap}.c-segments{display:inline-flex;align-items:center;border:1px solid var(--cg-20);border-radius:999px;overflow:hidden}.c-chip{height:36px;padding:0 12px;font-size:14px;border:none;cursor:pointer}.c-chip--inactive{background:#eef2ff;color:#2563eb}.c-chip--active{background:#2563eb;color:#fff}.c-chip--sep{border-right:1px solid var(--cg-20)}.c-field{display:flex;align-items:center;gap:6px;color:var(--cg-80)}.c-select{position:relative}.c-select select{height:36px;padding:0 28px 0 12px;border:1px solid var(--cg-20);border-radius:4px;background:#fff;color:var(--cg-100);-webkit-appearance:none;-moz-appearance:none;appearance:none}.c-select-btn{height:36px;padding:0 28px 0 12px;border:1px solid var(--cg-20);border-radius:4px;background:#fff;color:var(--cg-100);cursor:pointer}.c-select--wide select{min-width:180px}.c-caret{position:absolute;right:8px;top:50%;transform:translateY(-50%);color:var(--cg-60);pointer-events:none}.c-select--multi .c-caret{right:8px}.c-menu{position:absolute;top:calc(100% + 4px);left:0;z-index:40;min-width:220px;background:#fff;border:1px solid var(--cg-20);border-radius:4px;box-shadow:var(--shadow-lg);padding:6px}.c-menu-item{display:grid;grid-template-columns:16px 1fr;align-items:center;gap:8px;padding:6px 4px;border-radius:4px;font-size:14px;cursor:pointer}.c-menu-item:hover{background:var(--cg-10)}.c-menu-item input[type=checkbox]{width:14px;height:14px}.c-field--grow{flex:1 1 220px}.c-input{height:36px;width:100%;padding:0 12px;border:1px solid var(--cg-20);border-radius:4px;background:#fff;color:var(--cg-100)}.c-input--search{padding-right:28px}.c-btn{height:36px;padding:0 12px;border:1px solid var(--cg-20);border-radius:4px;background:#fff;color:var(--cg-100)}.c-btn:hover,.c-select select:hover,.c-input:hover{background:var(--cg-10)}.c-btn:focus-visible,.c-select select:focus-visible,.c-input:focus-visible,.c-chip:focus-visible{outline:none;box-shadow:var(--ring)}.c-search{position:relative}.c-clear{position:absolute;right:4px;top:50%;transform:translateY(-50%);height:24px;width:24px;border:1px solid var(--cg-20);border-radius:999px;background:#fff;color:var(--cg-60);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.c-clear:hover{background:var(--cg-10)}#user-task-list .case-task{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:4px;border:1px solid #eee;background:#fff}#user-task-list .case-task:hover{background:var(--cg-10)}#user-task-list .case-task .mini-avatar{margin-left:auto}#user-task-list .case-task .comment-toggle{margin-left:8px}#user-task-list .case-task .badge.comment-count{margin-left:2px}#user-task-list .case-task.s-open,#user-task-list .case-task.s-inprogress,#user-task-list .case-task.s-complete{border-left:0;background:#fff}#user-task-list>.user-case-card ul{margin:0;padding-left:0}.user-case-card{border:1px solid var(--cg-20)}.user-case-header{padding-bottom:4px}.user-case-card{margin-bottom:.75rem}.user-case-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.25rem}.user-case-header h3{margin:0}#user-task-list>.user-case-card ul{margin:0;padding-left:1rem}.toolbar{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.toolbar .filter-group{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.toolbar .meta{color:var(--muted);font-size:.9rem}.link-btn{background:none;border:none;color:var(--primary);padding:0;cursor:pointer;font-weight:600}.link-btn:hover{text-decoration:underline}.badge{background:#eef2ff;color:#3730a3;border-radius:999px;padding:.05rem .4rem;font-size:.8rem;font-weight:600}.case-item{display:block}.case-item-header{display:flex;align-items:center;justify-content:space-between;gap:.5rem}#case-list li.case-item .case-left{display:flex;align-items:center;gap:6px}#case-list li.case-item .case-title{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#case-list li.case-item .case-actions{display:flex;gap:.25rem;align-items:center}.case-subinfo-left{display:flex;align-items:center;gap:6px}.case-id{color:var(--muted);font-size:.9rem}.chev-btn{background:none;border:1px solid var(--cg-20);border-radius:4px;padding:2px 6px;color:var(--cg-80);line-height:1}.case-tasks-wrap{width:100%;margin-top:6px}.case-tasks{margin:0;padding-left:0;display:flex;flex-direction:column;gap:8px}.case-task{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--text);padding:6px 10px;border-radius:0;position:relative;flex-wrap:wrap}.case-task .task-text{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.case-task .status{font-weight:700;width:1.25rem;text-align:center;color:var(--cg-90)}.case-task .status-btn{background:none;border:none;cursor:pointer;font-weight:700;color:var(--cg-90);padding:0;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;font-size:22px}@media (max-width: 600px){.case-task .status-btn{width:44px;height:44px;font-size:28px}.task-status-btn{width:44px;height:44px;line-height:42px;font-size:1.9rem}}#case-list-section>h1{display:none}.case-task .mini-chip{font-size:12px;padding:0 8px;height:20px;display:inline-flex;align-items:center;border:1px solid var(--cg-20);border-radius:9999px;color:var(--cg-80)}.case-task .mini-avatar{width:22px;height:22px;border-radius:9999px;background:var(--cg-20);color:var(--cg-80);display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;cursor:pointer;margin-left:6px}.case-tasks-toggle{background:none;border:1px solid var(--cg-20);border-radius:4px;padding:2px 6px;color:var(--cg-80)}.case-tasks-more{background:none;border:1px solid var(--cg-20);border-radius:4px;padding:2px 6px;color:var(--cg-80);margin-top:6px}#case-list .case-task.s-open{border-left:3px solid #3b82f6;background:#f2f7ff}#case-list .case-task.s-inprogress{border-left:3px solid #f59e0b;background:#fff7ea}#case-list .case-task.s-complete{border-left:3px solid #34d399;background:#effdf5}#case-list .case-task.s-complete .task-text{color:var(--cg-60);text-decoration:line-through}.case-mini-comments{font-size:.85rem;color:var(--cg-60);margin:2px 0 0 18px;flex:0 0 100%;width:100%;display:block;padding-right:8px;box-sizing:border-box}.case-mini-comments .c-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 8px)}.case-mini-comments .c-author{font-weight:600;color:var(--cg-70);margin-right:6px}.assignee-panel{position:absolute;right:0;top:100%;margin-top:4px;background:#fff;border:1px solid var(--cg-20);border-radius:4px;box-shadow:var(--shadow-md);min-width:160px;padding:4px;z-index:9998}.assignee-option{display:block;width:100%;text-align:left;background:none;border:none;padding:8px 10px;border-radius:4px;color:var(--text);cursor:pointer}.assignee-option:hover{background:var(--cg-10)}.assignee-tip{position:absolute;bottom:100%;left:50%;transform:translate(-50%);margin-bottom:6px;background:var(--cg-100);color:#fff;padding:4px 6px;border-radius:4px;font-size:12px;white-space:nowrap;pointer-events:none;z-index:9999}.status-group-header{display:flex;align-items:baseline;gap:8px;list-style:none;padding:6px 4px 2px;margin:0;border-top:1px solid var(--border);font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);background:transparent;cursor:default}.status-group-header:first-child{border-top:0;padding-top:2px}.status-group-header[data-status=open]{color:var(--text)}.status-group-header[data-status="in progress"]{color:var(--primary)}.status-group-header[data-status=complete]{color:var(--muted)}.status-group-count{font-size:11px;font-weight:400;letter-spacing:0;color:var(--muted-soft);text-transform:none}.case-task+.status-group-header,.mt-row+.status-group-header{margin-top:4px}.cb-icon{display:inline-block;vertical-align:middle;flex-shrink:0;fill:currentColor}button .cb-icon,a .cb-icon{pointer-events:none}button:has(>.cb-icon+span),button:has(>span+.cb-icon){gap:6px}.btn .cb-icon,.icon-btn .cb-icon{vertical-align:text-bottom}.star-btn,.status-btn,.chev-btn,.mt-star,.mt-del,.completed-old-chev,.mt-section-chev{display:inline-flex;align-items:center;justify-content:center}.case-task .cp-assign{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;padding:0;cursor:pointer;margin-left:auto;display:inline-flex;align-items:center;gap:6px;border-radius:9999px}.case-task .cp-assign-avatar{width:22px;height:22px;border-radius:9999px;background:var(--cg-20);color:var(--cg-80);font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;line-height:1}.case-task .cp-assign--unassigned .cp-assign-avatar{background:transparent;color:var(--cg-40);font-weight:400}.case-task .cp-assign-label{display:none}@media (max-width: 900px){.case-task .cp-assign{height:32px;min-width:32px;padding:2px;border:1px solid transparent}.case-task .cp-assign--unassigned{padding:0 12px 0 6px;border:1px dashed var(--cg-40);background:var(--cg-10);color:var(--cg-70)}.case-task .cp-assign-avatar{width:28px;height:28px;font-size:12px}.case-task .cp-assign--unassigned .cp-assign-avatar{width:22px;height:22px;font-size:18px;color:var(--cg-60)}.case-task .cp-assign--unassigned .cp-assign-label{display:inline;font-size:12px;font-weight:600;color:var(--cg-70);letter-spacing:.01em}.case-task .cp-assign.cp-pulse{animation:cpAssignPulse 1.5s ease-in-out 0s 3}@keyframes cpAssignPulse{0%,to{box-shadow:0 0 #0f5f8800;border-color:var(--cg-40)}50%{box-shadow:0 0 0 6px #0f5f882e;border-color:#0f5f88}}}.toast-container{position:fixed;bottom:16px;left:16px;display:flex;flex-direction:column;gap:4px;z-index:1000;max-width:min(420px,calc(100vw - 32px))}.updates-list{display:flex;flex-direction:column;gap:12px;margin-top:12px}.update-group{position:sticky;top:56px;z-index:1;background:#f7fbfff5;border:1px solid #d6e3f0;border-radius:999px;padding:3px 12px;color:var(--cg-70);align-self:start;font-size:12px;font-weight:600;box-shadow:var(--shadow-sm)}.update-item{display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-areas:"icon content" "icon meta";gap:6px 12px;align-items:start;border:1px solid #dbe4ef;border-radius:4px;padding:12px 14px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:none;transition:border-color .14s ease,box-shadow .14s ease,transform .14s ease}.update-item:hover{border-color:#c7d7ea;box-shadow:none;transform:translateY(-1px)}.update-icon{grid-area:icon;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:9999px;background:linear-gradient(180deg,#eef4ff,#e0ebff);border:1px solid #cfddfb;color:#1d4ed8;font-size:18px}.update-avatar{width:20px;height:20px;border-radius:9999px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;border:1px solid var(--cg-20);margin-left:6px}.update-content{grid-area:content;min-width:0;display:flex;flex-direction:column;gap:6px}.update-content .link{display:block;color:inherit}.update-content ul{margin:6px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}.update-content ul>li{border-top:1px dashed var(--cg-20);padding-top:6px}.update-content ul>li:first-child{border-top:none;padding-top:0}.update-line{color:var(--cg-100);font-size:1.02rem;line-height:1.45;overflow-wrap:anywhere}.update-line .who{font-weight:700}.update-line .chip{height:auto;min-height:22px;display:inline-flex;align-items:center;vertical-align:middle;font-size:12px;padding:2px 9px}.update-meta{grid-area:meta;color:var(--cg-60);font-size:12px;white-space:nowrap;justify-self:end;font-variant-numeric:tabular-nums}.updates-footer{display:flex;justify-content:center;margin-top:12px}.update-item.new{border-color:#bfdbfe;box-shadow:0 0 0 3px #3b82f61f}.update-empty{color:var(--cg-60);text-align:center;padding:20px}#updates-toolbar{border-radius:4px;border-color:#d8e3ef;background:linear-gradient(180deg,#fff,#f4f9ff)}#updates-toolbar .c-row{gap:10px}#updates-user-filter{min-width:190px}.task-name-chip{display:inline-flex;align-items:center;font-weight:700;background:#eef4ff;color:#1e3a8a;border:1px solid #c7d7f5;border-radius:4px;padding:2px 9px;min-height:22px;line-height:1.3;vertical-align:middle;max-width:min(70ch,100%);white-space:normal;overflow-wrap:anywhere;margin:0 2px}.update-text-chip{max-width:min(72ch,100%);white-space:normal;overflow-wrap:anywhere;text-overflow:clip;overflow:visible}@media (max-width: 760px){#updates-toolbar .c-row{flex-direction:column;align-items:stretch}#updates-user-filter{min-width:0;max-width:none!important}.update-item{grid-template-columns:34px minmax(0,1fr);padding:10px 12px;gap:6px 10px}.update-icon{width:34px;height:34px;font-size:16px}.update-line{font-size:.98rem}.update-meta{justify-self:start}}.table-root{overflow-x:auto}.data-table{width:100%;border-collapse:separate;border-spacing:0;min-width:720px;table-layout:fixed}.data-table th,.data-table td{border:1px solid var(--cg-20);padding:8px;background:#fff}#table-section .data-table td{position:relative}.cell-color-btn{position:absolute;top:4px;right:4px;width:18px;height:18px;border-radius:50%;border:1px solid var(--cg-20);background:#fff;box-shadow:var(--shadow-sm);cursor:pointer;visibility:hidden}.cell-color-btn:after{content:"u2022";display:block;text-align:center;line-height:16px;color:var(--cg-60);font-weight:700}#table-section .data-table td:hover .cell-color-btn{visibility:visible}#table-section.cell-color-disabled .data-table td .cell-color-btn{display:none!important;visibility:hidden!important}#table-section.cell-color-disabled .color-panel{display:none!important}.color-panel{position:fixed;z-index:2147483646;background:#fff;border:1px solid var(--cg-20);border-radius:4px;box-shadow:var(--shadow-md);padding:6px;display:grid;grid-template-columns:repeat(6,18px);gap:6px}.color-swatch{width:18px;height:18px;border-radius:4px;cursor:pointer;border:1px solid rgba(0,0,0,.08)}.color-swatch.none{background:repeating-linear-gradient(45deg,var(--cg-10),var(--cg-10) 4px,#ffffff 4px,#ffffff 8px)}@media print{#table-section .cell-color-btn,#table-section .color-panel,#table-section .cell-info-btn,#table-section .line-info-btn,#table-section .cell-body-panel{display:none!important}}.cell-info-btn{position:absolute;top:4px;right:26px;width:18px;height:18px;border-radius:50%;border:1px solid var(--cg-20);background:#fff;box-shadow:var(--shadow-sm);cursor:pointer;visibility:hidden;font-size:12px;line-height:16px}#table-section .data-table td:hover .cell-info-btn{visibility:visible}.cell-body-panel{position:absolute;z-index:2147483646;width:min(360px,86vw);background:#fff;border:1px solid #d0dae3;border-radius:4px;box-shadow:0 0 0 1px #00000014;display:flex;flex-direction:column;overflow:visible;animation:cell-body-panel-in .14s cubic-bezier(.2,.9,.3,1)}.cell-body-panel--inline{position:static;width:auto;margin:6px 0 4px;box-shadow:none;border-color:var(--cg-20)}.cell-body-panel--inline .cell-body-pointer{display:none}@keyframes cell-body-panel-in{0%{opacity:0;transform:translateY(-4px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}.cell-body-header{padding:10px 12px 9px 14px;background:linear-gradient(180deg,#f8fbfd,#eff5f9);border-bottom:1px solid #e2ebf2;border-radius:4px 12px 0 0;display:flex;align-items:center;gap:8px}.cell-body-title{font-weight:600;color:#1b2b3a;font-size:.84rem;letter-spacing:.005em;line-height:1.25;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell-body-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:22px;height:22px;padding:0;border:1px solid transparent;border-radius:4px;background:transparent;color:#6b7a89;cursor:pointer;transition:background .12s ease,color .12s ease,border-color .12s ease}.cell-body-close:hover{background:#fff;color:#1b2b3a;border-color:#d3dde6}.cell-body-close svg{display:block}.cell-body-text{width:100%;padding:12px 14px;background:transparent;font:inherit;font-size:.86rem;line-height:1.5;color:#1b2b3a;outline:none;overflow-wrap:anywhere;white-space:pre-wrap;min-height:72px;max-height:40vh;overflow-y:auto;caret-color:var(--primary, #0c4e74)}.cell-body-text[contenteditable=true]:empty:before{content:attr(data-placeholder);color:#8494a3;font-style:italic;pointer-events:none}.cell-body-text:focus{background:#fcfeff}.cell-body-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 12px 9px;border-top:1px solid var(--cg-10);border-radius:0 0 4px 4px;background:#fafcfe;color:#6b7a89;font-size:.68rem;letter-spacing:.02em}.cell-body-foot kbd{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:17px;padding:0 5px;margin:0 1px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.68rem;font-weight:600;color:#4b5b6c;background:#fff;border:1px solid #d8e0e8;border-bottom-width:2px;border-radius:4px;line-height:1}.cell-body-pointer{position:absolute;top:-6px;left:auto;right:14px;width:11px;height:11px;background:linear-gradient(180deg,#f8fbfd,#f4f8fb);border-top:1px solid #d0dae3;border-left:1px solid #d0dae3;border-top-left-radius:2px;transform:rotate(45deg);pointer-events:none}.cell-body-panel.is-above .cell-body-pointer{top:auto;bottom:-6px;background:#fafcfe;border-top:none;border-left:none;border-right:1px solid #d0dae3;border-bottom:1px solid #d0dae3;border-top-left-radius:0;border-bottom-right-radius:2px}@media print{#table-section .cell-info-btn,#table-section .cell-body-panel{display:none!important}}.data-table th{background:var(--cg-10);text-align:left;font-weight:600}.data-table td .cell-edit{width:100%;min-width:140px;border:1px solid transparent;border-radius:4px;padding:8px 10px}.data-table td .cell-edit:focus{outline:none;border-color:#bfdbfe;box-shadow:0 0 0 3px #3b82f633}.cell-editable{display:block;width:100%;min-height:36px;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid transparent;border-radius:4px;padding:8px 10px}.cell-editable:focus{outline:none;border-color:#bfdbfe;box-shadow:0 0 0 3px #3b82f633}.cell-editable[contenteditable=true]:empty:before{content:attr(data-placeholder);color:var(--cg-40)}.patient-link{background:none;border:none;color:var(--primary);cursor:pointer;font-weight:600;padding:0}.patient-link:hover{text-decoration:underline}.patient-rename-input{font:600 inherit;font-size:1rem;color:var(--primary, #0c4e74);padding:4px 8px;border:1px solid var(--primary, #0c4e74);border-radius:4px;background:#fff;outline:none;min-width:0;max-width:100%}body.mobile-simplified .patient-rename-input{font-size:16px;padding:6px 10px}.cell-tasks{max-height:320px;overflow-y:auto;display:block;padding:2px 0}.cell-tasks ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px;max-height:260px;overflow-y:auto}.cell-tasks .case-task{padding:4px 6px;border-radius:4px}#table-section .cell-tasks .case-task{align-items:flex-start}.cell-tasks .status-btn{width:16px;height:16px;font-size:14px;padding:0}.cell-tasks .mini-avatar{width:16px;height:16px;font-size:10px}.cell-tasks .composer{display:grid;grid-template-columns:1fr;gap:4px;margin-top:6px}.cell-tasks .composer input{flex:1;padding:4px 8px 4px 18px;height:26px;border-radius:4px;font-size:13px}.cell-tasks .composer.compact{position:relative}.cell-tasks .composer.compact:before{content:"+";position:absolute;left:6px;top:50%;transform:translateY(-50%);color:var(--cg-60);font-weight:600;font-size:14px}#table-section{font-size:13px;line-height:1.35}#table-section .data-table th,#table-section .data-table td{padding:4px 6px}#table-section .data-table th:nth-child(1),#table-section .data-table td:nth-child(1){width:clamp(140px,18%,210px)}#table-section .data-table th:nth-child(2),#table-section .data-table td:nth-child(2),#table-section .data-table th:nth-child(3),#table-section .data-table td:nth-child(3){width:clamp(100px,8%,150px)}#table-section .data-table th:nth-child(4),#table-section .data-table td:nth-child(4){width:clamp(320px,42%,520px)}#table-section .cell-editable,#table-section .cell-tasks .composer input{border-radius:4px}#table-section .cell-tasks .case-task .task-text{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:break-word;line-height:1.3}#table-section .cell-tasks .icon-btn.delete-btn{width:16px;height:16px;padding:0;font-size:12px;line-height:1;border:none;background:transparent;opacity:.45;margin-left:4px}#table-section .cell-tasks .icon-btn{min-height:0}#table-section .cell-tasks .case-task:hover .icon-btn.delete-btn{opacity:.8}#table-section .cell-tasks .case-task .icon-btn.delete-btn{visibility:hidden}#table-section .cell-tasks .case-task:hover .icon-btn.delete-btn{visibility:visible}#table-section .cell-editable:focus{box-shadow:0 0 0 2px #3b82f62e}#table-section .data-table tbody tr:nth-child(2n) td{background:#fafafa}#table-section .data-table th{font-size:13px;font-weight:600}.tags-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;padding:6px 8px;background:var(--cg-10);border:1px solid var(--cg-20);border-radius:4px}.tags-controls .left,.tags-controls .right{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tags-controls .ctrl{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--cg-80)}.tags-controls select{min-width:140px;height:28px;padding:2px 6px;border-radius:4px;border:1px solid var(--cg-20);background:#fff;font-size:12px}.filter-pill{height:28px;padding:0 10px;border:1px solid var(--cg-20);border-radius:999px;background:#fff;color:var(--cg-100);font-size:12px;display:inline-flex;align-items:center;gap:6px;cursor:pointer}.filter-pill[aria-disabled=true]{opacity:.5;cursor:not-allowed}.filter-pill .count{color:var(--cg-60)}.filter-chips{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.section-label{color:var(--cg-60);font-size:12px;margin-right:6px}.filter-chip{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:999px;border:1px solid var(--cg-20);background:#fff;font-size:12px}.filter-chip .x{cursor:pointer;color:var(--cg-60)}.filter-popover{position:absolute;z-index:50;background:#fff;border:1px solid var(--cg-20);border-radius:4px;box-shadow:var(--shadow-lg);width:min(320px,92vw);padding:6px}.filter-popover .search{width:100%;height:28px;border:1px solid var(--cg-20);border-radius:4px;padding:2px 8px;font-size:12px;margin-bottom:6px}.filter-popover .list{max-height:260px;overflow:auto;display:grid;gap:2px}.filter-popover .opt{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 8px;border-radius:4px;cursor:pointer}.filter-popover .opt:hover{background:var(--cg-10)}.filter-popover .opt .label{display:inline-flex;align-items:center;gap:8px;margin:0;flex:1 1 auto;min-width:0}.filter-popover .opt .label span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.filter-popover .opt .opt-count{color:var(--cg-60);font-variant-numeric:tabular-nums;min-width:2ch;text-align:right}.filter-popover input[type=checkbox],.sheet input[type=checkbox]{width:14px;height:14px;padding:0;border:1px solid var(--cg-40);border-radius:3px;background:#fff;box-shadow:none}.segmented{display:inline-flex;border:1px solid var(--cg-20);border-radius:999px;overflow:hidden}.segmented button{height:28px;padding:0 10px;border:none;background:#fff;font-size:12px;cursor:pointer}.segmented button.active{background:#1d4ed8;color:#fff}.segmented .sep{width:1px;background:var(--cg-20)}.sort-dir{height:28px;padding:0 8px;border:1px solid var(--cg-20);border-radius:999px;background:#fff;font-size:12px}#table-tags-controls select{display:none}#table-section .data-table td[data-cell-section]>.cell-toggle{display:none}#table-section .data-table td[data-cell-section]>.cell-body{display:contents}.mobile-expand-all-btn{display:none}.mobile-filters-btn{display:none;height:28px;padding:0 10px;border:1px solid var(--cg-20);border-radius:999px;background:#fff;font-size:12px}.pills-wrap{display:inline-flex;gap:8px;flex-wrap:wrap;align-items:center}@media (max-width: 640px){.pills-wrap{display:none}.mobile-filters-btn{display:inline-flex;align-items:center}}.sheet-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000059;z-index:60}.sheet{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top-left-radius:4px;border-top-right-radius:4px;box-shadow:var(--shadow-lg);padding:12px;z-index:61}.sheet h4{margin:6px 0;font-size:14px}.sheet .section{margin-bottom:10px}.sheet .actions{display:flex;justify-content:space-between;gap:8px}.new-case-footer{display:flex;justify-content:center;padding:10px 8px}.name-cell{display:flex;flex-direction:column;gap:2px}.name-row{display:flex;align-items:center;gap:6px}.tag-chips{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;color:var(--cg-80)}.tag-chip{display:inline-flex;align-items:center;gap:4px;padding:1px 6px;border-radius:999px;background:#eef2ff;color:#1e3a8a;border:1px solid var(--cg-20)}.tag-chip.active{background:#dbeafe;color:#1d4ed8;border-color:#93c5fd;box-shadow:0 0 0 2px #93c5fd4d}.tag-order{color:var(--cg-60);font-weight:600}.edit-tags-btn{background:none;border:1px solid var(--cg-20);border-radius:4px;padding:2px 6px;font-size:12px;color:var(--cg-80)}.tag-panel{position:fixed;z-index:2147483646;background:#fff;border:1px solid var(--cg-20);border-radius:4px;box-shadow:var(--shadow-md);padding:8px;width:280px}.tag-panel h4{margin:0 0 6px;font-size:13px}.tag-panel .row{display:grid;gap:6px;margin-bottom:6px}.tag-panel select{width:100%;height:32px;border-radius:4px;border:1px solid var(--cg-20)}.tag-panel .actions{display:flex;justify-content:flex-end;gap:6px}.show-filters-btn{font-size:12px;padding:4px 8px;border:1px solid var(--cg-20);border-radius:4px;background:#fff}.table-section-toolbar{display:contents}#table-section{position:relative}.filters-placeholder{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-bottom:6px;padding:6px 8px}.print-action{position:absolute;top:6px;right:8px;font-size:12px;padding:4px 8px;border:1px solid var(--cg-20);border-radius:4px;background:#fff}body.print-mode .topbar,body.print-mode #main-tabs,body.print-mode .tabs-bar,body.print-mode .print-action{display:none!important}body.print-mode .patient-link{pointer-events:none;color:inherit;text-decoration:none;cursor:default}body.print-mode #table-section{font-size:12px;line-height:1.3;padding:0;border:none;border-radius:0}body.print-mode #table-section .data-table th,body.print-mode #table-section .data-table td{padding:2px 4px}body.print-mode #table-section .cell-tasks .composer,body.print-mode #table-section input,body.print-mode #table-section textarea,body.print-mode #table-section .status-btn,body.print-mode #table-section .mini-avatar,body.print-mode #table-section .cp-assign,body.print-mode #table-section .icon-btn,body.print-mode #table-section .assignee-panel{display:none!important}@media print{.topbar,#main-tabs,.tabs-bar,.print-action{display:none!important}.app{padding:0;max-width:none}#table-section{padding:0;margin:0;border:none;box-shadow:none}#table-section{position:static;left:0;right:0;width:auto}thead{display:table-header-group}tr,td,th{page-break-inside:avoid}#table-section .cell-tasks .composer,#table-section input,#table-section textarea,#table-section .status-btn,#table-section .mini-avatar,#table-section .cp-assign,#table-section .icon-btn,#table-section .assignee-panel{display:none!important}.patient-link{pointer-events:none;color:inherit;text-decoration:none}#table-section{font-size:12px;line-height:1.3}#table-section .data-table th,#table-section .data-table td{padding:2mm 3mm}}@media (min-width: 900px){#table-section{position:relative;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;width:100vw;border-left:none;border-right:none;border-radius:0}#table-section .table-root{max-width:1320px;margin:0 auto;padding:0 16px}}@keyframes flash-highlight{0%{box-shadow:0 0 #3b82f600;background-color:inherit}10%{box-shadow:0 0 0 4px #3b82f640;background-color:#eef2ff}to{box-shadow:0 0 #3b82f600;background-color:inherit}}.flash-highlight{animation:flash-highlight 1.2s ease-out 1}@media (max-width: 600px){#case-list li.case-item .case-title{flex:1 1 100%;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.case-item-header{flex-wrap:wrap}.case-subinfo-left{order:2;flex:1 1 auto}#case-list li.case-item .case-actions{order:2;margin-left:auto}#case-list-section>h1{display:none}.case-item-header>.case-left{flex:1 1 100%;min-width:0}}.toast{background:#161616;color:#fff;padding:8px 12px;border-left:3px solid var(--primary);border-radius:0;box-shadow:none;font-size:13px;line-height:1.35;opacity:0;transform:translateY(4px);animation:toast-in .12s ease-out forwards,toast-out .3s ease-in forwards 2.8s}@keyframes toast-in{to{opacity:1;transform:translateY(0)}}@keyframes toast-out{to{opacity:0;transform:translateY(8px)}}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:flex-start;justify-content:center;padding-top:clamp(24px,6vh,64px);z-index:1000}.modal{background:#fff;border:1px solid var(--cg-20);border-radius:4px;padding:16px;width:min(92vw,420px);box-shadow:none}.modal-wide{width:min(96vw,1100px);max-height:90vh;overflow:auto}@media (min-width: 1200px){.modal-wide{width:min(92vw,1280px)}}.modal h3{margin:0 0 8px;color:var(--text);font-weight:600}.modal .row{display:grid;gap:8px;margin-bottom:12px}.modal .actions{display:flex;justify-content:flex-end;gap:8px}.btn{height:48px;padding:0 14px;border-radius:4px;border:1px solid var(--cg-20);background:#fff;cursor:pointer}.btn.primary{background:var(--primary);color:#fff;border-color:var(--primary)}.comment-count{margin-left:.15rem}.tags-manager{width:min(92vw,820px)}.tags-manager .tabs{grid-template-columns:1fr 1fr;margin-bottom:8px}.tags-manager .grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tags-list,.rooms-list{border:1px solid var(--cg-20);border-radius:4px;padding:8px;max-height:360px;overflow-y:auto}.tags-list h4,.rooms-list h4{margin:0 0 6px;font-size:14px}.entry{display:flex;align-items:center;justify-content:space-between;gap:6px;border:1px solid var(--cg-10);border-radius:4px;padding:4px 6px;margin-bottom:6px}.entry .name{font-size:13px}.entry .row-actions{display:inline-flex;gap:4px}.entry .row-actions button{font-size:12px;padding:2px 6px;border:1px solid var(--cg-20);border-radius:4px;background:#fff}.section-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:6px}.comments li{align-items:flex-start}.comments li>span{line-height:1.45}.actions-menu{position:relative}.menu-panel{position:absolute;right:0;top:100%;margin-top:4px;background:#fff;border:1px solid var(--cg-20);border-radius:4px;box-shadow:var(--shadow-md);min-width:160px;padding:4px;z-index:30}.menu-item{display:block;width:100%;text-align:left;background:none;border:none;padding:8px 10px;border-radius:4px;color:var(--text)}.menu-item:hover{background:var(--cg-10)}#task-list .case-task.s-open{border-left:3px solid #3b82f6;background:#f2f7ff}#task-list .case-task.s-inprogress{border-left:3px solid #f59e0b;background:#fff7ea}#task-list .case-task.s-complete{border-left:3px solid #34d399;background:#effdf5}#task-list .case-task.s-complete .task-text{color:var(--cg-60);text-decoration:line-through}#user-task-list .case-task.s-open{border-left:3px solid #3b82f6;background:#f2f7ff}#user-task-list .case-task.s-inprogress{border-left:3px solid #f59e0b;background:#fff7ea}#user-task-list .case-task.s-complete{border-left:3px solid #34d399;background:#effdf5}#user-task-list .case-task.s-complete .task-text{color:var(--cg-60);text-decoration:line-through}.controls-row{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:8px 0 16px}.controls-group{display:flex;gap:8px}.case-tasks-toggle{padding:8px 12px;border-radius:4px;font-size:.95rem}@media (max-width: 600px){.controls-row{margin:12px 0 20px}.case-tasks-toggle{height:44px;min-width:44px;font-size:1rem}}.chev-btn{background:none;border:1px solid var(--cg-20);border-radius:4px;padding:0;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;font-size:18px}@media (max-width: 600px){.chev-btn{width:44px;height:44px;font-size:22px}}.case-actions .icon-btn{width:36px;height:36px;padding:0;display:inline-flex;align-items:center;justify-content:center}@media (max-width: 600px){.case-actions .icon-btn{width:44px;height:44px;font-size:20px}}.icon-btn.small{font-size:12px;padding:4px 8px;border:1px solid var(--cg-20);border-radius:4px}.print-header{font-size:12px;color:var(--cg-100);margin:8px 0 6px;padding-bottom:4px;border-bottom:1px solid var(--cg-20)}#case-detail .tabs{display:none}@media (min-width: 900px){#case-detail.card{padding:8px 10px}#case-detail .case-heading{margin:2px 0 8px}#case-tag-chips{margin:4px 0 6px}#case-detail #task-form.composer{padding:3px;gap:4px}#case-detail #task-form.composer input{height:26px;font-size:12px}#case-detail #task-form.composer .primary{height:26px;padding:0 8px;font-size:12px}#case-detail #task-list li{padding:1px 2px;margin-bottom:3px}#case-detail #task-list .case-task{gap:4px;padding:3px 4px;border-radius:4px;font-size:.8rem}#case-detail #task-list .case-task .status-btn{width:16px;height:16px;font-size:12px;line-height:14px}#case-detail #task-list .case-task .mini-avatar{width:14px;height:14px;font-size:9px;margin-left:3px}#case-detail #task-list .case-task .mini-chip{height:14px;font-size:9px;padding:0 4px}#case-detail #task-list .case-task .comment-toggle{padding:1px 3px}#case-detail #task-list .badge.comment-count{padding:0 3px;font-size:10px}#case-detail .icon-btn{min-height:0;padding:1px 3px}#case-detail .composer-opts{gap:4px;margin:4px 0 8px}#case-detail .composer-opts label{font-size:.8rem}#case-detail .chip{height:20px;font-size:11px;padding:0 6px}#case-detail .notes{border-radius:4px}#case-detail .note-row{padding:4px 6px;grid-template-columns:2.2rem 1fr}#case-detail .note-label{padding:6px;font-size:.85rem}#case-detail .note-row textarea{padding:6px 8px;min-height:2.5rem}#case-detail .note-items{gap:6px}#case-detail .note-item{gap:2px;padding:4px 0}#case-detail .note-item .note-item-header{padding:4px 8px}#case-detail .note-item .note-item-body{min-height:3.25rem;padding:4px 8px}#case-detail .add-note-item{margin-top:2px}}#case-detail #task-list li{display:flex;align-items:center}.case-header-actions{position:relative;display:inline-block;margin-left:8px}.case-overflow-btn{font-weight:600}.case-overflow-panel{position:absolute;right:0;top:calc(100% + 6px);z-index:30;background:#fff;border:1px solid var(--cg-20);border-radius:4px;box-shadow:var(--shadow-lg);padding:6px;min-width:160px}.case-overflow-panel[hidden]{display:none}.case-overflow-item{display:block;width:100%;text-align:left;background:none;border:none;padding:8px 10px;border-radius:4px;color:var(--text);cursor:pointer}.case-overflow-item.delete{color:#ef4444}#case-tag-chips{margin:6px 0 8px}.notes{max-width:800px;margin:1rem auto;background:#fff;border:1px solid var(--cg-20);border-radius:4px;box-shadow:var(--shadow-sm);overflow:hidden;font-size:.95rem}@media (min-width: 900px){.case-panels #notes .notes{max-width:none;margin:0}}.note-row{display:grid;grid-template-columns:3rem 1fr;align-items:start;-moz-column-gap:0;column-gap:0;padding:6px 8px}.note-row+.note-row{border-top:1px solid var(--cg-10)}.note-label{padding:10px 8px;font-weight:600;color:var(--cg-70);font-size:.9rem}.note-row textarea{width:100%;border:none;outline:none;background:transparent;box-shadow:none;border-radius:0;padding:10px 12px;font:inherit;line-height:inherit;min-height:3.25rem;resize:vertical}.note-row textarea.auto-grow,textarea.auto-grow{overflow:hidden;resize:none}.note-content{display:grid;gap:6px}.note-body{min-height:6.5rem}.note-items{display:grid;gap:8px}.note-item{display:grid;gap:4px;padding:6px 0}.note-item .note-item-header{width:100%;border:none;outline:none;background:transparent;padding:6px 10px;border-radius:0;font:inherit}.note-item .note-item-body{min-height:6rem;border:none;outline:none;background:transparent;padding:6px 10px;resize:vertical;font:inherit}.note-item .note-actions{display:inline-flex;gap:6px}.note-item .note-actions .icon-btn{min-height:0;height:24px;font-size:12px;padding:2px 6px;border:1px solid var(--cg-20);border-radius:4px}.add-note-item{justify-self:start}.cell-items{display:grid;gap:2px;position:relative}.cell-line{display:grid;grid-template-columns:10px 1fr auto;align-items:start;gap:4px}.cell-bullet{width:6px;height:6px;border-radius:50%;background:var(--cg-40);margin-top:6px}.cell-line .cell-title{display:inline-block;min-height:18px;outline:none;border:1px solid transparent;border-radius:4px;padding:2px 4px}.cell-line .cell-title:focus{border-color:#bfdbfe;box-shadow:0 0 0 3px #3b82f633}.cell-line .cell-title[contenteditable=true]:empty:before{content:attr(data-placeholder);color:var(--cg-40)}.line-info-btn{background:none;border:none;color:var(--cg-60);font-size:12px;padding:0 2px;cursor:pointer}.cell-more,.cell-collapse{font-size:12px;color:var(--cg-60);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.note-row textarea:focus,.note-row textarea:focus-visible{background:var(--cg-10);box-shadow:none}.note-row textarea::-moz-placeholder{color:var(--cg-40)}.note-row textarea::placeholder{color:var(--cg-40)}.case-header-actions{display:flex;gap:8px;align-items:center}.case-header-actions .btn{height:32px;padding:0 12px}.composer-accordion{border-top:1px solid var(--cg-20);padding:4px 0}.composer-accordion:first-of-type{border-top:none}.composer-accordion .acc-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 2px;font-size:12px;color:var(--muted)}.composer-accordion .acc-title{display:inline-flex;align-items:center;gap:6px}.composer-accordion .acc-title .chev{font-size:10px}.composer-accordion .acc-summary{font-size:12px;color:var(--cg-60)}.composer-accordion .acc-body{padding:6px 0}.composer-accordion .acc-toggle{background:none;border:none;color:inherit;padding:0;cursor:pointer}.rich-editor-toolbar{display:flex;gap:12px;align-items:center;font-size:12px;color:var(--muted)}.rich-editor-wrap{border:1px solid var(--cg-20);border-radius:4px;background:#fff;padding:10px;min-height:160px;position:relative}.rich-editor{min-height:120px;outline:none;font-size:14px;line-height:1.45}.rich-editor-hint{position:absolute;top:10px;right:12px;font-size:12px;color:var(--cg-40);pointer-events:none}.issue-block{border:1px solid var(--cg-20);border-radius:4px;padding:8px;margin-bottom:8px;background:#fafafa}.issue-block.collapsed .issue-body{display:none}.issue-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.issue-pill{background:#eef2ff;color:#1e3a8a;border:1px solid #c7d2fe;border-radius:999px;font-size:12px;padding:0 6px}.issue-title{font-weight:600;outline:none}.issue-actions{display:inline-flex;gap:4px}.issue-body{margin-top:6px;padding:6px;border-radius:4px;border:1px dashed var(--cg-20);min-height:40px;outline:none}.issue-body:empty:before{content:attr(data-placeholder);color:var(--cg-40)}.wardnote-title{font-size:16px;font-weight:600;padding:6px 0;outline:none}.wardnote-help{font-size:12px;color:var(--muted);margin-bottom:6px}.other-divider{margin-top:8px;padding-top:8px;border-top:1px solid var(--cg-20);color:var(--cg-60);font-size:12px;text-transform:uppercase;letter-spacing:.04em}.other-area{min-height:60px;outline:none;padding-top:6px}.other-area:empty:before{content:attr(data-placeholder);color:var(--cg-40)}@media (min-width: 900px){.rich-editor-wrap{padding:10px}.rich-editor{font-size:14px;line-height:1.45}.issue-block{padding:2px 0 6px;margin-bottom:4px;border:none;background:transparent}.issue-block+.issue-block{border-top:1px solid var(--cg-20)}.issue-header{gap:4px;line-height:1.1}.issue-pill{font-size:10px;padding:0 4px;background:none;border:none;color:var(--cg-60)}.issue-title{font-size:12px}.issue-actions{opacity:0;pointer-events:none;transition:opacity .12s ease}.issue-block:hover .issue-actions,.issue-block:focus-within .issue-actions{opacity:1;pointer-events:auto}.issue-actions .icon-btn.small{padding:0 4px}.issue-body{margin-top:2px;padding:4px 0;min-height:40px;border:none}.other-divider{margin-top:8px;margin-bottom:6px;padding-top:0;border-top:none;font-size:12px;color:var(--cg-60)}.other-area{min-height:160px;padding:12px 14px;border:1px solid var(--cg-20);border-radius:4px;background:#fff}}.wardnote-label{font-weight:600;margin-top:6px}.wardnote-title{width:100%;font-size:20px;font-weight:700;padding:4px 0;margin:6px 0;border:none;background:transparent;outline:none;cursor:text}.wardnote-title:focus{border-bottom:1px dashed var(--cg-30)}.wardnote-help{font-size:12px;color:var(--muted);margin:4px 0 6px}.wardnote-area{width:100%;min-height:45vh;padding:12px 14px;font-size:16px;line-height:1.5}.compact-link{background:none;border:none;padding:0;cursor:pointer;color:var(--cg-60);font-size:12px}.compact-link.active{color:var(--primary);font-weight:600}body{font-family:IBM Plex Sans,system-ui,sans-serif;background:var(--bg);color:var(--text);min-height:100vh}h1,h2,h3,.title,.overview-title{font-family:IBM Plex Sans,system-ui,sans-serif;letter-spacing:-.02em}.topbar{margin:10px auto 0;width:min(1400px,calc(100% - 20px));border-radius:4px;border:1px solid rgba(15,95,136,.14);background:#fffc;box-shadow:none;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.brand{gap:.7rem}.brand .logo{width:34px;height:34px;border-radius:4px;background:linear-gradient(135deg,#0f5f88,#1c7db1);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:1.06rem;box-shadow:var(--shadow-sm)}.brand .brand-meta{display:grid;gap:2px}.brand .title{font-size:16px;font-weight:600;letter-spacing:-.005em}.brand .subtitle{font-size:12px;color:var(--muted)}.header-right{gap:10px}.session-strip{display:inline-flex;align-items:center;gap:7px}.session-chip,.session-time{display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(15,95,136,.18);background:#f7fcffd9;color:var(--muted);border-radius:999px;font-size:.76rem;font-weight:700;min-height:30px;padding:0 11px}.app{max-width:min(1400px,100% - 20px);padding:0;margin-top:10px}#main-tabs{margin:0 0 12px;padding:3px;border-radius:4px;background:#ffffff9e;border:1px solid rgba(15,95,136,.14);box-shadow:var(--shadow-sm)}#main-tabs .tab{border:none;border-radius:4px;height:42px;padding:0 16px;color:#234157;background:transparent;font-weight:700}#main-tabs .tab.active{background:linear-gradient(135deg,#0f5f88,#1b79ac);box-shadow:none}.workspace-overview{background:linear-gradient(140deg,#0c4766f2,#126e99e6 46%,#0e5378f0),radial-gradient(circle at 100% 0%,#ffc97733,#ffc97700);color:#e5f5ff;border-radius:4px;border:1px solid rgba(10,61,88,.2);box-shadow:none;padding:clamp(16px,2.4vw,28px);margin-bottom:12px;position:relative;overflow:hidden}.workspace-overview:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(112deg,#ffffff12,#fff0);pointer-events:none}.workspace-overview>*{position:relative;z-index:1}.overview-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}.overview-copy{max-width:780px}.overview-kicker{margin:0 0 4px;font-size:.74rem;text-transform:uppercase;letter-spacing:.13em;font-weight:700;color:#ddf1ffc2}.overview-title{margin:0;color:#fff;font-size:clamp(1.36rem,2.7vw,2.08rem)}.overview-text{margin:6px 0 0;max-width:64ch;color:#e1f4ffe0;font-size:.94rem}.overview-actions{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.overview-actions .btn{min-height:40px;border-radius:4px;border:1px solid rgba(225,244,255,.34);background:#ffffff14;color:#e8f5ff;font-weight:700;box-shadow:none}.overview-actions .btn.primary{background:#f4a938;border-color:#f4a9388c;color:#1f242a}.overview-actions .btn:disabled,.overview-actions .btn[aria-disabled=true]{opacity:.55;cursor:not-allowed;transform:none}.overview-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.metric-card{background:#ffffff14;border:1px solid rgba(227,245,255,.24);border-radius:4px;padding:10px 12px;min-height:78px}.metric-label{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:#daf0ffd9;margin-bottom:6px;font-weight:700}.metric-value{font-family:IBM Plex Sans,system-ui,sans-serif;font-size:clamp(1.2rem,1.9vw,1.66rem);line-height:1;color:#fff}.overview-meta{margin-top:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#daf0ffe6;font-size:.82rem}.card{border-radius:4px;border:1px solid rgba(24,65,93,.14);box-shadow:none;padding:clamp(12px,1.5vw,18px);margin-bottom:12px}#table-section .data-table{border-spacing:0;border-collapse:separate}#table-section .data-table th{position:sticky;top:0;z-index:2;background:#f1f8fc;color:#244a66;border-color:#214e6c24}#table-section .data-table td{border-color:#214e6c1f}#table-section .data-table tbody tr:hover td{background:#f6fbfe}.tags-controls{border-radius:4px;border:1px solid rgba(19,74,104,.15);background:#f4fafed9;box-shadow:var(--shadow-sm);padding:9px 10px}.filter-pill,.sort-dir,.show-filters-btn,.edit-tags-btn,.case-tasks-more,.case-tasks-toggle{border-radius:999px}.patient-link{color:#104f70}.patient-link:hover{color:#0b698f}.case-task,.updates-list .update-item{border-radius:4px}.shortcuts-modal{width:min(92vw,560px)}.shortcuts-grid{display:grid;grid-template-columns:minmax(140px,180px) 1fr;gap:10px 14px;margin:8px 0 2px}.shortcuts-grid>div{display:inline-flex;align-items:center;gap:6px}.shortcuts-grid p{margin:0;color:var(--muted);font-size:.92rem}kbd{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:26px;border:1px solid #bfd8e6;border-bottom-width:2px;border-radius:4px;background:#f4fbff;color:#244a66;font-size:.77rem;font-weight:700;padding:0 8px}.shortcuts-grid span{color:#6a8398;font-weight:700}@keyframes ui-rise{0%{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}#main-tabs{animation:ui-rise .22s ease-out both}.workspace-overview{animation:ui-rise .26s ease-out both}.card{animation:ui-rise .3s ease-out both}@media (max-width: 1180px){.overview-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width: 900px){.topbar{width:calc(100% - 12px);margin-top:6px;padding:10px 12px}.brand .subtitle,.session-time{display:none}.overview-top{flex-direction:column}.overview-actions{width:100%}.overview-actions .btn{flex:1 1 auto;justify-content:center}.overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-meta{flex-direction:column;align-items:flex-start}}@media (max-width: 620px){.session-strip{display:none}.workspace-overview{padding:14px}.overview-title{font-size:1.28rem}.overview-metrics{grid-template-columns:1fr}.metric-card{min-height:68px}}@media (prefers-reduced-motion: reduce){#main-tabs,.workspace-overview,.card{animation:none!important}}#table-section .table-root{border:1px solid rgba(19,74,104,.2);border-radius:4px;background:linear-gradient(180deg,#f7fcffe6,#eff8fdb8);box-shadow:inset 0 1px #fffc,0 10px 22px #0a2a4017}#table-section .table-root>.data-table{min-width:1040px;border-radius:4px;overflow:visible}#table-section .data-table th,#table-section .data-table td{vertical-align:top;border-color:#1e57772e;padding:7px 8px}#table-section .data-table thead th{position:sticky;top:0;z-index:5;background:linear-gradient(180deg,#f4f9fd,#ebf4fb);color:#335b77;text-transform:uppercase;letter-spacing:.07em;font-size:11px;font-weight:800}#table-section .data-table thead th:nth-child(1),#table-section .data-table tbody td:nth-child(1){position:sticky;left:0}#table-section .data-table thead th:nth-child(1){z-index:7;background:linear-gradient(180deg,#edf6fc,#e3eff8)}#table-section .data-table tbody td:nth-child(1){z-index:3;background:#f7fbfe;box-shadow:1px 0 #1e577729}#table-section .data-table tbody td:nth-child(4){background:#fcfeff}#table-section .data-table tbody tr:nth-child(2n) td:not([style*=background]){background:#fbfdff}#table-section .data-table tbody tr:nth-child(2n) td:nth-child(1):not([style*=background]){background:#f4f9fd}#table-section .data-table tbody tr:hover td:not([style*=background]){background:#eef7fc}#table-section .data-table tbody tr:hover td:nth-child(1):not([style*=background]){background:#e6f2f9}#table-section .name-cell{gap:6px;min-width:0}#table-section .name-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;flex-wrap:wrap}#table-section .name-title{min-width:0;flex:1 1 140px}#table-section .name-actions{display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:4px}#table-section .name-action-btn{display:inline-flex;align-items:center;justify-content:center;height:23px;padding:0 8px;border-radius:999px;border:1px solid #c8dcea;background:#fff;color:#2f526b;font-size:11px;font-weight:700;line-height:1;cursor:pointer}#table-section .name-action-btn:hover{background:#f3f8fc;border-color:#9fbfd4}#table-section .name-action-btn.discharge-action-btn{border-color:#f3d1ad;background:#fff7ed;color:#9a3412}#table-section .name-action-btn.delete-action-btn{border-color:#fecaca;background:#fff1f2;color:#b91c1c}#table-section .name-action-btn.delete-action-btn:hover{background:#ffe4e6}#table-section .patient-link{display:inline;text-align:left;max-width:100%;overflow-wrap:anywhere;color:#0e4f70;font-size:.91rem;font-weight:800;line-height:1.2}#table-section .patient-link:hover{color:#0a658c;text-decoration:none}#table-section .tag-chips{gap:5px}#table-section .tag-chip{background:#eef7ff;border-color:#c7deee;color:#2b4f69}#table-section .tag-order{color:#5d7790}#table-section .cell-items{gap:4px;min-height:26px}#table-section .cell-bullet{margin-top:8px;background:#6d90a8}#table-section .cell-line .cell-title{padding:3px 6px;border-radius:4px}#table-section .line-info-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:20px;height:20px;padding:0;border-radius:4px;border:1px solid var(--border-soft, #e0e8ef);background:var(--surface, #fff);color:var(--muted);line-height:1;cursor:pointer;opacity:.55;transition:opacity .12s ease,background .12s ease,border-color .12s ease,color .12s ease,transform .12s ease}#table-section .line-info-btn svg{display:block}#table-section .line-info-btn.has-body{opacity:1;color:var(--primary);background:var(--primary-soft);border-color:var(--primary-line)}#table-section .cell-line:hover .line-info-btn{opacity:1}#table-section .line-info-btn:hover{background:var(--surface-hover);border-color:var(--border-strong);color:var(--text);transform:translateY(-1px)}#table-section .line-info-btn.has-body:hover{background:var(--primary);border-color:var(--primary);color:#fff}#table-section .line-info-btn[aria-expanded=true]{opacity:1;background:var(--primary);border-color:var(--primary);color:#fff;transform:translateY(-1px)}#table-section .cell-tasks{max-height:360px;padding:2px;border-radius:4px;background:linear-gradient(180deg,#f8fbfe,#f0f7fc)}#table-section .cell-tasks ul{gap:6px;max-height:250px}#table-section .cell-tasks .case-task{border:1px solid rgba(32,87,117,.14);border-radius:4px;background:#fff;box-shadow:none;padding:4px 6px}#table-section .cell-tasks .status-btn{color:#2a4a62}#table-section .cell-tasks .composer input{height:30px;border:1px solid rgba(40,97,127,.2);background:#fff}#table-section .new-case-footer{margin-top:10px;padding:14px 8px 6px;border-top:1px dashed rgba(30,87,119,.24)}#table-section .new-case-footer .btn{min-height:40px;border-radius:999px}@media (max-width: 1024px){#table-section .data-table thead th:nth-child(1),#table-section .data-table tbody td:nth-child(1){position:static;box-shadow:none}}@media print{#table-section .table-root{border:none;border-radius:0;box-shadow:none;background:transparent}#table-section .data-table thead th:nth-child(1),#table-section .data-table tbody td:nth-child(1){position:static;box-shadow:none}}.workspace-overview.workspace-overview--minimal{background:#ffffffd1;color:var(--text);border:1px solid rgba(22,76,105,.14);border-radius:4px;box-shadow:none;padding:8px 12px;margin-bottom:10px}.workspace-overview.workspace-overview--minimal:before{display:none}.workspace-overview.workspace-overview--minimal .workspace-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:.83rem;color:#3f5e75}.workspace-overview.workspace-overview--minimal .workspace-item{white-space:nowrap}.workspace-overview.workspace-overview--minimal .workspace-item strong{color:#143f5d}.workspace-overview.workspace-overview--minimal .workspace-actions-inline{margin-top:6px;display:inline-flex;align-items:center;gap:6px}.workspace-overview.workspace-overview--minimal .workspace-actions-inline .btn{min-height:30px;height:30px;padding:0 10px;border-radius:999px;font-size:.75rem;font-weight:700;border:1px solid rgba(17,74,106,.2);background:#fff;color:#2e5269}.workspace-overview.workspace-overview--minimal .workspace-actions-inline .btn.primary{background:#0f5f88;border-color:#0f5f88;color:#fff}.workspace-overview.workspace-overview--minimal .workspace-actions-inline .btn:disabled,.workspace-overview.workspace-overview--minimal .workspace-actions-inline .btn[aria-disabled=true]{opacity:.55;cursor:not-allowed}@media (max-width: 680px){.workspace-overview.workspace-overview--minimal{padding:8px 10px}.workspace-overview.workspace-overview--minimal .workspace-line{gap:8px;font-size:.8rem}.workspace-overview.workspace-overview--minimal .workspace-actions-inline{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.workspace-overview.workspace-overview--minimal .workspace-actions-inline .btn{width:100%;justify-content:center}}:root{--table-sticky-offset: 72px;--table-filters-offset: 0px}#table-tags-controls{position:sticky;top:var(--table-sticky-offset, 72px);z-index:8;margin-bottom:0;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}#table-section .data-table thead th{top:calc(var(--table-sticky-offset, 72px) + var(--table-filters-offset, 0px));z-index:9}#table-section .data-table thead th:nth-child(1){z-index:10}#table-section .data-table thead{position:sticky;top:calc(var(--table-sticky-offset, 72px) + var(--table-filters-offset, 0px));z-index:9}@media (min-width: 900px){#table-section .table-root{overflow:visible}}#table-section .table-nav-cell{outline:none}#table-section .table-nav-cell:focus-visible{box-shadow:inset 0 0 0 2px #0f5f8859;background:#e9f4fb}#table-section .data-table tbody tr.case-row-discharge-pending td:not([style*=background]){background:#fff8e8}#table-section .data-table tbody tr.case-row-discharge-pending td:nth-child(1):not([style*=background]){background:#fff2cf}#table-section .data-table tbody tr.case-row-discharged td:not([style*=background]){background:#f6f7f8;color:var(--cg-70)}#table-section .data-table tbody tr.case-row-discharged td:nth-child(1):not([style*=background]){background:#eef1f4}#table-section .data-table.data-table--discharged thead th{background:linear-gradient(180deg,var(--cg-10) 0%,#eceff2 100%);color:var(--cg-70)}.pending-discharge-chip{display:inline-flex;align-items:center;height:23px;padding:0 8px;border-radius:999px;border:1px solid #fed7aa;background:#fff7ed;color:#9a3412;font-size:11px;font-weight:700}.case-discharge-meta{font-size:11px;color:var(--cg-60);margin-top:2px}.pending-discharge-banner{margin-top:8px;border:1px solid #fde68a;background:#fffbeb;color:#92400e;border-radius:4px;padding:8px 10px;font-size:12px;font-weight:600}.discharged-table-section{margin-top:10px;border-top:1px dashed rgba(30,87,119,.28);padding-top:10px}.discharged-table-header{display:flex;align-items:center;justify-content:flex-end}.discharged-empty{margin-top:8px;border:1px dashed var(--cg-30);border-radius:4px;padding:10px;color:var(--cg-60);font-size:12px;background:var(--cg-10)}#table-section .discharged-table-section .data-table{margin-top:8px}.assignment-state-chip{display:inline-flex;align-items:center;height:20px;border-radius:999px;border:1px solid #dbeafe;background:#eff6ff;color:#1d4ed8;font-size:11px;font-weight:700;padding:0 8px}.assignment-state-chip.pending{border-color:#fed7aa;background:#fff7ed;color:#9a3412}.assignment-state-chip.open{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.assignment-state-chip--action{cursor:pointer}.assignment-state-chip--action:hover{border-color:#93c5fd;background:#dbeafe}.case-task.task-pending-acceptance{border-left:3px solid #f97316!important;background:#fff7ed!important}.case-task .status-btn:disabled{opacity:.45;cursor:not-allowed}.task-section+.task-section{margin-top:12px}.task-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;padding:0 2px}.task-section-head h3{margin:0;color:#234157;font-size:.95rem}.task-section--pending .task-section-head h3{color:#9a3412}.task-section--open .task-section-head h3{color:#0e7490}.task-section--completed-old{margin-top:18px;border-top:1px dashed var(--cg-30);padding-top:10px}.task-section--completed-old .task-section-head{background:none;border:0;padding:4px 2px;cursor:pointer;width:100%;text-align:left;font:inherit;color:inherit}.task-section--completed-old .task-section-head h3{color:var(--cg-60);font-weight:600}.completed-old-right{display:inline-flex;align-items:center;gap:8px}.completed-old-chev{font-size:.75rem;color:var(--cg-60);transition:transform .15s ease;display:inline-block;width:.7em;text-align:center}.completed-old-body .user-case-card{opacity:.78}.task-stale-age{font-size:.72rem;color:var(--cg-40);font-weight:500;margin-left:6px;white-space:nowrap}.task-stale-age:before{content:"· ";color:var(--cg-30)}.star-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;padding:0 4px;font-size:17px;line-height:1;cursor:pointer;color:var(--cg-30);transition:color .12s ease,transform .12s ease;flex:0 0 auto}.star-btn:hover{color:#f59e0b;transform:scale(1.05)}.star-btn.is-important{color:#f59e0b;text-shadow:0 0 6px rgba(245,158,11,.55);font-size:19px}.star-btn.is-important:hover{color:#d97706}.case-task.task-important{background:#fef3c7;box-shadow:inset 4px 0 #f59e0b,0 0 0 1px #fde68a;border-radius:4px}.case-task.task-important .task-text{font-weight:700;color:#78350f}.case-task.task-important .status-btn{color:#b45309}.case-task.task-mine:not(.task-important){box-shadow:inset 3px 0 #2563eb}.case-task.task-mine .task-text:after{content:"you";display:inline-block;font-size:.62rem;text-transform:uppercase;letter-spacing:.05em;color:#1d4ed8;background:#dbeafe;border:1px solid #bfdbfe;border-radius:999px;padding:1px 6px;margin-left:6px;vertical-align:middle;font-weight:600}.user-case-loc{font-size:.78rem;color:var(--cg-60);font-weight:500;margin-left:8px;letter-spacing:.01em}.task-list-sub{color:var(--cg-60);font-weight:500;font-size:.85em}.mode-toggle{display:inline-flex;background:var(--cg-10);border:1px solid var(--cg-30);border-radius:999px;padding:3px;gap:2px;margin-bottom:12px;align-self:flex-start}.mode-toggle-btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;padding:8px 18px;font-size:14px;font-weight:600;color:var(--cg-70);border-radius:999px;cursor:pointer;transition:background .12s ease,color .12s ease;letter-spacing:.01em}.mode-toggle-btn:hover{color:var(--cg-100)}.mode-toggle-btn.active{background:#fff;color:var(--cg-100);box-shadow:none}.user-case-card--empty{background:var(--cg-10);border:1px dashed var(--cg-20);box-shadow:none;padding:8px 12px;margin-bottom:6px}.user-case-card--empty .user-case-header{margin:0;padding:0}.user-case-card--empty .user-case-header h3{font-weight:500}.user-case-card--empty .link-btn{color:var(--cg-70);font-weight:500}.user-case-empty-label{font-size:.75rem;color:var(--cg-40);font-style:italic;margin-left:auto}:root{--surface: #ffffff;--surface-muted: #f4f4f4;--surface-hover: #e8e8e8;--surface-sunken: #f4f4f4;--text-soft: #393939;--muted-soft: #8d8d8d;--border-soft: #f4f4f4;--border-strong: #c6c6c6;--primary-ink: #002d9c;--primary-soft: #edf5ff;--primary-softer: #f4f7fc;--primary-line: #a6c8ff;--accent: #0072c3;--accent-soft: #e5f6ff;--status-open: #0f62fe;--status-open-soft: #edf5ff;--status-open-ink: #002d9c;--status-open-line: #a6c8ff;--status-progress: #ad6800;--status-progress-soft: #fcf4d6;--status-progress-ink: #6d3500;--status-progress-line: #fddc69;--status-done: #198038;--status-done-soft: #defbe6;--status-done-ink: #0e6027;--status-done-line: #6fdc8c;--status-danger: #da1e28;--status-danger-soft: #fff1f1;--status-danger-ink: #a2191f;--status-danger-line: #ffb3b8;--radius-xs: 2px;--radius-lg: 4px;--radius-xl: 4px;--shadow-xs: none;--ring: 0 0 0 2px var(--primary);--ring-accent: 0 0 0 2px var(--accent);--topbar-h: 52px;--table-sticky-offset: var(--topbar-h);--table-filters-offset: 44px;--ease: cubic-bezier(.2,.7,.2,1)}html{background:var(--bg)}body{margin:0;font-family:IBM Plex Sans,system-ui,sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"cv02","cv03","cv04","cv11","tnum";font-variant-numeric:tabular-nums}body:before,body:after{display:none!important}*{scrollbar-width:thin;scrollbar-color:#cfd5dd transparent}*::-webkit-scrollbar{width:10px;height:10px}*::-webkit-scrollbar-thumb{background:#cfd5dd;border:2px solid transparent;background-clip:padding-box;border-radius:999px}*::-webkit-scrollbar-thumb:hover{background:#b1bac5;background-clip:padding-box;border:2px solid transparent}*::-webkit-scrollbar-track{background:transparent}::-moz-selection{background:#0c4e742e;color:var(--text)}::selection{background:#0c4e742e;color:var(--text)}.topbar{position:sticky;top:0;z-index:40;margin:0;width:100%;border-radius:0;border:none;border-bottom:1px solid var(--border);background:#ffffffe0;backdrop-filter:saturate(180%) blur(14px);-webkit-backdrop-filter:saturate(180%) blur(14px);box-shadow:none;padding:0 20px;height:var(--topbar-h);display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;cursor:pointer}.brand .logo{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:4px;background:linear-gradient(135deg,var(--primary) 0%,#1172a0 100%);color:#fff;box-shadow:none}.brand .logo svg{width:16px;height:16px;stroke:currentColor}.brand .brand-meta{display:grid;gap:1px}.brand .title{font-family:IBM Plex Sans,system-ui,sans-serif;font-size:16px;font-weight:600;color:var(--text);line-height:1.1}.brand .subtitle{font-size:12px;font-weight:400;color:var(--muted);line-height:1.1}.header-right{display:flex;align-items:center;gap:8px}.session-strip{display:inline-flex;align-items:center;gap:6px;margin-right:2px}.session-chip,.session-time{display:inline-flex;align-items:center;height:26px;padding:0 10px;border:1px solid var(--border);background:var(--surface);color:var(--muted);border-radius:999px;font-size:.72rem;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:.01em}.session-time{color:var(--text-soft);font-weight:700}#print-open-btn,#users-btn{height:28px;padding:0 12px;border:1px solid var(--border);border-radius:4px;background:var(--surface);color:var(--text-soft);font-size:.75rem;font-weight:600;min-height:28px;transition:background .14s var(--ease),border-color .14s var(--ease),color .14s var(--ease)}#print-open-btn:hover,#users-btn:hover{background:var(--surface-hover);border-color:var(--border-strong);color:var(--text);transform:none}.app{max-width:1480px;margin:0 auto;padding:16px 20px 48px}@media (min-width: 900px){.app{max-width:1480px;padding:16px 20px 48px}}#main-tabs{display:inline-flex;justify-content:flex-start;padding:3px;gap:0;margin:0 0 14px;background:var(--surface);border:1px solid var(--border);border-radius:4px;box-shadow:var(--shadow-xs);animation:none}#main-tabs .tab{height:30px;padding:0 14px;border:none;border-radius:4px;background:transparent;color:var(--muted);font-size:.78rem;font-weight:600;letter-spacing:.005em;transition:color .12s var(--ease),background .12s var(--ease)}#main-tabs .tab:hover{color:var(--text);background:var(--surface-hover)}#main-tabs .tab.active{background:var(--text);color:#fff;box-shadow:0 1px #0000000a}.tabs-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;flex-wrap:wrap}.tabs-bar #main-tabs{margin:0}.tabs-actions{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.tabs-actions .btn{height:34px;padding:0 14px;border-radius:4px;font-size:.8rem;font-weight:600}.tabs-actions .btn:disabled,.tabs-actions .btn[aria-disabled=true]{opacity:.5;cursor:not-allowed}@media (max-width: 640px){.tabs-bar{gap:8px;margin-bottom:10px}.tabs-bar #main-tabs{flex:1 1 auto;justify-content:center}.tabs-actions{width:100%;justify-content:stretch}.tabs-actions .btn{flex:1 1 0;justify-content:center}}#case-detail .tabs{border:1px solid var(--border);border-radius:4px;padding:3px;background:var(--surface);gap:0;overflow:hidden;box-shadow:var(--shadow-xs)}#case-detail .tab{height:32px;border:none;border-right:none;border-radius:4px;color:var(--muted);background:transparent;font-size:.82rem;font-weight:600}#case-detail .tab:hover{background:var(--surface-hover);color:var(--text)}#case-detail .tab.active{background:var(--text);color:#fff}.workspace-overview.workspace-overview--minimal{background:var(--surface);border:1px solid var(--border);border-radius:4px;box-shadow:var(--shadow-xs);padding:10px 14px;margin-bottom:12px;animation:none;display:grid;grid-template-columns:1fr auto;grid-template-areas:"line actions";align-items:center;gap:10px}.workspace-overview.workspace-overview--minimal .workspace-line{grid-area:line;display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;font-size:.76rem;color:var(--muted);font-weight:500;letter-spacing:.005em}.workspace-overview.workspace-overview--minimal .workspace-item{display:inline-flex;align-items:center;gap:4px;position:relative}.workspace-overview.workspace-overview--minimal .workspace-item+.workspace-item:before{content:"";display:inline-block;width:3px;height:3px;border-radius:50%;background:var(--border-strong);margin-right:12px;margin-left:-10px}.workspace-overview.workspace-overview--minimal .workspace-item strong{color:var(--text);font-weight:700;font-variant-numeric:tabular-nums}.workspace-overview.workspace-overview--minimal .workspace-actions-inline{grid-area:actions;display:inline-flex;gap:6px;margin-top:0}.workspace-overview.workspace-overview--minimal .workspace-actions-inline .btn{height:28px;min-height:28px;padding:0 10px;border-radius:4px;font-size:.74rem;font-weight:600;border:1px solid var(--border);background:var(--surface);color:var(--text-soft);transition:all .12s var(--ease);box-shadow:none}.workspace-overview.workspace-overview--minimal .workspace-actions-inline .btn:hover{background:var(--surface-hover);border-color:var(--border-strong);color:var(--text);transform:none}.workspace-overview.workspace-overview--minimal .workspace-actions-inline .btn.primary{background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:none}.workspace-overview.workspace-overview--minimal .workspace-actions-inline .btn.primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}@media (max-width: 720px){.workspace-overview.workspace-overview--minimal{grid-template-columns:1fr;grid-template-areas:"line" "actions"}}.card{background:var(--surface);border:1px solid var(--border);border-radius:4px;box-shadow:var(--shadow-xs);padding:14px;margin-bottom:12px;animation:none}h1,h2,h3{color:var(--text);letter-spacing:-.01em;font-weight:700}.case-heading{font-family:IBM Plex Sans,system-ui,sans-serif;font-size:1.25rem;font-weight:700;letter-spacing:-.015em;color:var(--text);margin:2px 0 8px}button{transition:background .12s var(--ease),border-color .12s var(--ease),color .12s var(--ease),box-shadow .12s var(--ease),transform 80ms var(--ease)}.btn{height:32px;padding:0 12px;border-radius:4px;border:1px solid var(--border);background:var(--surface);color:var(--text-soft);font-weight:600;font-size:.8rem;letter-spacing:.005em;box-shadow:none;min-height:32px}.btn:hover{background:var(--surface-hover);border-color:var(--border-strong);color:var(--text)}.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:none}.btn.primary:hover{background:var(--primary-hover);border-color:var(--primary-hover);color:#fff}button.primary{background:var(--primary);color:#fff;border-radius:4px;box-shadow:none}button.primary:hover{background:var(--primary-hover);transform:none;box-shadow:none}input,select,textarea{border:0;border-bottom:1px solid var(--border-strong);border-radius:0;background:var(--surface-muted);box-shadow:none;transition:border-color .12s var(--ease),background .12s var(--ease);font-size:14px;color:var(--text)}input:hover,select:hover,textarea:hover{background:var(--surface-hover)}input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--primary);outline-offset:-2px;background:var(--surface);border-bottom-color:transparent}.icon-btn{border-radius:4px;color:var(--muted);padding:.3rem .4rem;transition:background .12s var(--ease),color .12s var(--ease);min-height:auto}.icon-btn:hover{background:var(--surface-hover);color:var(--primary);transform:none}.icon-btn.small{height:26px;padding:0 10px;border:1px solid var(--border);border-radius:4px;background:var(--surface);font-size:.74rem;font-weight:600;color:var(--text-soft);min-height:26px}.icon-btn.small:hover{background:var(--surface-hover);border-color:var(--border-strong);color:var(--text)}#task-form.composer{border:1px solid var(--border);border-radius:4px;padding:5px;box-shadow:var(--shadow-xs);background:var(--surface);transition:border-color .12s var(--ease),box-shadow .12s var(--ease)}#task-form.composer:focus-within{border-color:var(--primary);box-shadow:var(--ring)}#task-form.composer input{border:none;box-shadow:none;font-size:.88rem;padding:0 8px;background:transparent}#task-form.composer input:focus{box-shadow:none}#task-form.composer .primary{height:32px;border-radius:4px;padding:0 12px;font-weight:600;font-size:.8rem}.chip{height:21px;padding:0 8px;border-radius:999px;font-size:.7rem;font-weight:600;border:1px solid var(--border);background:var(--surface-muted);color:var(--text-soft);letter-spacing:.005em}.chip.pri-high{background:var(--status-danger-soft);color:var(--status-danger-ink);border-color:var(--status-danger-line)}.chip.pri-medium{background:var(--status-progress-soft);color:var(--status-progress-ink);border-color:var(--status-progress-line)}.chip.pri-low{background:var(--status-open-soft);color:var(--status-open-ink);border-color:var(--status-open-line)}.chip.location{background:var(--primary-soft);color:var(--primary-ink);border-color:var(--primary-line);cursor:pointer}.badge{background:var(--primary-soft);color:var(--primary-ink);border-radius:999px;font-size:.7rem;padding:1px 7px;font-weight:600;border:1px solid var(--primary-line)}.tag-chips{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap}.tag-chip{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 9px;border-radius:999px;font-size:.72rem;font-weight:600;letter-spacing:.005em;border:1px solid var(--border);background:var(--surface);color:var(--text-soft);transition:background .12s var(--ease),border-color .12s var(--ease),color .12s var(--ease);cursor:pointer;line-height:1}.tag-chip:hover{background:var(--surface-hover);border-color:var(--border-strong);color:var(--text)}.tag-chip .tag-order{display:none}.tag-chip .tag-chip-label{display:inline-flex;align-items:center}.tag-chip--location{background:var(--primary-soft);color:var(--primary-ink);border-color:var(--primary-line)}.tag-chip--location:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--primary);box-shadow:0 0 0 2px #0c4e7426}.tag-chip--location:hover{background:#dcebf4;border-color:#a7c6db;color:var(--primary-ink)}.tag-chip--room{height:22px;padding:0 8px 0 6px;border-radius:4px;background:var(--accent-soft);color:#0a4f6c;border-color:#bae6fd;font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:.72rem;letter-spacing:.02em}.tag-chip--room:before{content:"BED";display:inline-flex;align-items:center;height:14px;padding:0 4px;border-radius:3px;background:#0891b2;color:#fff;font-size:.58rem;font-family:IBM Plex Sans,system-ui,sans-serif;font-weight:800;letter-spacing:.06em;margin-right:2px}.tag-chip--room:hover{background:#cfeefc;border-color:#7dd3fc;color:#0a4f6c}.tag-chip--consultant{background:var(--surface);color:var(--text-soft);border-color:var(--border)}.tag-chip--consultant:before{content:"";display:inline-block;width:9px;height:9px;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235b6878' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='6' r='2.6'/><path d='M3 13c1.2-2.3 3-3.5 5-3.5S11.8 10.7 13 13'/></svg>");background-size:contain;background-repeat:no-repeat}.tag-chip--consultant:hover{background:var(--surface-hover);border-color:var(--border-strong);color:var(--text)}.tag-chip.active{background:var(--primary);color:#fff;border-color:var(--primary);box-shadow:none}.tag-chip.active:before{background:#fff;box-shadow:none;filter:none}.tag-chip--consultant.active:before{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='8' cy='6' r='2.6'/><path d='M3 13c1.2-2.3 3-3.5 5-3.5S11.8 10.7 13 13'/></svg>")}.tag-chip--room.active:before{background:#fff;color:var(--primary-ink)}.avatar,.mini-avatar,.update-avatar{background:var(--primary-soft);color:var(--primary-ink);font-weight:700;border:1px solid var(--primary-line)}.status-select{border-radius:999px;font-weight:700;font-size:.7rem;letter-spacing:.02em;padding:2px 8px;box-shadow:none;border:1px solid transparent;text-transform:capitalize}.status-select[data-status=open]{background:var(--status-open-soft);color:var(--status-open-ink);border-color:var(--status-open-line)}.status-select[data-status="in progress"]{background:var(--status-progress-soft);color:var(--status-progress-ink);border-color:var(--status-progress-line)}.status-select[data-status=complete]{background:var(--status-done-soft);color:var(--status-done-ink);border-color:var(--status-done-line)}.task-item[data-status=open],.task-item[data-status="in progress"],.task-item[data-status=complete]{background:var(--surface)}.task-item[data-status=open]{border-left:3px solid var(--status-open)}.task-item[data-status="in progress"]{border-left:3px solid var(--status-progress)}.task-item[data-status=complete]{border-left:3px solid var(--status-done)}.case-task{border-radius:4px;border:1px solid var(--border);padding:7px 10px;background:var(--surface);transition:background .12s var(--ease),border-color .12s var(--ease)}.case-task:hover{background:var(--surface-hover);border-color:var(--border-strong)}#case-list .case-task.s-open,#task-list .case-task.s-open,#user-task-list .case-task.s-open{border-left:3px solid var(--status-open);background:var(--surface)}#case-list .case-task.s-inprogress,#task-list .case-task.s-inprogress,#user-task-list .case-task.s-inprogress{border-left:3px solid var(--status-progress);background:var(--surface)}#case-list .case-task.s-complete,#task-list .case-task.s-complete,#user-task-list .case-task.s-complete{border-left:3px solid var(--status-done);background:var(--surface)}#case-list .case-task.s-complete .task-text,#task-list .case-task.s-complete .task-text,#user-task-list .case-task.s-complete .task-text{color:var(--muted);text-decoration:line-through}#user-task-list .case-task{border:1px solid var(--border);border-radius:4px;padding:7px 10px}#user-task-list .case-task:hover{background:var(--surface-hover)}.c-toolbar{border:1px solid var(--border);border-radius:4px;background:var(--surface);box-shadow:var(--shadow-xs);padding:7px}.c-select select,.c-select-btn,.c-input,.c-btn{height:30px;border-radius:4px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:.82rem;transition:background .12s var(--ease),border-color .12s var(--ease)}.c-select select:hover,.c-select-btn:hover,.c-input:hover,.c-btn:hover{background:var(--surface-hover);border-color:var(--border-strong)}.c-chip{height:30px;padding:0 12px;font-size:.78rem;font-weight:600}.c-chip--inactive{background:var(--primary-soft);color:var(--primary-ink)}.c-chip--active{background:var(--primary);color:#fff}.c-menu{background:var(--surface);border:1px solid var(--border);border-radius:4px;box-shadow:var(--shadow-md);padding:5px}.c-menu-item{padding:6px 8px;font-size:.82rem;border-radius:4px}.c-menu-item:hover{background:var(--surface-hover)}.notes{border:1px solid var(--border);border-radius:4px;box-shadow:var(--shadow-xs);background:var(--surface);overflow:hidden;font-size:.9rem}.note-row+.note-row{border-top:1px solid var(--border-soft)}.note-label{color:var(--muted);font-weight:700;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;padding:12px 10px 10px}.note-row textarea,.note-item .note-item-header,.note-item .note-item-body{background:transparent;color:var(--text);font-size:.9rem}.note-row textarea:focus,.note-row textarea:focus-visible{background:var(--surface-muted);box-shadow:none}.tags-controls{border:1px solid var(--border);border-bottom:none;border-radius:4px 9px 0 0;background:var(--surface);box-shadow:none;padding:8px 12px;min-height:44px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.tags-controls .left,.tags-controls .right{gap:8px}.tags-controls .ctrl{font-size:.74rem;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.04em}.filter-pill{height:28px;padding:0 12px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text-soft);font-size:.76rem;font-weight:600}.filter-pill:hover{background:var(--surface-hover);border-color:var(--border-strong);color:var(--text)}.filter-pill .count{color:var(--muted);font-weight:600;font-variant-numeric:tabular-nums}.filter-chip{padding:2px 9px;border-radius:999px;background:var(--primary-soft);color:var(--primary-ink);border:1px solid var(--primary-line);font-size:.72rem;font-weight:600}.filter-chip .x{color:var(--primary-ink);opacity:.6}.filter-chip .x:hover{opacity:1}.segmented{border:1px solid var(--border);background:var(--surface);border-radius:999px}.segmented button{height:28px;padding:0 12px;font-size:.76rem;font-weight:600;color:var(--text-soft);background:transparent}.segmented button.active{background:var(--text);color:#fff}.segmented button:not(.active):hover{background:var(--surface-hover);color:var(--text)}.sort-dir{height:28px;border-radius:999px;border:1px solid var(--border);background:var(--surface);font-size:.76rem;font-weight:600;color:var(--text-soft);padding:0 10px}.sort-dir:hover{background:var(--surface-hover)}#table-section{position:relative;padding:0;background:transparent;border:none;box-shadow:none}#table-section .table-root{overflow-x:auto;border:1px solid var(--border);border-radius:4px;background:var(--surface);box-shadow:var(--shadow-xs);margin-top:0}@media (min-width: 900px){#table-section .table-root{overflow:visible;border-radius:4px}}#table-section .data-table{min-width:1080px;border-collapse:separate;border-spacing:0;table-layout:fixed}#table-section .data-table th,#table-section .data-table td{border:none;padding:9px 12px;vertical-align:top;font-size:.84rem;line-height:1.45;box-shadow:inset 0 -1px 0 var(--border)}#table-section .data-table thead th{position:sticky;top:var(--table-sticky-offset);z-index:9;background:var(--surface-muted);color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-size:.64rem;font-weight:800;padding:10px 12px;box-shadow:inset 0 -1px 0 var(--border),inset 0 1px 0 var(--border)}#table-section .data-table thead th:nth-child(1){position:sticky;left:0;z-index:11;box-shadow:inset 0 -1px 0 var(--border),inset 0 1px 0 var(--border),1px 0 0 var(--border);background:var(--surface-muted)}#table-section .data-table tbody td:nth-child(1){position:sticky;left:0;z-index:3;background:var(--surface);box-shadow:inset 0 -1px 0 var(--border),1px 0 0 var(--border)}@media (max-width: 1024px){#table-section .data-table thead th:nth-child(1),#table-section .data-table tbody td:nth-child(1){position:static}}#table-section .data-table tbody tr:nth-child(2n) td:not([style*=background]){background:#fbfcfe}#table-section .data-table tbody tr:nth-child(2n) td:nth-child(1):not([style*=background]){background:#f7f9fc}#table-section .data-table tbody tr:hover td:not([style*=background]){background:#eef4fa}#table-section .data-table tbody tr:hover td:nth-child(1):not([style*=background]){background:#e6eef6}#table-section .patient-link{color:var(--primary);font-weight:700;font-size:.9rem;letter-spacing:-.005em;line-height:1.3;padding:0}#table-section .patient-link:hover{color:var(--primary-hover);text-decoration:none}#table-section .name-row{gap:8px}#table-section .name-actions{gap:4px}#table-section .name-action-btn{height:22px;padding:0 9px;border-radius:999px;border:1px solid var(--border);background:var(--surface);color:var(--text-soft);font-size:.7rem;font-weight:600}#table-section .name-action-btn:hover{background:var(--surface-hover);border-color:var(--border-strong);color:var(--text)}#table-section .name-action-btn.discharge-action-btn{border-color:var(--status-progress-line);background:var(--status-progress-soft);color:var(--status-progress-ink)}#table-section .name-action-btn.discharge-action-btn:hover{background:#ffedd5}#table-section .name-action-btn.delete-action-btn{border-color:var(--status-danger-line);background:var(--status-danger-soft);color:var(--status-danger-ink)}#table-section .name-action-btn.delete-action-btn:hover{background:#fde2e2}#table-section .name-more{position:relative;display:inline-flex}#table-section .name-more-btn{width:24px;padding:0;font-size:1rem;line-height:1;letter-spacing:.02em;color:var(--muted)}#table-section .name-more-btn[aria-expanded=true]{background:var(--surface-hover);border-color:var(--border-strong);color:var(--text)}#table-section .name-more-menu{position:absolute;top:calc(100% + 4px);right:0;z-index:20;display:flex;flex-direction:column;min-width:140px;padding:4px;background:var(--surface);border:1px solid var(--border);border-radius:4px;box-shadow:var(--shadow-md, 0 8px 24px rgba(15, 23, 42, .12))}#table-section .name-more-menu[hidden]{display:none}#table-section .name-more-item{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background:transparent;text-align:left;padding:6px 10px;border-radius:4px;font-size:.78rem;font-weight:500;color:var(--text);cursor:pointer}#table-section .name-more-item:hover{background:var(--surface-hover)}#table-section .name-more-item.is-warn{color:var(--status-progress-ink, #92400e)}#table-section .name-more-item.is-warn:hover{background:var(--status-progress-soft, #fff1dc)}#table-section .name-more-item.is-danger{color:var(--status-danger-ink, #991b1b)}#table-section .name-more-item.is-danger:hover{background:var(--status-danger-soft, #fde2e2)}#table-section .patient-summary{font-size:.78rem;color:var(--muted);margin-top:1px;line-height:1.3;min-height:1.1em;border-radius:4px;padding:1px 4px;margin-left:-4px;cursor:text;max-width:100%;overflow-wrap:anywhere;transition:background .12s ease,color .12s ease}#table-section .patient-summary:hover{background:var(--surface-hover)}#table-section .patient-summary:focus{outline:none;background:var(--surface);color:var(--text);box-shadow:0 0 0 1px var(--border-strong)}#table-section .patient-summary:empty:before{content:attr(data-placeholder);color:var(--muted);opacity:.55;font-style:italic}#table-section .tag-chip--add{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;background:transparent;color:var(--muted);border:1px dashed var(--border-strong);font-weight:600;padding:1px 8px}#table-section .tag-chip--add:hover{color:var(--text);background:var(--surface-hover);border-style:solid}#table-section .cell-items{gap:4px}#table-section .cell-line{gap:6px}#table-section .cell-bullet{width:5px;height:5px;border-radius:50%;background:var(--muted-soft);margin-top:9px}#table-section .cell-line .cell-title{padding:2px 4px;border-radius:4px;font-size:.84rem;color:var(--text)}#table-section .cell-editable{padding:4px 6px;border-radius:4px;min-height:28px}#table-section .cell-editable:focus{border-color:var(--primary);box-shadow:var(--ring);background:var(--surface)}#table-section .cell-tasks{border-radius:4px;background:transparent;padding:0;max-height:340px}#table-section .cell-tasks ul{gap:5px}#table-section .cell-tasks .case-task{border:1px solid var(--border);border-radius:4px;background:var(--surface);padding:4px 7px;box-shadow:none;font-size:.82rem}#table-section .cell-tasks .case-task:hover{background:var(--surface-hover)}#table-section .cell-tasks .composer input{height:28px;border:1px solid var(--border);background:var(--surface);border-radius:4px;font-size:.82rem}#table-section .new-case-footer{margin-top:10px;padding:14px 8px 6px;border-top:1px dashed var(--border)}#table-section .new-case-footer .btn{min-height:34px;border-radius:999px}#table-tags-controls{position:sticky;top:var(--table-sticky-offset);z-index:10;margin-bottom:0;background:var(--surface);border:1px solid var(--border);border-bottom:1px solid var(--border-soft);border-radius:4px 10px 0 0;padding:8px 12px;box-shadow:none}#table-section .table-root:has(+.new-case-footer){border-top-left-radius:0;border-top-right-radius:0}#table-tags-controls+.table-root,#table-tags-controls+#table-root{border-top-left-radius:0;border-top-right-radius:0;border-top:none;margin-top:0}#table-section .data-table thead{position:sticky;top:calc(var(--table-sticky-offset) + var(--table-filters-offset));z-index:8}#table-section .data-table thead th{top:calc(var(--table-sticky-offset) + var(--table-filters-offset))}#table-section .data-table thead th:nth-child(1){top:calc(var(--table-sticky-offset) + var(--table-filters-offset))}body.filters-hidden #table-section .data-table thead,body.filters-hidden #table-section .data-table thead th{top:var(--table-sticky-offset)}.show-filters-btn{font-size:.74rem;padding:5px 10px;border:1px solid var(--border);border-radius:4px;background:var(--surface);color:var(--text-soft);margin:8px 0}.show-filters-btn:hover{background:var(--surface-hover)}#updates-toolbar{border-radius:4px;border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-xs)}.update-item{border:1px solid var(--border);border-radius:4px;padding:12px 14px;background:var(--surface);box-shadow:var(--shadow-xs);transition:border-color .14s var(--ease),box-shadow .14s var(--ease)}.update-item:hover{border-color:var(--border-strong);box-shadow:var(--shadow-sm);transform:none}.update-icon{width:34px;height:34px;background:var(--primary-soft);border:1px solid var(--primary-line);color:var(--primary);font-size:15px;border-radius:4px}.update-line{color:var(--text);font-size:.92rem;line-height:1.5}.update-line .who{font-weight:700;color:var(--text)}.update-group{position:sticky;top:calc(var(--topbar-h) + 6px);background:var(--surface);border:1px solid var(--border);color:var(--muted);font-size:.66rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;padding:3px 12px;border-radius:999px;box-shadow:var(--shadow-xs);align-self:start}.task-name-chip{background:var(--primary-soft);color:var(--primary-ink);border:1px solid var(--primary-line);border-radius:4px;font-weight:600;padding:1px 6px}.ward-note-item{border:1px solid var(--border);border-radius:4px;background:var(--surface);box-shadow:var(--shadow-xs);padding:14px 16px}.ward-note-head strong{color:var(--text);font-weight:700}.ward-note-head .meta{color:var(--muted)}.ward-note-section{background:var(--surface-muted);border:1px solid var(--border);border-radius:4px}.modal{border:1px solid var(--border);border-radius:4px;box-shadow:var(--shadow-lg);padding:18px;background:var(--surface)}.modal h3{font-family:IBM Plex Sans,system-ui,sans-serif;letter-spacing:-.01em}.modal-overlay{background:#0b162570;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}.users-menu{border:1px solid var(--border);border-radius:4px;box-shadow:var(--shadow-md);padding:8px;background:var(--surface)}.users-menu-header{font-size:.68rem;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;padding:4px 6px}.user-list li{background:var(--surface-muted);color:var(--text-soft);border:1px solid var(--border);font-size:.78rem;font-weight:500}.back-btn{color:var(--muted);font-weight:500;border-radius:4px;padding:4px 8px}.back-btn:hover{background:var(--surface-hover);color:var(--text)}kbd{border:1px solid var(--border);border-bottom-width:2px;background:var(--surface-muted);color:var(--text-soft);border-radius:4px;font-weight:700;font-size:.7rem;font-family:ui-monospace,SF Mono,monospace;padding:0 6px;min-width:22px;height:22px}.toast{background:var(--text);color:#fff;border-radius:4px;box-shadow:var(--shadow-lg);font-size:.82rem;padding:8px 14px;font-weight:500}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible{outline:none;box-shadow:var(--ring);border-color:var(--primary)}#case-detail.card{padding:14px 16px}#case-detail .case-heading{margin:2px 0 6px}#case-list:empty:before,#task-list:empty:before,#notes-list:empty:before,.comments:empty:before{color:var(--muted);font-size:.84rem;padding:10px 2px}@keyframes ui-rise{0%{opacity:0}to{opacity:1}}@media print{body{background:#fff!important}.topbar,#main-tabs,.tabs-bar,.workspace-overview,#table-tags-controls{display:none!important}}.modal.modal--wide{width:min(96vw,1180px);max-width:1180px;max-height:min(92vh,900px);padding:0;display:flex;flex-direction:column;overflow:hidden}.ward-notes-viewer-header{display:grid;grid-template-columns:1fr auto;grid-template-areas:"title actions" "controls controls";gap:12px 16px;padding:18px 22px 14px;border-bottom:1px solid var(--border, var(--cg-20));background:var(--surface-2, var(--cg-10))}.ward-notes-viewer-title{grid-area:title;display:flex;flex-direction:column;gap:2px;min-width:0}.ward-notes-viewer-h{margin:0;font-family:IBM Plex Sans,system-ui,sans-serif;font-size:18px;font-weight:700;letter-spacing:-.01em;color:var(--text, var(--cg-100))}.ward-notes-viewer-sub{font-size:12.5px;color:var(--muted, var(--cg-60));font-variant-numeric:tabular-nums}.ward-notes-viewer-actions{grid-area:actions;display:flex;align-items:center;gap:8px}.ward-notes-viewer-controls{grid-area:controls;display:flex;flex-wrap:wrap;gap:12px 14px;align-items:center}.ward-notes-viewer-quick{display:flex;flex-wrap:wrap;gap:6px}.ward-notes-viewer-chip{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid var(--border, var(--cg-20));background:#fff;border-radius:999px;padding:5px 12px;font:500 12.5px/1 Inter,system-ui,sans-serif;color:var(--text, var(--cg-100));cursor:pointer;transition:background .12s,border-color .12s,color .12s}.ward-notes-viewer-chip:hover{background:var(--surface-2, #f1f5f9)}.ward-notes-viewer-chip--active{background:var(--primary, #0c4e74);border-color:var(--primary, #0c4e74);color:#fff}.ward-notes-viewer-dates{display:flex;gap:10px;flex-wrap:wrap}.ward-notes-viewer-date{display:inline-flex;align-items:center;gap:6px;font:500 12px/1 Inter,system-ui,sans-serif;color:var(--muted, var(--cg-60));text-transform:uppercase;letter-spacing:.04em}.ward-notes-viewer-date input[type=date]{font-family:IBM Plex Sans,system-ui,sans-serif;font-size:13px;padding:5px 8px;border:1px solid var(--border, var(--cg-20));border-radius:4px;background:#fff;color:var(--text, var(--cg-100));text-transform:none;letter-spacing:0}.ward-notes-viewer-body{flex:1;overflow:auto;padding:16px 22px 22px;background:#fff}.ward-notes-viewer-status{padding:32px 12px;text-align:center;color:var(--muted, var(--cg-60));font-size:13.5px}.ward-notes-viewer-status--error{color:#b91c1c;white-space:pre-wrap}.ward-notes-viewer-list{display:flex;flex-direction:column;gap:14px}.ward-notes-viewer-item{border:1px solid var(--border, var(--cg-20));border-radius:4px;background:#fff;padding:14px 16px;box-shadow:none}.ward-notes-viewer-item-head{display:grid;grid-template-columns:1fr auto;grid-template-areas:"patient meta" "heading meta";gap:2px 12px;margin-bottom:10px;padding-bottom:10px;border-bottom:1px dashed var(--border, var(--cg-20))}.ward-notes-viewer-patient{grid-area:patient;font:700 14.5px/1.3 Sora,Inter,sans-serif;color:var(--primary, #0c4e74);letter-spacing:-.01em}.ward-notes-viewer-heading{grid-area:heading;font:500 13px/1.3 Inter,system-ui,sans-serif;color:var(--text, var(--cg-100))}.ward-notes-viewer-meta{grid-area:meta;font-size:11.5px;color:var(--muted, var(--cg-60));font-variant-numeric:tabular-nums;text-align:right;align-self:start}.ward-notes-viewer-content{font-size:13px;color:var(--text, var(--cg-100))}@media (max-width: 640px){.ward-notes-viewer-header{grid-template-columns:1fr;grid-template-areas:"title" "actions" "controls";padding:14px 16px 12px}.ward-notes-viewer-actions{justify-content:flex-end}.ward-notes-viewer-body{padding:12px 16px 18px}.ward-notes-viewer-item-head{grid-template-columns:1fr;grid-template-areas:"patient" "heading" "meta"}.ward-notes-viewer-meta{text-align:left}}.modal.ward-note-composer{width:min(94vw,760px);max-height:min(92vh,880px);padding:0;display:flex;flex-direction:column;overflow:hidden}.ward-note-composer-header{display:flex;align-items:center;gap:12px;padding:16px 20px 14px;border-bottom:1px solid var(--border, var(--cg-20));background:var(--surface-2, var(--cg-10))}.ward-note-composer-heading{flex:1;min-width:0;font:700 18px/1.3 Sora,Inter,sans-serif;color:var(--text, var(--cg-100));letter-spacing:-.01em;border:1px solid transparent;background:transparent;padding:6px 8px;border-radius:4px;outline:none;transition:border-color .12s,background .12s}.ward-note-composer-heading:hover{background:#fff;border-color:var(--border, var(--cg-20))}.ward-note-composer-heading:focus{background:#fff;border-color:var(--primary, #0c4e74)}.ward-note-composer-actions{display:flex;gap:8px}.ward-note-composer-body{flex:1;overflow:auto;padding:18px 22px 22px;display:flex;flex-direction:column;gap:20px;background:#fff}.ward-note-context{display:flex;flex-direction:column;gap:10px;padding:14px 16px;background:var(--surface-2, var(--cg-10));border:1px solid var(--border, var(--cg-20));border-radius:4px}.ward-note-context-section{display:flex;flex-direction:column;gap:4px}.ward-note-context-label{font:600 11px/1 Inter,system-ui,sans-serif;text-transform:uppercase;letter-spacing:.08em;color:var(--muted, var(--cg-60))}.ward-note-context-value{font:500 14px/1.35 Inter,system-ui,sans-serif;color:var(--text, var(--cg-100))}.ward-note-context-issues{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}.ward-note-context-issues li{font:500 13.5px/1.4 Inter,system-ui,sans-serif;color:var(--text, var(--cg-100))}.ward-note-context-issues li:before{content:"•";color:var(--primary, #0c4e74);margin-right:6px;font-weight:700}.ward-note-context-issue-title{font-weight:600}.ward-note-context-issue-body{color:var(--muted, var(--cg-60));font-weight:400;margin-left:6px}.ward-note-context-issue-body:before{content:"— "}.ward-note-composer-label{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font:600 11px/1 Inter,system-ui,sans-serif;text-transform:uppercase;letter-spacing:.08em;color:var(--muted, var(--cg-60));margin-bottom:8px}.ward-note-composer-hint{font:400 11px/1 Inter,system-ui,sans-serif;text-transform:none;letter-spacing:0;color:var(--cg-40)}.ward-note-composer-textarea{width:100%;box-sizing:border-box;font:400 14px/1.55 Inter,system-ui,sans-serif;color:var(--text, var(--cg-100));padding:12px 14px;border:1px solid var(--border, var(--cg-20));border-radius:4px;background:#fff;resize:vertical;min-height:120px;outline:none;transition:border-color .12s,box-shadow .12s}.ward-note-composer-textarea:focus{border-color:var(--primary, #0c4e74);box-shadow:0 0 0 3px #0c4e7426}.ward-note-composer-tasks{display:flex;flex-direction:column}.ward-note-composer-taskform{display:flex;gap:8px}.ward-note-composer-taskinput{flex:1;font:400 14px/1.4 Inter,system-ui,sans-serif;padding:9px 12px;border:1px solid var(--border, var(--cg-20));border-radius:4px;background:#fff;outline:none;transition:border-color .12s,box-shadow .12s}.ward-note-composer-taskinput:focus{border-color:var(--primary, #0c4e74);box-shadow:0 0 0 3px #0c4e7426}.ward-note-composer-tasklist{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}.ward-note-composer-task{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;font:500 13.5px/1.35 Inter,system-ui,sans-serif;color:var(--text, var(--cg-100));padding:6px 4px;border-radius:4px}.ward-note-composer-task-dot{color:var(--primary, #0c4e74);font-weight:700}.ward-note-composer-task-remove{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:none;color:var(--cg-40);font-size:18px;cursor:pointer;padding:0 6px;line-height:1;border-radius:4px}.ward-note-composer-task-remove:hover{color:#b91c1c;background:#fee2e2}.ward-note-composer-task-empty{font:400 12.5px/1.4 Inter,system-ui,sans-serif;color:var(--cg-40);padding:4px 2px}.ward-note-section--note .ward-note-text--prose{white-space:pre-wrap;font:400 13.5px/1.55 Inter,system-ui,sans-serif}.ward-note-text--boxed{border:1px solid var(--cg-20);border-radius:4px;background:var(--cg-10);padding:10px 12px;margin-top:4px}.ward-note-issues{margin:4px 0 0;padding-left:20px;list-style:disc}.ward-note-issues li{padding:1px 0;font:400 13.5px/1.5 Inter,system-ui,sans-serif;color:#1b2b3a}@media (max-width: 640px){.modal.ward-note-composer{width:96vw;max-height:94vh}.ward-note-composer-header{flex-direction:column;align-items:stretch;padding:14px 16px 12px}.ward-note-composer-actions{justify-content:flex-end}.ward-note-composer-body{padding:14px 16px 18px;gap:16px}}.mobile-topbar,.mobile-search-bar,.mobile-fab{display:none}.mobile-topbar[hidden],.mobile-search-bar[hidden],.mobile-fab[hidden],.mobile-topbar-icon[hidden],.mobile-filter-pill[hidden],.mobile-filter-count[hidden]{display:none!important}.mobile-topbar-icon.is-reserved,.mobile-filter-pill.is-reserved{visibility:hidden;pointer-events:none}@media (max-width: 900px){body.mobile-simplified .tabs-bar,body.mobile-simplified #user-toolbar-root,body.mobile-simplified #user-detail .case-heading,body.mobile-simplified #print-open-btn{display:none!important}.mobile-topbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 2px 10px;margin-bottom:6px}.mobile-topbar-title{margin:0;font:700 1.25rem/1.15 Manrope,Inter,system-ui,sans-serif;color:var(--cg-100);letter-spacing:-.01em;flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.mobile-topbar-icon.mobile-topbar-nav{width:46px;height:46px;flex:0 0 auto;color:#0f5f88;background:#eef6fb;border-radius:4px}.mobile-topbar-icon.mobile-topbar-nav:hover,.mobile-topbar-icon.mobile-topbar-nav:active{background:#d9ecf6;color:#0b3f5d}.mobile-topbar-icon.mobile-topbar-nav svg{width:30px;height:30px;flex:0 0 auto}.mobile-topbar-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}.mobile-topbar-icon{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;color:var(--cg-80);border-radius:4px;cursor:pointer}.mobile-topbar-icon:hover,.mobile-topbar-icon:active{background:#f1f5f9}.mobile-filter-pill{height:36px;padding:0 10px;display:inline-flex;align-items:center;gap:4px;border:1px solid var(--cg-20);background:#fff;border-radius:9999px;font:600 13px/1 Inter,system-ui,sans-serif;color:var(--cg-80);cursor:pointer}.mobile-filter-pill .mobile-filter-label{display:none}.mobile-filter-pill.has-filters{border-color:#0f5f88;color:#0f5f88;background:#eaf4fa}.mobile-filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;border-radius:9999px;background:#0f5f88;color:#fff;font:700 11px/1 Inter,system-ui,sans-serif}.mobile-search-bar{display:flex;align-items:center;gap:8px;padding:0 2px 10px}.mobile-search-bar input{flex:1 1 auto;height:40px;padding:0 12px;border:1px solid var(--cg-20);border-radius:4px;font:500 14px/1 Inter,system-ui,sans-serif;background:var(--cg-10)}.mobile-search-bar input:focus{outline:none;background:#fff;border-color:#0f5f88;box-shadow:0 0 0 3px #0f5f881f}.mobile-fab{position:fixed;right:16px;bottom:16px;width:56px;height:56px;border-radius:0;background:var(--primary);color:#fff;border:0;box-shadow:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;z-index:400;transition:background-color .11s ease}.mobile-fab:hover{background:var(--primary-hover)}.mobile-fab:focus-visible{outline:2px solid var(--text);outline-offset:2px}body.mobile-simplified #user-task-list{padding:0;margin:0;list-style:none;background:transparent}.mt-section{margin:0 -4px 8px}.mt-section:last-child{margin-bottom:96px}.mt-section-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:8px;padding:6px 12px 4px;background:var(--bg);font:600 11px/1 IBM Plex Sans,system-ui,sans-serif;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.mt-section--pending .mt-section-head{color:#9a3412}.mt-section--unassigned .mt-section-head{color:var(--cg-60);border-top:1px solid var(--cg-20);margin-top:12px;padding-top:14px}.mt-section--completed-old{margin-top:18px}.mt-section--completed-old .mt-section-head{color:var(--cg-60);border-top:1px dashed var(--cg-30);padding-top:14px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mt-section--completed-old .mt-section-body{opacity:.78}.mt-section-chev{margin-left:auto;font-size:12px;color:var(--cg-60)}.mt-section-count{color:var(--cg-40);font-weight:600}.mt-stale-age{font-size:.72rem;color:var(--cg-40);font-weight:500;margin-left:4px;white-space:nowrap}.mt-stale-age:before{content:"· ";color:var(--cg-30)}.mt-row.mt-important{background:#fef3c7;box-shadow:inset 5px 0 #f59e0b,0 0 0 1px #fde68a}.mt-row.mt-important .mt-text{font-weight:700;color:#78350f}.mt-row.mt-important .mt-meta{color:#92400e}.mt-row.mt-mine:not(.mt-important){box-shadow:inset 4px 0 #2563eb}.mt-row.mt-mine .mt-text:after{content:"you";display:inline-block;font-size:.62rem;text-transform:uppercase;letter-spacing:.05em;color:#1d4ed8;background:#dbeafe;border:1px solid #bfdbfe;border-radius:999px;padding:1px 6px;margin-left:6px;vertical-align:middle;font-weight:600}.mt-assignee{-webkit-appearance:none;-moz-appearance:none;appearance:none;flex:0 0 auto;align-self:center;width:26px;height:26px;border-radius:50%;border:1px solid var(--cg-30);background:#fff;color:var(--cg-70);font-size:11px;font-weight:700;line-height:1;padding:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;margin:0 4px}.mt-assignee.mt-assignee--unassigned{color:var(--cg-40);border-style:dashed;font-weight:400;font-size:14px}.mt-star{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;padding:4px 6px;font-size:18px;line-height:1;color:var(--cg-30);cursor:pointer;flex:0 0 auto;align-self:center;transition:color .12s ease,transform .12s ease}.mt-star.is-important{color:#f59e0b;text-shadow:0 0 8px rgba(245,158,11,.6);font-size:22px}.mt-del{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;padding:4px 8px;font-size:16px;line-height:1;color:var(--cg-30);cursor:pointer;flex:0 0 auto;align-self:center;transition:color .12s ease}.mt-del:hover,.mt-del:active{color:#ef4444}.mt-section--patient{margin-bottom:8px}.mt-section-head--patient{text-transform:none;letter-spacing:0;font-size:13px;font-weight:600;padding:6px 12px 4px;color:var(--text);background:var(--surface-muted)}.mt-patient-left{display:flex;flex-direction:column;gap:1px;flex:1 1 auto;min-width:0}.mt-patient-name{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;padding:0;font:inherit;color:inherit;text-align:left;cursor:pointer;text-transform:none;letter-spacing:0}.mt-patient-name:active{color:#2563eb}.mt-patient-loc{font-size:11px;font-weight:500;color:var(--cg-60);text-transform:none;letter-spacing:.01em}.mt-patient-subhead{display:flex;flex-direction:column;gap:1px;padding:8px 14px 4px;background:var(--cg-10);border-top:1px solid var(--cg-20)}.mt-patient-subhead .mt-patient-name{font-size:13px;font-weight:600;color:var(--cg-100)}.mt-section--patient-empty .mt-section-head--patient{background:var(--cg-10);color:var(--cg-60)}.mt-section--patient-empty .mt-section-head--patient .mt-patient-name{font-weight:500}.mt-patient-no-tasks{padding:6px 14px 10px;font-size:12px;color:var(--cg-40);font-style:italic;background:#fff}.mt-section-body{display:flex;flex-direction:column;gap:2px;background:#fff;border-radius:4px;overflow:hidden;border:1px solid var(--cg-20);margin:0 4px}.mt-row{position:relative;overflow:hidden;background:#fff;border-bottom:1px solid #f1f5f9}.mt-row:last-child{border-bottom:none}.mt-row-actions{position:absolute;inset:0 0 0 auto;display:flex;align-items:stretch;width:110px;background:linear-gradient(90deg,transparent 0,#f59e0b 14px,#f59e0b 100%);color:#fff;z-index:0}.mt-row-actions button{flex:1 1 auto;border:none;background:#f59e0b;color:#fff;font:700 12px/1 Inter,system-ui,sans-serif;cursor:pointer;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.mt-row-content{position:relative;z-index:1;display:flex;align-items:center;gap:12px;padding:12px 14px;background:#fff;transition:transform .18s ease;touch-action:pan-y;-moz-user-select:none;user-select:none;-webkit-user-select:none}.mt-row.mt-row--dragging .mt-row-content{transition:none}.mt-check{flex:0 0 auto;width:28px;height:28px;border-radius:50%;border:2px solid var(--cg-30);background:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;transition:background-color .14s ease,border-color .14s ease;padding:0}.mt-check svg{width:16px;height:16px;opacity:0;transition:opacity .14s ease}.mt-row.mt-complete .mt-check{background:#22c55e;border-color:#22c55e}.mt-row.mt-complete .mt-check svg{opacity:1}.mt-row.mt-inprogress .mt-check{background:#fff;border-color:#f59e0b;background:conic-gradient(#f59e0b 0,#f59e0b 50%,#fff 50%,#fff)}.mt-row.mt-inprogress .mt-check svg{opacity:0}.mt-row.mt-pending .mt-check{border-color:#fb923c;border-style:dashed}.mt-body{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}.mt-text{font:500 15px/1.3 Inter,system-ui,sans-serif;color:var(--cg-100);white-space:normal;overflow-wrap:anywhere}.mt-row.mt-complete .mt-text{color:var(--cg-40);text-decoration:line-through}.mt-meta{font:500 12.5px/1.2 Inter,system-ui,sans-serif;color:var(--cg-60);display:flex;align-items:center;gap:6px;flex-wrap:wrap}.mt-meta .mt-bed{font-weight:600;color:var(--cg-70)}.mt-meta .mt-sep{color:var(--cg-30)}.mt-pri-dot{flex:0 0 auto;width:4px;align-self:stretch;background:transparent;margin-right:-6px;border-radius:2px}.mt-row.mt-pri-high .mt-pri-dot{background:#ef4444}.mt-accept-row{display:flex;gap:8px;padding:0 14px 12px 56px;background:#fff}.mt-accept-row button{flex:1 1 0;height:36px;border-radius:4px;font:600 13px/1 Inter,system-ui,sans-serif;border:1px solid var(--cg-20);background:#fff;cursor:pointer}.mt-accept-row button.primary{background:#0f5f88;color:#fff;border-color:#0f5f88}.mt-empty{padding:48px 20px;text-align:center;color:var(--cg-60)}.mt-empty-title{font:700 16px/1.2 Manrope,Inter,system-ui,sans-serif;color:var(--cg-100);margin:0 0 4px}.mt-empty-sub{font:500 13.5px/1.4 Inter,system-ui,sans-serif;color:var(--cg-60);margin:0}.mt-empty button{margin-top:14px;height:36px;padding:0 14px;border-radius:4px;background:#fff;border:1px solid var(--cg-20);font:600 13px/1 Inter,system-ui,sans-serif;cursor:pointer}.mt-skeleton-row{display:flex;align-items:center;gap:12px;padding:14px;background:#fff;border-bottom:1px solid #f1f5f9}.mt-skeleton-dot{width:26px;height:26px;border-radius:50%;background:linear-gradient(90deg,var(--cg-10) 0%,#e5ecf3 50%,var(--cg-10) 100%);background-size:200% 100%;animation:mt-shimmer 1.2s linear infinite}.mt-skeleton-lines{flex:1 1 auto;display:flex;flex-direction:column;gap:6px}.mt-skeleton-bar{height:12px;border-radius:4px;background:linear-gradient(90deg,var(--cg-10) 0%,#e5ecf3 50%,var(--cg-10) 100%);background-size:200% 100%;animation:mt-shimmer 1.2s linear infinite}.mt-skeleton-bar.short{width:55%}@keyframes mt-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}}.ms-scrim{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;z-index:500;opacity:0;transition:opacity .18s ease}.ms-scrim.ms-open{opacity:1}.ms-sheet{position:fixed;left:0;right:0;bottom:0;z-index:501;background:#fff;border-radius:4px 18px 0 0;padding:10px 16px 20px;max-height:85vh;overflow:auto;transform:translateY(100%);transition:transform .22s cubic-bezier(.2,.8,.2,1);box-shadow:0 -8px 30px #0f172a33;padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}.ms-sheet.ms-open{transform:translateY(0)}.ms-grabber{width:40px;height:4px;background:var(--cg-30);border-radius:9999px;margin:4px auto 12px}.ms-sheet h3{margin:2px 0 10px;font:700 15px/1.2 Manrope,Inter,system-ui,sans-serif;color:var(--cg-100)}.ms-section{margin-bottom:14px}.ms-section-label{font:700 11px/1 Inter,system-ui,sans-serif;text-transform:uppercase;letter-spacing:.08em;color:var(--cg-60);margin-bottom:8px}.ms-chips{display:flex;flex-wrap:wrap;gap:6px}.ms-chip{height:34px;padding:0 12px;border-radius:9999px;border:1px solid var(--cg-20);background:#fff;font:600 13px/1 Inter,system-ui,sans-serif;color:var(--cg-80);cursor:pointer}.ms-chip.active{background:#0f5f88;border-color:#0f5f88;color:#fff}.ms-actions{display:flex;gap:8px;margin-top:8px}.ms-actions button{flex:1 1 0;height:42px;border-radius:4px;font:600 14px/1 Inter,system-ui,sans-serif;border:1px solid var(--cg-20);background:#fff;cursor:pointer}.ms-actions button.primary{background:#0f5f88;border-color:#0f5f88;color:#fff}.ms-list{list-style:none;margin:0;padding:0}.ms-list-item{display:flex;align-items:center;gap:12px;width:100%;padding:14px 6px;background:transparent;border:none;border-bottom:1px solid #f1f5f9;font:600 15px/1 Inter,system-ui,sans-serif;color:var(--cg-100);cursor:pointer;text-align:left}.ms-list-item:last-child{border-bottom:none}.ms-list-item .ms-list-icon{color:#0f5f88;flex:0 0 auto}.ms-list-item--current{background:#eff6ff}.ms-list-item .ms-assignee-row{display:inline-flex;align-items:center;gap:10px;flex:1 1 auto}.ms-list-tick{color:#2563eb;font-size:18px;flex:0 0 auto}.ms-list-divider{height:1px;background:var(--cg-20);margin:6px 0}.toast-container .toast.undo{display:inline-flex;align-items:center;gap:10px;padding:8px 8px 8px 14px;background:var(--cg-100)}.toast.undo .toast-undo-btn{background:transparent;color:#93c5fd;border:none;font:700 13px/1 Inter,system-ui,sans-serif;cursor:pointer;padding:6px 10px;border-radius:4px}.toast.undo .toast-undo-btn:hover{background:#93c5fd1f}.coach-scrim{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a8c;z-index:600;animation:coach-fade .2s ease both}@keyframes coach-fade{0%{opacity:0}to{opacity:1}}.coach-bubble{position:fixed;z-index:601;background:#fff;border-radius:4px;padding:14px 16px;box-shadow:none;max-width:280px;color:var(--cg-100)}.coach-bubble .coach-title{font:700 14px/1.25 Manrope,Inter,system-ui,sans-serif;margin:0 0 4px}.coach-bubble .coach-body{font:500 13px/1.4 Inter,system-ui,sans-serif;color:var(--cg-70);margin:0 0 10px}.coach-bubble button{background:#0f5f88;color:#fff;border:none;border-radius:4px;font:600 12.5px/1 Inter,system-ui,sans-serif;padding:9px 14px;cursor:pointer}.coach-highlight{position:fixed;z-index:600;border-radius:999px;box-shadow:0 0 0 4px #0f5f8899,0 0 0 9999px #0f172a8c;animation:coach-pulse 1.6s ease-in-out infinite;pointer-events:none}@keyframes coach-pulse{0%,to{box-shadow:0 0 0 4px #0f5f888c,0 0 0 9999px #0f172a8c}50%{box-shadow:0 0 0 8px #0f5f8859,0 0 0 9999px #0f172a8c}}@media (max-width: 900px){body.mobile-simplified #table-root{overflow-x:visible}body.mobile-simplified #table-section .data-table{display:block;min-width:0;width:100%;table-layout:auto;border:0}body.mobile-simplified #table-section .data-table thead{display:none}body.mobile-simplified #table-section .data-table tbody{display:block}body.mobile-simplified #table-section .data-table tbody tr{display:block;background:#fff;border:1px solid var(--cg-20);border-radius:4px;margin:0 0 14px;padding:0;overflow:hidden;box-shadow:none}body.mobile-simplified #table-section .data-table tbody tr[hidden]{display:none}body.mobile-simplified #table-section .data-table tbody tr:nth-child(2n) td{background:#fff}body.mobile-simplified #table-section .data-table td{display:block;width:auto!important;border:0;border-top:1px solid #f1f5f9;padding:10px 14px}body.mobile-simplified #table-section .data-table td:first-child{border-top:0;background:var(--cg-10);padding:12px 14px 10px}body.mobile-simplified #table-section .table-section-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:2px 2px 10px}body.mobile-simplified #table-section .mobile-expand-all-btn{display:inline-flex;align-items:center;gap:6px;margin:0;padding:6px 12px;border:1px solid var(--cg-20);border-radius:9999px;background:#fff;color:var(--cg-80);font:600 12px/1 Inter,system-ui,sans-serif;cursor:pointer}body.mobile-simplified #table-section .mobile-expand-all-btn:hover,body.mobile-simplified #table-section .mobile-expand-all-btn:active{background:#f1f5f9}body.mobile-simplified #table-section .table-section-toolbar .show-filters-btn{margin:0}body.mobile-simplified #table-section .data-table tbody tr:hover td,body.mobile-simplified #table-section .data-table tbody tr:hover td:not([style*=background]),body.mobile-simplified #table-section .data-table tbody tr:hover td:nth-child(1):not([style*=background]){background:inherit}body.mobile-simplified #table-section .data-table,body.mobile-simplified #table-section .data-table *{-webkit-tap-highlight-color:transparent}body.mobile-simplified #table-section .data-table td,body.mobile-simplified #table-section .data-table tr{-webkit-user-select:none;-moz-user-select:none;user-select:none}body.mobile-simplified #table-section .cell-editable,body.mobile-simplified #table-section .cell-title,body.mobile-simplified #table-section .cell-body-text,body.mobile-simplified #table-section [contenteditable=true],body.mobile-simplified #table-section input,body.mobile-simplified #table-section textarea{-webkit-user-select:text;-moz-user-select:text;user-select:text}body.mobile-simplified #table-section .data-table td[data-cell-section]{padding:0}body.mobile-simplified #table-section .data-table td[data-cell-section] .cell-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;padding:14px;background:#f1f5f9;border:0;border-top:1px solid var(--cg-20);cursor:pointer;font:700 12px/1 Inter,system-ui,sans-serif;text-transform:uppercase;letter-spacing:.08em;color:var(--cg-80);text-align:left}body.mobile-simplified #table-section .data-table td[data-cell-section].is-open .cell-toggle{background:#e0edf4;color:#0b3f5d}body.mobile-simplified #table-section .data-table td[data-cell-section] .cell-toggle-chevron{transition:transform .16s ease;color:#0f5f88;width:24px;height:24px}body.mobile-simplified #table-section .data-table td[data-cell-section].is-open .cell-toggle-chevron{transform:rotate(180deg)}body.mobile-simplified #table-section .data-table td[data-cell-section] .cell-body{display:none;padding:10px 14px 12px;background:#fff}body.mobile-simplified #table-section .data-table td[data-cell-section].is-open .cell-body{display:block}body.mobile-simplified #table-section .line-info-btn{width:32px;height:32px;opacity:1;border-radius:4px;border-color:var(--cg-30);color:var(--cg-70)}body.mobile-simplified #table-section .line-info-btn svg{width:18px;height:18px}body.mobile-simplified #table-section .line-info-btn[aria-expanded=true] svg{transform:rotate(180deg);transition:transform .16s ease}body.mobile-simplified .cell-body-panel--inline .cell-body-header,body.mobile-simplified .cell-body-panel--inline .cell-body-foot{display:none}body.mobile-simplified .cell-body-panel--inline{background:var(--cg-10);border:1px dashed var(--cg-30);border-radius:4px}body.mobile-simplified .cell-body-panel--inline .cell-body-text{border-radius:4px;min-height:56px}body.mobile-simplified #table-section .data-table tr.ward-group-header-row{display:block;margin:18px 0 8px}body.mobile-simplified #table-section .data-table tr.ward-group-header-row:first-child{margin-top:4px}body.mobile-simplified #table-section .data-table td.ward-group-header-cell{display:block;padding:0;background:transparent;border-radius:4px}body.mobile-simplified #table-section .ward-group-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:12px 14px;border:0;border-radius:4px;background:linear-gradient(180deg,#0f5f88,#0c4e74);color:#fff;font:700 12px/1.2 Inter,system-ui,sans-serif;text-transform:uppercase;letter-spacing:.1em;box-shadow:none;cursor:pointer;text-align:left}body.mobile-simplified #table-section .ward-group-label{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body.mobile-simplified #table-section .ward-group-chevron{flex:0 0 auto;transition:transform .18s ease}body.mobile-simplified #table-section .ward-group-toggle[aria-expanded=false] .ward-group-chevron{transform:rotate(-90deg)}body.mobile-simplified #table-section .ward-group-toggle[aria-expanded=false]{background:linear-gradient(180deg,#3680a8,#2a6d91);box-shadow:none}body.mobile-simplified #table-section .data-table td:first-child .name-row{gap:8px;align-items:flex-start;flex-wrap:wrap}body.mobile-simplified #table-section .data-table td:first-child .name-title{flex:1 1 100%}body.mobile-simplified #table-section .data-table td:first-child .patient-link{font-size:16px;font-weight:600}body.mobile-simplified #table-section .data-table td .cell-items,body.mobile-simplified #table-section .data-table td .cell-tasks{max-height:none!important;overflow:visible!important}body.mobile-simplified #table-section .data-table tbody tr:last-child{margin-bottom:120px}}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.block{display:block}.table{display:table}.hidden{display:none}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}body{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}@media (min-width: 640px){.sm\:not-sr-only{position:static;width:auto;height:auto;padding:0;margin:0;overflow:visible;clip:auto;white-space:normal}}.ag-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;background:linear-gradient(180deg,#f4f7fb,#e7eef6);overflow-y:auto;font-family:IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;color:#161616}.ag-shell{min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px 16px}.ag-card{width:100%;max-width:420px;background:#fff;border-radius:12px;box-shadow:0 6px 24px #0f1e3c14,0 1px 3px #0f1e3c0f;padding:28px 28px 24px;box-sizing:border-box}.ag-header{margin-bottom:18px}.ag-brand{display:flex;flex-direction:column;gap:2px;margin-bottom:22px}.ag-brand-name{font-weight:600;font-size:18px;color:#0f5f88;letter-spacing:-.01em}.ag-brand-sub{color:#5a6373;font-size:12px}.ag-title{font-size:22px;font-weight:600;margin:0 0 4px;letter-spacing:-.015em}.ag-subtitle{margin:0;color:#5a6373;font-size:14px;line-height:1.45}.ag-body{display:flex;flex-direction:column;gap:16px}.ag-body form,.ag-card form{display:flex;flex-direction:column;gap:12px}.ag-paragraph{margin:0 0 12px;font-size:14px;color:#2a313c;line-height:1.5}.ag-paragraph.ag-muted{color:#6b7280}.ag-footer{margin-top:20px;font-size:13px;color:#5a6373;text-align:center}.ag-field{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#2a313c}.ag-field span{font-weight:500}.ag-field input{font:inherit;padding:10px 12px;border:1px solid #d6dbe4;border-radius:6px;background:#fff;color:#161616;outline:none;transition:border-color .12s ease,box-shadow .12s ease;width:100%;box-sizing:border-box}.ag-field input:focus{border-color:#0f62fe;box-shadow:0 0 0 3px #0f62fe26}.ag-field input:disabled{background:#f4f6f9;color:#6b7280;cursor:not-allowed}.ag-field-pin{align-items:center}.ag-pin-input{font-size:28px!important;letter-spacing:14px;text-align:center;width:180px!important;padding:14px 12px!important;font-variant-numeric:tabular-nums}.ag-checkbox{display:flex;align-items:flex-start;gap:8px;font-size:13px;color:#2a313c;line-height:1.45}.ag-checkbox input[type=checkbox]{margin-top:2px;flex:0 0 auto;width:16px!important;height:16px;padding:0;border:1px solid #5a6373;-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}.ag-checkbox span{flex:1 1 auto;min-width:0}.ag-checkbox a{color:#0f62fe;text-decoration:underline}.ag-btn{display:inline-flex;align-items:center;justify-content:center;font:inherit;font-weight:500;font-size:14px;padding:10px 18px;border-radius:6px;border:1px solid transparent;cursor:pointer;transition:background .12s ease,border-color .12s ease,color .12s ease;min-height:40px;width:100%;box-sizing:border-box}.ag-btn:disabled{opacity:.55;cursor:not-allowed}.ag-btn-primary{background:#0f62fe;color:#fff;border-color:#0f62fe}.ag-btn-primary:hover:not(:disabled){background:#0353e9}.ag-btn-ghost{background:transparent;color:#2a313c;border-color:#d6dbe4}.ag-btn-ghost:hover:not(:disabled){background:#f4f6f9}.ag-btn-danger{background:#fff;color:#a23535;border-color:#d6a0a0}.ag-btn-danger:hover:not(:disabled){background:#fdecec}.ag-link{background:none;border:none;color:#0f62fe;text-decoration:underline;cursor:pointer;font:inherit;padding:0}.ag-link:hover:not(:disabled){color:#0353e9}.ag-link:disabled{color:#94a3b8;cursor:not-allowed}.ag-link-block{display:block;width:100%;text-align:center;margin-top:6px;padding:8px 0;font-size:13px}.ag-icon-btn{background:none;border:none;font-size:22px;line-height:1;color:#5a6373;cursor:pointer;padding:4px 8px;border-radius:4px}.ag-icon-btn:hover{background:#f4f6f9;color:#161616}.ag-actions{display:flex;flex-direction:column;gap:10px}.ag-modal-foot .ag-btn,.ag-actions .ag-btn{width:auto;flex:1}@media (max-width: 480px){.ag-actions{gap:8px}}.ag-error{background:#fdecec;color:#a23535;border-radius:6px;padding:10px 12px;font-size:13px;margin:0;border-left:3px solid #d6a0a0}.ag-info{background:#e6f1ff;color:#054ada;border-radius:6px;padding:10px 12px;font-size:13px;margin:0;border-left:3px solid #97b9f3}.ag-qr-wrap{display:flex;justify-content:center;background:#f4f6f9;border-radius:8px;padding:14px}.ag-qr{display:block;width:220px;height:220px;background:#fff;padding:8px;border-radius:6px}.ag-qr-placeholder{width:220px;height:220px;display:flex;align-items:center;justify-content:center;color:#6b7280;font-size:13px}.ag-manual-toggle{display:flex;flex-direction:column;gap:6px;align-items:center;font-size:12px}.ag-code{font-family:IBM Plex Mono,ui-monospace,monospace;background:#f4f6f9;padding:6px 8px;border-radius:4px;font-size:13px;word-break:break-all;color:#2a313c}.ag-modal-scrim{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1100;background:#0f1e3c73;display:flex;align-items:center;justify-content:center;padding:24px 16px;overflow-y:auto}.ag-modal{background:#fff;border-radius:10px;width:100%;max-width:420px;padding:24px;box-sizing:border-box;box-shadow:0 10px 32px #0f1e3c40;font-family:IBM Plex Sans,system-ui,sans-serif;color:#161616}.ag-modal-wide{max-width:640px}.ag-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.ag-modal-title{font-size:18px;font-weight:600;margin:0}.ag-modal form{display:flex;flex-direction:column;gap:12px;margin-top:12px}.ag-modal-foot{margin-top:18px;display:flex;justify-content:flex-end;gap:10px}.ag-section{border-top:1px solid #eef0f4;padding:16px 0}.ag-section:first-of-type{border-top:none;padding-top:0}.ag-section h3{font-size:14px;font-weight:600;margin:0 0 10px;color:#2a313c}.ag-section .ag-actions{flex-direction:row;flex-wrap:wrap;gap:8px}.ag-section .ag-actions .ag-btn{flex:0 0 auto;width:auto;font-size:13px;padding:8px 14px;min-height:34px}.ag-row{display:flex;gap:8px;align-items:center}.ag-row input{flex:1;font:inherit;padding:8px 10px;border:1px solid #d6dbe4;border-radius:6px;font-size:13px}.ag-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.ag-list-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border:1px solid #eef0f4;border-radius:8px;background:#fbfcfd}.ag-list-title{font-weight:500;font-size:13px;color:#161616;display:flex;gap:6px;align-items:center;flex-wrap:wrap}.ag-list-meta{font-size:12px;color:#6b7280;margin-top:2px}.ag-pill{background:#e6f1ff;color:#054ada;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:500}.ag-pill-warn{background:#fff5e6;color:#a35a00}.ag-list-compact{gap:4px}.ag-list-item-compact{display:flex;justify-content:space-between;align-items:baseline;padding:6px 8px;font-size:12px;border-radius:4px}.ag-list-item-compact:nth-child(odd){background:#f8fafc}.ag-evt-type{font-weight:500;color:#2a313c}.ag-evt-meta{color:#6b7280;font-variant-numeric:tabular-nums}.ag-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media (max-width: 480px){.ag-card{padding:22px 20px 18px}.ag-modal{padding:18px}.ag-section .ag-actions{flex-direction:column;align-items:stretch}.ag-section .ag-actions .ag-btn{width:100%}}
