.profession-badge{display:inline-flex;flex:none;align-items:center;vertical-align:middle;gap:4px;padding:3px 6px;border-radius:5px;font-size:11px;font-weight:700;line-height:1.4;white-space:nowrap}.staff-with-profession{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;margin-right:8px}.document-editor-page .document-reference-item-heading button,.document-editor-page .monthly-record-copy-row button{background:transparent;box-shadow:none;border:0}.document-editor-page .document-writing-main>.record-accordion{margin-bottom:8px}.document-editor-page .document-writing-main.accordion-stack{gap:0}.document-editor-page .document-writing-main .record-accordion>summary{height:46px;padding-inline:12px}.document-editor-page .document-writing-main .accordion-content{padding:12px}.document-editor-page .document-writing-main .monthly-grid{gap:8px 12px}.document-editor-page .document-writing-main label{margin-block:5px;gap:4px}.document-editor-page .document-writing-main .document-basic-fields.document-basic-display{gap:8px}.document-editor-page .document-writing-main .document-basic-display>label{margin:0}.document-editor-page .document-writing-main .document-basic-profile dl>div{padding-block:5px}.document-editor-page .document-writing-main .document-field label{margin-bottom:4px}.document-editor-page .document-writing-main .document-past-text{margin:2px 0 6px}.monthly-editor .document-field{min-width:0;container-type:inline-size}.document-editor-page .document-writing-main .document-field-actions{display:flex;align-items:center;justify-content:space-between;gap:6px}.document-editor-page .document-writing-main .document-field-actions:empty{display:none}.document-editor-page .document-writing-main .document-field-actions .document-carry-toggle{display:flex;flex-direction:row;align-items:center;gap:4px;margin:0;min-height:44px;white-space:nowrap;font-size:clamp(10px,4cqi,12px);font-weight:400;color:var(--muted)}.document-editor-page .document-field-actions .document-carry-toggle input{width:18px;height:18px;min-height:18px;flex:none;margin:0;padding:0}.document-editor-page .document-writing-main .document-field-actions .document-past-text{margin:0 0 0 auto;flex:none}.document-editor-page .document-field-actions .document-past-text>button{min-height:44px;white-space:nowrap;font-size:clamp(10px,4cqi,12px);padding:7px 6px}.document-editor-page .document-writing-main .plan-overview-grid{gap:10px}.document-editor-page .document-writing-main .plan-item{padding:12px}.document-editor-page .document-writing-main .plan-content-head{margin-bottom:8px}.document-writing-main>.document-section{margin-bottom:12px}.document-editor-page{--document-form-control-height:50px}.document-editor-page .document-writing-main :is(input:not([type=checkbox]):not([type=radio]),select){box-sizing:border-box;display:block;width:100%;min-width:0;height:var(--document-form-control-height);min-height:var(--document-form-control-height);max-height:var(--document-form-control-height);padding:0 13px;border:1px solid var(--border-strong);border-radius:10px;background-color:#fff;color:var(--text);font:inherit;line-height:1.25}.document-editor-page .document-writing-main select{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:42px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6f86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;background-size:16px 16px}.document-editor-page .document-writing-main input:is([type=date],[type=month]){-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-block:0;color-scheme:light}.document-editor-page .document-writing-main input:is([type=date],[type=month])::-webkit-date-and-time-value{display:flex;align-items:center;width:100%;height:100%;min-height:0;margin:0;text-align:left}.document-editor-page .document-writing-main input:is([type=date],[type=month])::-webkit-datetime-edit{display:flex;align-items:center;min-width:0;padding:0}.document-editor-page .document-writing-main input:is([type=date],[type=month])::-webkit-calendar-picker-indicator{flex:none;width:20px;height:20px;margin:0;padding:0}.document-editor-page .document-basic-fields.document-basic-display{display:flex;flex-direction:column;gap:12px}.document-basic-dates{display:flex;flex-wrap:wrap;gap:8px 12px;width:100%}.document-editor-page .document-writing-main .document-basic-dates>label{flex:0 1 280px;width:100%;min-width:0;margin:0}.document-basic-profile{display:flex;flex-direction:column;align-items:stretch;gap:12px;width:100%}.document-basic-profile dl{min-width:0;width:100%;margin:0}.document-basic-profile dl>div{display:grid;grid-template-columns:100px minmax(0,1fr);grid-gap:12px;gap:12px;padding:8px 0;border-bottom:1px solid var(--border);font-size:13px}.document-basic-profile dt{color:var(--muted)}.document-basic-profile dd{margin:0;overflow-wrap:anywhere}.document-basic-profile>button{flex:none;align-self:flex-end}.document-reference-item-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.document-reference-item-heading strong{min-width:0}.document-reference-body .document-reference-item-heading button{flex:none;display:grid;place-items:center;width:32px;height:32px;padding:0;margin:0}.monthly-record-copy-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:54px;border-bottom:1px solid var(--border)}.monthly-record-copy-row button{flex:none;display:grid;place-items:center;width:40px;height:40px;color:var(--accent);background:var(--accent-soft);border-radius:7px}.monthly-record-copy-row button:disabled{opacity:.35;cursor:not-allowed}.monthly-record-copy textarea{width:100%;margin-top:12px}.document-editor-page .document-body-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px}.document-editor-page .document-body-title h1{flex:none;margin:0;font-size:22px}.document-editor-page .document-body-title>span{color:var(--muted);font-size:14px}.document-editor-page .document-writing-main>section:first-child{margin-top:0}.document-editor-page .document-writing-main>.record-accordion{flex:none}.document-editor-page .plan-overview-grid>.plan-goal{width:100%}@media(max-width:1199px){.document-editor-page .record-editor-layout.document-writing-layout{grid-template-columns:minmax(0,1fr)}}.document-editor-page .document-basic-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;grid-gap:12px 20px;gap:12px 20px}.document-basic-month{grid-column:1;grid-row:1;max-width:280px}.document-basic-address{grid-column:1;grid-row:2}.document-basic-care{grid-column:2;grid-row:2;max-width:280px}.document-basic-created{grid-column:1;grid-row:3;max-width:280px}.document-reference-back{flex:none;align-self:flex-start;padding:8px 0;margin-bottom:12px;background:transparent;color:var(--accent);font-size:12px}.document-record-reference>.document-reference-menu{margin-top:14px}@media(max-width:600px){.document-editor-page .document-basic-fields{grid-template-columns:minmax(0,1fr)}.document-basic-fields>label{grid-column:1;grid-row:auto;max-width:none}.document-editor-page .document-writing-main :is(input:not([type=checkbox]):not([type=radio]),select){font-size:16px}}.document-basic-fields label,.document-birth-label{display:flex;flex-direction:column;gap:6px;margin:10px 0;font-size:13px}.document-basic-fields input,.document-basic-fields select{width:100%;min-width:0;padding:10px;background:white;color:var(--ink);border:1px solid var(--border-strong);border-radius:8px}.document-birth-label strong{display:flex;align-items:center;min-height:40px;font-weight:500}.document-past-text{display:block;text-align:right;margin:4px 0 12px}.document-past-text>button{color:var(--accent);background:var(--accent-soft);font-size:12px;padding:7px 10px;border-radius:6px}.document-past-dialog{text-align:left}.document-past-results{max-height:55dvh;overflow:auto}.document-past-results article{border-top:1px solid var(--border);padding:12px 0}.document-past-results p{white-space:pre-wrap;overflow-wrap:anywhere}.document-reference-menu{display:flex;flex-direction:column;border-left:2px solid var(--border-strong);padding-left:8px;gap:4px;margin-bottom:14px}.document-reference-menu button{text-align:left;padding:8px;background:transparent;border-radius:6px;color:var(--muted)}.document-reference-menu button[aria-pressed=true]{background:var(--accent-soft);color:var(--accent-strong);font-weight:700}.document-reference-scroll{flex:1 1;min-height:0;overflow:auto;overscroll-behavior:none;margin-top:12px}@media(min-width:1200px){.page-scroll:has(.document-editor-page){overflow:hidden;padding-bottom:0}.page-content.document-editor-page{height:100%;display:flex;flex-direction:column;padding-bottom:14px}.document-editor-page>.document-body-title,.document-editor-page>.patient-workspace-top,.document-editor-page>[role=alert]{flex:none}.document-editor-page .document-writing-layout,.document-editor-page .record-editor-layout.document-writing-layout{flex:1 1;min-height:0;align-items:stretch;margin:0}.document-editor-page .document-writing-main{min-height:0;overflow:auto;overscroll-behavior:none;padding-right:2px}.document-editor-page .document-record-reference{position:static;display:flex;flex-direction:column;min-height:0;height:100%;max-height:none;overflow:hidden}.document-editor-page .document-record-reference>h2,.document-editor-page .document-reference-menu{flex:none}}.page-scroll:has(.patient-directory-index){overflow:hidden;padding-bottom:0}.page-content.patient-directory-index{height:100%;display:flex;flex-direction:column;padding-block:12px}.patient-directory>.patient-directory-heading{flex:none;display:flex;flex-wrap:nowrap;justify-content:space-between;min-height:40px;margin:0;gap:12px}.patient-directory-heading .patient-scope-switch{margin:0;flex:none}.patient-directory-heading .patient-scope-switch a{padding:6px 10px;font-size:12px}.patient-directory>.patient-directory-heading h1{flex:initial;margin:0;font-size:22px}.patient-directory-toolbar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:6px 0 10px}.patient-directory .patient-directory-toolbar label{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0;white-space:nowrap}.patient-directory-toolbar input{width:min(360px,40vw);height:38px}.patient-directory-scroll{flex:1 1;min-height:0;overflow:auto;overscroll-behavior:none;background:white;border:1px solid var(--border)}.patient-directory-scroll table{width:100%;min-width:440px;border-spacing:0;font-size:13px}.patient-directory-scroll th{position:-webkit-sticky;position:sticky;top:0;z-index:1;background:#f2f6fc;text-align:left;padding:12px 16px;border-bottom:1px solid var(--border)}.patient-directory-scroll .patient-directory-row{display:table-row}.patient-directory-scroll td{padding:8px 16px;border-bottom:1px solid var(--border)}.patient-directory-scroll td:first-child{width:45%}.patient-directory-scroll td button{display:block;text-align:left;min-height:44px;padding:0;background:transparent}.staff-directory .patient-directory-scroll td button{padding:0 14px;background:white}.staff-directory .patient-directory-scroll td{height:61px}.patient-directory-scroll td a{display:inline-flex;align-items:center;min-height:44px;color:var(--accent)}@media(max-width:767px){.page-content.patient-directory-index{padding-bottom:calc(76px + env(safe-area-inset-bottom))}.patient-directory>.patient-directory-heading h1{flex:initial;margin:0;font-size:20px}.patient-directory-toolbar{flex-wrap:wrap;gap:8px}.patient-directory .patient-directory-toolbar label{flex:1 1;min-width:200px}.patient-directory-toolbar input{width:100%;min-width:0;height:44px}.patient-directory-toolbar>button{margin-left:auto}.patient-directory-scroll td,.patient-directory-scroll th{padding-inline:10px}}.page-scroll:has(.documents-global-page){overflow:hidden;padding-bottom:0}.page-content.documents-global-page{height:100%;display:flex;flex-direction:column;padding-top:12px;padding-bottom:12px}.documents-global-page .document-global-heading{flex:none;min-height:40px}.documents-global-page .document-global-heading h1{margin:0;line-height:1.35}.documents-global-page .document-toolbar{flex:none;margin:6px 0 10px;gap:8px}.documents-global-page .documents-pending{margin-left:auto;white-space:nowrap}.documents-global-page .documents-pending input{width:18px;height:18px;margin:0}.documents-global-page .documents-table{flex:1 1;min-height:0;overflow:auto;overscroll-behavior:none;margin:0;border:1px solid var(--border);background:white}.documents-global-page .documents-table table{border:0;border-collapse:separate;border-spacing:0}.documents-global-page .documents-table :is(th,td){border-width:0 1px 1px 0}.documents-global-page .documents-table thead th{position:-webkit-sticky;position:sticky;top:0;z-index:2;box-shadow:0 1px 0 var(--border)}.documents-global-page .documents-table tbody th{position:-webkit-sticky;position:sticky;left:0;z-index:1;background:#f2f6fc;background-clip:padding-box;box-shadow:1px 0 0 var(--border);isolation:isolate}.documents-global-page .documents-table thead th:first-child{left:0;z-index:3;background:#f2f6fc;background-clip:padding-box;box-shadow:1px 0 0 var(--border)}@media(min-width:768px){.documents-global-page .document-toolbar .secondary-button{min-height:38px;padding:6px 12px}.documents-global-page .document-toolbar input[type=month]{height:38px;padding-block:4px}}@media(max-width:767px){.page-content.documents-global-page{padding-bottom:calc(76px + env(safe-area-inset-bottom))}.documents-global-page .document-global-heading h1{font-size:20px}.documents-global-page .document-toolbar{margin-top:4px}.documents-global-page .documents-pending{margin-left:0}}.page-scroll:has(.document-browser){overflow:hidden;padding-bottom:0}.page-content.documents-page:has(.document-browser){height:100%;display:flex;flex-direction:column;padding-bottom:12px}.documents-page:has(.document-browser)>.patient-workspace-top{flex:none}.documents-page .document-browser{flex:1 1;min-height:0}.document-browser .document-types{min-height:0;overflow:auto;overscroll-behavior:none}.document-browser .document-history{display:flex;flex-direction:column;min-height:0}.document-browser .document-history>h2{flex:none}.document-browser .document-history-scroll{flex:1 1;min-height:0;max-height:none;overscroll-behavior:none}@media(max-width:767px){.page-content.documents-page:has(.document-browser){padding-bottom:calc(76px + env(safe-area-inset-bottom))}}.page-scroll:has(.record-history-layout){overflow:hidden;padding-bottom:0}.page-content.records-page:has(.record-history-layout){height:100%;display:flex;flex-direction:column;padding-bottom:12px}.records-page:has(.record-history-layout)>.patient-workspace-top{flex:none}.records-page .record-history-layout{flex:1 1;min-height:0}.records-page .record-history-scroll{min-height:0;height:100%;max-height:none;overscroll-behavior:none}.records-page .record-type-sidebar{max-height:100%;overflow:auto}@media(max-width:767px){.page-content.records-page:has(.record-history-layout){padding-bottom:calc(76px + env(safe-area-inset-bottom))}}.document-create-action{display:flex;gap:8px}.patient-workspace-top:has(.document-editor-actions) .patient-context-head{grid-column:1}.document-editor-actions{grid-column:2;grid-row:1;align-self:end;justify-self:end;display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}.document-editor-actions .primary-button,.document-editor-actions .secondary-button{min-height:36px;padding:6px 11px;white-space:nowrap;font-size:12px}.document-body-title{margin:0 0 8px}.document-body-title h1{margin:0}@media(max-width:899px){.patient-workspace-top:has(.document-editor-actions) .patient-context-head{grid-column:1/-1}.document-editor-actions{grid-column:1/-1;grid-row:auto;width:100%}}@media(max-width:767px){.document-editor-actions{justify-content:flex-end;gap:4px;overflow-x:auto;margin:0 0 8px;scrollbar-width:none}.document-editor-actions::-webkit-scrollbar{display:none}.document-editor-actions .primary-button,.document-editor-actions .secondary-button{flex:none;min-height:44px;padding-inline:9px;font-size:11px}}.document-history-scroll{max-height:calc(100dvh - var(--workspace-header-height,140px) - 260px);min-height:100px}.document-history th{position:-webkit-sticky;position:sticky;top:0;z-index:1}.document-settings input[type=month]{padding:10px;border:1px solid var(--border);border-radius:8px}@media(min-width:1200px) and (max-width:1450px){.documents-page .document-create-action{position:absolute;top:0;right:0}.document-create-action button{min-height:28px;padding:2px 10px;font-size:11px}}@media(max-width:767px){.document-create-action{gap:4px}.document-history-scroll{max-height:calc(100dvh - 340px)}}.dashboard-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:16px;gap:16px;margin:20px 0}.dashboard-documents,.dashboard-links a,.staff-editor{background:white;border:1px solid var(--border);border-radius:12px;padding:20px}.dashboard-links a{color:var(--accent-strong);display:flex;flex-direction:column;gap:10px}.dashboard-links span,.home-dashboard>p{font-size:13px;color:var(--muted)}.dashboard-documents header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.dashboard-documents h2{font-size:18px}.dashboard-documents input,.staff-directory input,.staff-directory select{padding:10px;border:1px solid var(--border-strong);background:white;border-radius:8px;color:var(--ink)}.dashboard-counts{display:grid;grid-template-columns:repeat(3,1fr);grid-gap:12px;gap:12px}.dashboard-counts a{padding:14px;color:var(--accent-strong);background:var(--accent-soft);border-radius:10px;display:flex;gap:12px;align-items:center}.dashboard-counts strong{font-size:26px}.staff-editor{max-width:600px;margin:16px 0}.staff-editor label,.staff-filter{display:flex;flex-direction:column;gap:6px;margin:12px 0}.staff-filter{max-width:600px}.staff-editor>div{display:flex;gap:10px}.staff-directory-list article{display:flex;align-items:center;justify-content:space-between;padding:14px;border-bottom:1px solid var(--border);background:white}.staff-directory-list small{display:block;margin-top:6px;color:var(--muted)}.document-record-reference{display:none}@media(min-width:1200px){.document-writing-layout,.record-editor-layout.document-writing-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;grid-gap:20px;gap:20px;align-items:start}.document-writing-main{min-width:0}.document-record-reference{display:block;position:-webkit-sticky;position:sticky;top:calc(var(--workspace-header-height,130px) + 12px);max-height:calc(100dvh - var(--workspace-header-height,130px) - 170px);overflow:auto;background:white;border:1px solid var(--border);padding:14px;border-radius:12px;font-size:12px}.document-record-reference h2{margin:0;font-size:16px}.document-record-reference details{border-top:1px solid var(--border)}.document-record-reference summary{padding:12px 0;cursor:pointer;font-weight:700}.document-record-reference small{display:block;color:var(--muted);margin-top:5px}.document-reference-body p{white-space:pre-wrap;overflow-wrap:anywhere}.document-reference-body dl>div{display:flex;justify-content:space-between;gap:10px}.document-reference-body dd{margin:0}.document-reference-body button{padding:8px;margin-bottom:12px;border-radius:6px;background:var(--accent-soft);color:var(--accent)}}@media(max-width:767px){.dashboard-links{grid-template-columns:1fr;gap:8px}.dashboard-links a{padding:14px}.dashboard-counts a{flex-direction:column;gap:4px;font-size:12px;padding:10px}.staff-directory input,.staff-directory select{font-size:16px}}.patient-context-name .document-scope{margin-left:auto}.document-scope button{padding:6px 10px;line-height:16px;color:var(--accent-strong);border-radius:7px;font-size:12px;background:transparent;white-space:nowrap}.document-scope button[aria-pressed=true]{background:white;box-shadow:0 1px 3px #1833571f;font-weight:700}.document-global-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.document-global-heading h1{font-size:22px}.document-header-controls{display:flex;align-items:center;gap:12px;margin-left:auto;flex:none}.patient-context-name .document-header-controls .document-scope{margin:0}.document-create-action button{min-height:32px;padding:4px 12px}.document-browser{display:grid;grid-template-columns:190px minmax(0,1fr);grid-gap:16px;gap:16px;transition:grid-template-columns .2s ease}.document-browser.types-collapsed{grid-template-columns:42px minmax(0,1fr)}.document-type-sidebar{min-width:0}.document-type-collapse{width:100%;min-height:38px;display:flex;align-items:center;justify-content:flex-start;gap:5px;padding:7px 10px;margin-bottom:4px;border-radius:8px;color:var(--accent-strong);background:var(--surface-2);font-size:11px}.document-browser.types-collapsed .document-type-collapse{height:42px;justify-content:center;padding:0}.document-browser.types-collapsed .document-type-collapse span,.document-browser.types-collapsed .document-types{display:none}.document-types{display:flex;flex-direction:column;gap:4px}.document-types button{min-height:48px;padding:12px;text-align:left;color:var(--ink);background:transparent;border-bottom:1px solid var(--border)}.document-types button[aria-current=page]{background:var(--accent-soft);color:var(--accent-strong);border-radius:8px;font-weight:700}.document-types small{display:block;font-size:11px;margin-top:5px;color:var(--muted)}.document-history{min-width:0}.document-history>.document-type-mobile-trigger{display:none}.document-history-scroll{overflow:auto;background:white;border:1px solid var(--border);border-radius:12px}.document-history table{width:100%;min-width:530px;border-collapse:collapse;font-size:13px}.document-history td,.document-history th{text-align:left;padding:12px;border-bottom:1px solid var(--border)}.document-history th{background:var(--surface-2);color:var(--muted);font-size:12px}.document-history td button{padding:10px;background:var(--accent-soft);color:var(--accent);border-radius:8px}.document-settings-actions{display:flex;justify-content:flex-end;gap:8px}@media(min-width:768px) and (max-width:1199px){.documents-page .document-create-action{position:absolute;top:0;right:0}.document-create-action button{min-height:28px;padding:2px 10px;font-size:11px}}@media(max-width:1199px){.document-browser,.document-browser.types-collapsed{display:flex;flex-direction:column}.document-type-sidebar{display:none}.document-history{flex:1 1;min-height:0}.document-history>.document-type-mobile-trigger{width:100%;min-height:48px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;grid-gap:10px;gap:10px;padding:8px 12px;text-align:left}.document-type-mobile-trigger span{color:var(--muted);font-size:11px}.document-type-mobile-trigger strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--accent-strong);font-size:13px}.document-type-mobile-trigger svg{justify-self:end}.document-history>h2{margin:12px 0 8px}.document-type-dialog{width:min(520px,calc(100% - 24px))}.document-type-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}.document-type-dialog header h2{margin:0}.document-type-dialog header button{width:44px;height:44px;color:var(--muted);background:transparent;font-size:24px}.document-type-dialog-list{display:grid;grid-gap:6px;gap:6px;margin:16px 0}.document-type-dialog-list button{min-height:48px;padding:10px 12px;border:1px solid var(--border);border-radius:9px;background:white;color:var(--ink);text-align:left}.document-type-dialog-list button[aria-current=page]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-strong);font-weight:700}.document-type-dialog-close{width:100%;min-height:46px}}@media(max-width:767px){.document-scope button{font-size:10px;padding:6px 5px}.documents-page .patient-workspace-top:has(.document-create-action) .breadcrumb{min-height:44px}.documents-page .document-create-action{position:absolute;top:10px;right:0}.patient-context-name:has(.document-header-controls)>span{margin-left:0;padding-left:0}.document-create-action button{min-height:44px;font-size:12px}}.patient-workspace-top:has(.history-header-actions) .patient-context-head{grid-column:1}.history-header-actions{align-self:end;justify-self:end}.history-header-actions .secondary-button{min-height:36px;padding:8px 12px}@media(max-width:767px){.history-header-actions{position:absolute;top:10px;right:0}.history-header-actions .secondary-button{min-height:44px;padding:8px 10px;font-size:12px}.patient-workspace-top:has(.history-header-actions) .breadcrumb{padding-right:130px}}.record-history-layout{display:grid;grid-template-columns:42px minmax(0,1fr);grid-gap:12px;gap:12px;transition:grid-template-columns .32s cubic-bezier(.2,.8,.2,1)}.record-history-layout.menu-open{grid-template-columns:130px minmax(0,1fr)}.record-history-main{min-width:0;min-height:0;height:100%;display:flex;flex-direction:column;gap:8px}.record-type-mobile-trigger{display:none}.record-type-sidebar{align-self:start;overflow:hidden}.record-type-sidebar nav{opacity:0;transform:translateX(-8px);pointer-events:none;transition:opacity .2s ease,transform .32s cubic-bezier(.2,.8,.2,1)}.record-history-layout.menu-open .record-type-sidebar nav{opacity:1;transform:none;pointer-events:auto}.record-type-toggle{display:flex;align-items:center;justify-content:center;gap:5px;min-height:40px;font-size:12px}.record-type-sidebar nav button,.record-type-toggle{width:100%;background:transparent;color:var(--muted)}.record-type-sidebar nav button{min-height:44px;padding:10px;text-align:left;border-radius:8px}.record-type-sidebar nav button[aria-current]{color:var(--accent-strong);background:var(--accent-soft);font-weight:700}.record-type-sidebar nav button:disabled{opacity:.6;cursor:default}.record-type-sidebar nav small{display:block;font-size:10px;margin-top:3px}.record-history-scroll{min-width:0;overflow:auto;max-height:max(180px,calc(100dvh - var(--workspace-header-height,140px) - 110px));border:1px solid var(--border);border-radius:12px;background:white}.record-history-table{width:100%;min-width:460px;border-collapse:collapse;font-size:13px}.record-history-table td,.record-history-table th{padding:12px 16px;text-align:left;border-bottom:1px solid var(--border)}.record-history-table th{position:-webkit-sticky;position:sticky;top:0;z-index:1;color:var(--muted);background:var(--surface-2);font-size:12px;font-weight:600;box-shadow:0 1px 0 var(--border)}.record-history-table tr:last-child td{border-bottom:0}.record-history-table th:first-child{width:120px}.record-history-table td:last-child{white-space:nowrap}.record-history-table td button{min-height:40px;white-space:nowrap;padding:8px 12px;border-radius:8px;background:var(--accent-soft);color:var(--accent)}.patient-directory .patient-basic-fields{gap:8px}.patient-directory .patient-basic-fields>.birth-date-input,.patient-directory .patient-basic-fields>label{margin:0;gap:4px}.patient-directory .patient-basic-fields input{min-height:38px;padding:8px 10px}.patient-directory .patient-basic-fields select{min-height:40px;padding:8px 10px}.patient-directory .birth-date-input output{margin-top:4px}@media(max-width:767px){.record-history-layout,.record-history-layout.menu-open{display:block}.record-type-sidebar{display:none}.record-type-mobile-trigger{width:100%;min-height:48px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;grid-gap:10px;gap:10px;padding:8px 12px;text-align:left}.record-type-mobile-trigger span{color:var(--muted);font-size:11px}.record-type-mobile-trigger strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--accent-strong);font-size:13px}.record-type-mobile-trigger svg{justify-self:end}.record-history-scroll{max-height:max(180px,calc(100dvh - var(--workspace-header-height,140px) - 150px))}.record-history-table td,.record-history-table th{padding:10px}.patient-directory .patient-basic-fields input,.patient-directory .patient-basic-fields select,.record-history-table td button{min-height:44px}.record-type-dialog{width:min(520px,calc(100% - 24px))}.record-type-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}.record-type-dialog header h2{margin:0}.record-type-dialog header button{width:44px;height:44px;color:var(--muted);background:transparent}.record-type-dialog-list{display:grid;grid-gap:6px;gap:6px;margin:16px 0}.record-type-dialog-list button{min-height:48px;padding:10px 12px;border:1px solid var(--border);border-radius:9px;background:white;color:var(--ink);text-align:left}.record-type-dialog-list button[aria-current=page]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-strong);font-weight:700}.record-type-dialog-list button:disabled{opacity:.55}.record-type-dialog-list small{display:block;margin-top:3px}.record-type-dialog-close{width:100%;min-height:46px}}@media(min-width:768px) and (max-width:1199px){.record-history-layout,.record-history-layout.menu-open{display:block}.record-type-sidebar{display:none}.record-type-mobile-trigger{width:100%;min-height:48px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;grid-gap:10px;gap:10px;padding:8px 12px;text-align:left}.record-type-mobile-trigger span{color:var(--muted);font-size:11px}.record-type-mobile-trigger strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--accent-strong);font-size:13px}.record-type-mobile-trigger svg{justify-self:end}.record-history-scroll{max-height:max(180px,calc(100dvh - var(--workspace-header-height,140px) - 150px))}.record-type-dialog{width:min(520px,calc(100% - 24px))}.record-type-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px}.record-type-dialog header h2{margin:0}.record-type-dialog header button{width:44px;height:44px;color:var(--muted);background:transparent}.record-type-dialog-list{display:grid;grid-gap:6px;gap:6px;margin:16px 0}.record-type-dialog-list button{min-height:48px;padding:10px 12px;border:1px solid var(--border);border-radius:9px;background:white;color:var(--ink);text-align:left}.record-type-dialog-list button[aria-current=page]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-strong);font-weight:700}.record-type-dialog-list button:disabled{opacity:.55}.record-type-dialog-list small{display:block;margin-top:3px}.record-type-dialog-close{width:100%;min-height:46px}}.patient-context-name .patient-scope-switch{margin:0 0 0 auto;flex:none;gap:2px;padding:2px}.patient-context-name .patient-scope-switch a{padding:6px 10px;font-size:12px;line-height:16px}.patient-basic-accordion{background:white;border:1px solid var(--border);border-radius:12px;overflow:hidden}.patient-basic-accordion>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;padding:16px 18px;min-height:56px;cursor:pointer;font-size:14px}.patient-basic-accordion>summary::-webkit-details-marker{display:none}.patient-basic-accordion>summary svg{transform:rotate(90deg)}.patient-basic-accordion[open]>summary{border-bottom:1px solid var(--border)}.patient-basic-accordion[open]>summary svg{transform:rotate(-90deg)}.patient-basic-content{padding:16px 18px}.patient-basic-readonly{display:grid;grid-template-columns:minmax(0,720px) minmax(150px,1fr);align-items:start;grid-gap:20px;gap:20px}.patient-basic-actions{display:flex;justify-content:flex-end}.patient-directory .patient-basic-content section{padding:0;margin:0;border:0;box-shadow:none}.patient-basic-content form h2{display:none}@media(max-width:767px){.patient-context-name .patient-scope-switch a{padding:6px 5px;font-size:10px}.patient-context-name:has(.patient-scope-switch)>span{padding-left:0;margin-left:0}.patient-basic-content{padding:12px}.patient-basic-readonly{display:flex;flex-direction:column;gap:8px}.patient-basic-actions{align-self:flex-end;order:-1}}:root{--bg:#f5f7fb;--surface-2:#f7f9fc;--border:#dfe7f2;--border-strong:#bdcce0;--accent-soft:#eaf2ff;--ui-radius:10px;--ui-panel-radius:14px;--shadow:0 2px 8px rgb(24 51 87/3%)}.sidebar{background:linear-gradient(180deg,#205db8,#194b96);padding-top:20px}.sidebar .brand{padding-bottom:20px}.sidebar .brand-mark{box-shadow:none;border-radius:var(--ui-radius)}.sidebar .facility-card{border-radius:var(--ui-panel-radius);padding:12px;margin-bottom:20px}.sidebar .nav-list{gap:6px}.sidebar .nav-item{min-height:46px;padding:10px 12px;border-radius:var(--ui-radius);font-size:14px;font-weight:650}.sidebar .nav-item.active{background:var(--accent-soft);color:#174fa8;box-shadow:none}.sidebar .nav-item svg{flex:none}.topbar{position:relative;z-index:40;border-color:var(--border);box-shadow:none}.global-search-control{border:1px solid transparent;border-radius:var(--ui-radius)}.global-search-control:focus-within{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.patient-context-head{padding-bottom:12px}.patient-context-name h1{font-size:23px;letter-spacing:.01em}.patient-context-name>button{width:32px;height:32px;border-radius:var(--ui-radius)}.patient-tabs{height:54px;padding:4px;gap:4px;border:1px solid var(--border);border-radius:var(--ui-panel-radius);background:var(--surface)}.patient-tabs>div{gap:4px;overflow-x:auto;scrollbar-width:none;scroll-behavior:smooth}.patient-tabs>div::-webkit-scrollbar{display:none}.patient-tabs button{min-height:44px;border:0;border-radius:var(--ui-radius);padding:0 18px;background:transparent;font-size:13px;font-weight:650}.patient-tabs button.active{background:var(--accent-soft);color:var(--accent-strong);box-shadow:none;font-weight:750}.patient-tabs button:hover:not(.active){background:var(--surface-2);color:var(--accent)}.patient-tabs .tabs-next{width:36px;min-width:36px;background:var(--surface-2)}.page-content:has(>.patient-workspace-top){padding-bottom:0}.patient-workspace-top{position:-webkit-sticky;position:sticky;top:0;z-index:25;padding:14px 0 12px;background:var(--bg);box-shadow:0 1px 0 var(--border);margin-bottom:12px}.patient-workspace-top .patient-tabs{position:static;flex-shrink:0;margin-bottom:0;box-shadow:none}.record-list-actions{margin:0 0 12px}.page-content:has(.patient-tabs) .record-accordion{scroll-margin-top:12px}.page-heading h1{font-size:25px;letter-spacing:0}.document-kind-list article,.panel,.record-accordion,.records-index,.transfer-card{border-radius:var(--ui-panel-radius);border-color:var(--border);box-shadow:var(--shadow)}.new-record-button,.primary-button,.secondary-button{border-radius:var(--ui-radius);font-size:13px;font-weight:700;box-shadow:none}.new-record-button,.secondary-button{border-color:var(--border-strong);background:white;color:var(--accent-strong)}.new-record-button:hover,.secondary-button:hover:not(:disabled){background:var(--accent-soft);border-color:var(--accent)}.field-stack textarea,.form-input,.transfer-card textarea,select{border-radius:var(--ui-radius)}.form-input:focus,select:focus,textarea:focus{box-shadow:inset 0 0 0 1px var(--accent)}.field-label{color:#425672}.page-content .document-toolbar>div,.page-content .record-view-switch,.page-content .schedule-scope>div[role=group],.page-content .schedule-view-switch{background:#e9eef6;border-radius:var(--ui-radius);padding:3px;gap:3px}.page-content :is(.document-toolbar,.record-view-switch,.schedule-view-switch,.schedule-scope) button[aria-pressed]{border-radius:7px;font-weight:650}.page-content :is(.document-toolbar,.record-view-switch,.schedule-view-switch,.schedule-scope) button[aria-pressed=true]{background:white;color:var(--accent-strong);box-shadow:0 1px 3px rgb(24 51 87/12%)}.prompt-card{background:var(--accent-soft);border-color:var(--border);border-radius:var(--ui-panel-radius)}.sticky-actions{background:var(--navy)}a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.sidebar a:focus-visible{outline-color:white}.patient-tabs button:focus-visible{outline-offset:-3px}@media (max-width:767px){.patient-context-name{flex-wrap:nowrap;gap:5px}.patient-context-name h1{font-size:18px;margin-right:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.patient-context-name>span{flex:none;width:auto;margin:0 0 0 auto;font-size:10px;white-space:nowrap}.patient-context-name>button{width:28px;height:32px}.patient-context-head{gap:8px;padding-bottom:10px}.patient-context-head>div{min-width:0;width:100%}.record-title-row{padding-block:10px;gap:8px}.record-title-row h1{font-size:19px}.record-title-row .eyebrow{font-size:10px}.patient-tabs{margin-inline:0}.patient-tabs button{padding-inline:14px;font-size:12px}.bottom-nav{padding-inline:4px;gap:2px}.bottom-nav a{margin-block:5px;border-radius:var(--ui-radius)}.bottom-nav a.active{background:var(--accent-soft);color:var(--accent-strong)}.page-heading h1{font-size:22px}.document-kind-list article>div{flex-wrap:wrap;gap:8px 12px}}@media (prefers-reduced-motion:reduce){.patient-tabs>div{scroll-behavior:auto}}@media print{.patient-workspace-top{position:static}}.page-content:has(>.patient-workspace-top){width:calc(100% - 28px);max-width:1540px;margin-inline:auto;padding-inline:0;padding-top:0}.page-content.records-page.editing{padding-bottom:88px}.record-keypad-open .page-content.records-page.editing{padding-bottom:calc(clamp(300px,34dvh,380px) + 20px)}.page-content.documents-page,.page-content.patient-directory{width:calc(100% - 28px);max-width:1540px;margin-inline:auto;padding-inline:0}.patient-scope-switch{display:flex;width:max-content;max-width:100%;gap:3px;padding:3px;margin:14px 0;border-radius:10px;background:#e9eef6}.patient-scope-switch a{padding:10px 16px;border-radius:7px;color:var(--accent-strong);font-size:13px;font-weight:650}.patient-scope-switch a[aria-current=page]{background:white;box-shadow:0 1px 3px #1833571f}.patient-profile-details dl{margin:0;max-width:720px}.patient-profile-details dl>div{display:grid;grid-template-columns:120px minmax(0,1fr);grid-gap:16px;gap:16px;padding:14px 0;border-bottom:1px solid var(--border)}.patient-profile-details dl>div:last-child{border-bottom:0}.patient-profile-details dt{color:var(--muted);font-size:13px}.patient-profile-details dd{margin:0;overflow-wrap:anywhere}.patient-profile-details .patient-profile-id-row{grid-template-columns:120px minmax(0,1fr) auto;align-items:center}.patient-basic-edit{display:inline-flex;align-items:center;gap:7px;min-height:40px}.patient-workspace-top:has(.record-edit-context) .patient-context-head{grid-column:1}.record-edit-context{display:flex;align-items:center;gap:10px;align-self:end;color:var(--muted);font-size:12px}.record-edit-context button{display:flex;align-items:center;gap:3px;min-height:36px;padding:0 8px;color:var(--accent);border:1px solid var(--border);border-radius:8px;background:white}.record-editor-layout .record-section-nav{position:-webkit-sticky;position:sticky;top:calc(var(--workspace-header-height,150px) + 12px);align-self:start;max-height:calc(100dvh - var(--workspace-header-height,150px) - 170px);overflow-y:auto}@media(max-width:767px){.patient-workspace-top:has(.record-edit-context) .breadcrumb{display:flex;align-items:center;min-height:44px;padding-right:160px}.record-edit-context{position:absolute;top:10px;right:0;gap:6px;font-size:11px}.patient-profile-details dl>div{grid-template-columns:112px minmax(0,1fr);gap:10px}.patient-profile-details dt{white-space:nowrap}.patient-profile-details .patient-profile-id-row{grid-template-columns:112px minmax(0,1fr) 40px}.patient-basic-edit{width:40px;min-width:40px;height:40px;min-height:40px;padding:0;justify-content:center}.patient-basic-edit>span{display:none}}.patient-workspace-top{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-column-gap:16px;column-gap:16px;grid-row-gap:10px;row-gap:10px;padding-block:12px}.patient-workspace-top .patient-context-head{padding:0;min-width:0;grid-column:1/-1}.patient-workspace-top:has(.record-list-actions) .patient-context-head{grid-column:1}.patient-workspace-top .patient-context-head>div{width:100%;min-width:0}.patient-workspace-top .patient-context-name{margin-top:8px}.patient-workspace-top .patient-context-name h1{margin:0 8px 0 0;font-size:23px}.patient-workspace-top .patient-tabs{grid-column:1/-1}.patient-workspace-top .record-list-actions{align-self:center;margin:0}.patient-context-name{min-width:0}.patient-workspace-top .patient-context-name h1{flex:0 1 auto;line-height:1.35}.patient-context-identity{min-width:0;display:flex;align-items:baseline;gap:10px}.patient-context-identity h1{min-width:0}.patient-context-identity>span{flex:none;color:var(--muted);font-size:12px;white-space:nowrap;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.patient-tabs>div{flex:1 1}.patient-tabs .tabs-next{display:none}.page-heading{margin-bottom:20px;gap:16px;align-items:center}.page-heading h1{margin:0 0 6px;line-height:1.4}.page-heading p{font-size:13px;line-height:1.65}.history-heading h1,.monthly-editor>header h1,.transfer-top h1{font-size:22px;line-height:1.4}.document-toolbar{gap:12px;margin:16px 0}.document-kind-list{gap:10px;margin:16px 0}.document-kind-list article{padding:14px 16px;gap:16px}.document-kind-list article>div{gap:14px;min-width:0}.document-kind-list h2{font-size:15px;line-height:1.6}.document-status{flex:none;white-space:nowrap}.document-kind-list article>.primary-button{min-width:92px}.document-note{line-height:1.7}.history-filters,.transfer-filters{padding:12px;border:1px solid var(--border);border-radius:var(--ui-panel-radius);background:white}.history-heading p{margin-block:5px}.transfer-columns{gap:14px}.transfer-output,.transfer-source{border-radius:var(--ui-panel-radius)}.patient-directory>header{margin-block:16px;gap:8px}.patient-directory>header h1{margin-block:0}.patient-directory-row{min-height:64px;padding:10px 12px;background:white}.patient-directory-row:first-of-type{border-radius:var(--ui-panel-radius) var(--ui-panel-radius) 0 0}.record-list-actions .new-record-button{min-height:44px}.compact-record-row>button{min-height:40px}@media (max-width:1199px){.patient-workspace-top{column-gap:10px}.patient-workspace-top:has(.patient-header-actions){row-gap:8px}.patient-header-actions{justify-content:flex-end}.patient-context-identity{align-items:flex-start;flex-direction:column;gap:1px}.patient-context-identity>span{font-size:11px}.patient-workspace-top .patient-context-name{align-items:center}.patient-header-actions .patient-scope-switch{order:-1}.document-header-controls{width:100%;justify-content:flex-end}}@media (max-width:767px){.page-content:has(>.patient-workspace-top){width:calc(100% - 22px);max-width:none}.page-content.documents-page,.page-content.patient-directory{width:calc(100% - 22px);max-width:none}.page-content.records-page.editing{padding-bottom:82px}.record-keypad-open .page-content.records-page.editing{padding-bottom:calc(clamp(290px,38dvh,330px) + 20px)}.patient-workspace-top .breadcrumb{display:flex;align-items:center;min-height:44px}.patient-workspace-top .patient-context-name{margin-top:6px}.patient-workspace-top .patient-context-name h1{font-size:18px;margin-right:0}.patient-workspace-top{display:block;padding-block:10px}.patient-workspace-top:has(.patient-header-actions){display:grid;grid-template-columns:minmax(0,1fr);grid-row-gap:8px;row-gap:8px}.patient-workspace-top .patient-context-head{margin-bottom:10px}.patient-workspace-top:has(.record-list-actions) .breadcrumb{display:flex;align-items:center;min-height:44px;padding-right:155px}.patient-workspace-top:has(.record-list-actions) .record-list-actions{position:absolute;top:10px;right:0}.patient-context-name{margin-top:6px}.patient-context-identity>span{font-size:10px}.record-list-actions .new-record-button{padding-inline:10px;font-size:12px}.patient-tabs>div{width:100%;gap:2px}.patient-tabs button{flex:1 0 auto;padding-inline:7px;font-size:11px;white-space:nowrap}.page-heading{flex-direction:row;align-items:flex-start;flex-wrap:wrap;gap:10px;margin-bottom:16px}.history-heading h1,.monthly-editor>header h1,.page-heading h1,.transfer-top h1{font-size:20px}.document-toolbar{gap:10px}.document-toolbar>div[role=group]{width:100%}.document-toolbar>div[role=group] button{flex:1 1;min-height:40px}.document-kind-list article{display:grid;grid-template-columns:1fr auto;grid-gap:8px;gap:8px;padding:12px}.document-kind-list article>div{grid-column:1/-1;display:flex;justify-content:space-between;gap:8px}.document-kind-list article>label{align-self:center}.document-kind-list article>button{justify-self:end}.history-heading{flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px}.history-heading>div{flex:1 1;min-width:160px}.history-heading .secondary-button{padding-inline:10px;font-size:12px}.history-filters,.transfer-filters{padding:10px;gap:8px}.patient-directory>header h1{flex-basis:100%;margin-bottom:4px}.patient-directory>header button{flex:1 1;padding-inline:10px;font-size:12px}}.patient-directory-scroll .patient-remove-cell{width:44px;padding:0 0 0 16px}.patient-directory-scroll .patient-remove-cell input{width:20px;height:20px;margin:0}.patient-directory-scroll .is-remove-mode td:first-child{width:auto}.patient-directory-scroll .is-remove-mode td.patient-remove-cell{width:44px}.patient-remove-actions .danger-button{min-height:38px;padding:0 16px;border:1px solid #a61e2f;border-radius:10px;background:#c9283a;color:#fff;font-weight:800}.patient-remove-actions .danger-button:disabled{border-color:#e3b4ba;background:#eecfd3;color:#fff}@media (max-width:600px){.patient-remove-actions .danger-button{min-height:44px}}.page-content.patient-directory-index .patient-directory-plain{display:flex;flex-direction:column;flex:1 1;min-height:0}.patient-remove-bar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 2px 4px}.patient-remove-bar.is-active{justify-content:space-between;padding:10px 14px;margin-top:8px;border:1px solid #e3b4ba;border-radius:12px;background:#fdf3f4}.patient-remove-bar .patient-remove-start{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 8px;border:0;background:transparent;color:#6b778c;font-size:13px;font-weight:600}.patient-remove-bar .patient-remove-start:hover:not(:disabled){color:#1f4f9c}.patient-remove-bar .patient-remove-start:last-child:hover:not(:disabled){color:#c9283a}.patient-remove-bar>span{font-size:13px;color:#7a2530;font-weight:600}.patient-remove-bar .patient-remove-actions{display:flex;gap:8px}@media (max-width:600px){.patient-remove-bar.is-active{flex-direction:column;align-items:stretch;gap:8px}.patient-remove-bar .patient-remove-actions{justify-content:flex-end}.patient-remove-bar .danger-button,.patient-remove-bar .patient-remove-start{min-height:44px}}.patient-mode-starts{display:flex;gap:4px}.patient-remove-bar.is-hide{border-color:#bcd0f0;background:#f1f6fe}.patient-remove-bar.is-hide>span{color:#1f4f9c}.patient-directory .patient-remove-bar .patient-show-hidden{display:inline-flex;flex-direction:row;align-items:center;gap:8px;min-height:36px;margin:0;padding:0 2px;font-size:13px;color:#44546a;white-space:nowrap;cursor:pointer}.patient-directory .patient-remove-bar .patient-show-hidden input{width:18px;height:18px;margin:0;flex:none}.patient-remove-bar:not(.is-active){flex-wrap:wrap;row-gap:4px}.patient-remove-bar .patient-remove-start{white-space:nowrap}.patient-remove-bar .patient-mode-starts{margin-left:auto}.patient-directory-row.is-hidden-patient td{color:#8895a8;background:#f7f9fc}.patient-hidden-badge{margin-left:8px;padding:1px 8px;border-radius:999px;background:#e3e9f2;color:#5b6b82;font-size:11px;font-style:normal;font-weight:700}@media (max-width:600px){.patient-remove-bar:not(.is-active){row-gap:0;padding-top:6px}.patient-remove-bar .patient-mode-starts{margin-left:0;width:100%;justify-content:space-between}.patient-remove-bar .patient-mode-starts .patient-remove-start{flex:1 1;justify-content:center}}.operator-nonoperator{display:grid;grid-gap:10px;gap:10px;justify-items:start}.operator-facility-links{display:grid;grid-gap:8px;gap:8px;justify-items:start}.operator-facility-links p{margin:0}.operator-facility-links a.primary-button,.operator-facility-links a.secondary-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:10px;text-decoration:none;font-weight:700}.operator-nonoperator>p{margin:0}.document-history-scroll,.record-history-scroll{-webkit-clip-path:inset(0 round 12px);clip-path:inset(0 round 12px)}.primary-staff-patient{background:transparent;color:inherit;padding:8px;width:100%;border-radius:6px;touch-action:pan-y;-webkit-user-select:none;-moz-user-select:none;user-select:none}.primary-staff-patient small{display:block;font-weight:400}.primary-staff-options{max-height:45dvh;overflow:auto;overscroll-behavior:none;margin:12px 0}.primary-staff-dialog{text-align:left;font-weight:400}.primary-staff-dialog:focus{outline:none}.primary-staff-dialog.keyboard-open{position:fixed;inset:auto 0 auto 0;top:var(--primary-staff-viewport-top);max-height:var(--primary-staff-viewport-height);margin:0 auto}.primary-staff-dialog.keyboard-open .primary-staff-options{max-height:max(96px,calc(var(--primary-staff-viewport-height) - 220px))}.primary-staff-dialog>label{display:flex;flex-direction:column;align-items:stretch;gap:6px}.primary-staff-dialog .primary-button{background:var(--accent);color:white}.primary-staff-dialog .primary-staff-options label{display:flex;flex-direction:row;align-items:center;gap:8px;padding:12px 4px;border-bottom:1px solid var(--border)}.primary-staff-options input{width:auto;flex:none}.primary-staff-dialog input[type=search]{width:100%;padding:10px}.patient-basic-primary-staff{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0}.patient-basic-primary-staff>span{font-size:13px}.patient-basic-primary-staff>button{width:100%;min-height:40px;margin:0}.dashboard-owner-scope{display:flex;gap:4px;margin-right:auto}.home-accordion .dashboard-documents header{flex-wrap:wrap;gap:8px}.dashboard-owner-scope button{padding:8px 14px;min-height:44px;border-radius:8px;color:var(--accent-strong);background:var(--surface-2)}.dashboard-owner-scope button[aria-pressed=true]{background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--border-strong);font-weight:700}.schedule-calendar .schedule-staff-head.is-current-staff{background:#edf4ff;box-shadow:inset 0 3px 0 #8bb4eb}.schedule-calendar .schedule-lane.is-current-staff{background-color:#f7faff}.home-accordion{margin:12px 0;border:1px solid var(--border);border-radius:14px;background:white;overflow:hidden}.home-accordion>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:12px 16px;cursor:pointer;list-style:none}.home-accordion>summary::-webkit-details-marker{display:none}.home-accordion>summary h2{margin:0;font-size:15px;line-height:1.5}.home-accordion-detail{margin-left:auto;color:var(--muted);font-size:12px;text-align:right;white-space:nowrap}.home-accordion-chevron{flex:none;transform:rotate(90deg)}.home-accordion[open]>summary{border-bottom:1px solid var(--border)}.home-accordion[open]>summary .home-accordion-chevron{transform:rotate(-90deg)}.home-accordion-body{padding:12px}.app-shell .home-accordion .dashboard-links{margin:0}.app-shell .home-accordion :is(.dashboard-documents,.record-day-list){margin:0;border:0;border-radius:0;padding:0;box-shadow:none}.home-accordion .dashboard-documents header{justify-content:flex-end;margin-bottom:12px}.home-accordion .dashboard-documents-all-link{display:inline-block;margin-top:12px;color:var(--accent-strong);font-size:13px;font-weight:700}@media(max-width:600px){.home-accordion .dashboard-documents header{flex-wrap:nowrap;justify-content:space-between}.home-accordion .dashboard-owner-scope{flex:none;margin-right:0}.home-accordion .dashboard-owner-scope button{padding-inline:9px;font-size:12px;white-space:nowrap}.home-accordion .dashboard-month-control{min-width:0}.home-accordion .dashboard-month-control>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.home-accordion .dashboard-month-control input{box-sizing:border-box;width:min(140px,40vw);min-width:0;padding-inline:6px;font-size:14px}}.patient-tabs,.patient-tabs>div,.record-schedule-table,.record-type-sidebar,.transfer-source{overscroll-behavior:none}textarea{overscroll-behavior:auto}.mobile-home-account{display:none}.mobile-home-account>summary svg{flex:none;color:var(--muted)}.mobile-home-account-identity{display:grid;grid-gap:3px;gap:3px;padding-bottom:12px;border-bottom:1px solid var(--border)}.mobile-home-account-identity small,.mobile-home-account-identity span{color:var(--muted);font-size:12px;overflow-wrap:anywhere}.mobile-home-account-links{display:flex;flex-wrap:wrap;gap:8px;padding-top:12px}.mobile-home-account-links a{color:var(--accent);font-size:12px;font-weight:700}.mobile-home-account-buttons{display:grid;grid-template-columns:1fr 1fr;grid-gap:8px;gap:8px;margin-top:12px}.mobile-home-account-buttons button{width:100%;min-width:0}.mobile-home-account p[role=alert]{margin:10px 0 0;color:#a63747;font-size:12px}.app-shell{--workspace-gutter:14px;--workspace-max:none;--header-action-height:44px}.app-shell .main-area{grid-template-columns:minmax(0,1fr)}.app-shell .page-scroll,.app-shell .topbar{min-width:0}.app-shell .page-scroll>.page-content{width:calc(100% - var(--workspace-gutter) * 2);max-width:var(--workspace-max);margin-inline:auto;padding-inline:0}.app-shell .page-scroll>.page-content:not(:has(>.patient-workspace-top)){padding-top:12px}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.app-shell .compact-page-heading{justify-content:flex-end}.app-shell .home-dashboard>h1{margin:0;min-height:44px;display:flex;align-items:center;font-size:22px;line-height:1.35}.app-shell .home-dashboard>p{margin:8px 0 12px;font-size:13px;color:var(--muted)}.app-shell .home-dashboard .dashboard-links{margin:12px 0}.app-shell .page-content :is(.page-heading,.document-global-heading,.patient-directory-heading,.schedule-title,.transfer-top) h1{font-size:22px;line-height:1.35;margin-block:0}.app-shell .page-content :is(.patient-scope-switch a,.document-scope button,.schedule-view-switch button),.app-shell .page-content :is(.patient-workspace-top,.patient-directory-heading,.patient-directory-toolbar,.document-global-heading,.document-toolbar,.schedule-title,.schedule-view-switch,.page-heading,.mapping-heading,.transfer-top) :is(.primary-button,.secondary-button,.new-record-button){min-height:var(--header-action-height);padding:8px 14px;font-size:13px;line-height:20px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}.app-shell .patient-scope-switch{margin-block:0;align-items:center}.app-shell .document-header-controls{flex-wrap:wrap;justify-content:flex-end;gap:8px}.app-shell .documents-page .document-create-action{position:static}.app-shell .patient-workspace-top{grid-template-columns:minmax(0,1fr);align-items:start;row-gap:6px;padding-block:10px}.app-shell .patient-workspace-top .patient-context-head{grid-column:1}.app-shell .patient-workspace-top .patient-context-head .breadcrumb{display:block;height:16px;min-height:0;line-height:16px;padding:0}.app-shell .patient-workspace-top .patient-context-name{display:grid;grid-template-columns:minmax(80px,1fr) minmax(0,52%);align-items:start;min-height:44px;grid-gap:8px;gap:8px;flex-wrap:nowrap}.app-shell .patient-workspace-top .patient-context-identity{align-self:start}.app-shell .patient-workspace-top .patient-header-actions{position:static;grid-column:auto;grid-row:auto;align-self:start;justify-self:end;width:100%;max-width:680px;min-width:0;min-height:44px;height:auto;margin:0;display:flex;align-items:flex-start;justify-content:flex-end;gap:8px}.app-shell .patient-header-actions :is(.record-list-actions,.history-header-actions,.document-editor-actions,.record-edit-context){position:static;grid-column:auto;grid-row:auto;align-self:start;justify-self:end;width:auto;min-width:0;min-height:44px;height:auto;margin:0;display:flex;align-items:center;justify-content:flex-end;gap:8px}.app-shell .patient-header-actions .record-edit-context{width:76px;margin-left:auto}.app-shell .record-edit-context button{flex:none;width:76px;min-width:76px;white-space:nowrap}.app-shell .patient-header-actions .document-header-controls{flex-wrap:nowrap;min-width:0;margin-left:0}.app-shell .patient-header-actions .patient-scope-switch{padding:0}.app-shell .patient-header-actions>.patient-scope-switch{margin-left:0}.app-shell .patient-header-actions .document-scope{padding:0}.app-shell .patient-header-actions:has(>.patient-scope-switch){justify-content:flex-start}.app-shell .patient-header-actions .document-header-controls{width:100%;justify-content:space-between;gap:3px;overflow:visible}.app-shell .patient-header-actions .document-create-action{position:static;display:flex;flex:none;gap:3px}.app-shell .page-content .patient-header-actions button.document-compact-action{min-width:0;gap:3px;padding-inline:4px;font-size:11px}.app-shell .document-scope button.document-scope-toggle{display:flex;align-items:center;gap:4px;padding-inline:6px;background:white;box-shadow:0 1px 3px #1833571f;font-size:11px;font-weight:700}.app-shell .patient-header-actions .document-editor-actions{overflow-x:auto;scrollbar-width:none}.app-shell .patient-header-actions .document-editor-actions::-webkit-scrollbar{display:none}.document-editor-action-controller{display:flex;align-items:center;justify-content:flex-end;min-width:0}.app-shell .page-content .document-editor-menu-trigger{display:none!important;align-items:center;gap:6px;min-height:44px;padding:8px 12px}.document-editor-actions-backdrop{position:fixed;z-index:90;inset:0;display:grid;place-items:center;padding:16px;background:#10264677}.document-editor-actions-dialog{width:min(360px,100%);padding:18px;border:1px solid var(--border);border-radius:14px;background:white;color:var(--text);box-shadow:0 20px 60px #10264640}.document-editor-actions-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.document-editor-actions-dialog h2{margin:0;font-size:18px}.document-editor-actions-dialog>header button{display:grid;place-items:center;width:40px;height:40px;padding:0;border-radius:8px;background:var(--surface-2);color:var(--muted)}.document-editor-actions-dialog .document-editor-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;width:100%}.document-editor-actions-dialog .document-editor-actions>button{width:100%;min-height:46px}@media(max-width:1199px){.app-shell .patient-workspace-top .patient-context-name{grid-template-columns:minmax(80px,1fr) minmax(0,52%)}.app-shell .patient-header-actions .document-header-controls{flex-wrap:nowrap}}@media(min-width:768px){.app-shell .page-scroll:has(>.page-content>.patient-workspace-top){padding-bottom:0}.app-shell .page-content .patient-header-actions button.document-compact-action{min-height:44px;padding:8px 14px;font-size:13px;gap:0}.app-shell .patient-header-actions .document-compact-action>svg{display:none}}@media(max-width:767px){.mobile-home-account{display:block}.app-shell{--workspace-gutter:11px}.app-shell .patient-workspace-top{display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:auto;grid-row-gap:6px;row-gap:6px}.app-shell .patient-workspace-top>:is(.patient-context-head,.patient-tabs){grid-column:1;width:100%}.app-shell .documents-global-page .document-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:end}.app-shell .documents-global-page .document-toolbar>label:first-child{min-width:0}.app-shell .documents-global-page .document-toolbar input[type=month]{min-width:0;width:100%}.app-shell .documents-global-page .documents-pending{grid-column:1/-1}.app-shell .patient-workspace-top .patient-context-name{grid-template-columns:minmax(70px,1fr) minmax(0,52%);gap:5px}.app-shell .patient-workspace-top .patient-context-identity{display:contents}.app-shell .patient-workspace-top .patient-context-identity h1{grid-column:1;grid-row:1;align-self:start}.app-shell .patient-workspace-top .patient-context-identity>span{grid-column:1/3;grid-row:1;align-self:end;justify-self:start;width:max-content;max-width:100%;padding-left:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-shell .patient-workspace-top .patient-header-actions{grid-column:2;grid-row:1;width:140px;max-width:140px}.app-shell .patient-basic-readonly{align-items:stretch}.app-shell .patient-context-name .patient-scope-switch{margin-left:auto}.app-shell .document-editor-actions{flex-wrap:wrap;overflow:visible}.app-shell .document-editor-actions :is(.primary-button,.secondary-button){padding-inline:9px;font-size:12px}.app-shell .patient-header-actions .document-editor-actions{flex-wrap:nowrap;overflow-x:auto}.app-shell .patient-header-actions .document-create-action,.app-shell .patient-header-actions .document-header-controls{gap:4px}.app-shell .document-editor-action-controller{width:80px;flex:none}.app-shell .document-editor-actions-inline{display:none}.app-shell .page-content .document-editor-menu-trigger{display:inline-flex!important;width:80px;min-width:80px;justify-self:end;padding-inline:8px}.app-shell .page-content .document-editor-menu-trigger>span{width:auto;padding:0;margin:0}.app-shell .page-content .document-editor-menu-trigger>svg{flex:none}.app-shell .page-content .patient-header-actions button.document-compact-action{width:44px;min-width:44px;padding:0}.app-shell .patient-header-actions .document-compact-action>span{display:none}.app-shell .document-scope button.document-scope-toggle{width:44px;min-width:44px;min-height:44px;padding:0}.app-shell .document-scope .document-scope-toggle>span,html.record-entry-mode .app-shell .bottom-nav,html.record-entry-mode .app-shell .topbar{display:none}html.record-entry-mode .app-shell .main-area{height:100%;grid-template-rows:minmax(0,1fr)}html.record-entry-mode .app-shell .page-scroll{padding-bottom:0}html.record-entry-mode .app-shell .page-content.records-page.editing{width:100%;margin:0;padding:0 8px calc(82px + env(safe-area-inset-bottom))}html.record-entry-mode.record-keypad-open .app-shell .page-content.records-page.editing{padding-bottom:calc(clamp(290px,38dvh,330px) + 20px)}html.record-entry-mode .records-page.editing>.patient-workspace-top{position:-webkit-sticky;position:sticky;z-index:17;top:0;padding:6px 0;background:var(--bg)}html.record-entry-mode .records-page.editing .breadcrumb,html.record-entry-mode .records-page.editing .patient-tabs{display:none}html.record-entry-mode .app-shell .records-page.editing .patient-context-name{grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:44px;margin-top:0}html.record-entry-mode .app-shell .records-page.editing .patient-context-identity{display:flex;align-items:center}html.record-entry-mode .app-shell .records-page.editing .patient-header-actions{position:static;grid-column:2;width:auto;max-width:none;min-height:36px;align-self:center}html.record-entry-mode .app-shell .records-page.editing .record-edit-context{position:static;align-self:center}html.record-entry-mode .records-page.editing .record-edit-context button{flex:none;white-space:nowrap}html.record-entry-mode .records-page.editing .record-edit-context button>span{width:auto;margin:0;padding:0;color:inherit;font-size:inherit}html.record-entry-mode .records-page.editing .record-edit-context button>svg{flex:none;width:16px}html.record-entry-mode .records-page.editing .patient-context-identity>span{display:none}html.record-entry-mode .record-form-footer{bottom:0;height:calc(66px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}}@media (min-width:768px) and (max-width:1024px) and (orientation:portrait) and (any-pointer:coarse){.mobile-home-account{display:block}html.record-entry-mode .app-shell .bottom-nav,html.record-entry-mode .app-shell .topbar{display:none}html.record-entry-mode .app-shell .main-area{height:100%;grid-template-rows:minmax(0,1fr)}html.record-entry-mode .app-shell .page-scroll{padding-bottom:0}}.page-content>.patient-workspace-top{margin-bottom:2px}.page-content>.patient-workspace-top~.history-filters{margin-top:0}@media (min-width:768px) and (max-width:1024px) and (orientation:portrait) and (any-pointer:coarse){.app-shell .page-scroll>.page-content:has(>.patient-workspace-top){padding-bottom:calc(76px + env(safe-area-inset-bottom))}}html{text-size-adjust:100%}.person-search-trigger{width:100%;min-width:0;min-height:44px;display:flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid var(--border-strong);border-radius:9px;background:white;text-align:left;font-size:14px}.person-search-trigger>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.person-search-trigger>small,.record-staff-search .person-search-trigger>span{margin-left:auto;flex:none;color:var(--muted);font-size:12px}.person-search-dialog{position:fixed;inset:12px 0 auto;margin:0 auto;width:min(520px,calc(100vw - 24px));padding:16px;border:1px solid var(--border);border-radius:14px;background:white;color:var(--text);overflow:hidden;z-index:1500;box-sizing:border-box}.person-search-dialog.person-search-popover{width:min(380px,calc(100vw - 24px));margin:0;box-shadow:0 12px 32px #10203d26}.person-search-dialog[open]{display:flex;flex-direction:column;gap:14px}.person-search-dialog::-webkit-backdrop{background:#10203d66}.person-search-dialog::backdrop{background:#10203d66}.person-search-dialog>header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px}.person-search-dialog h2{margin:0;font-size:18px}.person-search-dialog>header button{width:44px;height:44px;background:var(--surface-2);border-radius:8px;font-size:24px}.person-search-dialog>label{flex:none;display:grid;grid-gap:6px;gap:6px;font-size:13px}.person-search-dialog input{width:100%;min-width:0;height:44px;padding:8px 12px;border:1px solid var(--border-strong);border-radius:8px;font-size:16px}.person-search-options{flex:1 1;min-height:0;overflow:auto;overscroll-behavior:none}.person-search-options button{width:100%;min-height:60px;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:white;text-align:left;border-bottom:1px solid var(--border)}.person-search-options button[aria-pressed=true]{background:var(--accent-soft)}html dialog.person-search-dialog .person-search-options button[aria-pressed]{border:0;border-bottom:1px solid var(--border);border-radius:0}html dialog.person-search-dialog .person-search-options button[aria-pressed]:last-child{border-bottom:0}.person-search-options button>span:first-child{min-width:0;display:grid;grid-gap:4px;gap:4px;overflow-wrap:anywhere}.person-search-options small{color:var(--muted);font-size:12px}.person-search-check{flex:none;font-size:12px;color:var(--accent)}.app-shell .topbar>.topbar-facility-brand{display:flex;align-items:center;gap:10px;min-width:0}.topbar-logo{position:relative;flex:none;width:38px;height:38px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--border);border-radius:10px;background:#f4f8fe;color:var(--accent)}.topbar-logo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:white}button.topbar-logo{padding:0;font:inherit;text-decoration:none;cursor:pointer}button.topbar-logo:active{background:#e4eefb}button.topbar-logo:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.topbar-facility-meta{display:flex;align-items:center;gap:10px;min-width:0}@media(max-width:767px){.app-shell .topbar>.topbar-facility-brand{display:flex;flex:none}.topbar-facility-meta{display:none}.topbar-logo{width:34px;height:34px;border-radius:9px}}html .primary-staff-dialog{position:fixed;inset:auto 0 auto;top:var(--primary-staff-viewport-top);height:var(--primary-staff-viewport-height);max-height:var(--primary-staff-viewport-height);margin:0 auto;overflow:hidden}html .primary-staff-dialog[open]{display:flex;flex-direction:column}html .primary-staff-dialog>:not(.primary-staff-options){flex:none}html .primary-staff-dialog .primary-staff-options,html .primary-staff-dialog.keyboard-open .primary-staff-options{flex:1 1;min-height:0;max-height:none;overflow:auto}html .schedule-modal{top:var(--search-visible-top,0);bottom:auto;height:var(--search-visible-height,100dvh);box-sizing:border-box}html .schedule-modal:has(.schedule-scope-options,.schedule-slot-people)>section{display:flex;flex-direction:column;height:min(560px,calc(var(--search-visible-height,100dvh) - 24px));max-height:calc(var(--search-visible-height,100dvh) - 24px)!important;overflow:hidden}html .schedule-modal:has(.schedule-scope-options,.schedule-slot-people)>section>:not(.schedule-scope-picker,.schedule-slot-people){flex:none}html .schedule-scope-picker{display:flex;flex-direction:column;flex:1 1;min-height:0;overflow:hidden}html .schedule-scope-picker>footer,html .schedule-scope-picker>label{flex:none}html .schedule-scope-options,html .schedule-slot-people{flex:1 1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:none}@media screen{.app-shell{position:fixed;inset:0;bottom:auto;grid-template-rows:minmax(0,1fr);overscroll-behavior:none}.sidebar{position:relative;min-width:0}.sidebar>.brand{flex:none;min-width:0}.sidebar-scroll{flex:1 1;scrollbar-width:thin}.sidebar-footer,.sidebar-scroll{min-height:0;min-width:0;overflow:auto;overscroll-behavior:none}.sidebar-footer{flex:none;max-height:45%;align-content:start;grid-auto-rows:max-content}.sidebar-account-actions{min-width:0;align-content:start;grid-auto-rows:44px}.sidebar-account-actions button{height:44px;min-height:44px;max-height:44px;min-width:0;line-height:1.3;white-space:nowrap}.sidebar-collapsed .sidebar-footer{display:grid;grid-template-columns:34px;justify-content:center}.sidebar-collapsed .facility-card,.sidebar-collapsed .sidebar-user-details{display:none}.brand-mark{flex:none}.sidebar-user-details{overflow-wrap:anywhere}.sidebar-user-details strong{white-space:nowrap}.main-area{height:100%}.app-shell.keyboard-open{top:var(--visual-top,0)}html .app-shell.keyboard-open .main-area{height:var(--visible-height)}.app-shell.keyboard-open .record-form-footer{display:none}.app-shell.keyboard-open .bottom-nav{visibility:hidden}.workspace-login{overscroll-behavior:none;align-items:safe center}}@media (any-pointer:coarse){input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]):not(.stepper input,.clock-value input,.split-time-input input,.inline-measurement input),select,textarea{font-size:16px!important}}@media (prefers-reduced-motion:reduce){.app-shell,.brand>div,.facility-card,.nav-item>span,.record-form-footer,.sidebar,.sidebar-toggle,.sidebar-user-details{transition:none}}.patient-workspace-top:not([data-stuck=true]){background:transparent;box-shadow:none}.patient-workspace-top[data-stuck=true]{margin-inline:calc(var(--workspace-gutter-left,0px)*-1) calc(var(--workspace-gutter-right,0px)*-1);padding-inline:var(--workspace-gutter-left,0) var(--workspace-gutter-right,0);background-color:#f1f7ff;background-image:radial-gradient(ellipse at 85% 10%,#e0f1ff 0,transparent 45%);background-repeat:no-repeat;background-size:var(--shell-width,100vw) var(--shell-height,100vh);background-position:calc(var(--shell-offset-x,0px)*-1) calc(var(--shell-offset-y,0px)*-1)}@media (min-width:768px){html .app-shell .topbar{height:80px}html .app-shell .topbar .topbar-logo{width:54px;height:54px;border-radius:14px}html .app-shell .topbar .topbar-logo>svg{width:28px;height:28px}html .app-shell .topbar>.topbar-facility-brand{gap:14px}html .app-shell .topbar .topbar-facility-meta{gap:12px}html .app-shell .topbar .topbar-facility{font-size:15px;font-weight:600}html .app-shell .topbar .prototype-badge{font-size:12px;padding:5px 11px}html .app-shell .topbar .current-staff-button{min-height:50px;font-size:13px}html .app-shell .topbar .global-search-control{height:50px}}@supports (-webkit-touch-callout:none){:where(input:is([type=date],[type=time],[type=month],[type=datetime-local]),select:not([multiple]):not([size])){height:var(--control-height,50px)}:where(input:is([type=date],[type=time],[type=month],[type=datetime-local])){min-inline-size:8.5em}html body :is(input:is([type=date],[type=time],[type=month],[type=datetime-local]),select:not([multiple]):not([size])){-webkit-appearance:none;-moz-appearance:none;appearance:none;box-sizing:border-box;max-width:100%;padding-block:0;line-height:1.25}input:is([type=date],[type=time],[type=month],[type=datetime-local])::-webkit-date-and-time-value{display:flex;align-items:center;min-width:0;min-height:0;height:100%;margin:0;padding:0;text-align:left}input:is([type=date],[type=time],[type=month],[type=datetime-local])::-webkit-datetime-edit{min-width:0;padding:0}html body select:not([multiple]):not([size]){min-width:0;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235f6f86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:16px 16px}}html{--crisp-ink:#0b1b36;--crisp-soft:#3b4c68;--crisp-line:#aec3e0;--crisp-accent:#86bbff;--crisp-accent-strong:#3b8cff}html:root{--text:var(--crisp-ink);--muted:#44546f;--faint:#6f7f98;--border:#b9cbe5;--border-strong:#8aa3c7;--shadow:0 2px 6px rgba(28,70,130,.08)}.icon-accent{fill:var(--icon-accent,none);stroke:none}html .home-dashboard{--text:var(--crisp-ink);--muted:var(--crisp-soft)}html .home-dashboard .home-accordion{border:1.5px solid var(--crisp-line);box-shadow:0 2px 6px rgba(28,70,130,.08)}html .home-dashboard .home-accordion>summary h2{font-size:17.5px;font-weight:700;color:var(--crisp-ink)}html .home-dashboard .home-section-icon{--icon-accent:var(--crisp-accent);width:32px;height:32px;color:#12305f;stroke-width:1.7}html .home-dashboard .home-accordion>summary{column-gap:12px}html .home-dashboard .home-accordion-with-action>summary{grid-template-columns:32px minmax(0,1fr) 44px 18px;column-gap:12px}html .home-dashboard .home-overview-grid>.home-accordion:not(.home-accordion-with-action)>summary{grid-template-columns:32px minmax(0,1fr) 18px;gap:4px 12px}html .home-dashboard .home-accordion-chevron{color:#12305f;stroke-width:2.4}html .home-dashboard input,html .home-dashboard select{border:1.5px solid #9db5d8;color:var(--crisp-ink)}html .home-dashboard .record-schedule-table td,html .home-dashboard .record-schedule-table th{color:var(--crisp-ink)}html .sidebar .nav-item{font-size:15.5px;font-weight:700;color:#fff}html .sidebar .nav-item svg{width:26px;height:26px;stroke-width:1.9}html .sidebar .nav-item.active{color:#0b4fb3}html .sidebar .nav-item.active svg{--icon-accent:var(--crisp-accent)}html .bottom-nav{border-top:1.5px solid var(--crisp-line);background:#fff}html .bottom-nav a{gap:4px;color:var(--crisp-ink);font-size:11px;font-weight:700}html .bottom-nav a svg{--icon-accent:var(--crisp-accent);width:28px;height:28px;stroke-width:1.8}html .bottom-nav a.active{color:#1457c9}html .bottom-nav a.active svg{--icon-accent:var(--crisp-accent-strong)}html :is(.panel,.record-accordion,.patient-basic-accordion,.patient-handover,.schedule-calendar,.schedule-pool,.compact-panel,.facility-card){border-width:1.5px}html :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-width:1.5px;border-color:var(--border-strong)}html :is(.secondary-button,.quiet-button){border-width:1.5px;border-color:var(--border-strong)}html :is(.panel-heading h2,.page-heading h1,.patient-workspace-top h1){color:var(--crisp-ink)}html .accordion-icon{--icon-accent:var(--crisp-accent);color:#12305f;width:28px;height:28px;stroke-width:1.8}html .patient-tabs{height:57px;border:1.5px solid var(--border-strong)}html .patient-tabs button{color:var(--crisp-ink);font-size:14px;font-weight:700}html .patient-tabs button.active{background:#dce9ff;color:#0f48a8;box-shadow:inset 0 0 0 1.5px #8fb3ee}html .app-shell .current-staff-button{background:#e3efff;border:1.5px solid #6f9be0;color:#0f3f8f;font-weight:700}html .current-staff-label{color:#2c4a78;font-weight:600}html .record-history-table th{color:var(--crisp-ink);font-weight:700}html .nav-item:focus-visible{outline:2px solid #fff;outline-offset:-4px}html .nav-item:focus:not(:focus-visible){outline:none}html .nav-item.active:focus-visible{outline-color:var(--accent)}html{--accordion-head-height:60px}html :is(.record-accordion,.patient-basic-accordion,.history-accordion,.home-accordion,.handover-accordion,.documents-mobile-matrix details)>summary{box-sizing:border-box;height:var(--accordion-head-height)!important;min-height:var(--accordion-head-height)!important;padding-block:0!important;align-items:center;align-content:center;overflow:hidden}html dialog,html dialog[class]{border:1.5px solid var(--border-strong);color:var(--crisp-ink);box-shadow:0 14px 44px rgba(11,27,54,.3),0 2px 6px rgba(11,27,54,.12)}html dialog::-webkit-backdrop,html dialog[class]::-webkit-backdrop{background:rgba(238,244,255,.72)}html dialog::backdrop,html dialog[class]::backdrop{background:rgba(238,244,255,.72)}html dialog :is(h1,h2,h3){color:var(--crisp-ink);font-weight:800}html dialog :is(label,legend,.field-label){color:var(--crisp-ink);font-weight:700}html dialog :is(p,dd,dt,small){color:var(--crisp-soft)}html dialog :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border:1.5px solid var(--border-strong);background:#fff;color:var(--crisp-ink)}html dialog :is(input,select,textarea):focus-visible{outline:2px solid var(--crisp-accent-strong);outline-offset:1px;border-color:#1f63cf}html dialog :is(.secondary-button,.quiet-button){border:1.5px solid var(--border-strong);color:var(--crisp-ink);background:#fff;font-weight:700}html dialog :is(button[aria-pressed=false],.handover-repeat button:not([aria-pressed=true])){border:1.5px solid var(--border-strong);color:var(--crisp-ink)}html :is(.schedule-modal,.pdf-output-dialog,.record-photo-dialog){background:rgba(238,244,255,.72)}html .schedule-modal>section{border:1.5px solid var(--border-strong);color:var(--crisp-ink);box-shadow:0 14px 44px rgba(11,27,54,.3),0 2px 6px rgba(11,27,54,.12)}html .schedule-modal :is(h1,h2,h3){color:var(--crisp-ink);font-weight:800}html .schedule-modal :is(label,legend){color:var(--crisp-ink);font-weight:700}html .schedule-modal :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border:1.5px solid var(--border-strong);color:var(--crisp-ink)}html .schedule-modal :is(input,select,textarea):focus-visible{outline:2px solid var(--crisp-accent-strong);outline-offset:1px}html .staff-switcher-options button.is-taken{opacity:.5;background:#eef1f6;cursor:not-allowed}html .staff-switcher-options .schedule-staff-taken{color:#5a6a84;font-size:12px;font-weight:700}html :is(.patient-handover,.handover-reader,.schedule-reader,.management-panel,.management-facility-card,.admin-accordion,.access-settings>section,.workspace-empty,.app-shell .topbar){border:1.5px solid var(--border);box-shadow:var(--shadow)}html :is(.handover-tasks,.staff-switcher-options){border-color:var(--border)}html dialog.busy-modal{border:0;box-shadow:none;color:#4b5563}html dialog.busy-modal::-webkit-backdrop{background:rgba(255,255,255,.8)}html dialog.busy-modal::backdrop{background:rgba(255,255,255,.8)}html dialog.busy-modal :is(p,small){color:inherit}html .settings-hub-icon{width:auto;height:auto;justify-content:start;background:transparent;color:#12305f}html .settings-hub-icon svg{--icon-accent:var(--crisp-accent);width:32px;height:32px;stroke-width:1.7}@keyframes modal-pop{0%{opacity:0;scale:.8}to{opacity:1;scale:1}}@keyframes modal-pop-out{0%{opacity:1;scale:1}to{opacity:0;scale:.8}}@keyframes modal-fade{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}dialog:where([open]):where(:not(.busy-modal,.staff-greeting,.is-locked)){animation:modal-pop .45s cubic-bezier(.2,.8,.3,1) backwards}dialog:where([open]):where(:not(.busy-modal,.staff-greeting,.is-locked))::-webkit-backdrop{animation:modal-fade .3s ease-out backwards}dialog:where([open]):where(:not(.busy-modal,.staff-greeting,.is-locked))::backdrop{animation:modal-fade .3s ease-out backwards}dialog[open].is-closing{animation:modal-pop-out .3s cubic-bezier(.4,0,.8,.6) forwards;pointer-events:none}dialog[open].is-closing::-webkit-backdrop{animation:modal-fade-out .3s ease-in forwards}dialog[open].is-closing::backdrop{animation:modal-fade-out .3s ease-in forwards}:where([role=dialog][aria-modal=true]):where(:not(dialog)){animation:modal-fade .3s ease-out backwards}:where(.pdf-output-dialog,.record-photo-dialog)>:where(div),:where(.schedule-modal)>:where(section){animation:modal-pop .45s cubic-bezier(.2,.8,.3,1) backwards}[role=dialog][aria-modal=true].is-closing:not(dialog){animation:modal-fade-out .3s ease-in forwards;pointer-events:none}.pdf-output-dialog.is-closing>div,.record-photo-dialog.is-closing>div,.schedule-modal.is-closing>section{animation:modal-pop-out .3s cubic-bezier(.4,0,.8,.6) forwards}:where(body>div):has(>[role=dialog][aria-modal=true]:not(dialog)){animation:modal-fade .3s ease-out backwards}:where(body>div)>:where([role=dialog][aria-modal=true]:not(dialog)):not(.schedule-modal,.pdf-output-dialog,.record-photo-dialog){animation:modal-pop .45s cubic-bezier(.2,.8,.3,1) backwards}body>div.is-closing:has(>[role=dialog][aria-modal=true]:not(dialog)){animation:modal-fade-out .3s ease-in forwards;pointer-events:none}body>div.is-closing>[role=dialog][aria-modal=true]:not(dialog):not(.schedule-modal,.pdf-output-dialog,.record-photo-dialog){animation:modal-pop-out .3s cubic-bezier(.4,0,.8,.6) forwards}:is(button,[role=button],[role=tab],[role=option],[role=switch],[role=radio],[role=menuitem],[role=gridcell],[role=columnheader],summary,select,option,nav,aside.sidebar,.topbar,.bottom-nav,thead,th,caption,label,legend,dt,table a,.schedule-layout,.schedule-calendar,.schedule-pool,.schedule-toolbar,.schedule-title,.patient-calendar-head,.patient-calendar-grid,.patient-calendar-bar,.patient-calendar-roles,.patient-calendar-legend,.patient-calendar-visit,.patient-calendar-section>h4,.breadcrumb,.profession-badge,.staff-role-chip,.record-state,.handover-level,.handover-count,.document-row-progress,.field-label,.dashboard-links,.home-section-title){-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-touch-callout:none}:is(input,textarea,[contenteditable=""],[contenteditable=true]){-webkit-user-select:text;-moz-user-select:text;user-select:text;-webkit-touch-callout:default}