@media screen{.new-app .patient-reference-layout .patient-directory-primary-actions{grid-row:1;grid-column:2;justify-self:end;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.new-app .patient-inline-filters .patient-filter-toggle{display:inline-flex;gap:8px;align-items:center;border:1px solid #93b4ed;background:#eff6ff;color:#1d4ed8;padding:8px 14px;min-height:40px;border-radius:6px;font-weight:600}.new-app .patient-history-navigation{display:flex;flex-wrap:wrap;gap:8px;padding-block:8px 16px}.new-app .patient-history-navigation button{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;min-height:44px;border:1px solid #dbe3ee;border-radius:6px;background:#fff;color:#334155;font:inherit}.new-app .patient-history-navigation button[aria-pressed=true]{background:#eff6ff;color:#1d4ed8;border-color:#93b4ed}.new-app .patient-history-table-scroll{max-height:360px;overflow:auto;-webkit-padding-end:8px;padding-inline-end:8px;border:1px solid #e1e8f0;border-radius:8px}.new-app .patient-clinical-workspace table{width:100%;min-width:640px;border-collapse:collapse;font-size:13px}.new-app .patient-clinical-workspace th{position:-webkit-sticky;position:sticky;top:0;z-index:1;background:#f1f5f9;text-align:start;font-weight:600}.new-app .patient-clinical-workspace :is(td,th){padding:12px;border-bottom:1px solid #e1e8f0;vertical-align:top}.new-app .patient-clinical-workspace td small{display:block;margin-top:4px;color:#64748b}.new-app .patient-clinical-workspace tr.selected{background:#eff6ff}.new-app .patient-history-note{white-space:pre-wrap;overflow-wrap:anywhere;min-width:240px}.new-app .patient-history-selected{margin-top:24px;border:1px solid #e1e8f0;border-radius:12px;padding:20px}.new-app .patient-history-selected h3{margin:0;font-size:16px}.new-app .patient-history-selected header p{color:#64748b;font-size:13px}.new-app .patient-consultation-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));grid-gap:16px;gap:16px;margin-block:16px}.new-app .patient-consultation-cards article{padding:16px;background:#f8fafc;border-radius:8px}.new-app .patient-consultation-cards h4{margin:0 0 8px;color:#1d4ed8;font-size:14px}.new-app .patient-consultation-cards p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.new-app .patient-workspace-refraction{overflow-x:auto;padding-bottom:8px}.new-app .patient-workspace-refraction .print-oti-eyes{display:grid;grid-template-columns:repeat(2,minmax(320px,1fr));grid-gap:16px;gap:16px;min-width:656px}.new-app .patient-workspace-refraction table{min-width:320px;font-size:12px}.new-app .patient-workspace-refraction :is(td,th){padding:8px}.new-app .patient-workspace-refraction .print-oti-eye:first-child h3{color:#0e7490;background:#ecfeff;padding:12px}.new-app .patient-workspace-refraction .print-oti-eye:last-child h3{color:#0f766e;background:#f0fdfa;padding:12px}.new-app .patient-workspace-refraction .print-oti-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));grid-gap:16px;gap:16px}.new-app .patient-workspace-refraction .print-oti-comment p{white-space:pre-wrap}.new-app .patient-settings-modal{width:min(1080px,94vw)!important;max-width:1080px!important;max-height:88vh;display:flex;flex-direction:column}.new-app .patient-settings-body{min-height:0;max-height:72vh;overflow:auto;padding:16px}.new-app .patient-workspace-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));grid-gap:16px;gap:16px;margin:0;padding:16px}.new-app .patient-workspace-details dt{color:#52707d;font-size:12px}.new-app .patient-workspace-details dd{margin:4px 0 0;font-size:14px;overflow-wrap:anywhere}.new-app .new-content :is(.new-data-card,.finance-card,.new-report-builder,.patient-inline-filters){min-width:0;border:1px solid #e1e8f0;border-radius:12px;background:#fff;box-shadow:none}.new-app .new-content :is(.new-data-card,.finance-card)>header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:16px;border-bottom:1px solid #e1e8f0}.new-app .new-content :is(.new-data-card,.finance-card)>header>div{min-width:0}.new-app .new-content :is(.new-surgery-toolbar,.finance-top-actions,.new-patient-directory-actions){align-items:center;gap:12px}.new-app .new-content :is(.new-btn,.finance-btn,.admin-btn):not([data-pakey-print] *){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;height:auto;padding:8px 14px;line-height:1.5;border-radius:6px;word-break:normal;overflow-wrap:normal}.new-app .new-content :is(.new-btn,.finance-btn,.admin-btn)>svg{flex-shrink:0;width:16px;height:16px}.new-app .new-content :is(.new-tabs,.finance-tabs,.advanced-tabs,.db-settings-tabs){display:flex;gap:4px;padding:4px;overflow-x:auto;border-radius:8px;background:#f4f7fa}.new-app .new-content :is(.new-tabs,.finance-tabs,.advanced-tabs,.db-settings-tabs)>button{flex:0 0 auto;min-height:40px;padding:8px 14px;border-radius:6px;white-space:nowrap}.new-app .patient-reference-layout .new-patient-directory-actions>.new-btn{align-self:center;min-height:44px}.new-app .patient-reference-layout>.new-surgery-toolbar>div:first-child>b{font-size:var(--pec-type-h1);font-weight:600}.new-app .patient-reference-layout .patient-search-preview-wrap input{padding-inline:12px;font-size:var(--pec-type-control)}.new-app .patient-search-preview>button b{font-size:var(--pec-type-body);font-weight:600;line-height:1.5}.new-app .patient-search-preview>button{min-height:56px;padding:8px 12px;align-items:center}.new-app .patient-search-preview>button :is(small,span:last-child){font-size:12px;line-height:1.5}.new-app .patient-reference-layout :is(.patient-cohort-tabs,.patient-directory-sort select){border-radius:8px}.new-app .patient-reference-layout .patient-cohort-tabs button{border-radius:6px}.new-app .patient-reference-layout .patient-directory-table td{height:auto;padding-block:12px!important}.new-app .patient-reference-layout .patient-directory-action-cell .new-btn{width:40px;height:40px;padding:8px}.new-app .patient-reference-layout .patient-reference-name{min-height:0;height:auto;white-space:normal}.new-app .patient-reference-layout .patient-inline-filter-grid label{text-transform:none;font-weight:600}}@media screen and (min-width:1500px){.new-app .patient-reference-layout .patient-directory-primary-actions{grid-column:3}}@media screen and (max-width:1279px){.new-app .new-content :is(.new-btn,.finance-btn,.admin-btn),.new-app .patient-reference-layout .patient-directory-action-cell .new-btn{min-height:44px}.new-app .patient-reference-layout .patient-directory-action-cell .new-btn{width:44px;height:44px;min-width:44px}}@media screen and (max-width:600px){.new-app .patient-reference-layout .patient-directory-search-tools{gap:8px}.new-app .patient-reference-layout .patient-search-preview-wrap{flex-basis:100%}.new-app .patient-reference-layout .patient-inline-filters footer{display:flex;flex-wrap:wrap}}@media screen{.new-app .new-patients-directory:has(>.patient-workspace-page)>:not(.patient-workspace-page):not(.new-modal-back){display:none}.new-app .patient-workspace-page{grid-column:1/-1;width:100%;min-width:0}.new-app .patient-workspace-page>.patient-workspace{position:static;display:flex;flex-direction:column;width:100%!important;max-width:none!important;height:auto;max-height:none;margin:0;border:1px solid #e1e8f0;border-radius:12px;background:#fff;box-shadow:none;overflow:visible}.new-app .patient-workspace>.patient-profile-actions,.new-app .patient-workspace>.patient-profile-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:16px 20px}.new-app .patient-workspace>.patient-profile-actions{justify-content:flex-end}.new-app .patient-workspace .patient-workspace-close{width:40px;height:40px;border:1px solid #e1e8f0;border-radius:6px;background:#fff;color:#173444}.new-app .patient-profile-tabs>button{display:inline-flex;align-items:center;gap:8px}.new-app .patient-profile-tabs>button>svg{width:16px;height:16px;color:#1d4ed8;flex-shrink:0}.new-app .patient-profile-tabs>button:nth-child(2)>svg{color:#0f766e}.new-app .patient-profile-tabs>button:nth-child(3)>svg{color:#6d28d9}.new-app .patient-profile-tabs>button:nth-child(4)>svg{color:#475569}.new-app .patient-workspace .patient-edit-fields,.new-app .patient-workspace .patient-view-body{flex:none;height:auto;max-height:none;overflow:visible;padding:20px}.new-app .patient-workspace .patient-profile-tabs{flex-wrap:wrap;padding:12px 20px}.new-app .patient-profile-view-controls{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px;flex-shrink:0;width:auto!important}.new-app .patient-profile-header .patient-profile-view-controls>.new-btn{width:auto!important;min-width:120px!important;height:auto!important;min-height:40px;padding:8px 12px!important;white-space:nowrap!important}.new-app .patient-workspace .patient-view-facts{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.new-app .patient-reference-layout .patient-reference-avatar[data-tone=blue]{background:#1d4ed8;color:#fff}.new-app .patient-reference-layout .patient-reference-avatar[data-tone=teal]{background:#0f766e;color:#fff}.new-app .patient-reference-layout .patient-reference-avatar[data-tone=violet]{background:#6d28d9;color:#fff}.new-app .patient-reference-layout .patient-reference-avatar[data-tone=slate]{background:#475569;color:#fff}}.new-app .new-topbar{justify-content:flex-start;gap:12px}.new-app .new-topbar .new-page-context{flex:1 1 auto;min-width:0;margin-inline:0}.new-app .new-topbar .operational-notifications{margin-inline:0}.new-app .new-topbar .new-tablet-user{flex:0 0 44px;width:44px;height:44px;margin:0}.new-app .new-modal.investigation-history-preview,.new-app .new-modal.refraction-history-preview{width:min(1280px,calc(100vw - 32px))!important;max-width:1280px!important;max-height:min(94dvh,1100px)!important;display:flex!important;flex-direction:column;overflow-y:auto!important}.new-app .investigation-history-preview>:not(header):not(footer),.new-app .refraction-history-preview>:not(header):not(footer){flex:0 0 auto;min-height:0}.new-app .refraction-history-preview .new-doctor-refraction-grid{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.new-app .refraction-history-preview .new-doctor-ref-table-wrap{overflow:visible}.new-app .refraction-history-preview .new-doctor-eye-table table{min-width:0;width:100%;table-layout:fixed}.new-app .refraction-history-preview .new-doctor-eye-table :is(th,td){white-space:normal;overflow-wrap:anywhere;padding:5px 4px}.new-app .investigation-history-preview>footer,.new-app .refraction-history-preview>footer{position:-webkit-sticky;position:sticky;bottom:0;z-index:1;background:#fff}.investigation-history-details{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:10px;gap:10px;padding:16px}.investigation-history-details p{min-width:0;margin:0;padding:11px;border:1px solid var(--ui-border,#dbe4e9);border-radius:8px}.investigation-history-details :is(span,b){display:block;overflow-wrap:anywhere}.investigation-history-details span{color:#64748b;font-size:12px}.investigation-history-details b{margin-top:5px;font-size:13px}.clinical-icon-actions{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px}.clinical-icon-button{display:inline-grid;place-items:center;width:36px;height:36px;border:1px solid var(--ui-border,#dbe4e9);border-radius:8px;background:#fff;color:var(--ui-primary,#1458a6);cursor:pointer}.clinical-icon-button:focus-visible,.clinical-icon-button:hover{background:var(--ui-primary-soft,#eaf3ff);outline:2px solid transparent;box-shadow:0 0 0 3px var(--ui-focus,#b8d8fc)}.reception-patient-link{display:block;max-width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:700;text-align:start;cursor:pointer;overflow-wrap:anywhere}.reception-patient-link:focus-visible,.reception-patient-link:hover{color:var(--ui-primary,#1458a6);text-decoration:underline;text-underline-offset:3px}@media (max-width:900px){.new-app .refraction-history-preview .new-doctor-refraction-grid{grid-template-columns:1fr!important}.investigation-history-details{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:520px){.investigation-history-details{grid-template-columns:1fr}}.new-app .opt-review-modal .submitted-eye-grid.full-refraction{grid-template-columns:repeat(2,minmax(0,1fr))}.new-app .opt-review-modal .submitted-eye-grid.full-refraction .new-eye-col{overflow:visible}.new-app .opt-review-modal .submitted-eye-grid.full-refraction .new-ref-table{width:100%;min-width:0;table-layout:fixed}.new-app .opt-review-modal .submitted-eye-grid.full-refraction .new-ref-table :is(th,td){padding-inline:3px;overflow-wrap:anywhere}.new-app .opt-review-modal .submitted-eye-grid.full-refraction .new-ref-table input{min-width:0;width:100%}.new-app .opt-review-modal .submitted-refraction-history .print-oti-eyes{overflow:visible}@media (max-width:900px){.new-app .opt-review-modal .submitted-eye-grid.full-refraction,.new-app .opt-review-modal .submitted-refraction-history .print-oti-eyes{grid-template-columns:1fr}}.new-app .rbac-focused-layout{border-color:#dbe5f3}.new-app .rbac-role-rail{background:#f6f8fd;border-color:#dbe5f3}.new-app .rbac-role-rail button{border-radius:10px}.new-app .rbac-role-rail button:hover{background:#eaf1ff}.new-app .rbac-role-rail button.active{color:#17478d;border-color:#bad0f4;background:#e8f0ff;box-shadow:inset 3px 0 #2457ce}.new-app .rbac-role-rail button>b{color:#2457ce}.new-app .rbac-editor-switch{background:#edf2fb}.new-app .rbac-editor-switch button.active{color:#17478d;box-shadow:0 2px 8px rgb(36 87 206/12%)}.new-app .rbac-permission-search input:focus{border-color:#2457ce;box-shadow:0 0 0 3px rgb(36 87 206/12%)}.new-app .rbac-focus-module{border:1px solid #dbe5f3;box-shadow:none}.new-app .rbac-focus-module>header{background:#f6f8fd}.new-app .rbac-focus-module header>b{background:#e5efff;color:#17478d}.new-app .rbac-extra-permissions input,.new-app .rbac-focus-actions input{accent-color:#2457ce}.new-app .rbac-focus-actions label:hover{background:#f0f5ff}.new-app .rbac-focus-presets button:first-child{border-color:#bad0f4;color:#17478d}.new-app .rbac-focus-coverage{display:grid;grid-gap:3px;gap:3px;width:min(220px,42%);color:#5b708e;font-size:11px;text-align:end}.new-app .rbac-focus-coverage b{color:#17478d;font-size:13px}.new-app .rbac-focus-coverage i{display:block;height:5px;overflow:hidden;border-radius:999px;background:#e2eaf6}.new-app .rbac-focus-coverage em{display:block;height:100%;border-radius:inherit;background:#2457ce}.new-app button.new-list-icon-action{position:relative;display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;min-width:38px;width:38px;min-height:38px;height:38px;padding:0;border:1px solid var(--action-border,#bfd3f7);border-radius:10px;background:var(--action-bg,#edf4ff);color:var(--action-ink,#17478d);line-height:1;cursor:pointer}.new-app button.new-list-icon-action:focus-visible,.new-app button.new-list-icon-action:hover{border-color:var(--action-hover-border,#8fb0e8);background:var(--action-hover-bg,#deebff);color:var(--action-ink,#17478d)}.new-app button.new-list-icon-action:focus-visible{outline:2px solid #2457ce;outline-offset:2px;z-index:5}.new-app button.new-list-icon-action:focus-visible:after{position:absolute;inset-block-end:calc(100% + 8px);inset-inline-start:50%;transform:translateX(-50%);z-index:20;width:max-content;max-width:min(280px,80vw);padding:7px 10px;border-radius:6px;background:#172d51;color:#fff;content:attr(aria-label);font-size:12px;font-weight:600;line-height:1.3;white-space:normal;box-shadow:0 5px 15px rgb(12 32 65/18%);pointer-events:none}.new-app button.new-list-icon-action:has(>svg:is(.lucide-pencil,.lucide-file-pen-line,.lucide-key-round)){--action-border:#ecd2a7;--action-bg:#fff5e5;--action-ink:#81500e;--action-hover-border:#dcb571;--action-hover-bg:#ffebca}.new-app button.new-list-icon-action:has(>svg:is(.lucide-calendar-plus,.lucide-plus,.lucide-hand-coins,.lucide-badge-check,.lucide-user-check,.lucide-save,.lucide-undo-2)){--action-border:#b8ded5;--action-bg:#e9f7f2;--action-ink:#096c60;--action-hover-border:#84c9ba;--action-hover-bg:#d4eee6}.new-app button.new-list-icon-action:has(>svg:is(.lucide-printer,.lucide-file-down,.lucide-file-spreadsheet,.lucide-ticket,.lucide-file-text)){--action-border:#d7caf1;--action-bg:#f4f0ff;--action-ink:#65449b;--action-hover-border:#bea8e7;--action-hover-bg:#e9dfff}.new-app button.new-list-icon-action:has(>svg:is(.lucide-megaphone,.lucide-rotate-ccw,.lucide-arrow-left-right,.lucide-package-minus,.lucide-scale)){--action-border:#bcdae9;--action-bg:#ebf6fb;--action-ink:#155a78;--action-hover-border:#95c8df;--action-hover-bg:#d9eefa}.new-app button.new-list-icon-action.danger,.new-app button.new-list-icon-action:has(>svg:is(.lucide-trash-2,.lucide-ban,.lucide-calendar-x)){--action-border:#efc5cb;--action-bg:#fff1f2;--action-ink:#a4202f;--action-hover-border:#d8929e;--action-hover-bg:#ffe1e5}.new-app button.new-list-icon-action:disabled{opacity:.5;cursor:not-allowed}.new-app button.new-list-icon-action>svg{flex:0 0 auto;width:17px;height:17px}