.main:has(.patient-workspace),.main:has(.patient-profile){padding-left:18px;padding-right:18px}.main:has(.patient-workspace) .topbar,.main:has(.patient-profile) .topbar{height:56px;margin-bottom:12px}.patient-workspace>.pagehead,.patient-profile>.pagehead{margin-bottom:12px;gap:12px}.patient-workspace h1,.patient-profile>.pagehead h1{font-size:22px;margin:0}.patient-workspace button,.patient-profile>.pagehead button{font-size:12px;padding:7px 10px;border-radius:4px}.patient-workspace .patient-center{grid-template-columns:155px minmax(0,1fr);gap:0;border:1px solid #dce6eb;border-radius:8px;background:white}.patient-workspace .patient-groups{border:0;border-right:1px solid #e2eaed;border-radius:8px 0 0 8px;background:#fafcfd;position:static;align-self:stretch;padding:12px 8px}.patient-group-heading{font-size:13px;font-weight:650;padding:7px 10px 13px;color:#456674}.patient-workspace .patient-groups button{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:11px 9px;margin-bottom:3px;border-radius:4px;font-size:12px}.patient-workspace .patient-groups button.active{background:#e4f3f7;color:#087c91}.patient-groups small{font-size:11px;color:#728e9d;font-weight:400}.patient-groups>p{font-size:10px;line-height:1.7;color:#889ba5;padding:10px;margin:10px 0}.patient-workspace .patient-list-card{padding:12px;border:0;border-radius:0 8px 8px 0;margin:0;box-shadow:none}.patient-searchbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.patient-searchbar input,.patient-searchbar select,.patient-advanced-fields input,.patient-advanced-fields select{font-size:12px;padding:7px 8px;min-height:33px;min-width:0}.patient-searchbar input{flex:1;min-width:180px}.patient-searchbar select{max-width:150px}.patient-searchbar button{white-space:nowrap}.patient-searchbar #patient-advanced{border:0;color:#2b8396}.patient-advanced-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;background:#f6fafc;padding:12px;border:1px solid #e0e9ee;border-radius:5px;margin-top:10px}.patient-advanced-fields[hidden]{display:none}.patient-advanced-fields label{font-size:11px;gap:4px;margin:0;color:#5c7786}.patient-advanced-fields .checks{align-self:center;display:flex}.patient-advanced-fields .checks input{min-height:auto}.patient-filter-summary{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.patient-filter-summary:empty{display:none}.patient-filter-summary span{font-size:10px;color:#357387;background:#eff7fa;border:1px solid #e0edf2;padding:3px 6px;border-radius:3px}.patient-result-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0 9px;font-size:12px;color:#537180}.patient-result-toolbar>div{display:flex;align-items:center;gap:8px}.patient-result-toolbar label{display:flex;align-items:center;gap:5px;margin:0;font-size:11px}.patient-result-toolbar select{width:auto;font-size:11px;padding:4px 6px;border-radius:4px}.patient-workspace #patient-results>.tablewrap{max-height:calc(100vh - 325px);overflow:auto;min-height:140px;border:1px solid #e0e8ed;border-radius:4px}.patient-workspace table{margin:0;width:100%;min-width:710px}.patient-workspace th{position:sticky;top:0;background:#f4f8fa;z-index:2;font-size:11px;font-weight:600;color:#4f6674;white-space:nowrap}.patient-workspace td,.patient-workspace th{padding:9px 8px;border-bottom:1px solid #e4ebef;text-align:left;vertical-align:middle}.patient-workspace td{font-size:12px;line-height:1.5}.patient-workspace td:first-child,.patient-workspace th:first-child{width:26px;padding:8px}.patient-workspace th:nth-child(2),.patient-workspace td:nth-child(2){min-width:138px}.patient-workspace td:nth-child(3){white-space:nowrap;font-variant-numeric:tabular-nums}.patient-workspace th:nth-child(4),.patient-workspace td:nth-child(4){min-width:87px}.patient-workspace tbody tr:nth-child(even){background:#fafcfd}.patient-workspace tbody tr:hover{background:#edf7fa}.patient-workspace tr:has([data-select-patient]:checked){background:#e5f3f8}.patient-workspace .patient-name-link{padding:0;font-size:13px;color:#168399}.patient-mrn,.patient-birth,.patient-state{display:block;font-size:10px;color:#8395a1;margin-top:2px;white-space:nowrap}.patient-workspace .patient-list-tags{display:flex;gap:3px;flex-wrap:wrap;max-width:170px}.patient-workspace .badge{font-size:10px;padding:2px 5px}.patient-allergy{font-size:10px;color:#9c6257;max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.patient-workspace .patient-row-actions{display:flex;gap:3px;flex-wrap:nowrap;align-items:center;min-width:0}.patient-workspace .patient-row-actions button,.patient-workspace .patient-row-more summary{border:0;background:transparent;color:#168399;font-size:11px;padding:3px 4px;white-space:nowrap}.patient-row-more summary{cursor:pointer;list-style:none}.patient-row-more summary::-webkit-details-marker{display:none}.patient-row-more{position:relative}.patient-row-more>div{position:absolute;right:0;top:26px;z-index:7;background:#fff;min-width:98px;box-shadow:0 5px 18px #32495d25;border:1px solid #dce8ee;border-radius:5px;padding:5px;display:flex;flex-direction:column;align-items:stretch}.patient-workspace .patient-row-more>div button{text-align:left;padding:7px}.patient-workspace .patient-row-more>div button:hover{background:#eaf6fa}.patient-workspace .pagination{margin:10px 0 7px;gap:7px;justify-content:flex-end;font-size:11px}.patient-workspace .pagination>span{margin-right:auto;color:#788e9c}.patient-workspace .pagination button{font-size:11px;padding:5px 8px}.patient-batch-footer{display:flex;align-items:center;flex-wrap:wrap;gap:10px;background:#f8fbfc;border-top:1px solid #e3ebef;padding:10px 0 0;font-size:11px;color:#6b8390}.patient-batch-footer .checks{margin:0;font-size:11px}.patient-batch-footer input,.patient-workspace [data-select-patient]{width:14px;height:14px;accent-color:#0e879f}.patient-batch-footer button{font-size:11px;padding:5px 8px}.patient-batch-footer #patient-batch-followup{margin-left:auto}.patient-workspace button:focus-visible,.patient-workspace summary:focus-visible{outline:2px solid #188ca0;outline-offset:2px}.patient-profile-summary{display:flex;gap:16px;flex-wrap:wrap;background:#f6fafc;border:1px solid #e0e9ee;border-radius:5px;padding:12px 14px;font-size:12px;color:#5a7988;margin-bottom:10px}.patient-profile>.warning{padding:8px 12px;font-size:12px}.patient-profile>.tabs{margin:12px 0}.patient-profile>.tabs button{padding:8px 12px;font-size:12px;border-radius:4px}.patient-profile>.pagehead .subtle{font-size:12px;margin-top:5px}.patient-profile #patient-body>.grid>.card{padding:16px}.patient-profile #patient-body h2{font-size:16px}.patient-profile #patient-body h3{font-size:13px}.patient-profile #patient-body .record-overview{padding:9px 0}.patient-profile #patient-body .overview-heading{font-size:13px}.patient-profile #patient-body .overview-record-link{font-size:12px}
@media(max-width:1050px){.patient-workspace .patient-center{grid-template-columns:130px minmax(0,1fr)}.patient-workspace .patient-groups button{font-size:11px;padding:10px 5px}.patient-searchbar input{min-width:170px}.patient-searchbar select{max-width:128px}.patient-workspace .patient-list-card{padding:10px}.patient-searchbar{gap:5px}.patient-searchbar button{padding:6px}.patient-workspace #patient-results>.tablewrap{max-height:calc(100vh - 355px)}}
@media(max-width:700px){.main:has(.patient-workspace),.main:has(.patient-profile){padding-left:10px;padding-right:10px}.patient-workspace .patient-center{grid-template-columns:1fr}.patient-workspace .patient-groups{display:flex;overflow:auto;gap:4px;border:0;border-bottom:1px solid #e2eaed;padding:8px}.patient-group-heading,.patient-groups>p{display:none}.patient-workspace .patient-groups button{flex-shrink:0;width:auto;margin:0;padding:8px}.patient-workspace .patient-list-card{padding:10px}.patient-searchbar input{flex-basis:100%;min-width:0}.patient-searchbar select{flex:1;max-width:none}.patient-advanced-fields{grid-template-columns:1fr 1fr}.patient-workspace #patient-results>.tablewrap{max-height:440px}.patient-result-toolbar{flex-wrap:wrap}.patient-workspace .pagination{flex-wrap:wrap}.patient-batch-footer{gap:7px}.patient-profile-summary{gap:8px 14px}.patient-profile>.pagehead{align-items:flex-start}.patient-profile>.pagehead .actions{gap:5px}}
.patient-row-more>div{position:fixed;right:auto;top:auto;z-index:20}.patient-workspace .patient-row-more>div button[hidden]{display:none}
