:root{--teal:#0a8585;--teal2:#0b9d9b;--green:#63b37b;--navy:#102b35;--bg:#f5f8f8;--line:#dfe8e8;--muted:#64777d;--white:#fff}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172d35;background:var(--bg)}button,input{font:inherit}.hidden{display:none!important}.login-page{min-height:100vh;display:grid;grid-template-columns:56% 44%;background:#f5f8f8}.login-brand{background:linear-gradient(135deg,#075c62 0%,#098f91 52%,#66b57d 100%);display:flex;align-items:center;padding:70px 8%;color:#fff}.login-brand-inner{max-width:620px}.brand-logo{width:220px;height:220px;object-fit:contain;background:#fff;border-radius:32px;padding:15px}.brand-title{font-size:58px;font-weight:800;letter-spacing:.02em;margin:38px 0 18px}.brand-title span,.v2-inline,.wordmark span{font-size:.45em;font-weight:600;vertical-align:.4em;letter-spacing:.04em}.login-brand p{font-size:24px;line-height:1.5;max-width:620px;margin:0}.login-panel{display:flex;align-items:center;justify-content:center;padding:40px}.login-card{width:min(560px,92%);background:#fff;border:1px solid var(--line);border-radius:28px;padding:42px;box-shadow:0 16px 50px rgba(13,67,70,.08)}.logo-mini{width:64px;height:64px;object-fit:contain}.login-card h1{font-size:34px;margin:16px 0 6px;color:var(--navy)}.login-card>p{font-size:18px;color:var(--muted);margin:0 0 28px}.login-card label{display:block;font-weight:700;margin:18px 0 0}.login-card input{display:block;width:100%;margin-top:8px;border:1px solid #ccdada;border-radius:12px;padding:15px 16px;font-size:17px;outline:none}.login-card input:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(10,133,133,.1)}.login-card button{width:100%;border:0;border-radius:12px;padding:15px 18px;margin-top:18px;background:var(--teal);color:#fff;font-weight:750;cursor:pointer}.login-card button.secondary{background:#fff;color:var(--teal);border:1px solid var(--teal);margin-top:10px}.login-card button:disabled{opacity:.55;cursor:not-allowed}.helper{color:#7a8e93;font-size:14px;text-align:center;margin-top:18px}.message{min-height:22px;margin-top:12px;font-size:14px;color:#ad3030}.message.success{color:#167044}.message.info{color:#2b647e}.app{min-height:100vh;display:grid;grid-template-columns:270px 1fr}.sidebar{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid var(--line);padding:24px 18px;display:flex;flex-direction:column}.sidebar-brand{display:flex;align-items:center;gap:13px;padding:0 8px 25px;border-bottom:1px solid #edf1f1}.sidebar-brand img{width:62px;height:62px;object-fit:contain}.wordmark{font-size:34px;font-weight:800;color:#087f7d}.sidebar nav{display:flex;flex-direction:column;gap:7px;padding-top:22px}.sidebar nav a{text-decoration:none;color:#294048;padding:13px 16px;border-radius:10px;font-weight:600}.sidebar nav a.active,.sidebar nav a:hover{background:linear-gradient(90deg,#087f7d,#0c9896);color:#fff}.sidebar-bottom{margin-top:auto;color:#829397;font-size:13px;padding:15px}.main{min-width:0}.topbar{height:88px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px}.page-title{font-size:25px;font-weight:750}.muted{font-size:13px;color:#7a8e93}.userbox{display:flex;align-items:center;gap:12px}.avatar{width:44px;height:44px;border-radius:50%;background:#087f7d;color:#fff;display:grid;place-items:center;font-weight:800}.userbox strong,.userbox span{display:block}.userbox span{font-size:13px;color:#6d8187}.signout{margin-left:16px;border:1px solid #ccdada;background:#fff;padding:9px 13px;border-radius:8px;color:#385158;cursor:pointer}.content{padding:30px 34px 50px;max-width:1500px;margin:0 auto}.welcome{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.welcome h2{font-size:32px;margin:0 0 6px}.welcome p{margin:0;color:#657a80}.quick-buttons{display:flex;gap:10px}.quick-buttons button,.quick-grid button{border:1px solid #cbdcdc;background:#fff;color:#087f7d;border-radius:10px;padding:11px 15px;font-weight:700;cursor:pointer}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}.stat{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px}.stat .label{color:#51686f;font-size:14px}.stat .value{font-size:35px;font-weight:800;color:#13323b;margin:8px 0}.stat .meta{font-size:12px;color:#819297}.two-col{display:grid;grid-template-columns:1.4fr 1fr;gap:18px}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:0 20px 18px}.panel-title{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5ecec;padding:17px 0}.panel-title h3{margin:0;font-size:18px}.panel-title span{color:#087f7d;font-size:13px}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:14px 10px;border-bottom:1px solid #edf2f2;font-size:14px}th{color:#687c82;font-size:12px}.badge{display:inline-block;padding:5px 9px;border-radius:7px;font-size:12px}.green{background:#e6f4e8;color:#2c6d3a}.blue{background:#e7f2f8;color:#246788}.amber{background:#fff2d9;color:#9b6905}.task{display:flex;justify-content:space-between;align-items:center;padding:19px 4px;border-bottom:1px solid #edf2f2}.task b{font-size:22px;color:#087f7d}.quick-panel{margin-top:18px}.quick-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;padding-top:18px}.app-message{margin-top:18px}.app-message:empty{display:none}@media(max-width:1050px){.login-page{grid-template-columns:1fr}.login-brand{display:none}.app{grid-template-columns:220px 1fr}.stats{grid-template-columns:repeat(2,1fr)}.two-col{grid-template-columns:1fr}.quick-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:720px){.app{display:block}.sidebar{position:relative;height:auto}.sidebar nav{display:grid;grid-template-columns:repeat(2,1fr)}.topbar{height:auto;padding:18px;align-items:flex-start;gap:10px}.content{padding:20px}.welcome{align-items:flex-start;gap:18px;flex-direction:column}.stats{grid-template-columns:1fr}.quick-grid{grid-template-columns:repeat(2,1fr)}.userbox{flex-wrap:wrap}}

/* Functionality additions */
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.section-head h2{margin:0 0 5px;font-size:30px}.section-head p{margin:0;color:var(--muted)}.primary-action,.form-actions button{border:0;background:var(--teal);color:#fff;font-weight:750;border-radius:10px;padding:11px 16px;cursor:pointer}.link-button,.table-action{border:0;background:transparent;color:var(--teal);font-weight:700;cursor:pointer}.form-panel{margin-bottom:18px}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;padding-top:18px}.form-grid label{font-size:13px;font-weight:700;color:#40585f}.form-grid input,.form-grid select,.toolbar input{width:100%;margin-top:7px;padding:11px 12px;border:1px solid #ccdada;border-radius:9px;background:#fff;color:#172d35}.form-actions{grid-column:1/-1;display:flex;gap:10px;align-items:center}.secondary-action{border:1px solid #cbdcdc;background:#fff;color:#536a71;font-weight:700;border-radius:10px;padding:10px 15px;cursor:pointer}.toolbar{display:flex;align-items:center;gap:18px;padding:18px 0 12px}.toolbar input{max-width:460px;margin:0}.table-wrap{overflow:auto}.cell-sub{font-size:11px;color:#819297;margin-top:3px}.empty-state{padding:34px 16px;color:#73878c;text-align:center}.empty-state.big{padding:70px 20px;font-size:17px}.empty-state.compact{padding:22px 10px}.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}.admin-grid .panel{min-width:0}.admin-grid table th,.admin-grid table td{padding:10px 7px}.admin-grid table{font-size:13px}@media(max-width:980px){.form-grid{grid-template-columns:repeat(2,1fr)}.admin-grid{grid-template-columns:1fr}}@media(max-width:650px){.form-grid{grid-template-columns:1fr}.section-head{align-items:flex-start;gap:14px;flex-direction:column}}
.coverage-heading{grid-column:1/-1;display:flex;align-items:center;gap:10px;margin-top:4px;padding:13px 14px 8px;border-top:1px solid #dfe9e8;color:#173b43}.coverage-heading:first-of-type{margin-top:8px}.coverage-heading strong{font-size:14px}.coverage-heading span{font-size:11px;font-weight:700;color:#6f858a;background:#eef5f4;border-radius:999px;padding:4px 8px}.coverage-heading.optional span{color:#47736e;background:#edf7f4}.coverage-count{display:inline-flex;margin-left:7px;border-radius:999px;background:#eef6f4;color:#3f706a;font-size:10px;font-weight:800;padding:3px 7px;white-space:nowrap}

.coverage-heading.partd{border-top-color:#cfe6df;background:linear-gradient(90deg,#f4fbf8 0%,#fff 65%);border-radius:10px 10px 0 0}.coverage-heading.partd strong{color:#176c5f}.coverage-heading.partd span{background:#dff3eb;color:#276d60}

/* Patient chart */
.table-actions{display:flex;gap:10px;white-space:nowrap}.chart-panel{margin-bottom:20px;padding-bottom:20px;overflow:hidden}.chart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 0 16px}.chart-head h3{font-size:26px;margin:3px 0 5px}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:10px;font-weight:850;color:var(--teal)}.chart-subtitle{color:var(--muted);font-size:14px}.chart-head-actions{display:flex;gap:10px;align-items:center}.chart-banner{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#dce8e7;border:1px solid #dce8e7;border-radius:12px;overflow:hidden;margin-bottom:18px}.chart-banner>div{background:#f8fbfb;padding:13px 15px}.chart-banner span,.chart-banner strong{display:block}.chart-banner span{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#71858a;margin-bottom:4px}.chart-banner strong{font-size:13px;color:#183940}.chart-tabs{display:flex;gap:5px;overflow:auto;border-bottom:1px solid #dfe9e8;margin:0 -2px;padding:0 2px}.chart-tabs button{border:0;background:transparent;color:#647b80;font-weight:700;font-size:13px;padding:12px 13px;border-bottom:3px solid transparent;cursor:pointer;white-space:nowrap}.chart-tabs button:hover{color:var(--teal)}.chart-tabs button.active{color:var(--teal);border-bottom-color:var(--teal)}.chart-content{padding:20px 0 4px}.chart-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.chart-summary-grid.lower{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:14px}.chart-card{border:1px solid #e0e9e9;border-radius:13px;padding:15px;background:#fff;min-width:0}.chart-card-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.chart-card-title h4{margin:0;font-size:14px}.detail-list{margin:0}.detail-list>div{padding:7px 0;border-bottom:1px solid #eef3f3}.detail-list>div:last-child{border-bottom:0}.detail-list dt{font-size:10px;color:#789095;text-transform:uppercase;letter-spacing:.04em}.detail-list dd{margin:3px 0 0;font-size:13px;font-weight:650;color:#263f46}.detail-list dd span{display:block;color:#71868b;font-size:11px;font-weight:500;margin-top:2px}.snapshot-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.snapshot-row button{border:1px solid #e2ebeb;background:#f8fbfb;border-radius:10px;padding:12px 7px;cursor:pointer;color:#274148}.snapshot-row button strong,.snapshot-row button span{display:block}.snapshot-row button strong{font-size:24px;color:var(--teal)}.snapshot-row button span{font-size:10px;color:#697f84;margin-top:4px}.snapshot-row button.alert{background:#fff8e9;border-color:#f2dca4}.snapshot-row button.alert strong{color:#9a6805}.mini-clinical-list>div{padding:8px 0;border-bottom:1px solid #eef3f3}.mini-clinical-list>div:last-child{border-bottom:0}.mini-clinical-list strong,.mini-clinical-list span{display:block}.mini-clinical-list strong{font-size:13px}.mini-clinical-list span{font-size:11px;color:#788c91;margin-top:2px}.chart-list-empty{padding:16px 4px;color:#819398;font-size:12px}.chart-list-empty.large{padding:45px 12px;text-align:center;border:1px dashed #d7e3e3;border-radius:11px;margin-top:13px}.chart-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:14px}.chart-section-head h4{font-size:20px;margin:0 0 4px}.chart-section-head p{margin:0;color:#6f8489;font-size:13px}.coverage-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.coverage-card{border:1px solid #dce8e7;border-radius:12px;padding:16px;background:#fbfdfd}.coverage-card>*{display:block}.coverage-card .coverage-type{font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.08em;color:var(--teal);margin-bottom:10px}.coverage-card strong{font-size:15px;color:#1d3b43;margin-bottom:7px}.coverage-card>span{font-size:11px;color:#70868b;margin-top:3px}.coverage-card.empty{background:#f7f9f9;border-style:dashed}.coverage-card.empty strong{color:#789095;font-weight:650}.coverage-rx{border-top:1px solid #e3eceb;margin-top:10px;padding-top:9px;display:flex;gap:9px;flex-wrap:wrap}.coverage-rx span{font-size:10px;background:#edf7f4;color:#356d64;border-radius:7px;padding:4px 6px}.clinical-table td{vertical-align:top}.chart-form-panel{border-top:1px solid #dce8e7;margin-top:16px;padding-top:0}.form-grid textarea{width:100%;margin-top:7px;padding:11px 12px;border:1px solid #ccdada;border-radius:9px;background:#fff;color:#172d35;font:inherit;resize:vertical}.span-2{grid-column:span 2}.span-3{grid-column:1/-1}.chart-empty{text-align:center;padding:55px 20px;border:1px dashed #d7e3e3;border-radius:12px;color:#71868b}.chart-empty h4{margin:0 0 7px;color:#26434a;font-size:19px}.chart-empty p{margin:0}.secondary-action:hover,.table-action:hover,.link-button:hover{color:#056968}.chart-form-panel .panel-title{margin-top:2px}
@media(max-width:1180px){.chart-summary-grid{grid-template-columns:repeat(2,1fr)}.chart-summary-grid.lower{grid-template-columns:repeat(2,1fr)}.coverage-cards{grid-template-columns:repeat(2,1fr)}.chart-banner{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.chart-head{flex-direction:column}.chart-head-actions{width:100%;justify-content:space-between}.chart-summary-grid,.chart-summary-grid.lower,.coverage-cards,.chart-banner{grid-template-columns:1fr}.snapshot-row{grid-template-columns:1fr}.span-2,.span-3{grid-column:1}.chart-section-head{flex-direction:column}.table-actions{flex-direction:column;gap:4px}}

/* Care plan collaboration */
.care-plan-toolbar select{padding:11px 12px;border:1px solid #ccdada;border-radius:9px;background:#fff;color:#172d35}.care-plan-list{display:grid;gap:14px}.care-plan-card{border:1px solid #dbe7e6;border-radius:14px;padding:18px;background:#fff}.care-plan-card-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.care-plan-card-head h4{margin:4px 0 3px;font-size:19px;color:#173840}.care-plan-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}.care-plan-detail-grid>div{background:#f8fbfb;border:1px solid #e5eded;border-radius:10px;padding:11px}.care-plan-detail-grid span,.care-plan-detail-grid strong{display:block}.care-plan-detail-grid span{font-size:10px;color:#75898e;text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}.care-plan-detail-grid strong{font-size:12px;color:#29454c;font-weight:650}.care-plan-notes{margin-top:12px;padding:11px 13px;background:#fbfdfd;border-left:3px solid var(--teal);font-size:12px;color:#51696f}.care-plan-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:14px}.compact-action{padding:8px 11px;font-size:12px}.care-thread{margin-top:16px;border-top:1px solid #e4ecec;padding-top:13px}.care-thread-title{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#71868b;font-weight:800;margin-bottom:8px}.care-message{padding:10px 12px;border:1px solid #e3eceb;border-radius:10px;margin:7px 0;background:#fafcfc;font-size:12px;color:#334d54}.care-message-meta{display:flex;justify-content:space-between;gap:10px;margin-bottom:5px}.care-message-meta strong{font-size:12px}.care-message-meta span{font-size:10px;color:#7a8d92}.care-message-form{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end;margin-top:10px}.care-message-form textarea{width:100%;padding:10px 11px;border:1px solid #ccdada;border-radius:9px;background:#fff;color:#172d35;font:inherit;resize:vertical}.care-message-form button{height:40px}.care-plan-toolbar{flex-wrap:wrap}.care-plan-toolbar select{min-width:190px}
@media(max-width:1000px){.care-plan-detail-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.care-plan-detail-grid{grid-template-columns:1fr}.care-message-form{grid-template-columns:1fr}.care-message-meta{flex-direction:column;gap:2px}}

/* Encounters */
.encounter-toolbar{flex-wrap:wrap}.encounter-toolbar select{padding:11px 12px;border:1px solid #ccdada;border-radius:9px;background:#fff;color:#172d35;min-width:180px}.encounter-launch-form{display:grid;grid-template-columns:minmax(280px,1fr) auto;gap:12px;align-items:end;padding-top:18px;max-width:760px}.encounter-launch-form label{font-size:13px;font-weight:700;color:#40585f}.encounter-launch-form select{width:100%;margin-top:7px;padding:11px 12px;border:1px solid #ccdada;border-radius:9px;background:#fff;color:#172d35}.form-section-heading{display:flex;align-items:center;gap:10px;margin-top:5px;padding:13px 14px 8px;border-top:1px solid #dfe9e8;color:#173b43}.form-section-heading strong{font-size:14px}.form-section-heading>span,.form-section-heading div>span{font-size:11px;font-weight:650;color:#6f858a}.service-lines-heading{justify-content:space-between;align-items:center}.service-lines-heading>div{display:flex;flex-direction:column;gap:3px}.encounter-service-lines{display:grid;gap:11px}.service-line-editor{border:1px solid #dce8e7;border-radius:12px;background:#fbfdfd;padding:13px}.service-line-editor-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.service-line-editor-head strong{font-size:12px;color:#355158}.service-line-grid{display:grid;grid-template-columns:1.1fr 1.8fr repeat(4,.65fr) .65fr .9fr .8fr;gap:8px;align-items:end}.service-line-grid label{font-size:10px}.service-line-grid input{padding:9px 9px;margin-top:5px}.complete-encounter-button{background:#14765b!important}.encounter-list{display:grid;gap:14px}.encounter-card{border:1px solid #dbe7e6;border-radius:14px;padding:18px;background:#fff}.encounter-card-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.encounter-card-head h4{margin:4px 0 3px;font-size:19px;color:#173840}.encounter-badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.encounter-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}.encounter-detail-grid>div{background:#f8fbfb;border:1px solid #e5eded;border-radius:10px;padding:10px}.encounter-detail-grid span,.encounter-detail-grid strong{display:block}.encounter-detail-grid span{font-size:9px;color:#75898e;text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}.encounter-detail-grid strong{font-size:12px;color:#29454c;font-weight:650}.encounter-vitals{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.encounter-vitals>span{display:flex;align-items:center;gap:6px;background:#eef7f5;border-radius:8px;padding:7px 9px}.encounter-vitals small{font-size:9px;color:#638079;text-transform:uppercase}.encounter-vitals strong{font-size:11px;color:#24564d}.encounter-lines-table{margin-top:12px;border:1px solid #e4ecec;border-radius:10px}.encounter-lines-table table{min-width:720px}.encounter-lines-table th,.encounter-lines-table td{padding:9px 10px}.encounter-documentation{margin-top:12px;border:1px solid #e3eceb;border-radius:10px;padding:10px 12px;background:#fbfdfd}.encounter-documentation summary{cursor:pointer;font-weight:750;font-size:12px;color:#286660}.encounter-doc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:10px}.encounter-doc-grid>div{border-left:3px solid #b9dad4;padding:7px 9px;background:#fff}.encounter-doc-grid span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:#6f878b}.encounter-doc-grid p{margin:4px 0 0;white-space:pre-wrap;font-size:12px;color:#334d54}.encounter-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:13px}
@media(max-width:1250px){.service-line-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.service-line-grid .service-description{grid-column:span 2}.encounter-detail-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.encounter-launch-form{grid-template-columns:1fr}.service-line-grid,.encounter-detail-grid,.encounter-doc-grid{grid-template-columns:1fr}.service-line-grid .service-description{grid-column:auto}.service-lines-heading{align-items:flex-start;flex-direction:column}}

/* Labs */
.lab-toolbar{flex-wrap:wrap}.lab-toolbar select{padding:11px 12px;border:1px solid #ccdada;border-radius:9px;background:#fff;color:#172d35;min-width:210px}.lab-list{display:grid;gap:14px}.lab-card{border:1px solid #dbe7e6;border-radius:14px;padding:18px;background:#fff}.lab-card-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.lab-card-head h4{margin:4px 0 3px;font-size:19px;color:#173840}.lab-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.lab-detail-grid>div{background:#f8fbfb;border:1px solid #e5eded;border-radius:10px;padding:10px}.lab-detail-grid span,.lab-detail-grid strong{display:block}.lab-detail-grid span{font-size:9px;color:#75898e;text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}.lab-detail-grid strong{font-size:12px;color:#29454c;font-weight:650}.lab-note{margin-top:10px;padding:10px 12px;background:#fbfdfd;border-left:3px solid #9fcfc5;font-size:12px;color:#405a60}.lab-note strong{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:#608079;margin-bottom:3px}.lab-result-table{margin-top:12px;border:1px solid #e4ecec;border-radius:10px}.lab-result-table table{min-width:650px}.lab-result-table th,.lab-result-table td{padding:9px 10px}.lab-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:13px}
@media(max-width:900px){.lab-detail-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.lab-detail-grid{grid-template-columns:1fr}}

/* IPPN V2 Functionality 9 - in-app messaging */
.message-toolbar{flex-wrap:wrap}.message-toolbar select{padding:11px 12px;border:1px solid #ccdada;border-radius:9px;background:#fff;color:#172d35;min-width:170px}.toolbar-check{display:flex;align-items:center;gap:7px;color:#526b71;font-size:12px;font-weight:700;white-space:nowrap}.toolbar-check input{width:auto;margin:0}.message-thread-list{display:grid;gap:14px}.message-thread-card{border:1px solid #dbe7e6;border-radius:14px;padding:18px;background:#fff}.message-thread-card.unread{border-left:4px solid #d69f24;background:#fffdf8}.message-thread-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.message-thread-head h4{margin:4px 0 4px;font-size:18px;color:#173840}.message-context{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#5f7f7b;font-weight:850}.message-thread-badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.message-conversation{display:grid;gap:8px;margin-top:14px;max-height:480px;overflow:auto;padding:2px}.message-conversation.global{max-height:560px;border:1px solid #e5eded;border-radius:12px;background:#fbfdfd;padding:12px}.message-bubble{max-width:84%;border:1px solid #dfe8e8;background:#f8fbfb;border-radius:12px 12px 12px 4px;padding:10px 12px;color:#314b52}.message-bubble.mine{margin-left:auto;background:#eaf7f3;border-color:#cde8df;border-radius:12px 12px 4px 12px}.message-bubble-meta{display:flex;justify-content:space-between;gap:12px;margin-bottom:5px}.message-bubble-meta strong{font-size:11px;color:#27464c}.message-bubble-meta span{font-size:9px;color:#71878b}.message-bubble-body{white-space:pre-wrap;font-size:12px;line-height:1.45}.message-thread-actions{margin-top:12px}.message-reply-form{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:end}.message-reply-form textarea{width:100%;padding:10px 11px;border:1px solid #ccdada;border-radius:9px;background:#fff;color:#172d35;font:inherit;resize:vertical}.message-reply-form.global{margin-top:12px}.message-closed-note{font-size:12px;color:#76898e;padding:10px 0}.patient-message-compose{border:1px solid #dce8e7;border-radius:12px;padding:0 15px 15px;background:#fbfdfd;margin-bottom:15px}.message-thread-detail-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:12px 0}.message-detail-actions{display:flex;gap:12px;align-items:center;margin-top:12px}.unread-row td{background:#fffdf7}.unread-row td:first-child{box-shadow:inset 3px 0 0 #d69f24}
@media(max-width:720px){.message-thread-head,.message-bubble-meta,.message-thread-detail-head{flex-direction:column}.message-bubble{max-width:100%}.message-reply-form{grid-template-columns:1fr}.message-detail-actions{align-items:flex-start;flex-direction:column}}

/* Functionality 10: patient documents */
.document-summary{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin:0 0 14px;color:#687680;font-size:13px}
.document-summary strong{color:#173b43;font-size:16px;margin-right:4px}
.document-file-label input[type=file]{padding:10px;background:#fff}
.document-upload-note{padding:10px 12px;border-radius:10px;background:#f3f8f7;color:#52686d;font-size:12px;border:1px solid #dce9e6}
.danger-text{color:#a84747!important}

/* Functionality 11: collaborative agreements */
.badge.red,.red{background:#fde9e9;color:#9d3e3e}.badge.gray,.gray{background:#eef2f2;color:#5f7377}.warning-text{color:#9a6b0b!important}.compact-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px}.agreement-toolbar{flex-wrap:wrap}.agreement-toolbar select{padding:11px 12px;border:1px solid #ccdada;border-radius:9px;background:#fff;color:#172d35;min-width:170px}.current-file-note{padding:10px 12px;border:1px solid #dce8e7;background:#f8fbfb;border-radius:10px;color:#536a70;font-size:12px}.agreement-detail-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:16px 0}.agreement-detail-grid>div{background:#f8fbfb;border:1px solid #e5eded;border-radius:10px;padding:11px}.agreement-detail-grid span,.agreement-detail-grid strong,.agreement-detail-grid small{display:block}.agreement-detail-grid span{font-size:9px;color:#75898e;text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}.agreement-detail-grid strong{font-size:12px;color:#29454c;font-weight:650}.agreement-detail-grid small{font-size:10px;margin-top:5px}.agreement-detail-section{padding:14px 0;border-top:1px solid #e5eded}.agreement-detail-section h4{margin:0 0 9px;font-size:13px;color:#28464d}.agreement-detail-section p{margin:0;white-space:pre-wrap;color:#415a61;font-size:13px;line-height:1.5}.agreement-service-list{display:flex;gap:7px;flex-wrap:wrap}.agreement-service-list span{background:#eaf7f3;border:1px solid #d0e9e1;color:#2c665c;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:700}.agreement-file-card{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #dce8e7;background:#fbfdfd;border-radius:11px;padding:12px}.agreement-file-card strong,.agreement-file-card span{display:block}.agreement-file-card span{font-size:10px;color:#75898e;margin-top:3px}.agreement-detail-actions{margin-top:4px}.form-grid textarea{width:100%;margin-top:7px;padding:11px 12px;border:1px solid #ccdada;border-radius:9px;background:#fff;color:#172d35;font:inherit;resize:vertical}.form-grid input[type=file]{padding:9px;background:#fff}
@media(max-width:1150px){.agreement-detail-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.compact-stats,.agreement-detail-grid{grid-template-columns:1fr}.agreement-file-card{align-items:flex-start;flex-direction:column}}

/* Functionality 12: billing reference catalog */
.admin-grid .admin-wide { grid-column: 1 / -1; }
.admin-form-slot:empty{display:none}.admin-form-slot .form-panel{margin:14px 0 18px;border-color:#cfe2df;background:#fbfdfd}.admin-form-slot .form-panel .panel-title{padding-top:14px}
.billing-code-hint { margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #f4faf9; color: #47646b; font-size: 12px; line-height: 1.45; }
.billing-code-hint strong { color: #087e7c; }
.billing-code-hint:empty { display:none; }
.admin-grid table td { vertical-align: top; }
@media (max-width: 900px) { .admin-grid .admin-wide { grid-column: auto; } }

/* Functionality 13: structured pharmacist SOAP documentation */
.soap-builder{border:1px solid #dce8e7;border-radius:12px;padding:14px;background:#fbfdfd}.soap-builder-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}.soap-builder-head strong{display:block;color:#1f454c;font-size:14px}.soap-builder-head span{display:block;color:#71858a;font-size:11px;margin-top:3px}.soap-picker-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:end}.soap-picker-row select{width:100%;margin-top:0;padding:10px 11px;border:1px solid #ccdada;border-radius:9px;background:#fff;color:#172d35}.soap-selected-items{display:flex;gap:7px;flex-wrap:wrap;min-height:34px;align-items:center;margin:11px 0}.soap-chip{display:inline-flex;align-items:center;gap:7px;background:#eaf7f3;border:1px solid #cde7df;color:#2b665c;border-radius:999px;padding:6px 8px 6px 10px;font-size:11px;font-weight:750}.soap-chip button{border:0;background:transparent;color:#568078;cursor:pointer;padding:0;font-size:15px;line-height:1}.soap-free-text{display:block!important}.soap-readonly-items{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.soap-readonly-items span{display:inline-block!important;text-transform:none!important;letter-spacing:0!important;background:#eaf7f3;border:1px solid #d2e9e2;color:#2d665d!important;border-radius:999px;padding:4px 7px;font-size:10px!important;font-weight:700}.soap-empty{font-size:11px}.admin-grid #admin-clinical-doc-options table{min-width:850px}
@media(max-width:720px){.soap-picker-row{grid-template-columns:1fr}.soap-picker-row button{width:100%}}


/* Functionality 14: Clinical Opportunity Module */
.clinical-opportunity-head{align-items:flex-end}.clinical-opportunity-head .eyebrow{color:#087f7d;margin-bottom:4px}.opportunity-flow{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:-5px 0 20px;padding:12px 15px;background:linear-gradient(90deg,#edf9f6,#f8fbfb);border:1px solid #d8ebe6;border-radius:12px;color:#315e5b;font-size:12px;font-weight:750}.opportunity-flow span{background:#fff;border:1px solid #d9e9e6;border-radius:999px;padding:7px 10px}.opportunity-flow b{color:#70a69d}.opportunity-stats{grid-template-columns:repeat(6,minmax(0,1fr));margin-bottom:18px}.opportunity-panel{overflow:visible}.opportunity-tabs{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding-bottom:14px;border-bottom:1px solid #e5eded;margin-bottom:14px}.opportunity-tabs button{border:1px solid #d2e0df;background:#fff;color:#476267;padding:8px 11px;border-radius:999px;font-weight:750;font-size:11px;cursor:pointer}.opportunity-tabs button.active{background:#087f7d;border-color:#087f7d;color:#fff}.opportunity-toolbar{flex-wrap:wrap}.opportunity-toolbar select{padding:11px 12px;border:1px solid #ccdada;border-radius:9px;background:#fff;color:#172d35;min-width:230px}.opportunity-patient-list{display:grid;gap:16px;margin-top:16px}.opportunity-patient-card{border:1px solid #d8e6e4;border-radius:15px;background:#fff;box-shadow:0 5px 18px rgba(14,71,73,.04);overflow:hidden}.opportunity-patient-head{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:18px}.opportunity-patient-identity{display:flex;gap:13px;align-items:center;min-width:0}.opportunity-patient-avatar{width:48px;height:48px;border-radius:13px;background:linear-gradient(135deg,#087f7d,#65b581);color:#fff;display:grid;place-items:center;font-size:15px;font-weight:850;letter-spacing:.03em;flex:0 0 auto}.opportunity-patient-identity h3{margin:2px 0 3px;color:#173b43;font-size:19px}.opportunity-patient-identity p{margin:0;color:#6c8186;font-size:12px}.opportunity-patient-primary-action{flex:0 0 auto}.opportunity-readiness-strip{display:flex;gap:8px;flex-wrap:wrap;padding:11px 18px;background:#f7faf9;border-top:1px solid #edf2f1;border-bottom:1px solid #edf2f1}.opportunity-readiness-strip span{padding:6px 9px;background:#fff;border:1px solid #dfe9e7;border-radius:8px;color:#61767a;font-size:10px}.opportunity-readiness-strip span b{color:#2c4e53;margin-right:3px}.opportunity-readiness-strip span.ready{border-color:#cbe5d6;background:#f1fbf5}.opportunity-readiness-strip span.needs-review{border-color:#ead9af;background:#fffaf0}.opportunity-signals summary{padding:12px 18px;color:#087f7d;font-weight:800;font-size:12px;cursor:pointer;list-style-position:inside}.opportunity-signal-list{display:grid;gap:0;border-top:1px solid #edf2f1}.opportunity-signal{padding:16px 18px;border-bottom:1px solid #edf2f1;background:#fff}.opportunity-signal:last-child{border-bottom:0}.opportunity-signal-main{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.opportunity-signal-title{display:flex;gap:11px;align-items:flex-start}.opportunity-signal-title h4{margin:0 0 4px;color:#24464d;font-size:14px}.opportunity-signal-title p{margin:0;color:#63787d;font-size:11px;line-height:1.45}.opportunity-score{width:42px;height:34px;border-radius:9px;display:grid;place-items:center;font-weight:900;font-size:13px;border:1px solid #d7e5e2;background:#f7faf9;color:#3c6564;flex:0 0 auto}.opportunity-score.high{background:#e9f7ef;border-color:#cce7d7;color:#227044}.opportunity-score.medium{background:#fff7e7;border-color:#ead8ac;color:#956c15}.opportunity-signal-badges{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}.opportunity-signal-meta{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:12px}.opportunity-signal-meta span{display:block;background:#f8fbfb;border:1px solid #e5eded;border-radius:9px;padding:8px;color:#526b70;font-size:10px;min-width:0}.opportunity-signal-meta b{display:block;text-transform:uppercase;letter-spacing:.04em;color:#7a8e92;font-size:8px;margin-bottom:3px}.opportunity-signal-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:10px}.opportunity-signal-actions .table-action{white-space:nowrap}.opportunity-patient-card .badge{white-space:normal;text-align:center}.opportunity-patient-card .primary-action{white-space:nowrap}.opportunity-patient-card details[open] summary{border-bottom:1px solid #edf2f1}.opportunity-patient-card details[open] .opportunity-signal-list{border-top:0}
@media(max-width:1250px){.opportunity-stats{grid-template-columns:repeat(3,1fr)}.opportunity-signal-meta{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.opportunity-stats{grid-template-columns:1fr 1fr}.opportunity-patient-head,.opportunity-signal-main{align-items:flex-start;flex-direction:column}.opportunity-patient-primary-action{width:100%}.opportunity-patient-primary-action button{width:100%}.opportunity-signal-meta{grid-template-columns:1fr 1fr}.opportunity-signal-badges{justify-content:flex-start}.opportunity-flow b{display:none}}
@media(max-width:520px){.opportunity-stats,.opportunity-signal-meta{grid-template-columns:1fr}.opportunity-patient-identity{align-items:flex-start}.opportunity-patient-avatar{width:42px;height:42px}}

/* Functionality 15 - Outreach to patient encounter */
.outreach-patient-context{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px;padding:13px 14px;border:1px solid #d8e6e4;border-radius:12px;background:linear-gradient(90deg,#f1faf7,#fbfdfc)}.outreach-patient-context>div{display:grid;gap:2px;min-width:0}.outreach-patient-context strong{font-size:15px;color:#173b43}.outreach-patient-context small{font-size:11px;color:#667c80}.opportunity-outreach-actions{display:flex;gap:8px;flex-wrap:wrap}.encounter-opportunity-context{border:1px solid #cfe4df;background:linear-gradient(90deg,#eef9f6,#f9fcfb);border-radius:12px;padding:13px 14px;display:grid;gap:9px}.encounter-opportunity-context-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.encounter-opportunity-context h4{margin:1px 0 2px;color:#174b4c;font-size:14px}.encounter-opportunity-context p{margin:0;color:#5c7478;font-size:11px;line-height:1.45}.encounter-opportunity-context-meta{display:flex;gap:7px;flex-wrap:wrap}.encounter-opportunity-context-meta span{font-size:10px;color:#4d686c;background:#fff;border:1px solid #dbe9e6;border-radius:999px;padding:5px 8px}.opportunity-patient-primary-action{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}@media(max-width:760px){.outreach-patient-context{align-items:flex-start;flex-direction:column}.outreach-patient-context button{width:100%}.opportunity-patient-primary-action{justify-content:stretch}.opportunity-patient-primary-action button{width:100%}}


/* Functionality 16 - Outreach care plan / protocol gate + provider messaging */
.outreach-plan-context{margin:0 0 16px}.outreach-plan-loading{padding:14px;border:1px dashed #c9d9d7;border-radius:12px;background:#fbfdfd;color:#667d81;font-size:12px}.outreach-plan-card{border:1px solid #d9e6e4;border-radius:13px;padding:15px;background:#fff}.outreach-plan-card.approved{background:linear-gradient(90deg,#f2faf7,#fff);border-color:#cce3dc}.outreach-plan-card.missing{background:linear-gradient(90deg,#fff8e9,#fff);border-color:#ead6a4}.outreach-plan-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.outreach-plan-card-head h4{margin:3px 0 3px;color:#173b43;font-size:16px}.outreach-plan-card-head p{margin:0;color:#637b80;font-size:11px;line-height:1.4}.outreach-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px}.outreach-plan-grid span{display:block;padding:9px 10px;border:1px solid #e1ebe9;border-radius:9px;background:rgba(255,255,255,.84);font-size:11px;color:#425f65}.outreach-plan-grid span.wide{grid-column:span 2}.outreach-plan-grid b{display:block;margin-bottom:3px;text-transform:uppercase;letter-spacing:.045em;font-size:9px;color:#748a8e}.outreach-plan-notes{margin-top:10px;padding:10px 12px;border-left:3px solid var(--teal);background:#fff;font-size:11px;color:#4e686d}.outreach-plan-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.outreach-provider-message{margin:0 0 18px;padding:15px;border:1px solid #d7e4e2;border-radius:13px;background:#f9fcfb}.outreach-provider-message-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:10px}.outreach-provider-message-head h4{margin:3px 0 2px;color:#173b43;font-size:16px}.outreach-provider-message-head p{margin:0;color:#60777c;font-size:11px}.outreach-provider-message .form-grid{margin-top:0}.outreach-provider-message textarea{min-height:96px}@media(max-width:850px){.outreach-plan-grid{grid-template-columns:1fr 1fr}.outreach-plan-grid span.wide{grid-column:span 2}}@media(max-width:600px){.outreach-plan-card-head,.outreach-provider-message-head{flex-direction:column}.outreach-plan-grid{grid-template-columns:1fr}.outreach-plan-grid span.wide{grid-column:auto}}

/* Functionality 17 - reversible clinical opportunity encounter workflow */
.return-opportunity-action {
  border-color: #d69e2e !important;
  color: #8a5a00 !important;
  background: #fffaf0 !important;
}
.return-opportunity-action:hover { background: #fff3d6 !important; }
.encounter-opportunity-signals {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(13, 148, 136, .18);
  display: grid;
  gap: 4px;
}
.encounter-opportunity-signals strong { color: #134e4a; }
.encounter-opportunity-signals span { color: #526b6a; font-size: .9rem; line-height: 1.45; }

.encounter-opportunity-signals small { color: #6b7f7d; font-size: .78rem; line-height: 1.4; }

/* Functionality 19 - optional additional Clinical Opportunity links */
.encounter-opportunity-linker{margin-top:11px;padding-top:11px;border-top:1px solid rgba(13,148,136,.18);display:grid;gap:9px}.encounter-opportunity-linker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.encounter-opportunity-linker-head>div{display:grid;gap:2px}.encounter-opportunity-linker-head strong{color:#134e4a}.encounter-opportunity-linker-head small,.encounter-opportunity-link-note{color:#6b7f7d;font-size:.78rem;line-height:1.4}.encounter-opportunity-linker-head>span{white-space:nowrap;font-size:10px;font-weight:800;color:#087f7d;background:#fff;border:1px solid #cfe4df;border-radius:999px;padding:5px 8px}.encounter-opportunity-link-list{display:grid;gap:7px}.encounter-opportunity-link-option{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;align-items:flex-start;gap:9px!important;padding:9px 10px!important;background:#fff;border:1px solid #dbe9e6;border-radius:9px;cursor:pointer}.encounter-opportunity-link-option input{width:16px!important;height:16px!important;margin-top:3px;accent-color:#087f7d}.encounter-opportunity-link-option>span{display:grid;gap:2px;min-width:0}.encounter-opportunity-link-option b{color:#24464d;font-size:12px}.encounter-opportunity-link-option small{color:#6b7f7d;font-size:10px;line-height:1.35}.encounter-opportunity-link-option .opportunity-score{width:34px;height:28px;font-size:11px}.encounter-opportunity-link-option:has(input:checked){border-color:#85cbb8;background:#f2fbf7}@media(max-width:760px){.encounter-opportunity-linker-head{flex-direction:column}.encounter-opportunity-linker-head>span{align-self:flex-start}}


/* Functionality 20 - live Clinical Activity feed */
.activity-panel{min-width:0}.clinical-activity-feed{max-height:410px;overflow-y:auto;padding-right:4px;scrollbar-width:thin;scrollbar-color:#b9d1ce transparent}.clinical-activity-feed::-webkit-scrollbar{width:8px}.clinical-activity-feed::-webkit-scrollbar-thumb{background:#c4d8d5;border-radius:999px}.clinical-activity-item{display:flex;gap:12px;padding:14px 2px;border-bottom:1px solid #edf2f2}.clinical-activity-item:last-child{border-bottom:0}.activity-mark{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex:0 0 34px;font-size:9px;font-weight:900;letter-spacing:.04em;background:#eef4f4;color:#526b70}.activity-mark.teal{background:#e5f5f2;color:#087f7d}.activity-mark.green{background:#e8f5eb;color:#377348}.activity-mark.blue{background:#e7f2f8;color:#246788}.activity-mark.purple{background:#f1ebf8;color:#6f4e92}.activity-mark.amber{background:#fff3da;color:#956b12}.activity-mark.red{background:#fdeaea;color:#a33a3a}.activity-mark.slate{background:#eef2f2;color:#5f7377}.activity-mark.navy{background:#e8eef0;color:#173d48}.activity-copy{min-width:0;flex:1}.activity-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.activity-title-row strong{font-size:13px;color:#25464d;line-height:1.35}.activity-title-row time{font-size:10px;color:#8a9b9f;white-space:nowrap;padding-top:2px}.activity-patient{font-size:11px;font-weight:700;color:#557076;margin-top:3px}.activity-detail{font-size:10px;color:#7a8e93;line-height:1.45;margin-top:3px;white-space:normal;overflow-wrap:anywhere}

/* Functionality 21 - full-width dashboard activity/tasks + compact top-25 feed */
.dashboard-full-stack{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.dashboard-full-stack>.panel{width:100%;min-width:0}.clinical-activity-feed{max-height:none;overflow-y:visible;padding-right:0}.clinical-activity-item{display:flex;align-items:center;gap:10px;min-height:43px;padding:8px 2px;border-bottom:1px solid #edf2f2}.clinical-activity-item:last-child{border-bottom:0}.clinical-activity-item>.activity-mark{width:28px;height:28px;flex:0 0 28px;border-radius:8px;font-size:8px}.activity-one-line{min-width:0;flex:1;display:flex;align-items:center;gap:7px;white-space:nowrap;overflow:hidden}.activity-one-line strong{font-size:12px;color:#25464d;flex:0 0 auto}.activity-patient-inline{font-size:11px;font-weight:700;color:#557076;flex:0 0 auto}.activity-detail-inline{min-width:0;font-size:10px;color:#7a8e93;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity-separator{color:#a8b7ba;font-size:10px;flex:0 0 auto}.clinical-activity-item>time{font-size:10px;color:#8a9b9f;white-space:nowrap;flex:0 0 auto}.dashboard-full-stack .task{padding:14px 4px}.dashboard-full-stack .task b{font-size:18px}@media(max-width:760px){.clinical-activity-item{align-items:flex-start}.activity-one-line{display:block;white-space:normal}.activity-one-line>*{margin-right:5px}.activity-detail-inline{display:inline;white-space:normal}.clinical-activity-item>time{padding-top:5px}.activity-separator{display:none}}


/* Functionality 22 - billing output: 837P + encounter CSV */
.billing-output-title{align-items:center;gap:18px}.billing-export-actions{display:flex;gap:9px;flex-wrap:wrap}.billing-toolbar{flex-wrap:wrap}.billing-toolbar select{padding:11px 12px;border:1px solid #ccdada;border-radius:9px;background:#fff;color:#172d35;min-width:180px}.billing-standard-note{margin:10px 0 14px;padding:10px 12px;border-radius:10px;background:#f4f8f8;border:1px solid #dce7e7;color:#526b71;font-size:11px;line-height:1.45}.billing-output-stats .small-value{font-size:24px}.billing-export-actions .secondary-action{border:1px solid #adc9c4;background:#fff;color:#176454}.billing-export-actions .primary-action{background:#143f4a}.billing-output-title h3{margin-bottom:3px}@media(max-width:760px){.billing-output-title{align-items:flex-start;flex-direction:column}.billing-export-actions{width:100%}.billing-export-actions button{flex:1}}

/* Functionality 31: real-opportunity worklist + encounter service selection */
.encounter-primary-service-check{white-space:nowrap;font-size:11px;font-weight:850;color:#176b4f;background:#eaf8f0;border:1px solid #bee2cf;border-radius:999px;padding:7px 10px}
.encounter-service-choice{display:grid;gap:3px;min-width:0}
.encounter-service-choice em{font-style:normal;color:#087f7d;font-size:10px;font-weight:800;margin-top:2px}
.encounter-opportunity-link-option{grid-template-columns:auto minmax(0,1fr)!important}
.encounter-opportunity-link-option input{margin-top:5px}
.encounter-opportunity-link-option:has(input:checked) .encounter-service-choice em{color:#176b4f}
.encounter-opportunity-link-option:has(input:checked) .encounter-service-choice em::before{content:'✓ ';}
.opportunity-toolbar #opportunity-hierarchy-filter{min-width:245px}
.opportunity-pager{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px;padding-top:14px;border-top:1px solid var(--line,#dfe5ea);flex-wrap:wrap}.opportunity-pager label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700}.opportunity-pager select{width:auto;min-width:72px}.opportunity-pager>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.opportunity-pager button{min-width:88px}.opportunity-pager.hidden{display:none}@media(max-width:760px){.opportunity-pager{align-items:stretch;flex-direction:column}.opportunity-pager>div{justify-content:space-between}.opportunity-pager .muted{text-align:center;flex:1}}
.opportunity-validator-results .table-wrap{margin-top:10px}.validator-detail{max-width:520px;white-space:normal;line-height:1.4}.validator-summary{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}.validator-summary span{padding:7px 10px;border-radius:999px;background:#f4f8f8;border:1px solid #dce7e7;font-size:11px;font-weight:750;color:#36575e}

/* Functionality 32: claim readiness + admin setup alerts */
.billing-blocker-list{display:grid;gap:6px}
.billing-blocker{padding:7px 9px;border:1px solid rgba(180,35,24,.22);border-radius:8px;background:rgba(180,35,24,.06);font-size:12px;font-weight:650}
.billing-missing-summary{display:grid;gap:3px;margin-top:6px;font-size:11px;line-height:1.35;max-width:260px}
.billing-missing-summary>div{font-weight:650}
.ready-text{font-weight:650}

/* Functionality 35: clinical-opportunity encounter history + admin billing fixes */
.encounter-opportunity-history{margin:10px 0 14px;padding:10px 12px;border:1px solid var(--line,#dfe5ea);border-radius:10px;background:rgba(33,115,181,.05);display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.encounter-opportunity-history span{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.encounter-opportunity-history strong{font-size:13px}
.encounter-opportunity-history small{width:100%;opacity:.78}
.billing-readiness-actions{margin-top:8px;display:flex;gap:6px;flex-wrap:wrap}
.admin-context-panel{margin-bottom:16px}.admin-context-panel .toolbar{display:flex;align-items:end;gap:16px;flex-wrap:wrap}.admin-context-panel label{min-width:280px}.admin-list-tools{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:10px}.admin-list-tools input{min-width:240px;max-width:420px}.admin-pager{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin-top:10px}.admin-pager button{padding:6px 10px}.admin-pager .muted{min-width:100px;text-align:center}

/* Functionality 37: MDHIN manual import */
.mdhin-wide{grid-column:1 / -1}.mdhin-actions{display:flex;gap:12px;margin:18px 0}.mdhin-confirm{display:flex;align-items:center;gap:10px;margin:20px 0}.mdhin-confirm input{width:auto!important}.mdhin-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;padding:18px 0}.mdhin-facts span{display:block;color:#64748b;font-size:12px;margin-bottom:5px}.mdhin-facts strong{font-size:14px;overflow-wrap:anywhere}.mdhin-notes{white-space:pre-wrap;overflow-wrap:anywhere}.mdhin-json{white-space:pre-wrap;overflow-wrap:anywhere;max-height:380px;overflow:auto;background:#f3f6fa;padding:14px;font-size:12px}.mdhin-warnings{padding:16px 16px 16px 32px;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;color:#713f12}.mdhin-preview-title{padding:12px 0;border-bottom:1px solid #e2e8f0}.mdhin-record{padding:16px;border:1px solid #e2e8f0;border-radius:10px;margin:12px 0}.mdhin-record summary{cursor:pointer;overflow-wrap:anywhere}.mdhin-record button{margin-top:12px}#page-mdhin-import .table-wrap{overflow:auto}#page-mdhin-import input[type=file]{padding:12px;background:#f8fafc}#mdhin-import-save:disabled{opacity:.5;cursor:not-allowed}.mdhin-confirm.hidden{display:none}

.mdhin-button{border:1px solid var(--teal);border-radius:8px;background:var(--teal);color:#fff;padding:10px 16px;font:inherit;font-size:14px;font-weight:650;cursor:pointer}.mdhin-button.secondary{background:#fff;color:var(--teal)}.mdhin-button:hover:not(:disabled){filter:brightness(.94)}.mdhin-button:focus-visible{outline:3px solid #8bd3d0;outline-offset:2px}#mdhin-import-save{margin:12px 0 0}#page-mdhin-import>.panel{margin-bottom:18px}

/* Functionality 49: actionable encounter billing readiness */
.not-ready-action{border:1px solid #e3a12a;background:#fff7e7;color:#8a5700;border-radius:8px;padding:7px 11px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.not-ready-action:hover{background:#ffedc7;border-color:#c77d00}.encounter-correction-banner{border:1px solid #efc46f;background:#fff8e9;border-radius:12px;padding:15px 16px;color:#5d4109}.encounter-correction-banner strong{display:block;font-size:15px}.encounter-correction-banner p{margin:5px 0 10px;font-size:12px;color:#765b25}.encounter-correction-banner div{display:flex;gap:7px;flex-wrap:wrap}.encounter-correction-banner span{background:#fff;border:1px solid #edcf94;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:750}
.not-ready-action.badge-action{appearance:none;display:inline-block;line-height:1;padding:5px 9px;min-height:0;pointer-events:auto;position:relative;z-index:1}
.billing-encounter-action{margin-top:8px}.billing-encounter-action .table-action{padding:6px 10px;white-space:nowrap}

/* Clinical Opportunity Report */
.opportunity-patient-list{display:grid;gap:8px;margin-top:16px}
.opportunity-report-row{display:grid;grid-template-columns:64px 170px minmax(260px,1.25fr) minmax(300px,1.4fr) 150px 150px;gap:12px;align-items:start;padding:14px;border:1px solid #dce7e5;border-radius:10px;background:#fff}
.opportunity-report-row strong{display:block;color:#24464d;font-size:12px;line-height:1.35}.opportunity-report-row span,.opportunity-report-row small{display:block;color:#667c80;font-size:10px;line-height:1.45;margin-top:3px}.opportunity-report-priority .opportunity-score{width:50px;height:40px}.opportunity-report-opportunity>strong{font-size:13px}.opportunity-report-opportunity>small{color:#46676b;font-weight:700}.opportunity-report-pathway{padding:9px 10px;border-radius:8px;background:#f8fbfb;border:1px solid #e1ecea}.opportunity-report-pathway.ready{background:#f1fbf5;border-color:#cbe5d6}.opportunity-report-pathway.needs-review{background:#fffaf0;border-color:#ead9af}.opportunity-report-pathway small{margin-top:7px}.opportunity-report-status{display:flex;gap:5px;flex-wrap:wrap}.opportunity-report-status small{width:100%;margin-top:5px}.opportunity-report-actions{display:grid;gap:6px}.opportunity-report-actions button{width:100%;white-space:normal}.opportunity-document-link{font-weight:800!important;border-color:#9bcfc2!important;background:#f0faf7!important;color:#126b62!important}
@media(max-width:1250px){.opportunity-report-row{grid-template-columns:60px 160px 1fr 1fr}.opportunity-report-status,.opportunity-report-actions{grid-column:3/5}.opportunity-report-actions{display:flex;flex-wrap:wrap}.opportunity-report-actions button{width:auto}}
@media(max-width:760px){.opportunity-report-row{grid-template-columns:55px 1fr}.opportunity-report-opportunity,.opportunity-report-pathway,.opportunity-report-status,.opportunity-report-actions{grid-column:1/3}.opportunity-report-actions{display:grid}.opportunity-report-actions button{width:100%}}
@media print{.sidebar,.topbar,.opportunity-flow,.opportunity-stats,.opportunity-tabs,.opportunity-toolbar,.opportunity-pager,#analyze-opportunities,#print-opportunity-report,#opportunity-message,.opportunity-report-actions{display:none!important}.app-shell,.main,.content{display:block!important;margin:0!important;padding:0!important}.page-section{display:block!important}.page-section:not(#page-clinical-opportunities){display:none!important}.opportunity-panel{border:0!important;box-shadow:none!important;padding:0!important}.opportunity-report-row{break-inside:avoid;grid-template-columns:52px 130px 1fr 1fr 115px;font-size:9pt}.opportunity-report-actions{display:none!important}.clinical-opportunity-head{margin-bottom:12px}.clinical-opportunity-head .quick-buttons{display:none!important}}

/* v55 clinical opportunity report */
.opportunity-report-columns{display:grid;grid-template-columns:64px 170px minmax(260px,1.25fr) minmax(300px,1.4fr) 150px 150px;gap:12px;padding:0 14px 8px;margin-top:12px;color:#71868a;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.055em;border-bottom:1px solid #e5eded}
.opportunity-patient-list{gap:8px}
.opportunity-report-row{border-radius:8px;box-shadow:none;border-left:4px solid #dbe8e5}
.opportunity-report-opportunity strong{font-size:13px}.opportunity-report-pathway strong{font-size:11px}.opportunity-report-actions .opportunity-document-link{background:#087f7d!important;color:#fff!important;border-color:#087f7d!important;padding:8px 10px;border-radius:7px}
@media(max-width:1250px){.opportunity-report-columns{display:none}}
@media print{.opportunity-report-columns{display:grid;grid-template-columns:52px 130px 1fr 1fr 115px;padding:0 8px 6px}.opportunity-report-columns span:last-child{display:none}}

/* v57: separate Clinical, Service/Billing, and Payer checks */
.opportunity-check-stack{display:grid;gap:7px;padding:0;background:transparent;border:0}
.opportunity-check{padding:8px 9px;border-radius:8px;border:1px solid #dfe8e6;background:#f7faf9}
.opportunity-check.verified{background:#eff9f1;border-color:#bfe2c7}
.opportunity-check.review{background:#fff8e8;border-color:#ead39b}
.opportunity-check.not-verified{background:#fff1f2;border-color:#e8c4c8}
.opportunity-check.neutral{background:#f5f7f7;border-color:#dce4e3}
.opportunity-check-label{display:block!important;margin:0 0 3px!important;color:#657d7f!important;font-size:8px!important;font-weight:850!important;text-transform:uppercase;letter-spacing:.055em}
.opportunity-check strong{font-size:10.5px!important;color:#24464d!important}
.opportunity-check span{font-size:9.5px!important;line-height:1.4!important;margin-top:3px!important}
.opportunity-check-source{display:block!important;margin-top:5px!important;padding-top:5px;border-top:1px solid rgba(66,96,96,.12);font-size:8.5px!important}
@media print{.opportunity-check{padding:5px 6px}.opportunity-check span{font-size:8pt!important}.opportunity-check-label{font-size:7pt!important}}

/* Functionality 58: compact opportunity worklist and print report */
.opportunity-report-row{grid-template-columns:58px 155px minmax(235px,1.25fr) minmax(360px,1.55fr) 125px 132px;gap:9px;padding:10px 11px}
.opportunity-report-pathway{padding:0;background:transparent;border:0}
.opportunity-check-stack{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.opportunity-check{padding:7px 8px;min-height:58px;border-radius:7px}
.opportunity-check strong{font-size:10px;line-height:1.25}
.opportunity-check-detail{font-size:9px!important;line-height:1.3!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.opportunity-check-source{display:none!important}
.opportunity-report-status .badge:first-child{display:none}
.opportunity-report-status{align-content:start}
.opportunity-report-actions{gap:4px}
.opportunity-report-actions button{padding:7px 8px}

@media print{
  @page{size:landscape;margin:0.35in}
  body{font-size:8pt!important}
  .clinical-opportunity-head{margin:0 0 8px!important}
  .clinical-opportunity-head h1,.clinical-opportunity-head h2{font-size:17pt!important;margin:0 0 2px!important}
  .clinical-opportunity-head p{font-size:8pt!important;margin:0!important;max-width:none!important}
  .opportunity-report-columns{display:grid!important;grid-template-columns:42px 120px minmax(220px,1.25fr) minmax(310px,1.6fr) 105px!important;gap:6px!important;padding:0 5px 4px!important;margin-top:5px!important;font-size:6.5pt!important}
  .opportunity-report-columns span:last-child{display:none!important}
  .opportunity-report-row{display:grid!important;grid-template-columns:42px 120px minmax(220px,1.25fr) minmax(310px,1.6fr) 105px!important;gap:6px!important;padding:5px!important;border-radius:3px!important;border-left-width:2px!important;break-inside:avoid!important;page-break-inside:avoid!important}
  .opportunity-report-priority .opportunity-score{width:34px!important;height:29px!important;font-size:8pt!important;border-radius:4px!important}
  .opportunity-report-priority .opportunity-score small{font-size:5.5pt!important;margin:0!important}
  .opportunity-report-row strong{font-size:7.5pt!important;line-height:1.2!important}
  .opportunity-report-row span,.opportunity-report-row small{font-size:6.5pt!important;line-height:1.25!important;margin-top:1px!important}
  .opportunity-report-opportunity>strong{font-size:8pt!important}
  .opportunity-check-stack{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:3px!important}
  .opportunity-check{padding:3px 4px!important;min-height:0!important;border-radius:3px!important}
  .opportunity-check-label{font-size:5.5pt!important;margin:0!important}
  .opportunity-check strong{font-size:6.5pt!important;line-height:1.15!important}
  .opportunity-check-detail,.opportunity-check-source{display:none!important}
  .opportunity-report-status .badge:first-child{display:none!important}
  .opportunity-report-status .badge{font-size:5.5pt!important;padding:3px 4px!important}
  .opportunity-report-status small{font-size:5.8pt!important;margin-top:2px!important}
}

/* Functionality 60: readable three-box worklist, guided resolution actions, and compact print */
.opportunity-panel{overflow-x:auto}
.opportunity-report-columns,.opportunity-report-row{min-width:1380px}
.opportunity-report-columns{grid-template-columns:58px 165px minmax(255px,1.15fr) minmax(555px,2.15fr) 125px 140px;gap:10px}
.opportunity-report-row{grid-template-columns:58px 165px minmax(255px,1.15fr) minmax(555px,2.15fr) 125px 140px;gap:10px;align-items:stretch}
.opportunity-check-stack{grid-template-columns:repeat(3,minmax(175px,1fr));gap:8px}
.opportunity-check{display:flex;flex-direction:column;min-height:104px;padding:9px 10px}
.opportunity-check strong{font-size:11px!important;line-height:1.3!important}
.opportunity-check-detail{display:block!important;overflow:visible!important;-webkit-line-clamp:unset!important;font-size:9.5px!important;line-height:1.35!important}
.opportunity-resolution-link{margin-top:auto;padding:5px 0 0;border:0;background:transparent;color:#087f7d;font-size:9px;font-weight:850;text-align:left;cursor:pointer}
.opportunity-resolution-link:hover{text-decoration:underline}
.opportunity-resolution-note{margin-top:auto!important;padding-top:5px;color:#8a5559!important;font-size:8.5px!important;font-weight:700}

@media(max-width:1250px){
  .opportunity-report-columns{display:grid}
  .opportunity-report-status,.opportunity-report-actions{grid-column:auto}
  .opportunity-report-actions{display:grid}
  .opportunity-report-actions button{width:100%}
}
@media(max-width:760px){
  .opportunity-report-columns{display:none}
  .opportunity-report-row{min-width:0;grid-template-columns:55px 1fr}
  .opportunity-report-opportunity,.opportunity-report-pathway,.opportunity-report-status,.opportunity-report-actions{grid-column:1/3}
  .opportunity-check-stack{grid-template-columns:1fr}
}

@media print{
  @page{size:landscape;margin:.28in}
  .opportunity-panel{overflow:visible!important}
  .opportunity-report-columns{min-width:0!important;grid-template-columns:38px 112px minmax(190px,1.2fr) minmax(390px,2.2fr) 92px!important;gap:5px!important;font-size:6pt!important}
  .opportunity-report-row{min-width:0!important;grid-template-columns:38px 112px minmax(190px,1.2fr) minmax(390px,2.2fr) 92px!important;gap:5px!important;padding:4px 5px!important}
  .opportunity-check-stack{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}
  .opportunity-check{display:block!important;min-height:0!important;padding:3px 5px!important}
  .opportunity-check-label{font-size:5pt!important}
  .opportunity-check strong{font-size:6.2pt!important;line-height:1.15!important}
  .opportunity-check-detail,.opportunity-resolution-link,.opportunity-resolution-note,.opportunity-check-source{display:none!important}
  .opportunity-report-row strong{font-size:7pt!important}
  .opportunity-report-row span,.opportunity-report-row small{font-size:6pt!important}
  .opportunity-report-opportunity>strong{font-size:7.4pt!important}
  .opportunity-report-status .badge{font-size:5pt!important;padding:2px 3px!important}
  .opportunity-report-status small{font-size:5.4pt!important}
}

/* v62 compact clinical opportunity report */
#opportunity-queue .opportunity-report-row{align-items:start;gap:10px;padding:10px 8px}
#opportunity-queue .opportunity-report-pathway{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0}
#opportunity-queue .opportunity-signal-box{min-width:0;padding:8px 9px;border-radius:9px}
#opportunity-queue .opportunity-signal-box .label{font-size:8px;margin-bottom:3px}
#opportunity-queue .opportunity-signal-box strong{font-size:10px;line-height:1.25;white-space:normal;overflow:visible;text-overflow:clip}
#opportunity-queue .opportunity-signal-box small{font-size:8.5px;line-height:1.25;display:block;margin-top:3px;white-space:normal;overflow:visible;text-overflow:clip}
#opportunity-queue .opportunity-report-evidence{line-height:1.3}
#opportunity-queue .opportunity-report-actions{gap:5px}
#opportunity-queue .opportunity-report-actions button{padding:7px 9px;font-size:9px}
@media print{
 @page{size:landscape;margin:8mm}
 #opportunity-queue .opportunity-report-row{grid-template-columns:42px 112px minmax(210px,1.45fr) minmax(300px,2fr) 100px!important;gap:6px!important;padding:6px 4px!important;font-size:7.5pt!important;break-inside:avoid}
 #opportunity-queue .opportunity-report-pathway{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}
 #opportunity-queue .opportunity-signal-box{padding:5px 6px!important;border-radius:5px!important}
 #opportunity-queue .opportunity-signal-box .label{font-size:5.8pt!important;margin-bottom:1px!important}
 #opportunity-queue .opportunity-signal-box strong{font-size:6.8pt!important;line-height:1.15!important}
 #opportunity-queue .opportunity-signal-box small{display:none!important}
 #opportunity-queue .opportunity-report-evidence{font-size:7pt!important;line-height:1.18!important}
 #opportunity-queue .opportunity-report-status{font-size:7pt!important}
}

/* Functionality 62: make the 75% worklist density the normal 100% desktop view */
@media (min-width:1100px) and (max-width:1700px){
  .opportunity-panel{overflow-x:hidden}
  .opportunity-report-columns,
  #opportunity-queue .opportunity-report-row{min-width:0;width:100%;grid-template-columns:48px 120px minmax(190px,1.2fr) minmax(380px,2.35fr) 94px 112px;gap:7px}
  .opportunity-report-columns{padding:0 8px 7px;font-size:7.5px;letter-spacing:.035em}
  #opportunity-queue .opportunity-report-row{padding:8px 7px}
  #opportunity-queue .opportunity-report-row strong{font-size:10px;line-height:1.25}
  #opportunity-queue .opportunity-report-row span,
  #opportunity-queue .opportunity-report-row small{font-size:8px;line-height:1.3;margin-top:2px}
  #opportunity-queue .opportunity-report-opportunity>strong{font-size:11px}
  #opportunity-queue .opportunity-report-priority .opportunity-score{width:40px;height:34px;font-size:10px}
  #opportunity-queue .opportunity-report-priority .opportunity-score small{font-size:7px}
  #opportunity-queue .opportunity-report-pathway{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  #opportunity-queue .opportunity-check{min-height:0;padding:7px 7px;border-radius:7px}
  #opportunity-queue .opportunity-check-label{font-size:6.5px}
  #opportunity-queue .opportunity-check strong{font-size:9px!important;line-height:1.2!important}
  #opportunity-queue .opportunity-check-detail{font-size:7.5px!important;line-height:1.25!important}
  #opportunity-queue .opportunity-resolution-link{font-size:7.5px;padding-top:4px}
  #opportunity-queue .opportunity-report-status{gap:3px}
  #opportunity-queue .opportunity-report-status .badge{font-size:7px;padding:4px 5px}
  #opportunity-queue .opportunity-report-status small{font-size:7px}
  #opportunity-queue .opportunity-report-actions{gap:4px}
  #opportunity-queue .opportunity-report-actions button{padding:7px 6px;font-size:8.5px;line-height:1.15}
  .opportunity-toolbar{gap:8px}
  .opportunity-toolbar input,.opportunity-toolbar select{min-width:0;font-size:11px;padding:9px 10px}
  .opportunity-tabs{gap:5px;padding-bottom:10px;margin-bottom:10px}
  .opportunity-tabs button{font-size:8px;padding:6px 8px}
}


/* Functionality 69: clean 100% desktop Clinical Opportunities worklist.
   This replaces the conflicting v64-v68 screen overrides. No artificial zoom.
   The worklist shows concise, readable decisions; supporting narrative appears
   only when the user clicks a Clinical / Service / Payer box. */
@media screen and (min-width:1100px){
  #page-clinical-opportunities{
    zoom:1 !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
  }
  #page-clinical-opportunities .opportunity-stats{display:none !important}
  #page-clinical-opportunities .opportunity-flow{padding:7px 10px;margin:7px 0 8px}
  #page-clinical-opportunities .opportunity-panel{
    padding:10px 12px !important;
    overflow-x:hidden !important;
    width:100% !important;
    max-width:none !important;
  }
  #page-clinical-opportunities .opportunity-toolbar{gap:7px !important;padding:6px 0 8px !important}
  #page-clinical-opportunities .opportunity-toolbar input,
  #page-clinical-opportunities .opportunity-toolbar select{
    min-width:0 !important;
    font-size:12px !important;
    padding:8px 9px !important;
  }
  #page-clinical-opportunities .opportunity-tabs{gap:5px !important;margin-bottom:7px !important;padding-bottom:6px !important}
  #page-clinical-opportunities .opportunity-tabs button{font-size:9px !important;padding:5px 8px !important}

  #page-clinical-opportunities .opportunity-report-columns,
  #page-clinical-opportunities #opportunity-queue .opportunity-report-row{
    width:100% !important;
    min-width:0 !important;
    grid-template-columns:48px 135px minmax(220px,1.45fr) minmax(435px,2.45fr) 82px 108px !important;
    gap:8px !important;
  }
  #page-clinical-opportunities .opportunity-report-columns{
    padding:0 8px 7px !important;
    font-size:9px !important;
    color:#274752 !important;
    font-weight:800 !important;
    letter-spacing:.035em !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-row{
    padding:9px 8px !important;
    color:#183944 !important;
    border-left-width:3px !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-priority .opportunity-score{
    width:40px !important;height:36px !important;font-size:11px !important;border-radius:7px !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-priority .opportunity-score small{
    font-size:8px !important;color:inherit !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-row strong{
    color:#082f3b !important;
    font-size:12px !important;
    line-height:1.24 !important;
    font-weight:750 !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-row span,
  #page-clinical-opportunities #opportunity-queue .opportunity-report-row small{
    color:#31535e !important;
    font-size:10px !important;
    line-height:1.3 !important;
    margin-top:2px !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-patient strong{
    font-size:12.5px !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-opportunity>strong{
    font-size:13px !important;
    color:#082f3b !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-opportunity>span{
    display:block !important;
    font-size:10.2px !important;
    color:#31535e !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-opportunity>small{
    display:none !important;
  }

  #page-clinical-opportunities #opportunity-queue .opportunity-report-pathway{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:7px !important;
    padding:0 !important;
    background:transparent !important;
    border:0 !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-check{
    min-width:0 !important;
    min-height:66px !important;
    padding:8px 9px !important;
    border-radius:7px !important;
    cursor:pointer !important;
    overflow:hidden !important;
    transition:box-shadow .15s ease,border-color .15s ease !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-check:hover,
  #page-clinical-opportunities #opportunity-queue .opportunity-check:focus-visible{
    box-shadow:0 0 0 2px rgba(8,127,125,.18) !important;
    outline:none !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-check-label{
    display:block !important;
    color:#2e515c !important;
    font-size:8px !important;
    line-height:1.15 !important;
    font-weight:850 !important;
    letter-spacing:.04em !important;
    margin:0 0 4px !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-check strong{
    color:#082f3b !important;
    font-size:11px !important;
    line-height:1.2 !important;
    font-weight:800 !important;
    overflow-wrap:normal !important;
  }
  /* Narrative is hidden until the box is clicked. */
  #page-clinical-opportunities #opportunity-queue .opportunity-check-detail,
  #page-clinical-opportunities #opportunity-queue .opportunity-check-source,
  #page-clinical-opportunities #opportunity-queue .opportunity-resolution-note{
    display:none !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-check.is-expanded .opportunity-check-detail{
    display:block !important;
    margin-top:6px !important;
    color:#294d57 !important;
    font-size:10px !important;
    line-height:1.35 !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-check.is-expanded .opportunity-check-source{
    display:block !important;
    margin-top:6px !important;
    padding-top:5px !important;
    color:#365a64 !important;
    font-size:9px !important;
    line-height:1.3 !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-resolution-link{
    display:block !important;
    margin-top:7px !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    color:#007f7d !important;
    font-size:10px !important;
    line-height:1.15 !important;
    font-weight:800 !important;
    text-align:left !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-status{gap:4px !important}
  #page-clinical-opportunities #opportunity-queue .opportunity-report-status .badge{
    font-size:9px !important;padding:5px 6px !important;font-weight:750 !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-status small{
    font-size:9px !important;line-height:1.25 !important;color:#45646d !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-actions{gap:5px !important}
  #page-clinical-opportunities #opportunity-queue .opportunity-report-actions button{
    width:100% !important;
    padding:7px 6px !important;
    font-size:10px !important;
    line-height:1.12 !important;
    font-weight:750 !important;
    border-radius:6px !important;
  }
}

/* Smaller desktop: keep everything visible without artificial zoom. */
@media screen and (min-width:1100px) and (max-width:1450px){
  .content{padding-left:16px;padding-right:16px}
  #page-clinical-opportunities .opportunity-report-columns,
  #page-clinical-opportunities #opportunity-queue .opportunity-report-row{
    grid-template-columns:46px 122px minmax(200px,1.35fr) minmax(385px,2.35fr) 78px 106px !important;
    gap:6px !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-row strong{font-size:11.5px !important}
  #page-clinical-opportunities #opportunity-queue .opportunity-report-row span,
  #page-clinical-opportunities #opportunity-queue .opportunity-report-row small{font-size:9.5px !important}
  #page-clinical-opportunities #opportunity-queue .opportunity-report-opportunity>strong{font-size:12.5px !important}
  #page-clinical-opportunities #opportunity-queue .opportunity-check strong{font-size:10.5px !important}
  #page-clinical-opportunities #opportunity-queue .opportunity-check-label{font-size:7.7px !important}
}

/* v70: reclaim width from workflow columns for clinical content. */
@media screen and (min-width:1100px){
  #page-clinical-opportunities #opportunity-queue .opportunity-report-status{
    min-width:0 !important;
    align-items:flex-start !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-status .badge{
    max-width:100% !important;
    white-space:normal !important;
    text-align:center !important;
    line-height:1.1 !important;
    padding:4px 5px !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-status small{
    max-width:100% !important;
    overflow-wrap:anywhere !important;
    line-height:1.18 !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-actions{
    min-width:0 !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-actions button{
    min-width:0 !important;
    padding-left:5px !important;
    padding-right:5px !important;
  }
}

/* Functionality 71: explicit compact summaries and visible workflow status. */
@media screen and (min-width:1100px){
  #page-clinical-opportunities .opportunity-report-columns,
  #page-clinical-opportunities #opportunity-queue .opportunity-report-row{
    grid-template-columns:46px 118px minmax(210px,1.45fr) minmax(430px,2.8fr) 88px 108px !important;
    gap:7px !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-pathway{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:7px !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-check{
    min-height:64px !important;
    padding:8px 9px !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-check strong{
    font-size:11px !important;
    line-height:1.18 !important;
    color:#0b3541 !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-check-summary{
    display:block !important;
    margin-top:5px !important;
    color:#2d5360 !important;
    font-size:9.5px !important;
    line-height:1.2 !important;
    font-weight:700 !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-check-detail[hidden],
  #page-clinical-opportunities #opportunity-queue .opportunity-check-source[hidden]{
    display:none !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-check.is-expanded .opportunity-check-detail:not([hidden]){
    display:block !important;
    margin-top:7px !important;
    color:#2b4d56 !important;
    font-size:10px !important;
    line-height:1.35 !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-check.is-expanded .opportunity-check-source:not([hidden]){
    display:block !important;
    margin-top:6px !important;
    padding-top:5px !important;
    border-top:1px solid rgba(66,96,96,.12) !important;
    color:#365a64 !important;
    font-size:9px !important;
    line-height:1.3 !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-status{
    display:flex !important;
    flex-direction:column !important;
    gap:5px !important;
    min-width:0 !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-status-badge{
    display:inline-block !important;
    width:max-content !important;
    max-width:100% !important;
    padding:5px 6px !important;
    border-radius:6px !important;
    background:#e7f2f8 !important;
    color:#246788 !important;
    font-size:9px !important;
    line-height:1.12 !important;
    font-weight:800 !important;
    text-transform:uppercase !important;
    white-space:normal !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-status small{
    display:block !important;
    margin:0 !important;
    color:#45646d !important;
    font-size:9px !important;
    line-height:1.2 !important;
    overflow-wrap:anywhere !important;
  }
}

/* Functionality 72: true 100% desktop fit for Clinical Opportunities. */
@media screen and (min-width:1100px){
  body:has(#page-clinical-opportunities:not(.hidden)) .app{
    grid-template-columns:220px minmax(0,1fr) !important;
  }
  body:has(#page-clinical-opportunities:not(.hidden)) .sidebar{
    padding-left:12px !important;
    padding-right:12px !important;
  }
  body:has(#page-clinical-opportunities:not(.hidden)) .sidebar nav a{
    padding-left:12px !important;
    padding-right:12px !important;
  }
  body:has(#page-clinical-opportunities:not(.hidden)) .content{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding-left:16px !important;
    padding-right:16px !important;
  }
  #page-clinical-opportunities .opportunity-panel{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    overflow-x:hidden !important;
    padding-left:10px !important;
    padding-right:10px !important;
  }
  #page-clinical-opportunities .opportunity-report-columns,
  #page-clinical-opportunities #opportunity-queue .opportunity-report-row{
    width:100% !important;
    min-width:0 !important;
    grid-template-columns:42px 108px minmax(175px,1.25fr) minmax(0,2.45fr) 74px 100px !important;
    gap:6px !important;
  }
  #page-clinical-opportunities .opportunity-report-columns{
    padding-left:5px !important;
    padding-right:5px !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-row{
    padding:8px 5px !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-pathway{
    min-width:0 !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:6px !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-check{
    min-width:0 !important;
    min-height:60px !important;
    padding:7px 8px !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-check strong{
    font-size:10.5px !important;
    line-height:1.17 !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-check-label{
    font-size:7.5px !important;
    margin-bottom:3px !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-check-summary{
    font-size:9px !important;
    margin-top:4px !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-check-detail,
  #page-clinical-opportunities #opportunity-queue .opportunity-check-source{
    display:none !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-check.is-expanded .opportunity-check-detail[style*="block"],
  #page-clinical-opportunities #opportunity-queue .opportunity-check.is-expanded .opportunity-check-source[style*="block"]{
    display:block !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-status{
    width:74px !important;
    min-width:0 !important;
    gap:4px !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-status-badge{
    width:100% !important;
    padding:4px 3px !important;
    font-size:8px !important;
    line-height:1.08 !important;
    text-align:center !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-status small{
    font-size:8px !important;
    line-height:1.14 !important;
    text-align:left !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-actions{
    width:100px !important;
    min-width:0 !important;
    gap:4px !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-actions button{
    width:100% !important;
    min-width:0 !important;
    padding:7px 4px !important;
    font-size:9.5px !important;
    line-height:1.1 !important;
  }
}

@media screen and (min-width:1100px) and (max-width:1250px){
  body:has(#page-clinical-opportunities:not(.hidden)) .app{
    grid-template-columns:205px minmax(0,1fr) !important;
  }
  #page-clinical-opportunities .opportunity-report-columns,
  #page-clinical-opportunities #opportunity-queue .opportunity-report-row{
    grid-template-columns:40px 100px minmax(160px,1.2fr) minmax(0,2.35fr) 70px 94px !important;
    gap:5px !important;
  }
  #page-clinical-opportunities #opportunity-queue .opportunity-report-actions{width:94px !important}
  #page-clinical-opportunities #opportunity-queue .opportunity-report-status{width:70px !important}
}

/* Build 83: concise state references, with details available on demand. */
.state-references { margin-top: .55rem; font-size: .9rem; color: #263c48; }
.state-reference-links { display: flex; flex-wrap: wrap; gap: .3rem; line-height: 1.5; }
.state-references a { color: #075c69; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.state-references summary { cursor: pointer; padding: .35rem 0; font-weight: 600; }
.state-reference-details { padding: .3rem .6rem; border-left: 2px solid #b5cdd1; background: #f6f9fa; }
.state-reference-details p { margin: .4rem 0; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.state-reference-context, .state-reference-provenance { font-size: .82rem; color: #475b65; }
