*{box-sizing:border-box}body{margin:0;background:#f6f7f4;color:#1f2522;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,select{font:inherit}button{cursor:pointer}.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px}.login-panel{width:min(440px,100%);background:#fff;border:1px solid #d9ded6;border-radius:8px;padding:28px;box-shadow:0 18px 42px #1f25221a}.brand{color:#0f766e;font-weight:800;letter-spacing:0}h1,h2{margin:0;letter-spacing:0}h1{margin-top:12px;font-size:28px}h2{font-size:16px}.muted,.hint,.empty,small{color:#66736d}.login-actions,.actions,.topbar-actions,.panel-actions{display:flex;gap:10px;flex-wrap:wrap}.panel-actions{align-items:center;justify-content:flex-end}.login-actions{margin-top:24px}.primary,.secondary,.icon-button{min-height:36px;border-radius:6px;border:1px solid transparent;padding:0 14px;font-weight:700}.primary{background:#0f766e;color:#fff}.primary:disabled{background:#b7c4bf;cursor:not-allowed}.secondary,.icon-button{background:#fff;border-color:#cdd5d0;color:#26312d}.icon-button{width:36px;padding:0;display:inline-flex;align-items:center;justify-content:center}.icon-button svg{display:block}.app-shell{min-height:100vh;padding:20px}.topbar,.workspace,.section-title{display:flex;gap:16px}.topbar{align-items:center;justify-content:space-between;margin-bottom:18px}.topbar-actions{min-width:0;align-items:center;flex-wrap:nowrap}.identity-signout{min-width:0;max-width:min(260px,36vw);display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.identity-signout .user-identity{min-width:0;overflow:hidden;text-overflow:ellipsis}.identity-signout svg{flex:0 0 auto}.filters{background:#fff;border:1px solid #d9ded6;border-radius:8px;padding:10px 14px;margin-bottom:16px}.filter-disclosure{width:100%;min-width:0;min-height:28px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0;border:0;background:transparent;color:#35403a;text-align:left}.filter-summary,.filter-section-label{min-width:0;font-size:13px;font-weight:650}.filter-summary{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.filter-disclosure svg{flex:0 0 auto;transition:transform .14s ease}.filters.expanded .filter-disclosure svg{transform:rotate(180deg)}.filter-controls{display:flex;align-items:end;flex-wrap:wrap;gap:16px;padding-top:12px;margin-top:10px;border-top:1px solid #edf0eb}label{display:grid;gap:6px;min-width:180px;color:#44504a;font-size:13px;font-weight:700}select,input{min-height:36px;border:1px solid #cdd5d0;border-radius:6px;padding:0 10px;background:#fff;color:#1f2522}.workspace{align-items:flex-start}.records-pane{flex:1 1 auto;min-width:0}.side-pane{width:340px;flex:0 0 340px}.records-pane,.side-pane{display:grid;gap:12px}.section-title{align-items:center;justify-content:space-between}.records-toolbar{min-width:0;display:flex;align-items:center;gap:16px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}.records-heading{flex:0 0 auto;display:inline-flex;align-items:baseline;gap:10px;white-space:nowrap}.records-heading>span{color:#66736d;font-size:13px;font-variant-numeric:tabular-nums}.records-toolbar>.actions,.records-toolbar>.records-action-hint{flex:0 0 auto;margin-left:auto}.records-toolbar>.actions{justify-content:flex-end;flex-wrap:nowrap}.action-groups{gap:12px}.action-button-group{display:inline-flex;gap:0}.action-button-group>button,.action-button-group>select{position:relative;border-radius:0}.action-button-group>:not(:first-child){margin-left:-1px}.action-button-group>:first-child{border-radius:6px 0 0 6px}.action-button-group>:last-child{border-radius:0 6px 6px 0}.action-button-group>:only-child{border-radius:6px}.action-button-group>:focus{z-index:1}.checking-actions{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:150px}.checking-actions svg{flex:0 0 auto;animation:loading-spin .9s linear infinite}.records-action-hint{white-space:nowrap}.status-correction-select{min-width:150px;min-height:36px;padding:7px 30px 7px 10px;border-color:#1d4ed8;background-color:#1d4ed8;color:#fff;font-weight:700}.action-command-select{min-width:130px;min-height:36px;padding:7px 30px 7px 10px;border-color:#0f766e;background-color:#0f766e;color:#fff;font-weight:700}.action-command-select option,.status-correction-select option{background:#fff;color:#1f2522}.status-confirm-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;display:grid;place-items:center;padding:24px;background:#0f172a73}.status-confirm-dialog{width:min(480px,100%);max-height:calc(100vh - 48px);overflow:auto;padding:24px;border:1px solid #d9ded6;border-radius:8px;background:#fff;box-shadow:0 20px 45px #0f172a40}.status-confirm-dialog h2{margin:0 0 12px;font-size:1.25rem}.status-confirm-summary{margin:18px 0;border-block:1px solid #d9ded6}.status-confirm-row{display:flex;justify-content:space-between;gap:20px;padding:9px 2px}.status-confirm-heading{color:var(--muted);font-size:.82rem;font-weight:700;text-transform:uppercase}.status-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.pane-loading{min-height:180px;display:flex;align-items:center;justify-content:center;gap:10px;padding:24px;border:1px solid #d9ded6;border-radius:8px;background:#fff;color:#66736d;font-size:14px;font-weight:650}.records-pane>.pane-loading{min-height:min(52vh,480px)}.pane-loading svg{animation:loading-spin .8s linear infinite}@keyframes loading-spin{to{transform:rotate(360deg)}}.table-wrap{overflow:auto;max-height:calc(100vh - var(--filters-sticky-height, 0px) - 150px);background:#fff;border:1px solid #d9ded6;border-radius:8px}table{width:100%;border-collapse:collapse;min-width:1300px}th,td{padding:11px 12px;border-bottom:1px solid #edf0eb;text-align:left;white-space:nowrap}.selection-cell{width:76px;padding-right:8px;padding-left:8px;text-align:center}.selection-column-heading{position:relative;display:flex;min-width:54px;align-items:center;justify-content:center;gap:2px}.selection-column-filter .column-filter-menu{right:auto;left:0;text-align:left}.selection-checkbox{width:18px;height:18px;min-height:18px;padding:0;accent-color:#0f766e;cursor:pointer}.selection-checkbox:disabled{cursor:default}.record-refresh-indicator{display:inline-flex;width:18px;height:18px;align-items:center;justify-content:center;color:#0f766e;vertical-align:middle}.record-refresh-indicator svg{width:18px;height:18px;animation:loading-spin .8s linear infinite}.table-empty{padding:24px 12px;text-align:center}th{position:sticky;top:0;z-index:8;background:#eef3ef;color:#4a554f;font-size:12px;text-transform:uppercase}thead th:has(.column-filter[open]){z-index:18}.column-heading{position:relative;display:flex;align-items:center;gap:6px}.sort-button{width:100%;min-height:28px;display:inline-flex;align-items:center;justify-content:flex-start;gap:7px;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:700;text-transform:inherit}.column-filter{position:relative;flex:0 0 auto;text-transform:none}.column-filter summary{width:34px;height:34px;justify-content:center;display:inline-flex;align-items:center;padding:0;border:1px solid transparent;border-radius:4px;color:#5d6963;cursor:pointer;list-style:none}.column-filter summary svg{display:block;width:20px;height:20px}.column-filter summary::-webkit-details-marker{display:none}.column-filter summary:hover,.column-filter summary:focus-visible,.column-filter.active summary{border-color:#9fb0a8;background:#fff;color:#0f766e}.column-filter.active summary{border-color:#0f766e;background:#e5f3f0}.column-filter-menu{position:absolute;top:calc(100% + 5px);right:0;z-index:30;width:max-content;min-width:210px;max-width:320px;padding:10px;border:1px solid #cdd5d0;border-radius:6px;background:#fff;box-shadow:0 12px 28px #1f25222e;color:#26312d}.column-filter-options{max-height:230px;overflow-y:auto;margin:8px -4px 10px 0;padding-right:4px}.column-filter-option{min-width:0;display:flex;align-items:center;gap:8px;padding:5px 3px;color:#35403a;font-size:12px;font-weight:600;text-transform:none}.column-filter-option input{min-height:0;width:16px;height:16px;margin:0;padding:0}.column-filter-option span{min-width:0;overflow-wrap:anywhere;white-space:normal}.column-filter-option-label{flex:1 1 auto}.column-filter-option-count{flex:0 0 auto;min-width:26px;padding:2px 6px;border-radius:999px;background:#edf0eb;color:#4f5b55;font-size:11px;font-variant-numeric:tabular-nums;line-height:1.3;text-align:center}.column-filter-option.select-all{padding-bottom:8px;border-bottom:1px solid #edf0eb}.column-filter-apply{width:100%}.sort-button:focus-visible{outline:2px solid #0f766e;outline-offset:2px}.sort-indicator{position:relative;width:9px;height:14px;flex:0 0 9px}.sort-indicator:before,.sort-indicator:after{position:absolute;left:1px;content:"";border-right:4px solid transparent;border-left:4px solid transparent;opacity:.3}.sort-indicator:before{top:1px;border-bottom:5px solid currentcolor}.sort-indicator:after{bottom:1px;border-top:5px solid currentcolor}.sort-indicator.active[data-direction=ascending]:before,.sort-indicator.active[data-direction=descending]:after{opacity:1}.record-row{cursor:pointer}.record-row:hover td{background:#f4f8f5}.record-row.open-record td{background:#e3f3ee;box-shadow:inset 0 1px #79b9aa,inset 0 -1px #79b9aa}.record-row.open-record td:first-child{box-shadow:inset 4px 0 #0f766e,inset 0 1px #79b9aa,inset 0 -1px #79b9aa}.record-row:focus-visible{outline:2px solid #0f766e;outline-offset:-2px}.lineage-heading{min-width:0}.lineage-heading h2,.lineage-heading p{margin:0}.lineage-heading p{margin-top:3px;color:var(--muted);font-size:.82rem;line-height:1.25;overflow-wrap:anywhere}.lineage-heading-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.compact-command{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:6px 10px}.compact-command svg{width:17px;height:17px}.lineage h3{margin:18px 0 8px;font-size:.95rem}.record-edit-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:110;display:grid;place-items:center;padding:24px;background:#0f172a73}.record-edit-dialog{width:min(720px,100%);max-height:calc(100vh - 48px);overflow:auto;padding:24px;border:1px solid #d9ded6;border-radius:8px;background:#fff;box-shadow:0 20px 45px #0f172a40}.record-edit-dialog .section-title{align-items:flex-start;margin-bottom:18px}.record-edit-dialog h2,.record-edit-dialog p{margin:0}.record-edit-form{display:grid;gap:16px}.record-edit-form fieldset{min-width:0;margin:0;padding:14px;border:1px solid #d9ded6;border-radius:6px}.record-edit-form legend{padding:0 6px;font-weight:700}.record-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.record-edit-grid.patient-name-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:12px}.record-edit-grid label,.record-edit-field{display:grid;gap:5px;min-width:0}.record-edit-grid input,.record-edit-grid select{width:100%;min-width:0}.edit-typeahead{position:relative;min-width:0}.edit-typeahead-input{padding-right:38px}.edit-typeahead-toggle{position:absolute;top:1px;right:1px;display:grid;width:34px;height:calc(100% - 2px);padding:0;place-items:center;color:var(--muted);background:transparent;border:0;border-left:1px solid #d9ded6;border-radius:0 5px 5px 0}.edit-typeahead-toggle:hover,.edit-typeahead-toggle:focus-visible{color:#0f766e;background:#eef6f2}.edit-typeahead-toggle svg{width:18px;height:18px}.edit-typeahead-list{position:absolute;z-index:20;top:calc(100% + 4px);left:0;width:100%;max-height:220px;overflow-y:auto;padding:4px;background:#fff;border:1px solid #b8c2bb;border-radius:6px;box-shadow:0 10px 24px #1f252229}.edit-typeahead-list[hidden]{display:none}.edit-typeahead-list [role=option]{display:block;width:100%;padding:8px 10px;overflow:hidden;color:#1f2522;text-align:left;text-overflow:ellipsis;white-space:nowrap;background:transparent;border:0;border-radius:4px}.edit-typeahead-list [role=option]:hover,.edit-typeahead-list [role=option].active{background:#e3f1eb}.edit-typeahead-list [role=option][aria-selected=true]{color:#0f5f58;font-weight:700}.edit-typeahead-empty{margin:0;padding:10px;color:var(--muted);font-size:.85rem;font-weight:400}.field-help{color:var(--muted);display:block;font-size:.78rem;font-weight:400;margin-top:.25rem}.custom-facility-field{display:grid;gap:5px;margin-top:12px}.custom-facility-field[hidden]{display:none}.custom-facility-field input{width:100%;min-width:0}.record-edit-actions{display:flex;justify-content:flex-end;gap:10px}.record-edit-actions button{display:inline-flex;align-items:center;gap:7px}@media (max-width: 720px){.record-edit-grid,.record-edit-grid.patient-name-grid{grid-template-columns:1fr}.lineage .section-title{align-items:flex-start}}.session-row,.lineage,.task-events,.audit-events,.empty,.hint,.notice{background:#fff;border:1px solid #d9ded6;border-radius:8px;padding:12px}.session-row{width:100%;display:flex;align-items:center;justify-content:space-between;color:inherit;text-align:left;cursor:pointer}.session-row.selected{border-color:#0f766e;box-shadow:inset 3px 0 #0f766e}.session-row div{display:grid;gap:3px}.session-row span{color:#66736d;font-size:12px}.notice{margin-bottom:12px;border-color:#c8a24a;background:#fff8e6}.notice.error{border-color:#cc6b62;background:#fff0ee;color:#7a2f29}.notice-command{margin-left:8px;padding:0;border:0;background:transparent;color:#0f5f59;font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}.notice-command:hover,.notice-command:focus-visible{color:#083f3b}.lineage dl{display:grid;grid-template-columns:140px 1fr;gap:8px 12px;margin:12px 0 0}.lineage dt{color:#66736d;font-weight:700}.lineage dd{margin:0;min-width:0;overflow-wrap:anywhere}.entity-history-control{display:inline-flex;align-items:flex-start;gap:5px;max-width:100%;padding:0;border:0;border-bottom:1px dotted #64748b;border-radius:0;background:transparent;color:#17211e;font:inherit;letter-spacing:0;text-align:left;cursor:pointer}.entity-history-control span{min-width:0;overflow-wrap:anywhere}.entity-history-control svg{flex:0 0 auto;width:16px;height:16px;margin-top:2px}.entity-history-control:hover,.entity-history-control:focus-visible{color:#0f766e;border-bottom-style:solid}.entity-history-dialog{width:min(760px,100%)}.entity-version-list{display:grid;gap:12px;margin:0;padding:0;list-style:none}.entity-version{padding:14px;border:1px solid #d9ded6;border-left:4px solid #94a39d;border-radius:6px;background:#fff}.entity-version.referenced{border-left-color:#0f766e;background:#f4fbf8}.entity-version-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.entity-version-heading>div{display:grid;gap:5px}.entity-version-heading>span{color:#66736d;font-size:.82rem;white-space:nowrap}.referenced-version-badge{width:fit-content;padding:2px 6px;border-radius:4px;background:#d8f3e8;color:#0b5b50;font-size:.75rem;font-weight:700}.entity-version dl{display:grid;grid-template-columns:120px minmax(0,1fr);gap:6px 12px;margin:12px 0}.entity-version dt{color:#66736d;font-weight:700}.entity-version dd{min-width:0;margin:0;overflow-wrap:anywhere}.entity-version details{padding-top:10px;border-top:1px solid #e3e8e4}.entity-version summary{color:#0f5f59;font-weight:700;cursor:pointer}.entity-version-fields{margin-bottom:0!important}.timestamp-toggle{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;border:0;border-bottom:1px dotted currentColor;border-radius:0;background:transparent;color:inherit;font:inherit;letter-spacing:0;text-align:left;cursor:pointer}.timestamp-toggle:hover,.timestamp-toggle:focus-visible{color:#0f766e;border-bottom-style:solid}.task-events ol,.audit-events ol,.status-history{display:grid;gap:10px;margin:12px 0 0;padding:0;list-style:none}.task-events li,.audit-events li,.status-history li{display:grid;gap:5px;padding-bottom:10px;border-bottom:1px solid #edf0eb}.task-events li:last-child,.audit-events li:last-child,.status-history li:last-child{padding-bottom:0;border-bottom:0}.task-events li div,.audit-events li div,.status-history li div{display:flex;justify-content:space-between;gap:8px}.task-events span,.task-events time,.audit-events span,.audit-events time,.status-history span,.status-history time{color:#66736d;font-size:12px}.task-events code,.audit-events code,.status-history code{white-space:pre-wrap;overflow-wrap:anywhere;color:#35403a;font-size:12px}.history-view-control{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;margin:0 0 8px;color:#66736d;font-size:12px;font-weight:700}.history-view-control select{width:100%;min-width:0;height:32px;padding:4px 30px 4px 8px;font-size:12px}.history-empty{margin:12px 0}.record-history.status-history{gap:0;margin-top:0}.record-history.status-history>li{display:block;gap:0;padding:0;border-bottom:1px solid #e7ebe7}.record-history.status-history>li.history-date{margin:12px 0 4px;border:0;color:#59655f;font-size:11px;font-weight:800;text-transform:uppercase}.record-history.status-history>li.history-date:first-child{margin-top:4px}.history-entry>summary{display:grid;grid-template-columns:8px minmax(0,1fr) auto 16px;align-items:center;gap:7px;min-height:52px;padding:7px 2px;cursor:pointer;list-style:none}.history-entry>summary::-webkit-details-marker{display:none}.history-entry>summary:hover,.history-entry>summary:focus-visible{background:#f5f8f6}.history-marker{width:8px;height:8px;border:2px solid #718078;border-radius:50%;background:#fff}.history-item.success .history-marker{border-color:#147d64;background:#147d64}.history-item.warning .history-marker{border-color:#b7791f;background:#f6c453}.history-item.failure .history-marker{border-color:#c23b35;background:#c23b35}.history-summary-copy{display:grid;min-width:0;gap:2px}.history-summary-copy strong{min-width:0;color:#202722;font-size:13px;line-height:1.25;overflow-wrap:normal}.history-summary-copy>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#66736d;font-size:11px}.history-entry>summary time{white-space:nowrap;color:#66736d;font-size:11px}.history-chevron{width:15px;height:15px;color:#66736d;transition:transform .12s ease}.history-entry[open]>summary .history-chevron{transform:rotate(90deg)}.record-history .history-expanded{display:block;padding:0 0 10px 15px}.history-details{display:grid;grid-template-columns:minmax(86px,auto) minmax(0,1fr);gap:5px 8px;margin:0;padding:9px;border-left:2px solid #d7dfda;background:#f7f9f7}.history-details dt,.history-details dd,.history-source-events dl dt,.history-source-events dl dd{margin:0;overflow-wrap:anywhere;font-size:11px}.history-details dt,.history-source-events dl dt{color:#66736d;font-weight:700}.history-source-events{margin-top:7px}.history-source-events>summary{cursor:pointer;color:#4b5a52;font-size:11px;font-weight:700}.history-source-events ol{display:grid;gap:8px;margin:8px 0 0;padding:0;list-style:none}.history-source-events ol>li{padding:8px;border:1px solid #e1e7e2;border-radius:4px;background:#fff}.record-history .history-source-heading{display:flex;justify-content:space-between;gap:8px;margin-bottom:6px}.history-source-heading strong,.history-source-heading span{font-size:11px}.history-source-events dl{display:grid;grid-template-columns:minmax(82px,auto) minmax(0,1fr);gap:4px 8px;margin:0}@media (max-width: 980px){.table-wrap{max-height:70vh}.workspace,.topbar{display:grid}.side-pane{width:100%;flex-basis:auto}}@media (min-width: 981px){.filters{position:sticky;top:0;z-index:20;box-shadow:0 8px 18px #1f252214}.side-pane{position:sticky;top:calc(var(--filters-sticky-height, 0px) + 16px);max-height:calc(100vh - var(--filters-sticky-height, 0px) - 36px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}}
