.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}.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,.document-browser .document-pagination{flex:none}.document-browser .document-history-scroll{flex:1 1;min-height:0;max-height:none;overscroll-behavior:none}.documents-page:has(.document-browser)>.document-archived{flex:none;max-height:25%;overflow:auto;overscroll-behavior:none;margin-top:4px}@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-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:12px 0;font-size:12px}.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)}.document-pagination{gap:6px}.document-pagination .secondary-button{padding:8px 6px;font-size:11px}}.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-archived button,.document-history td button{padding:10px;background:var(--accent-soft);color:var(--accent);border-radius:8px}.document-archived{margin-top:18px;font-size:12px;color:var(--muted)}.document-archived summary{cursor:pointer;padding:10px 0}.document-archived button{display:block;margin-block: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}.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}.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}}.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}.schedule-return-link{display:inline-flex;align-items:center;min-height:36px;color:var(--accent-strong);font-size: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-workspace-top:has(.schedule-return-link) .record-edit-context{top:38px}.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:84px 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-workspace-top .schedule-return-link{grid-column:1/-1;min-height:28px}.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-workspace-top:has(.record-list-actions):has(.schedule-return-link) .record-list-actions{top:38px}.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}}.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;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-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}.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 .document-global-settings-button{display:inline-flex;align-items:center;gap:6px}.app-shell .document-global-settings>details{margin:12px 0;border:1px solid var(--border);border-radius:10px;overflow:hidden}.app-shell .document-global-settings>details>summary{min-height:48px;display:flex;align-items:center;padding:10px 12px;cursor:pointer;font-weight:700;background:var(--surface-2)}.app-shell .document-global-settings>details[open]>summary{border-bottom:1px solid var(--border)}.app-shell .document-global-settings-section{padding:4px 12px 12px}.app-shell .document-global-settings-section select{min-height:42px}.app-shell .document-global-settings-close{width:100%;margin-top:4px}.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}.app-shell .patient-workspace-top:has(.schedule-return-link) .patient-context-head{grid-row:2}@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){.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 .document-global-settings-button{width:44px;min-width:44px;padding:0}.app-shell .documents-global-page .document-global-settings-button>span{display:none}.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)}}