:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#17211f;background:#f3f6f5;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid rgba(31,126,108,.22);outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app-shell{height:100vh;overflow:hidden;display:grid;grid-template-columns:248px 1fr}.sidebar{position:sticky;top:0;height:100vh;background:#173a34;color:#f5fbf8;padding:24px 16px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;padding:0 8px 28px;font-size:16px;font-weight:700}.brand-mark{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;background:#c9f0df;color:#155f51;border-radius:8px}nav{display:grid;gap:5px}.nav-item{width:100%;border:0;border-radius:6px;padding:11px 12px;display:flex;align-items:center;gap:10px;color:#d9e7e2;background:transparent;text-align:left}.nav-item.active{color:#fff;background:#265148}.nav-item:disabled{cursor:not-allowed;opacity:.48}.sidebar-footer{margin-top:auto;display:grid;gap:8px}.sidebar-footer>button{padding:9px 8px;display:flex;align-items:center;gap:8px;border:0;border-radius:5px;color:#c4d6d0;background:transparent;font-size:12px;text-align:left}.sidebar-footer>button:hover{color:#fff;background:#265148}main{min-width:0;height:100vh;overflow-y:auto;padding-bottom:104px}.workflow-main{padding-left:220px}.workflow-main>.topbar{margin-left:-220px}.document-panel{position:fixed;z-index:4;top:88px;bottom:0;left:248px;width:220px;padding:24px 14px;border-right:1px solid #d5ddda;background:#e9eeec}.document-panel>div:first-child{margin-bottom:17px;padding:0 7px;display:grid;gap:3px}.document-panel>div:first-child small{color:#74817d;font-size:9px;font-weight:800;text-transform:uppercase}.document-panel>div:first-child strong{color:#34433f;font-size:13px}.document-panel>button{width:100%;min-height:60px;margin-bottom:7px;padding:9px;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:9px;border:1px solid transparent;border-radius:7px;color:#44534f;background:transparent;text-align:left}.document-panel>button:hover{border-color:#cad5d1;background:#f5f8f7}.document-panel>button.active{border-color:#91b8ae;background:#fff;box-shadow:inset 3px 0 #247967}.document-panel>button>span{width:34px;height:34px;display:grid;place-items:center;border-radius:6px;color:#4d6861;background:#dbe4e1}.document-panel>button.active>span{color:#176b5b;background:#dcefe8}.document-panel>button>div{min-width:0;display:grid;gap:3px}.document-panel>button strong{font-size:11px}.document-panel>button small{color:#788580;font-size:9px;line-height:1.35}.document-panel>p{margin:18px 7px 0;color:#7c8985;font-size:9px;line-height:1.5}.topbar{position:sticky;z-index:6;top:0;height:88px;padding:17px clamp(24px,4vw,52px);display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #dfe5e2}.eyebrow{margin:0 0 3px;color:#63736f;font-size:11px;font-weight:700;text-transform:uppercase}h1{margin:0;font-size:23px;line-height:1.25;letter-spacing:0}.workspace{width:min(1080px,100%);margin:0 auto;padding:34px clamp(22px,4vw,48px) 48px}.patient-section{padding-bottom:34px;border-bottom:1px solid #d9e1de}.section-heading{display:flex;align-items:flex-start;gap:13px}.step-number{width:28px;height:28px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;background:#dcefe8;color:#176b5b;font-size:13px;font-weight:800}h2{margin:1px 0 4px;font-size:18px;line-height:1.3;letter-spacing:0}.section-heading p{margin:0;color:#677570;font-size:13px;line-height:1.5}.patient-field{max-width:680px;height:52px;margin-top:19px;display:flex;align-items:center;gap:11px;padding:0 13px;background:#fff;border:1px solid #cbd6d2;border-radius:7px;color:#65736f;transition:border-color .15s,box-shadow .15s}.patient-field:focus-within{border-color:#247967;box-shadow:0 0 0 3px #2479671a}.patient-field input,.search-field input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#17211f}.patient-field input{font-size:16px}.patient-field input::placeholder,.search-field input::placeholder{color:#8b9793}.patient-field button{width:30px;height:30px;display:grid;place-items:center;flex:0 0 auto;border:0;border-radius:5px;color:#6f7d78;background:transparent}.patient-field button:hover{background:#edf2f0}.patient-picker{position:relative;max-width:680px}.patient-results{position:absolute;z-index:4;top:calc(100% + 7px);right:0;left:0;overflow:hidden;border:1px solid #cbd6d2;border-radius:7px;background:#fff;box-shadow:0 14px 34px #1b332d24}.patient-results>button{width:100%;min-height:59px;padding:9px 13px;display:grid;grid-template-columns:36px minmax(0,1fr) 22px;align-items:center;gap:10px;border:0;border-bottom:1px solid #e3e9e7;background:#fff;color:#21302c;text-align:left}.patient-results>button:hover{background:#f2f7f5}.patient-results>button>span:nth-child(2){min-width:0;display:grid;gap:3px}.patient-results strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.patient-results small{color:#71807b;font-size:11px}.result-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;color:#32695e;background:#e2efeb}.result-check{color:#247967;opacity:0}.patient-results>button:hover .result-check{opacity:1}.patient-results>.create-patient{grid-template-columns:36px minmax(0,1fr);border-bottom:0;color:#176b5b}.create-patient>svg{margin-left:8px}.result-message{min-height:45px;padding:13px 16px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #e3e9e7;color:#71807b;font-size:12px}.result-message.error{color:#a34343;background:#fff8f7}.selected-patient{max-width:680px;min-height:64px;margin-top:19px;padding:10px 12px;display:flex;align-items:center;gap:11px;border:1px solid #87b5a9;border-radius:7px;background:#f9fdfb}.patient-avatar{width:40px;height:40px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;color:#fff;background:#247967}.selected-patient-copy{min-width:0;display:grid;gap:3px}.selected-patient-copy strong{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.selected-patient-copy small{color:#697873;font-size:11px}.selected-patient>button{margin-left:auto;padding:8px 9px;display:flex;align-items:center;gap:6px;flex:0 0 auto;border:0;border-radius:5px;color:#32695e;background:transparent;font-size:12px;font-weight:700}.selected-patient>button:hover{background:#e4f0ec}.attendance-unit{max-width:680px;margin-top:12px;display:grid;gap:5px}.attendance-unit>span{color:#52625d;font-size:10px;font-weight:700}.attendance-unit select{height:44px;padding:0 11px;border:1px solid #cbd6d2;border-radius:7px;outline:0;color:#263630;background:#fff;font:inherit}.attendance-unit select:focus{border-color:#247967;box-shadow:0 0 0 3px #2479671a}.attendance-unit small{color:#9a554d;font-size:9px}.spin{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.template-section{padding-top:32px}.patient-group-picker{margin:0 0 18px 41px;display:flex;gap:8px}.patient-group-picker button{min-width:190px;min-height:50px;padding:7px 12px;display:flex;align-items:center;gap:10px;border:1px solid #cfdad6;border-radius:7px;color:#52615c;background:#fff;text-align:left}.patient-group-picker button>span{display:grid;gap:2px}.patient-group-picker button strong{color:#263630;font-size:12px}.patient-group-picker button small{color:#75827e;font-size:9px}.patient-group-picker button.active{border-color:#247967;color:#176b5b;box-shadow:inset 3px 0 #247967;background:#f8fcfa}.template-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:20px}.search-field{width:230px;height:38px;display:flex;align-items:center;gap:8px;padding:0 10px;border:1px solid #cbd6d2;border-radius:6px;background:#fff;color:#677570}.search-field:focus-within{border-color:#247967}.search-field input{font-size:13px}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.specialty-picker{margin-bottom:22px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.specialty-picker>button{min-width:0;min-height:46px;padding:6px 8px;display:grid;grid-template-columns:29px minmax(0,1fr) auto;align-items:center;gap:7px;border:1px solid #d2dcda;border-radius:6px;color:#44544f;background:#fff;text-align:left}.specialty-picker>button:hover{border-color:#8dafa6;background:#f7faf9}.specialty-picker>button.active{border-color:#247967;box-shadow:inset 2px 0 #247967}.specialty-picker>button>span{width:29px;height:29px;display:grid;place-items:center;border-radius:5px}.specialty-picker>button strong{overflow:hidden;font-size:10px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.specialty-picker>button small{color:#7a8783;font-size:9px}.specialty-prompt{grid-column:1 / -1;min-height:118px;display:grid;place-items:center;align-content:center;gap:6px;color:#70807a;border:1px dashed #c6d1cd;border-radius:8px}.specialty-prompt strong{color:#374540;font-size:13px}.specialty-prompt span{font-size:11px}.specialty-group{grid-column:1 / -1;margin-bottom:8px}.specialty-group>header{min-height:34px;margin-bottom:8px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #d9e2df}.specialty-group>header strong{color:#344640;font-size:12px}.specialty-group>header small{margin-left:auto;color:#7a8783;font-size:9px}.specialty-swatch{width:9px;height:9px;flex:0 0 auto;border-radius:2px}.specialty-group>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.template-card{min-height:82px;padding:14px;display:grid;grid-template-columns:42px minmax(0,1fr) 20px;align-items:center;gap:11px;border:1px solid #d2dcda;border-radius:8px;background:#fff;color:#17211f;text-align:left;transition:border-color .15s,box-shadow .15s,transform .15s}.template-card:hover:not(:disabled){border-color:#86aaa2;box-shadow:0 3px 12px #1f383212;transform:translateY(-1px)}.template-card.selected{border-color:#247967;box-shadow:inset 0 0 0 1px #247967;background:#fbfefd}.template-card:disabled{cursor:not-allowed;opacity:.62}.template-icon,.summary-icon{display:grid;place-items:center;flex:0 0 auto;border-radius:7px}.template-icon{width:42px;height:42px}.template-copy{min-width:0;display:grid;gap:4px}.template-copy strong{overflow:hidden;font-size:13px;line-height:1.3;text-overflow:ellipsis}.template-copy small{display:flex;align-items:center;gap:6px;color:#71807b;font-size:11px;line-height:1.3}.template-copy small em{padding:2px 4px;border-radius:3px;font-size:8px;font-style:normal;font-weight:800;text-transform:uppercase}.template-copy small em.draft{color:#8a5b11;background:#f8e8c8}.template-copy small em.active{color:#26725a;background:#dcefe7}.selection-indicator{width:19px;height:19px;display:grid;place-items:center;border:1px solid #c6d2ce;border-radius:50%;color:#fff}.selected .selection-indicator{border-color:#247967;background:#247967}.coral{color:#a9473f;background:#f9e1df}.amber{color:#8a5b11;background:#f8e8c8}.blue{color:#326394;background:#deebf7}.rose{color:#a33e60;background:#f7dfe7}.cyan{color:#277384;background:#dbf0f2}.violet{color:#69549b;background:#e9e3f6}.green{color:#26725a;background:#dcefe7}.teal{color:#176b67;background:#d7efed}.orange{color:#a65316;background:#f8e5d5}.indigo{color:#49569b;background:#e1e5f7}.lime{color:#577318;background:#e9f1d2}.magenta{color:#963f82;background:#f3dfef}.neutral{color:#61706b;background:#e9eeec}.add-template{border-style:dashed;background:transparent}.empty-state{grid-column:1 / -1;min-height:150px;display:grid;place-items:center;align-content:center;gap:7px;color:#6d7a76;border:1px dashed #c6d1cd;border-radius:8px}.empty-state strong{color:#374540;font-size:14px}.empty-state span{font-size:12px}.templates-loading,.templates-error{grid-column:1 / -1;min-height:110px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px dashed #c6d1cd;border-radius:8px;color:#697873;font-size:12px}.templates-error{border-color:#e1b2af;color:#923b37;background:#fff8f7}.template-detail{margin-top:17px;overflow:hidden;border:1px solid #ccd8d4;border-radius:8px;background:#fff}.template-detail-title{min-height:66px;padding:11px 14px;display:flex;align-items:center;gap:11px;border-bottom:1px solid #e0e7e4}.template-detail-title>div{min-width:0;display:grid;gap:2px}.template-detail-title small{color:#77847f;font-size:9px;text-transform:uppercase}.template-detail-title strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.review-status{margin-left:auto;padding:5px 7px;flex:0 0 auto;border-radius:4px;font-size:9px;font-weight:800;text-transform:uppercase}.review-status.draft{color:#845810;background:#f8e8c8}.review-status.active{color:#246d56;background:#dcefe7}.template-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.template-detail-grid>p{min-height:105px;margin:0;padding:14px;display:flex;flex-direction:column;gap:7px;border-right:1px solid #e0e7e4;color:#62716c;font-size:11px;line-height:1.55}.template-detail-grid>p:last-child{border-right:0}.template-detail-grid p>strong{color:#344640;font-size:10px;text-transform:uppercase}.template-detail-grid .clinical-warning{flex-direction:row;color:#79542a;background:#fffaf1}.clinical-warning>svg{margin-top:1px;flex:0 0 auto}.clinical-warning>span{display:flex;flex-direction:column;gap:7px}.action-bar{position:fixed;z-index:5;right:0;bottom:0;left:468px;min-height:78px;padding:12px clamp(24px,4vw,52px);display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fffffff5;border-top:1px solid #d6dfdc;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.selection-summary{min-width:0;display:flex;align-items:center;gap:10px}.selection-summary>span:not(.summary-icon){min-width:0;display:grid;gap:2px}.selection-summary small{color:#77837f;font-size:10px;text-transform:uppercase}.selection-summary strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.summary-icon{width:36px;height:36px}.primary-action{min-height:42px;padding:0 16px;display:flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:6px;background:#176b5b;color:#fff;font-size:13px;font-weight:700}.primary-action:hover:not(:disabled){background:#115b4d}.primary-action:disabled{cursor:not-allowed;background:#c8d1ce;color:#75817d}.toast{position:fixed;z-index:10;right:24px;bottom:94px;max-width:min(440px,calc(100vw - 40px));padding:12px 12px 12px 14px;display:flex;align-items:center;gap:10px;border:1px solid #bcd8cf;border-radius:7px;background:#fff;box-shadow:0 10px 30px #1b332d24;color:#30443e;font-size:13px}.toast>span{width:25px;height:25px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;color:#fff;background:#247967}.toast button{width:28px;height:28px;display:grid;place-items:center;flex:0 0 auto;border:0;border-radius:5px;color:#66746f;background:transparent}.toast button:hover{background:#edf2f0}.dialog-backdrop{position:fixed;z-index:20;top:0;right:0;bottom:0;left:0;padding:24px;display:grid;place-items:center;background:#0e1f1b75}.patient-dialog{width:min(680px,100%);max-height:calc(100vh - 48px);overflow:auto;border-radius:8px;background:#fff;box-shadow:0 24px 70px #091c173d}.patient-dialog>header{position:sticky;z-index:1;top:0;min-height:75px;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dfe6e3;background:#fff}.patient-dialog>header h2{font-size:20px}.patient-dialog>header>button{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:6px;color:#65736f;background:transparent}.patient-dialog>header>button:hover{background:#edf2f0}.patient-dialog form{padding:20px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-grid label{min-width:0;display:grid;gap:6px}.form-grid label>span{color:#52625d;font-size:11px;font-weight:700}.form-grid .full-width{grid-column:1 / -1}.form-grid input,.form-grid textarea,.form-grid select{width:100%;border:1px solid #cbd6d2;border-radius:6px;padding:9px 10px;outline:0;color:#17211f;background:#fff;font-size:13px}.form-grid input,.form-grid select{height:40px}.form-grid textarea{min-height:74px;resize:vertical}.form-grid input:focus,.form-grid textarea:focus,.form-grid select:focus{border-color:#247967;box-shadow:0 0 0 3px #2479671a}.form-error{margin-top:15px;padding:10px 12px;display:flex;align-items:center;gap:8px;border:1px solid #e8b8b5;border-radius:6px;color:#923b37;background:#fff7f6;font-size:12px}.form-error span{flex:1}.form-error button{border:0;color:#176b5b;background:transparent;font-size:12px;font-weight:700}.patient-dialog form>footer{margin-top:20px;padding-top:16px;display:flex;justify-content:flex-end;gap:9px;border-top:1px solid #e0e7e4}.secondary-action{min-height:42px;padding:0 15px;border:1px solid #c8d3cf;border-radius:6px;color:#445650;background:#fff;font-size:13px;font-weight:700}.secondary-action:hover{background:#f1f5f3}.settings-loading{min-height:360px;display:flex;align-items:center;justify-content:center;gap:10px;color:#65736f;font-size:13px}.settings-workspace{width:min(1160px,100%);margin:0 auto;padding:32px clamp(22px,4vw,48px) 48px}.settings-intro{margin-bottom:24px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.settings-intro h2{margin-bottom:5px;font-size:20px}.settings-intro p{margin:0;color:#667570;font-size:13px}.required-note{color:#788580;font-size:11px}.settings-tools{display:flex;align-items:center;gap:12px}.settings-tools a{display:flex;align-items:center;gap:6px;text-decoration:none}.restore-action{display:flex;align-items:center;gap:6px;cursor:pointer}.restore-action input{display:none}.settings-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;align-items:start;gap:24px}.doctor-form{display:grid;gap:14px}.settings-section{padding:20px;border:1px solid #d7e0dd;border-radius:8px;background:#fff}.settings-section h3{margin:0 0 17px;color:#30423d;font-size:13px}.image-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.image-field{min-height:86px;padding:11px;display:flex;align-items:center;gap:11px;border:1px dashed #bdcbc6;border-radius:7px}.image-placeholder{width:62px;height:62px;overflow:hidden;display:grid;place-items:center;flex:0 0 auto;border-radius:6px;color:#6d7b76;background:#edf2f0}.image-placeholder img{width:100%;height:100%;object-fit:contain}.image-field>div:last-child{min-width:0;display:grid;gap:3px}.image-field strong{font-size:12px}.image-field small{overflow:hidden;color:#788580;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.image-field>div>span{margin-top:3px;display:flex;align-items:center;gap:6px}.upload-action,.image-field button{height:27px;display:flex;align-items:center;justify-content:center;gap:5px;border:0;border-radius:5px;color:#176b5b;background:#e5f1ed;font-size:10px;font-weight:700;cursor:pointer}.upload-action{padding:0 8px}.upload-action input{display:none}.image-field button{width:29px;padding:0;color:#9a4945;background:#f8e9e7}.settings-message{padding:11px 13px;display:flex;align-items:center;gap:8px;border-radius:6px;font-size:12px}.settings-message.success{border:1px solid #b7d8ce;color:#246451;background:#f3faf7}.settings-message.error{border:1px solid #e8b8b5;color:#923b37;background:#fff7f6}.settings-actions{display:flex;justify-content:flex-end}.units-settings{margin-top:24px}.units-settings>header{margin-bottom:12px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px}.units-settings>header h2{margin:0 0 3px;font-size:17px}.units-settings>header p{margin:0;color:#71807b;font-size:11px}.units-list{overflow:hidden;border:1px solid #d5deda;border-radius:8px;background:#fff}.units-list article{min-height:62px;padding:9px 12px;display:grid;grid-template-columns:34px minmax(0,1fr) auto 34px;align-items:center;gap:10px;border-top:1px solid #e0e7e4}.units-list article:first-child{border-top:0}.units-list article>span{width:34px;height:34px;display:grid;place-items:center;border-radius:6px;color:#176b5b;background:#e1f0eb}.units-list article>div{min-width:0;display:grid;gap:3px}.units-list article strong,.units-list article small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.units-list article strong{font-size:12px}.units-list article small{color:#788580;font-size:9px}.units-list article em{padding:3px 6px;border-radius:4px;color:#7b8884;background:#edf1f0;font-size:8px;font-style:normal;font-weight:800;text-transform:uppercase}.units-list article em.active{color:#26725a;background:#dcefe7}.units-list article>button{width:32px;height:32px;display:grid;place-items:center;border:1px solid #cfdbd7;border-radius:5px;color:#32695e;background:#fff}.unit-active{grid-column:1 / -1;display:flex!important;align-items:center;grid-template-columns:none!important}.document-preview{position:sticky;top:110px}.document-preview>p{margin:0 0 9px;color:#697873;font-size:11px;font-weight:700;text-transform:uppercase}.paper-preview{aspect-ratio:1 / 1.414;padding:22px 19px;display:flex;flex-direction:column;border:1px solid #d6dedb;background:#fff;box-shadow:0 6px 20px #1d352f14}.preview-brand{min-height:45px;display:flex;align-items:center;gap:10px}.preview-brand>img,.preview-brand>span{width:48px;height:40px;object-fit:contain}.preview-brand>span{display:grid;place-items:center;color:#55736b;background:#edf3f1}.preview-brand>div{min-width:0;display:grid;gap:3px}.preview-brand strong{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.preview-brand small{overflow:hidden;color:#788580;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.preview-rule{height:2px;margin:10px 0 17px;background:#287765}.preview-content{flex:1;display:flex;flex-direction:column;align-items:center}.preview-content>span{margin-bottom:23px;color:#30433e;font-size:8px;font-weight:800}.preview-content i{width:100%;height:1px;margin-bottom:19px;background:#e5ebe9}.preview-doctor{min-height:75px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;text-align:center}.preview-doctor img{width:100px;height:34px;margin-bottom:-3px;object-fit:contain}.preview-doctor strong{font-size:9px}.preview-doctor span{margin-top:2px;font-size:7px}.preview-doctor small{margin-top:2px;color:#6f7e79;font-size:7px}.prescription-workspace{width:min(1080px,100%);margin:0 auto;padding:24px clamp(22px,4vw,48px) 48px}.editor-toolbar{min-height:52px;margin-bottom:14px;display:flex;align-items:center;gap:15px}.back-action{min-height:36px;padding:0 9px;display:flex;align-items:center;gap:6px;border:1px solid #cad5d1;border-radius:6px;color:#40534d;background:#fff;font-size:12px;font-weight:700}.back-action:hover{background:#edf3f1}.editor-toolbar>div{min-width:0;display:grid}.editor-toolbar>div strong{overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.editor-toolbar>.review-status{margin-left:auto}.patient-safety-bar{min-height:58px;margin-bottom:27px;padding:10px 14px;display:flex;align-items:center;gap:11px;border:1px solid #e4c898;border-radius:7px;color:#785628;background:#fffaf0}.patient-safety-bar>svg{flex:0 0 auto}.patient-safety-bar>span{min-width:0;display:grid;gap:2px}.patient-safety-bar small{font-size:9px;text-transform:uppercase}.patient-safety-bar strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.patient-safety-bar em{margin-left:auto;font-size:10px;font-style:normal}.editor-section{margin-bottom:30px}.editor-section-heading{min-height:47px;margin-bottom:13px;display:flex;align-items:center;justify-content:space-between;gap:16px}.editor-section-heading>div{display:flex;align-items:center;gap:10px}.editor-section-heading h2{margin:0 0 2px;font-size:16px}.editor-section-heading p{margin:0;color:#6b7974;font-size:11px}.editor-section-heading .secondary-action{display:flex;align-items:center;gap:6px}.section-icon-small{width:36px;height:36px;display:grid;place-items:center;flex:0 0 auto;border-radius:7px;color:#176b5b;background:#dfefe9}.medication-list{display:grid;gap:11px}.medication-empty{min-height:180px;display:grid;place-items:center;align-content:center;gap:7px;border:1px dashed #c3cfcb;border-radius:8px;color:#73807c;background:#ffffff80}.medication-empty strong{color:#394a45;font-size:13px}.medication-empty span{font-size:11px}.medication-empty button{margin-top:4px;padding:8px 10px;display:flex;align-items:center;gap:6px;border:0;border-radius:5px;color:#176b5b;background:#dfefe9;font-size:11px;font-weight:700}.medication-item{overflow:hidden;border:1px solid #d2dcda;border-radius:8px;background:#fff}.medication-item>header{min-height:45px;padding:8px 11px;display:flex;align-items:center;gap:9px;border-bottom:1px solid #e0e7e4;background:#fbfcfc}.medication-item>header>span{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;color:#176b5b;background:#dfefe9;font-size:11px;font-weight:800}.medication-item>header>strong{font-size:11px;text-transform:uppercase}.item-order{margin-left:auto;display:flex;gap:3px}.item-order button{width:29px;height:29px;display:grid;place-items:center;border:0;border-radius:5px;color:#60706b;background:transparent}.item-order button:hover:not(:disabled){background:#e9efed}.item-order button:disabled{cursor:not-allowed;opacity:.3}.item-order .remove-item{color:#a34c47}.item-order .remove-item:hover:not(:disabled){background:#f7e7e5}.medication-fields{padding:14px;display:grid;grid-template-columns:1.4fr .8fr .8fr .65fr;gap:12px}.medication-fields label,.orientations-section>label{min-width:0;display:grid;gap:5px}.medication-fields label>span,.orientations-section label>span{color:#586762;font-size:10px;font-weight:700}.medication-fields .dose-label{display:flex;align-items:center;justify-content:space-between;gap:5px}.dose-label button{padding:1px 5px;border:0;border-radius:3px;color:#176b5b;background:#e1f0eb;font-size:8px;font-weight:800}.dose-label button:hover{background:#cfe6de}.dose-dialog-backdrop{position:fixed;z-index:60;top:0;right:0;bottom:0;left:0;padding:20px;display:grid;place-items:center;background:#0c1c1880}.dose-dialog{width:min(510px,100%);overflow:hidden;border:1px solid #cbd6d2;border-radius:8px;background:#fff;box-shadow:0 24px 70px #091c1747}.dose-dialog>header{min-height:66px;padding:12px 14px 12px 18px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dfe6e3}.dose-dialog>header>div{min-width:0;display:flex;align-items:center;gap:10px;color:#176b5b}.dose-dialog>header span{min-width:0;display:grid;gap:2px}.dose-dialog>header small{color:#71807b;font-size:8px;font-weight:800;text-transform:uppercase}.dose-dialog>header strong{overflow:hidden;color:#263630;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.dose-dialog>header>button{width:32px;height:32px;display:grid;place-items:center;border:0;color:#667570;background:transparent}.dose-dialog-body{padding:18px;display:grid;gap:13px}.dose-dialog-body label{display:grid;gap:6px}.dose-dialog-body label span{color:#52625d;font-size:10px;font-weight:700}.dose-dialog-body input{height:40px;padding:0 10px;border:1px solid #cbd6d2;border-radius:6px;outline:0;font:inherit}.dose-dialog-body input:focus{border-color:#247967;box-shadow:0 0 0 3px #2479671a}.dose-age-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.dose-result{padding:13px;display:grid;gap:4px;border:1px solid #9fc4b9;border-radius:6px;background:#f4faf7}.dose-result small{color:#65736f;font-size:9px;text-transform:uppercase}.dose-result strong{color:#176b5b;font-size:18px}.dose-result span{color:#3d4d48;font-size:11px}.dose-result p{margin:3px 0 0;color:#71807b;font-size:9px}.dose-result em{margin-top:4px;color:#994943;font-size:10px;font-style:normal;font-weight:700}.dose-result.empty{min-height:54px;place-items:center;color:#71807b;border-style:dashed;background:#fafcfb;font-size:10px}.dose-source{margin:0;color:#7a8783;font-size:9px;line-height:1.45}.dose-dialog>footer{padding:12px 18px;display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #e0e7e4}.medication-fields input,.medication-fields select,.orientations-section textarea{width:100%;border:1px solid #cbd6d2;border-radius:6px;outline:0;color:#17211f;background:#fff;font-size:12px}.medication-fields input,.medication-fields select{height:38px;padding:0 9px}.medication-fields input:focus,.medication-fields select:focus,.orientations-section textarea:focus{border-color:#247967;box-shadow:0 0 0 3px #2479671a}.medication-fields .field-instructions{grid-column:span 3}.orientations-section{padding-top:4px}.orientations-section>label{margin-top:11px}.orientations-section textarea{min-height:86px;padding:10px;resize:vertical;line-height:1.5}.review-panel{min-height:78px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:18px;border:1px solid #cbd6d2;border-radius:8px;background:#fff}.review-panel>label{min-width:0;display:flex;align-items:flex-start;gap:10px;cursor:pointer}.review-panel input{width:17px;height:17px;margin:2px 0 0;accent-color:#176b5b}.review-panel label>span{min-width:0;display:grid;gap:4px}.review-panel strong{font-size:12px}.review-panel small,.review-panel p{margin:0;color:#6d7a76;font-size:10px;line-height:1.45}.review-panel.confirmed{justify-content:flex-start;border-color:#8fbcae;color:#246451;background:#f3faf7}.review-panel.confirmed>span{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:50%;color:#fff;background:#247967}.review-panel.confirmed>div{display:grid;gap:4px}.editor-validation{margin:9px 0 0;display:flex;align-items:center;justify-content:flex-end;gap:6px;color:#9b493f;font-size:11px}.editor-state{min-height:420px;display:flex;align-items:center;justify-content:center;gap:10px;color:#667570;font-size:13px}.editor-state.error{flex-direction:column;color:#923b37}.editor-state.error button{padding:7px 10px;border:1px solid #d8c0bd;border-radius:5px;color:inherit;background:#fff}.editor-mode-picker{width:fit-content;margin:18px 0;padding:3px;display:flex;gap:3px;border:1px solid #ccd8d4;border-radius:7px;background:#e9efed}.editor-mode-picker button{min-width:108px;height:34px;padding:0 13px;border:0;border-radius:5px;color:#64736e;background:transparent;font-size:11px;font-weight:700}.editor-mode-picker button.active{color:#176b5b;background:#fff;box-shadow:0 1px 4px #1a352e1f}.free-prescription-section{padding:0;overflow:hidden;border:1px solid #ccd8d4;border-radius:8px;background:#fff}.free-prescription-section>.editor-section-heading{padding:14px 16px;border-bottom:1px solid #dfe6e3}.free-editor-actions{margin-left:auto}.free-dose-shortcuts{padding:8px 16px;display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid #e1e7e5;background:#f8faf9}.free-dose-shortcuts button{min-height:30px;padding:4px 8px;display:flex;align-items:center;gap:7px;border:1px solid #cddad5;border-radius:5px;color:#32695e;background:#fff}.free-dose-shortcuts button span{font-size:9px;font-weight:700}.free-dose-shortcuts button small{padding-left:7px;border-left:1px solid #dce4e1;color:#71807b;font-size:8px}.free-dose-shortcuts button:hover{border-color:#79a99d;background:#f2f8f5}.free-prescription-paper{min-height:560px;padding:30px 38px;outline:none;white-space:pre-wrap;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:1.65}.free-prescription-paper:focus{background:#fbfdfc;box-shadow:inset 3px 0 #dcefe8}.open-editor-workspace{width:min(980px,100%);margin:0 auto;padding:28px clamp(20px,4vw,46px) 48px}.open-editor-heading{margin:22px auto 12px;width:min(760px,100%);display:flex;align-items:center;gap:10px;color:#176b5b}.open-editor-heading h2{margin:0;color:#263630;font-size:16px}.open-editor-heading p{margin:2px 0 0;color:#71807b;font-size:10px}.open-editor-heading>div:nth-child(2){min-width:0}.medication-quick-add{position:relative;margin-left:auto}.medication-quick-add>button{height:32px;padding:0 10px;display:flex;align-items:center;gap:6px;border:1px solid #cbd7d3;border-radius:6px;color:#32695e;background:#fff;font-size:10px;font-weight:700}.medication-popover{position:absolute;z-index:8;top:calc(100% + 7px);right:0;width:330px;overflow:hidden;border:1px solid #cbd6d2;border-radius:7px;color:#263630;background:#fff;box-shadow:0 14px 34px #122b242e}.medication-popover>header{height:38px;padding:0 9px 0 12px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e0e7e4}.medication-popover>header strong{font-size:11px}.medication-popover>header button{width:27px;height:27px;display:grid;place-items:center;border:0;color:#687671;background:transparent}.medication-popover>label{height:36px;margin:9px;padding:0 9px;display:flex;align-items:center;gap:7px;border:1px solid #ccd7d3;border-radius:5px;color:#71807b}.medication-popover>label input{min-width:0;flex:1;border:0;outline:0;font-size:11px}.medication-popover>div{max-height:260px;overflow-y:auto;border-top:1px solid #e4e9e7}.medication-popover>div>button{width:100%;min-height:52px;padding:8px 11px;display:flex;align-items:center;justify-content:space-between;gap:8px;border:0;border-bottom:1px solid #e4e9e7;color:#34443f;background:#fff;text-align:left}.medication-popover>div>button:hover{background:#f2f7f5}.medication-popover>div>button span{min-width:0;display:grid;gap:3px}.medication-popover>div>button strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.medication-popover>div>button small{overflow:hidden;color:#75827e;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.medication-popover-state{min-height:68px;display:flex;align-items:center;justify-content:center;gap:6px;color:#75827e;font-size:10px}.open-paper{width:min(760px,100%);min-height:720px;margin:0 auto 18px;padding:30px 38px 42px;display:flex;flex-direction:column;border:1px solid #ccd6d2;background:#fff;box-shadow:0 8px 24px #18302a14}.open-paper>header{padding-bottom:18px;border-bottom:2px solid #246b5b;text-align:right;font-size:15px}.open-paper-patient{padding:17px 0;display:grid;gap:4px;border-bottom:1px solid #d8dfdc}.open-paper-patient small{color:#71807b;font-size:9px;font-weight:700;text-transform:uppercase}.open-paper-patient strong{font-size:13px}.open-paper-content{min-height:520px;padding:26px 2px;flex:1;outline:none;white-space:pre-wrap;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:1.65}.open-paper-content:empty:before{color:#9aa5a1;content:attr(data-placeholder);pointer-events:none}.open-paper-content:focus{background:#fbfdfc;box-shadow:inset 3px 0 #dcefe8}.open-editor-workspace>.review-panel{width:min(760px,100%);margin-right:auto;margin-left:auto}.open-editor-ready{width:min(760px,100%);margin:8px auto 0;display:flex;justify-content:flex-end;align-items:center;gap:5px;color:#26725a;font-size:10px}.auth-loading{min-height:100vh;display:grid;place-items:center;color:#176b5b;background:#f3f6f5}.auth-screen{min-height:100vh;padding:24px;display:grid;place-items:center;background:#eef3f1}.auth-panel{width:min(410px,100%);padding:30px;border:1px solid #d5dfdb;border-radius:8px;background:#fff;box-shadow:0 16px 48px #15342c1f}.auth-brand{width:46px;height:46px;margin-bottom:20px;display:grid;place-items:center;border-radius:8px;color:#176b5b;background:#dcefe8}.auth-panel h1{font-size:23px}.auth-panel>div>p:last-child{margin:8px 0 22px;color:#697873;font-size:12px;line-height:1.55}.auth-panel form{display:grid;gap:14px}.auth-panel form>label{display:grid;gap:6px}.auth-panel form>label>span{color:#52625d;font-size:11px;font-weight:700}.auth-panel label>div{height:43px;padding:0 10px;display:flex;align-items:center;gap:8px;border:1px solid #cbd6d2;border-radius:6px;color:#677570}.auth-panel label>div:focus-within{border-color:#247967;box-shadow:0 0 0 3px #2479671a}.auth-panel input{min-width:0;flex:1;border:0;outline:0}.auth-panel label button{width:30px;height:30px;display:grid;place-items:center;border:0;color:#62716c;background:transparent}.auth-panel form>.primary-action{width:100%;margin-top:3px}.auth-error{margin:0;color:#9a413b;font-size:11px}.notes-backdrop{position:fixed;z-index:50;top:0;right:0;bottom:0;left:0;padding:28px;display:grid;place-items:center;background:#0c1c1885}.notes-modal{width:min(1040px,100%);height:min(720px,calc(100vh - 56px));overflow:hidden;display:grid;grid-template-rows:64px minmax(0,1fr);border:1px solid #cbd6d2;border-radius:8px;background:#fff;box-shadow:0 24px 70px #091c1747}.notes-modal>header{padding:0 17px 0 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dfe6e3}.notes-modal>header>div{display:flex;align-items:center;gap:10px;color:#176b5b}.notes-modal>header span{display:grid;gap:2px}.notes-modal>header small{color:#71807b;font-size:8px;font-weight:800;text-transform:uppercase}.notes-modal>header strong{color:#263630;font-size:16px}.notes-modal>header>button{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:5px;color:#65736f;background:transparent}.notes-modal>header>button:hover{background:#edf2f0}.notes-layout{min-height:0;display:grid;grid-template-columns:270px minmax(0,1fr)}.notes-list{min-height:0;overflow-y:auto;border-right:1px solid #dce4e1;background:#f5f7f6}.notes-list-actions{position:sticky;top:0;z-index:1;padding:10px;display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:7px;background:#f5f7f6}.notes-list-actions label{height:36px;padding:0 9px;display:flex;align-items:center;gap:7px;border:1px solid #ccd7d3;border-radius:6px;color:#6b7975;background:#fff}.notes-list-actions input{min-width:0;width:100%;border:0;outline:0;font-size:11px}.notes-list-actions button{display:grid;place-items:center;border:0;border-radius:6px;color:#fff;background:#176b5b}.notes-list>button{width:100%;min-height:64px;padding:10px 12px;display:grid;gap:5px;border:0;border-top:1px solid #e0e6e4;color:#33443f;background:transparent;text-align:left}.notes-list>button:hover,.notes-list>button.active{background:#fff}.notes-list>button.active{box-shadow:inset 3px 0 #247967}.notes-list>button strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.notes-list>button small{overflow:hidden;color:#7a8783;font-size:9px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.notes-state{min-height:100px;display:flex;align-items:center;justify-content:center;gap:7px;color:#74817d;font-size:10px}.notes-editor{min-width:0;min-height:0;padding:18px;display:flex;flex-direction:column}.notes-editor>label{margin-bottom:13px;display:grid;gap:6px}.notes-editor label>span{color:#52625d;font-size:10px;font-weight:700}.notes-editor input,.notes-editor textarea{width:100%;padding:10px;border:1px solid #cbd6d2;border-radius:6px;outline:0;color:#17211f;background:#fff;font:inherit}.notes-editor input:focus,.notes-editor textarea:focus{border-color:#247967;box-shadow:0 0 0 3px #2479671a}.notes-content{min-height:0;flex:1;grid-template-rows:auto minmax(0,1fr);align-content:stretch}.notes-content textarea{min-height:0;height:100%;resize:none;line-height:1.55}.notes-editor>footer{padding-top:12px;display:flex;align-items:center;gap:8px;border-top:1px solid #e0e7e4}.notes-editor>footer>div{min-width:0;flex:1}.notes-editor>footer>div span{display:flex;align-items:center;gap:5px;color:#26725a;font-size:10px}.notes-editor>footer button{display:flex;align-items:center;gap:6px}.notes-delete{width:40px;height:40px;display:grid!important;place-items:center;border:1px solid #e2bbb8;border-radius:6px;color:#994943;background:#fff}.notes-empty{flex:1;display:grid;place-items:center;align-content:center;gap:9px;color:#71807b}.notes-empty strong{font-size:12px}.history-workspace{width:min(1120px,100%);margin:0 auto;padding:32px clamp(22px,4vw,48px) 48px}.patients-workspace{width:min(1180px,100%);margin:0 auto;padding:32px clamp(22px,4vw,48px) 48px}.patients-header{margin-bottom:20px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.patients-header h2{margin-bottom:4px;font-size:20px}.patients-header p{margin:0;color:#687671;font-size:12px}.patients-list{overflow:hidden;border:1px solid #d5deda;border-radius:8px;background:#fff}.patients-list-head,.patients-list article{display:grid;grid-template-columns:minmax(210px,1.5fr) 120px minmax(170px,1fr) minmax(160px,1fr) 40px;align-items:center;gap:14px}.patients-list-head{min-height:38px;padding:0 14px;color:#70807a;background:#edf2f0;font-size:9px;font-weight:800;text-transform:uppercase}.patients-list article{min-height:67px;padding:9px 14px;border-top:1px solid #e0e7e4;color:#465650;font-size:11px}.patients-list article>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.patients-list article>span:first-child,.patients-list article>span:nth-child(3){display:grid;gap:3px}.patients-list article strong{overflow:hidden;color:#263630;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.patients-list article small{overflow:hidden;color:#7b8884;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.patients-list article>button{width:32px;height:32px;display:grid;place-items:center;border:1px solid #cfdbd7;border-radius:5px;color:#32695e;background:#fff}.patients-list article>button:hover{background:#e9f2ef}.ged-workspace{width:min(1180px,100%);margin:0 auto;padding:32px clamp(22px,4vw,48px) 48px}.ged-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.ged-header h2{margin:0 0 4px;font-size:20px}.ged-header p{margin:0;color:#687671;font-size:12px}.ged-upload{display:flex;gap:8px}.ged-upload select{min-width:160px;padding:0 9px;border:1px solid #cbd6d2;border-radius:6px;background:#fff;font:inherit}.ged-upload input{display:none}.ged-tools{margin:20px 0 12px;display:flex;align-items:center;justify-content:space-between;gap:16px}.ged-tools>span{color:#71807b;font-size:10px}.ged-message{margin-bottom:10px;padding:9px 12px;border:1px solid #bad8cf;border-radius:6px;color:#26725a;background:#f3faf7;font-size:10px}.ged-list{overflow:hidden;border:1px solid #d5deda;border-radius:8px;background:#fff}.ged-list-head,.ged-list article{display:grid;grid-template-columns:minmax(260px,1.6fr) minmax(120px,.7fr) 80px 95px 115px;align-items:center;gap:12px}.ged-list-head{min-height:38px;padding:0 14px;color:#70807a;background:#edf2f0;font-size:9px;font-weight:800;text-transform:uppercase}.ged-list article{min-height:62px;padding:8px 14px;border-top:1px solid #e0e7e4;color:#52615c;font-size:10px}.ged-document{min-width:0;display:flex;align-items:center;gap:10px}.ged-document>i{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border-radius:6px;color:#176b5b;background:#e1f0eb}.ged-document>span{min-width:0;display:grid;gap:3px}.ged-document strong,.ged-document small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ged-document strong{color:#263630;font-size:11px}.ged-document small{color:#7b8884;font-size:8px}.ged-actions{display:flex;justify-content:flex-end;gap:5px}.ged-actions a,.ged-actions button{width:31px;height:31px;display:grid;place-items:center;border:1px solid #cfdbd7;border-radius:5px;color:#32695e;background:#fff}.ged-actions button{color:#994943}.history-header{margin-bottom:20px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.history-header h2{margin-bottom:4px;font-size:20px}.history-header p{margin:0;color:#687671;font-size:12px}.history-state{min-height:260px;display:grid;place-items:center;align-content:center;gap:8px;color:#71807b;border:1px dashed #c8d3cf;border-radius:8px}.history-state strong{color:#3d4d48;font-size:13px}.history-state span{font-size:11px}.history-list{overflow:hidden;border:1px solid #d5deda;border-radius:8px;background:#fff}.history-list-head,.history-list article{display:grid;grid-template-columns:minmax(190px,1.5fr) minmax(150px,1fr) 150px 55px 116px;align-items:center;gap:14px}.history-list-head{min-height:38px;padding:0 14px;color:#70807a;background:#edf2f0;font-size:9px;font-weight:800;text-transform:uppercase}.history-list article{min-height:65px;padding:9px 14px;border-top:1px solid #e0e7e4;color:#465650;font-size:12px}.history-list article>span:first-child{min-width:0;display:grid;gap:3px}.history-list article>span:nth-child(2){min-width:0;display:grid;align-content:center;gap:4px}.history-list article>span:nth-child(2) strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-list article>span:nth-child(2) small{display:block;line-height:1.3}.history-list article strong{overflow:hidden;color:#263630;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.history-list article small{color:#7b8884;font-size:10px}.history-actions{display:flex;justify-content:flex-end;gap:5px}.history-actions button{width:32px;height:32px;display:grid;place-items:center;border:1px solid #cfdbd7;border-radius:5px;color:#32695e;background:#fff}.history-actions button:hover{background:#e9f2ef}.copy-dialog-body{padding:20px}.copy-dialog-body>p{margin:0 0 16px;color:#65736f;font-size:12px;line-height:1.5}.copy-dialog-body>p strong{color:#30423d}.copy-dialog .patient-results{position:static;max-height:min(360px,calc(100vh - 330px));margin-top:7px;overflow-y:auto}.model-type-tabs{width:min(1220px,calc(100% - 36px));margin:24px auto -10px;display:flex;gap:4px;border-bottom:1px solid #d4ddda}.model-type-tabs button{min-height:39px;padding:0 14px;border:0;border-bottom:2px solid transparent;color:#687772;background:transparent;font-size:12px;font-weight:700}.model-type-tabs button.active{border-bottom-color:#247967;color:#176b5b}.report-template-content{min-height:330px!important;line-height:1.55}.models-workspace{width:min(1220px,100%);margin:0 auto;padding:26px clamp(18px,3vw,40px) 48px;display:grid;grid-template-columns:250px minmax(0,1fr);align-items:start;gap:18px}.models-list{position:sticky;top:108px;max-height:calc(100vh - 132px);overflow:auto;border:1px solid #d5deda;border-radius:8px;background:#fff}.models-list>header{position:sticky;top:0;z-index:1;min-height:49px;padding:8px 10px 8px 14px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dfe6e3;background:#fff;font-size:12px}.models-list>header button{width:31px;height:31px;display:grid;place-items:center;border:0;border-radius:5px;color:#fff;background:#176b5b}.models-list>button{width:100%;min-height:57px;padding:8px 10px;display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:7px;border:0;border-bottom:1px solid #e4e9e7;color:#52615c;background:#fff;text-align:left}.models-list>button:hover,.models-list>button.active{color:#176b5b;background:#eef6f3}.models-list>button>span{min-width:0;display:grid;gap:3px}.models-list>button strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.models-list>button small{color:#7a8783;font-size:9px}.models-list em{padding:3px 4px;border-radius:3px;font-size:7px;font-style:normal;font-weight:800;text-transform:uppercase}.models-list em.draft{color:#845810;background:#f8e8c8}.models-list em.active{color:#246d56;background:#dcefe7}.model-editor{min-width:0}.model-editor>header{min-height:62px;margin-bottom:14px;display:flex;align-items:center;justify-content:space-between;gap:15px}.model-editor>header h2{font-size:19px}.model-editor>header>div:last-child{display:flex;gap:7px}.model-editor>header button{display:flex;align-items:center;gap:5px}.archive-action{min-height:42px;padding:0 12px;display:flex;align-items:center;gap:5px;border:1px solid #e2bbb8;border-radius:6px;color:#994943;background:#fff;font-size:12px;font-weight:700}.model-form{margin-bottom:22px;padding:17px;border:1px solid #d5deda;border-radius:8px;background:#fff}.model-items-heading{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px}.model-items-heading>div{display:grid;gap:3px}.model-items-heading strong{font-size:13px}.model-items-heading small{color:#72807b;font-size:10px}.model-items-heading button{display:flex;align-items:center;gap:5px}.model-editor>.settings-message{margin-top:12px}.preview-workspace{padding:24px clamp(22px,4vw,48px) 48px}.preview-actions{width:min(900px,100%);min-height:58px;margin:0 auto 16px;display:flex;align-items:center;gap:13px}.preview-actions>div{display:grid;gap:3px}.preview-actions>div strong{font-size:13px}.preview-actions>div small{color:#6d7a76;font-size:10px}.preview-actions>.primary-action{margin-left:auto}.print-options{width:min(900px,100%);min-height:46px;margin:0 auto 14px;padding:9px 12px;display:flex;align-items:center;gap:18px;border:1px solid #d2dcda;border-radius:7px;background:#fff}.print-options>strong{color:#52625d;font-size:11px}.print-options label{display:flex;align-items:center;gap:6px;color:#40514c;font-size:11px;cursor:pointer}.print-options input{width:16px;height:16px;margin:0;accent-color:#176b5b}.print-options label:has(input:disabled){cursor:not-allowed;opacity:.45}.print-warning{width:min(900px,100%);margin:0 auto 14px;padding:10px 12px;display:flex;align-items:center;gap:8px;border:1px solid #e1b2af;border-radius:6px;color:#923b37;background:#fff8f7;font-size:11px}.prescription-page{width:210mm;min-height:297mm;margin:0 auto;padding:16mm 17mm 14mm;display:flex;flex-direction:column;color:#151b19;background:#fff;box-shadow:0 8px 30px #162d271f;font-family:Arial,Helvetica,sans-serif}.report-editor{padding:18px;border:1px solid #d7e0dd;border-radius:8px;background:#fff}.report-editor>label{margin-top:14px;display:grid;gap:6px}.report-editor label>span{color:#52625d;font-size:11px;font-weight:700}.report-editor input,.report-editor textarea,.report-editor select{width:100%;padding:10px 11px;border:1px solid #cbd6d2;border-radius:6px;outline:0;background:#fff;font:inherit}.report-editor textarea{resize:vertical;line-height:1.55}.report-editor input:focus,.report-editor textarea:focus{border-color:#247967;box-shadow:0 0 0 3px #2479671a}.special-page{width:297mm;min-height:210mm;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;color:#111;background:#fff;box-shadow:0 8px 30px #162d271f;font-family:Arial,Helvetica,sans-serif}.special-copy{min-width:0;padding:8mm 9mm 7mm;display:flex;flex-direction:column;border-right:.25mm dashed #777}.special-copy:last-child{border-right:0}.special-copy>header{min-height:20mm;display:flex;align-items:center;gap:4mm}.special-copy>header img{width:28mm;height:17mm;object-fit:contain}.special-copy>header div{display:grid;gap:1mm}.special-copy>header strong{font-size:10pt}.special-copy>header span,.special-copy>header small{font-size:7.5pt}.special-emitter,.special-patient{margin:5mm 0 0;padding-bottom:1.5mm;border-bottom:.3mm solid #111;font-size:8.5pt}.special-patient{margin-top:6mm}.special-copy>h2{margin:4mm 0;text-align:center;font-size:10pt}.special-items{flex:1}.special-items>div{margin-bottom:3.5mm;break-inside:avoid}.special-items>div>strong{font-size:8pt;text-transform:uppercase}.special-items>div>span{float:right;font-size:7.5pt;font-weight:700}.special-items p,.special-items small{margin:1mm 0 0 4mm;display:block;font-size:7pt;line-height:1.35}.special-free-text{flex:1;margin-top:2mm;white-space:pre-wrap;font-size:8pt;line-height:1.5}.special-date{margin-bottom:3mm;display:flex;justify-content:space-between;font-size:8pt}.special-boxes{display:grid;grid-template-columns:1fr 1fr;gap:4mm}.special-boxes section{min-height:30mm;padding:2mm;display:flex;flex-direction:column;gap:2mm;border:.35mm solid #111;font-size:6pt}.special-boxes section>b{text-align:center;font-size:6.5pt}.special-boxes section>i{margin-top:5mm;border-top:.25mm solid #111}.special-boxes section:last-child{align-items:center;justify-content:space-between;text-align:center}.report-header{padding-bottom:5mm;display:flex;align-items:center;justify-content:center;gap:5mm;border-bottom:.5mm solid #246b5b;text-align:center}.report-header img{width:28mm;height:18mm;object-fit:contain}.report-header div{display:grid;gap:1mm}.report-header strong{font-size:12pt}.report-header span,.report-header small{font-size:8pt}.report-patient{margin-top:5mm;display:grid;justify-items:center;gap:1.5mm;font-size:9pt}.report-page>h2{margin:8mm 0 10mm;text-align:center;font-size:12pt;text-transform:uppercase}.report-content{flex:1;white-space:pre-wrap;font-size:10.5pt;line-height:1.55}.report-content>span{display:block;white-space:pre-wrap}.open-print-content{flex:1;padding-top:8mm;white-space:pre-wrap;font-size:10.5pt;line-height:1.65}.open-print-content>span{display:block;min-height:110mm;white-space:pre-wrap}.report-footer{min-height:45mm;display:grid;grid-template-columns:1fr 75mm;align-items:end;gap:10mm}.report-footer>p{font-size:8pt}.print-header{padding-bottom:7mm;display:flex;align-items:flex-start;justify-content:space-between;gap:10mm;border-bottom:.6mm solid #246b5b}.print-brand{min-width:0;display:flex;align-items:center;gap:4mm}.print-brand img{width:22mm;height:16mm;object-fit:contain}.print-brand>div{min-width:0;display:grid;gap:1.2mm}.print-brand strong{font-size:11pt}.print-brand span,.print-brand small{color:#48524f;font-size:7.5pt;line-height:1.35}.print-title{flex:0 0 auto;display:grid;justify-items:end;gap:1.5mm;text-align:right}.print-title span{font-size:12pt;font-weight:800}.print-title small{color:#59635f;font-size:8pt}.print-patient{padding:5mm 0;display:flex;flex-wrap:wrap;gap:5mm 12mm;border-bottom:.25mm solid #cbd2cf}.print-patient>div{display:grid;gap:1mm}.print-patient>div:first-child{flex:1 1 70mm}.print-patient span{color:#68716e;font-size:6.5pt;font-weight:700;text-transform:uppercase}.print-patient strong{font-size:9pt}.print-body{flex:1;padding-top:7mm}.print-body h2{margin:0 0 4mm;color:#24483f;font-size:8pt;text-transform:uppercase}.print-items{margin-bottom:7mm}.print-route-group{margin-bottom:6mm}.print-route-group:last-child{margin-bottom:0}.print-route-group>h2{padding-bottom:1.5mm;border-bottom:.35mm solid #9eaaa6}.print-item{margin-bottom:4.2mm;break-inside:avoid}.print-item-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8mm;border-bottom:.25mm dotted #87908d}.print-item-heading strong{padding-bottom:1.2mm;font-size:9pt;text-transform:uppercase}.print-item-heading span{flex:0 0 auto;font-size:8pt;font-weight:700}.print-item p{margin:1.5mm 0 0 5mm;font-size:8.5pt;line-height:1.45}.print-item small{display:block;margin:1mm 0 0 5mm;color:#555f5c;font-size:7.5pt;line-height:1.4}.editable-print-text{min-width:1ch;border-radius:2px;cursor:text;transition:background .12s,box-shadow .12s}.editable-print-text:hover{background:#eef6f3;box-shadow:0 0 0 1.2mm #eef6f3}.editable-print-text:focus{outline:.3mm solid #4c9787;outline-offset:1mm;background:#f7fcfa}.print-orientations,.print-alerts{margin-top:6mm;padding-top:4mm;break-inside:avoid;border-top:.25mm solid #cbd2cf}.print-orientations p,.print-alerts p{margin:0;white-space:pre-line;font-size:8pt;line-height:1.55}.print-alerts{color:#6e4521}.print-footer{min-height:35mm;padding-top:8mm;display:grid;grid-template-columns:1fr 75mm;align-items:end;gap:10mm;break-inside:avoid}.print-footer>p{margin:0;color:#555f5c;font-size:8pt}.signature-area{display:flex;flex-direction:column;align-items:center;text-align:center}.signature-area img{width:42mm;height:14mm;margin-bottom:-2mm;object-fit:contain}.signature-area>span{width:62mm;border-top:.25mm solid #505956}.signature-area strong{margin-top:1.5mm;font-size:8.5pt}.signature-area small,.signature-area em{margin-top:.8mm;color:#4e5855;font-size:7.5pt;font-style:normal}@media (max-width: 940px){.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 1180px){.specialty-picker{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width: 940px){.medication-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.medication-fields .field-instructions{grid-column:1 / -1}}@media (max-width: 1020px){.settings-layout{grid-template-columns:1fr}.document-preview{position:static;width:min(310px,100%)}}@media (max-width: 720px){.app-shell{height:auto;min-height:100vh;overflow:visible;grid-template-columns:1fr}.sidebar{position:static;height:auto;min-height:auto;padding:10px 16px;flex-direction:row;align-items:center}.brand{padding:0}.brand>span:last-child{display:none}nav{display:flex;margin-left:auto}.nav-item{width:42px;height:42px;padding:0;justify-content:center;font-size:0}.sidebar-footer{margin:0 0 0 6px}.workflow-main{padding-left:0}.workflow-main>.topbar{margin-left:0}.document-panel{position:static;width:auto;padding:10px 12px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;border-right:0;border-bottom:1px solid #d5ddda}.document-panel>div:first-child,.document-panel>p{display:none}.document-panel>button{min-height:52px;margin:0;grid-template-columns:28px minmax(0,1fr)}.document-panel>button>span{width:28px;height:28px}.document-panel>button small{display:none}.sidebar-footer>button{width:42px;height:42px;padding:0;justify-content:center;font-size:0}main{height:auto;min-height:calc(100vh - 62px);overflow:visible;padding-bottom:94px}.topbar{height:76px;padding:14px 18px}h1{font-size:20px}.workspace{padding:25px 18px 38px}.template-header{align-items:stretch;flex-direction:column;gap:16px}.patient-group-picker{margin-left:0}.patient-group-picker button{min-width:0;flex:1}.search-field{width:100%}.template-grid{grid-template-columns:1fr}.specialty-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.specialty-group>div{grid-template-columns:1fr}.template-detail-grid{grid-template-columns:1fr}.template-detail-grid>p{min-height:auto;border-right:0;border-bottom:1px solid #e0e7e4}.template-detail-grid>p:last-child{border-bottom:0}.action-bar{left:0;min-height:70px;padding:10px 16px}.selection-summary{max-width:42%}.primary-action{padding:0 13px}.toast{right:18px;bottom:82px}.dialog-backdrop{padding:12px;align-items:end}.patient-dialog{max-height:calc(100vh - 24px)}.form-grid{grid-template-columns:1fr}.form-grid .full-width{grid-column:auto}.selected-patient>button{width:38px;height:38px;padding:0;justify-content:center;font-size:0}.settings-workspace{padding:25px 18px 38px}.settings-intro{align-items:flex-start;flex-direction:column;gap:8px}.settings-tools{width:100%;justify-content:space-between}.settings-section{padding:16px}.image-fields{grid-template-columns:1fr}.prescription-workspace{padding:18px 16px 38px}.patient-safety-bar{align-items:flex-start}.patient-safety-bar em{display:none}.editor-section-heading{align-items:flex-start}.editor-section-heading>.secondary-action{width:38px;min-height:38px;padding:0;justify-content:center;font-size:0}.medication-fields{grid-template-columns:1fr}.medication-fields .field-instructions{grid-column:auto}.review-panel{align-items:stretch;flex-direction:column}.review-panel .primary-action{width:100%}.history-workspace{padding:25px 16px 38px}.history-header,.patients-header{align-items:stretch;flex-direction:column}.patients-list{overflow-x:auto}.patients-list-head,.patients-list article{min-width:800px}.ged-header{align-items:stretch;flex-direction:column}.ged-upload{flex-wrap:wrap}.ged-list{overflow-x:auto}.ged-list-head,.ged-list article{min-width:760px}.history-header .search-field{width:100%}.history-list{overflow-x:auto}.history-list-head,.history-list article{min-width:760px}.notes-backdrop{padding:10px}.notes-modal{height:calc(100vh - 20px);grid-template-rows:58px minmax(0,1fr)}.notes-layout{grid-template-columns:1fr;grid-template-rows:180px minmax(0,1fr)}.notes-list{border-right:0;border-bottom:1px solid #dce4e1}.notes-editor{padding:12px}.notes-editor>footer{flex-wrap:wrap}.notes-editor>footer>div{flex-basis:100%}.models-workspace{grid-template-columns:1fr;padding:18px 14px 38px}.models-list{position:static;max-height:260px}.model-editor>header{align-items:flex-start;flex-direction:column}.model-editor>header>div:last-child{width:100%;flex-wrap:wrap}.preview-workspace{padding:16px 12px 35px;overflow:auto}.preview-actions,.print-options{min-width:650px}.prescription-page{transform-origin:top left}}@media (max-width: 390px){.primary-action{font-size:12px}.selection-summary small{display:none}}@page{size:A4;margin:0}@page special{size:A4 landscape;margin:0}@media print{:root,body{background:#fff}.no-print,.sidebar,.topbar,.document-panel{display:none!important}.app-shell{display:block;min-height:0}main,.workflow-main{padding:0}.preview-workspace{padding:0}.prescription-page{width:210mm;min-height:297mm;margin:0;box-shadow:none}.special-page{page:special;width:297mm;min-height:210mm;margin:0;box-shadow:none}.editable-print-text,.editable-print-text:hover,.editable-print-text:focus{outline:0;background:transparent;box-shadow:none}}
