/* Outreach Healthcare Care Audit — brand styles carried over from the supplied prototype, then extended. */
:root{--navy:#10253f;--navy2:#183b5b;--teal:#16a99a;--teal2:#dff7f2;--ink:#182b43;--muted:#728198;--line:#e5ebf2;--bg:#f4f7fb;--white:#fff;--amber:#f0ad4e;--red:#dc626b;--blue:#5a83e8;--shadow:0 12px 35px rgba(18,42,68,.07)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}.app{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100vh}.sidebar{background:linear-gradient(180deg,#10253f,#142f4c);color:#d8e5f2;padding:24px 15px;display:flex;flex-direction:column;gap:22px}.brand{display:flex;gap:11px;align-items:center;padding:0 10px 20px;border-bottom:1px solid #ffffff20}.brandmark{height:39px;width:39px;border-radius:13px;background:linear-gradient(135deg,#35d3bd,#149b92);display:grid;place-items:center;color:#092b3d;font-weight:900;font-size:20px}.brand strong{display:block;font-size:15px;color:white;letter-spacing:.2px}.brand small{font-size:10px;color:#9db5ca;letter-spacing:1.8px;text-transform:uppercase}.navgroup label{display:block;font-size:10px;color:#7793ad;letter-spacing:1.5px;text-transform:uppercase;padding:0 12px 8px}.nav{display:flex;align-items:center;gap:12px;width:100%;padding:11px 12px;border:0;border-radius:10px;background:transparent;color:#c1d0df;text-align:left;margin:2px 0;font-weight:550}.nav .ico{width:19px;text-align:center;font-size:16px}.nav:hover,.nav.active{background:#ffffff15;color:#fff}.nav.active{box-shadow:inset 3px 0 #31c9b5}.nav .count{margin-left:auto;background:#e75e6b;color:white;border-radius:99px;padding:2px 7px;font-size:10px}.sidebottom{margin-top:auto;border-top:1px solid #ffffff20;padding:16px 8px 0;color:#9fb5c9;font-size:11px}.sidebottom strong{display:block;color:#eaf3fb;font-size:12px;margin-bottom:4px}.main{min-width:0}.topbar{height:75px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:18px;position:sticky;top:0;z-index:10}.crumb{color:var(--muted);font-size:12px}.crumb b{color:var(--ink);font-weight:650}.search{display:flex;align-items:center;gap:9px;background:#f4f7fa;border:1px solid #e9eef4;padding:9px 12px;border-radius:10px;width:min(360px,36vw)}.search input{border:0;outline:0;background:transparent;width:100%;min-width:0}.topactions{display:flex;align-items:center;gap:12px}.iconbtn{height:37px;width:38px;border:1px solid var(--line);background:white;border-radius:10px;color:#60728a;position:relative}.dot{height:7px;width:7px;background:#ef6671;border-radius:50%;position:absolute;right:8px;top:7px}.user{display:flex;align-items:center;gap:9px}.avatar{height:36px;width:36px;border-radius:50%;display:grid;place-items:center;background:#e1f5f1;color:#117d73;font-weight:800}.user b{display:block;font-size:12px}.user small{display:block;color:var(--muted);font-size:10px}.content{padding:28px 32px 45px;max-width:1600px;margin:auto}.pagehead{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:24px}.eyebrow{color:#159b8e;font-size:10px;letter-spacing:1.7px;font-weight:800;text-transform:uppercase}.pagehead h1{margin:5px 0 5px;font-size:28px;letter-spacing:-.8px;font-weight:760}.pagehead p{margin:0;color:var(--muted)}.actions{display:flex;gap:9px;flex-wrap:wrap}.btn{border:1px solid #dce5ed;background:#fff;color:#29415b;padding:10px 14px;border-radius:9px;font-weight:650;display:inline-flex;gap:8px;align-items:center;justify-content:center}.btn.primary{background:var(--navy);color:white;border-color:var(--navy);box-shadow:0 5px 12px #10253f20}.btn.teal{background:var(--teal);border-color:var(--teal);color:#062e34}.btn:hover{filter:brightness(.97);transform:translateY(-1px)}.grid{display:grid;gap:17px}.stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px}.card{background:white;border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);min-width:0}.stat{padding:19px 20px;position:relative;overflow:hidden}.stathead{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;font-weight:600}.staticon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#e5f8f4;color:#159b8e;font-size:17px}.statvalue{font-size:29px;letter-spacing:-1px;font-weight:780;margin:11px 0 4px}.statfoot{font-size:11px;color:var(--muted)}.positive{color:#159b8e;font-weight:700}.dashboardgrid{grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);margin-bottom:18px}.cardhead{display:flex;justify-content:space-between;align-items:center;padding:19px 21px 14px;gap:10px}.cardhead h2{font-size:15px;margin:0;font-weight:750}.cardhead p{margin:4px 0 0;color:var(--muted);font-size:11px}.textlink{border:0;background:transparent;color:#159b8e;font-size:12px;font-weight:750}.pipeline{padding:0 21px 20px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.stage{background:#f6f8fb;border-radius:10px;padding:12px 10px;border:1px solid #edf1f5}.stage span{font-size:10px;color:var(--muted)}.stage strong{display:block;font-size:21px;margin:6px 0}.bar{height:4px;background:#e2eaf0;border-radius:4px;overflow:hidden}.bar i{display:block;height:100%;background:var(--teal);border-radius:4px}.activity{padding:0 20px 13px}.activityrow{display:flex;gap:11px;padding:12px 0;border-top:1px solid #eef2f6}.activityicon{height:31px;width:31px;flex:0 0 31px;border-radius:10px;background:#edf6ff;color:#4b7fd1;display:grid;place-items:center}.activityrow b{font-size:12px;display:block}.activityrow p{margin:2px 0;color:var(--muted);font-size:11px}.activityrow time{margin-left:auto;white-space:nowrap;color:#91a0b2;font-size:10px}.lowergrid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap}th{text-align:left;color:#8090a4;font-size:10px;letter-spacing:.7px;text-transform:uppercase;font-weight:750;background:#fafbfd;padding:12px 18px;border-top:1px solid #edf1f5;border-bottom:1px solid #edf1f5}td{padding:14px 18px;border-bottom:1px solid #eff3f6;font-size:12px}tbody tr:hover{background:#fafcfe}.person{display:flex;align-items:center;gap:10px}.miniavatar{height:31px;width:31px;border-radius:10px;background:#e8f1ff;color:#4c6fb2;display:grid;place-items:center;font-weight:800;font-size:11px}.person b{display:block;font-size:12px}.person small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.pill{display:inline-flex;align-items:center;padding:4px 8px;border-radius:99px;font-size:10px;font-weight:750;background:#edf1f5;color:#53677e}.pill.green{background:#e1f8ee;color:#15815d}.pill.amber{background:#fff3dd;color:#a46b08}.pill.red{background:#ffe8e9;color:#b93c49}.pill.blue{background:#e9f0ff;color:#4e6fc2}.pill.purple{background:#f2eaff;color:#8054b3}.tasks{padding:0 20px 15px}.task{display:flex;align-items:flex-start;gap:11px;padding:13px 0;border-bottom:1px solid #eef2f6}.task:last-child{border:0}.task input{margin-top:4px;accent-color:var(--teal)}.task b{font-size:12px;display:block}.task p{font-size:11px;color:var(--muted);margin:3px 0}.task .pill{margin-left:auto;flex-shrink:0}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}.filter{border:1px solid #dfe7ee;background:white;border-radius:9px;padding:10px 12px;color:#52657b;outline:none}.filter.searchfield{flex:1;min-width:200px}.sectionstats{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:18px}.sectionstat{padding:15px 18px}.sectionstat small{color:var(--muted);font-size:11px}.sectionstat strong{display:block;font-size:23px;margin-top:4px}.empty{padding:38px;text-align:center;color:var(--muted)}.modalback{position:fixed;inset:0;background:#10253f78;display:none;align-items:center;justify-content:center;padding:18px;z-index:30}.modalback.open{display:flex}.modal{width:min(660px,100%);max-height:92vh;overflow:auto;background:white;border-radius:17px;box-shadow:0 25px 80px #061a2d40}.modalhead{padding:21px 24px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modalhead h2{font-size:18px;margin:0}.close{border:0;background:#f2f5f8;border-radius:9px;width:33px;height:33px;font-size:20px;color:#60728a}.modalbody{padding:22px 24px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:11px;color:#60728a;font-weight:750}.field input,.field select,.field textarea{width:100%;border:1px solid #dce5ed;background:#fff;border-radius:9px;padding:11px 12px;outline:none;color:var(--ink)}.field input:focus,.field select:focus,.field textarea:focus{border-color:#35bcae;box-shadow:0 0 0 3px #16a99a18}.field textarea{min-height:80px;resize:vertical}.modalfoot{padding:16px 24px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:9px}.toast{position:fixed;bottom:22px;right:22px;background:#122d49;color:white;border-radius:11px;padding:13px 17px;box-shadow:var(--shadow);z-index:60;display:none;max-width:360px}.toast.show{display:block;animation:up .2s ease}@keyframes up{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}.notice{border:1px solid #f3dfb4;background:#fff9eb;color:#78591b;border-radius:11px;padding:12px 15px;font-size:11px;margin-top:18px}.chart{padding:0 21px 20px}.chartlegend{display:flex;gap:16px;color:var(--muted);font-size:10px}.legenddot{display:inline-block;height:7px;width:7px;border-radius:3px;background:var(--teal);margin-right:5px}.chart svg{width:100%;height:150px;display:block}.chartlabels{display:flex;justify-content:space-between;color:#94a2b3;font-size:10px}.quickgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:0 20px 20px}.quick{border:1px solid var(--line);border-radius:11px;padding:13px 10px;background:white;text-align:left;color:var(--ink)}.quick:hover{border-color:#91d9d1;background:#f8fdfc}.quick span{font-size:18px;display:block;margin-bottom:7px}.quick b{font-size:11px;display:block}.quick small{color:var(--muted);font-size:10px}.footer{text-align:center;color:#98a6b5;font-size:10px;padding:22px 0 0}
@media(max-width:1100px){.app{grid-template-columns:215px minmax(0,1fr)}.content{padding:24px 22px}.topbar{padding:0 22px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboardgrid,.lowergrid{grid-template-columns:1fr}.user>div:last-child{display:none}}
@media(max-width:720px){.app{display:block}.sidebar{padding:12px;position:sticky;top:0;z-index:20;display:block}.brand{padding:0 5px 10px;border:0}.brandmark{height:32px;width:32px}.brand strong{font-size:13px}.brand small{font-size:9px}.navgroup{display:flex;overflow:auto;gap:4px;padding-top:7px}.navgroup label,.sidebottom{display:none}.nav{white-space:nowrap;width:auto;padding:9px 11px;font-size:11px}.nav .ico{display:none}.topbar{height:59px;padding:0 14px}.search{width:auto;flex:1}.crumb{display:none}.topactions{gap:6px}.user{display:none}.content{padding:20px 14px}.pagehead{display:block}.pagehead h1{font-size:24px}.pagehead .actions{margin-top:15px}.stats{gap:10px}.stat{padding:14px}.statvalue{font-size:24px}.pipeline{grid-template-columns:repeat(2,minmax(0,1fr))}.quickgrid{grid-template-columns:repeat(2,1fr)}.sectionstats{grid-template-columns:1fr}.formgrid{grid-template-columns:1fr}.field.full{grid-column:auto}.cardhead{padding:16px}.tasks,.activity{padding-left:16px;padding-right:16px}td,th{padding:12px}.modalbody{padding:18px}.modalhead,.modalfoot{padding:16px 18px}}

/* ---- Care Audit application extensions ---- */
a{color:#137d89}
a.nav{text-decoration:none}
a.btn{text-decoration:none}
.btn.danger{background:#fff;color:#b93c49;border-color:#f1c6ca}
.btn.small{padding:6px 10px;font-size:12px}
.btn[disabled]{opacity:.5;cursor:not-allowed;transform:none}
.alert{border-radius:11px;padding:12px 15px;font-size:12px;margin:0 0 16px;border:1px solid}
.alert.ok{background:#ecfaf4;border-color:#bfead6;color:#15684c}
.alert.err{background:#fff0f1;border-color:#f3c5ca;color:#9b2f3b}
.alert.info{background:#eef4ff;border-color:#cfdcf7;color:#34508f}
.alert.warn{background:#fff9eb;border-color:#f3dfb4;color:#78591b}
.synthetic-banner{background:repeating-linear-gradient(45deg,#fff3dd,#fff3dd 10px,#ffe9c2 10px,#ffe9c2 20px);border:1px solid #f0c674;color:#7a5200;font-weight:750;text-align:center;padding:8px;border-radius:10px;margin-bottom:14px;font-size:12px}
.kv{display:grid;grid-template-columns:minmax(140px,220px) minmax(0,1fr);gap:0;font-size:12px}
.kv>div{padding:9px 14px;border-bottom:1px solid #eff3f6;word-break:break-word}
.kv>div:nth-child(odd){color:var(--muted);font-weight:650;background:#fbfcfe}
.pad{padding:0 20px 20px}
.muted{color:var(--muted)}
.small{font-size:11px}
.wrap{white-space:normal!important}
td.wrap{min-width:220px;max-width:480px}
pre.raw{white-space:pre-wrap;word-break:break-word;background:#f6f8fb;border:1px solid var(--line);border-radius:10px;padding:12px;font-size:11px;max-height:420px;overflow:auto;margin:0}
.narrative{white-space:pre-wrap;background:#fbfcfe;border-left:3px solid #31c9b5;padding:10px 14px;border-radius:6px;font-size:12px;margin:0}
mark{background:#ffe7a3;border-radius:3px;padding:0 2px}
.pager{display:flex;gap:6px;align-items:center;justify-content:flex-end;padding:14px 20px}
.pager a,.pager span{padding:6px 10px;border:1px solid var(--line);border-radius:8px;font-size:12px;text-decoration:none;color:#29415b;background:#fff}
.pager span.cur{background:var(--navy);color:#fff;border-color:var(--navy)}
.filters{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;padding:0 20px 16px}
.filters .field{min-width:140px}
.filters .field input,.filters .field select{padding:8px 10px}
.tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}
.tabs a{padding:8px 12px;border-radius:9px;border:1px solid var(--line);background:#fff;text-decoration:none;color:#29415b;font-weight:650;font-size:12px}
.tabs a.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.metric-def{font-size:10px;color:var(--muted);margin-top:6px;line-height:1.4}
.grid2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:17px;margin-bottom:18px}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:18px}
.mb{margin-bottom:18px}
.inline{display:inline}
.nowrap{white-space:nowrap}
.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:middle}
.status-dot.ok{background:#16a99a}.status-dot.na{background:#f0ad4e}.status-dot.off{background:#b7c2cf}.status-dot.nodata{background:#dce3ea}
.bars{padding:0 20px 20px}
.barrow{display:grid;grid-template-columns:160px minmax(0,1fr) 50px;gap:10px;align-items:center;font-size:12px;margin:6px 0}
.barrow .track{height:10px;background:#eef2f6;border-radius:5px;overflow:hidden}
.barrow .track i{display:block;height:100%;background:var(--teal)}
.barrow .track i.High{background:#dc626b}.barrow .track i.Medium{background:#f0ad4e}.barrow .track i.Low{background:#5a83e8}.barrow .track i.Review{background:#8a97a8}
@media(max-width:900px){.grid2,.grid3{grid-template-columns:1fr}.kv{grid-template-columns:1fr}.barrow{grid-template-columns:110px minmax(0,1fr) 40px}}
@media print{.sidebar,.topbar,.noprint,.actions{display:none!important}.app{display:block}.content{padding:0;max-width:none}.card{box-shadow:none;break-inside:avoid}body{background:#fff}table{white-space:normal}}
@media(max-width:720px){.user{display:flex!important}.user>div,.user .avatar{display:none}}
/* uploaded logo */
img.logo{object-fit:contain;background:#fff;padding:3px}
img.brandmark.logo{height:42px;width:auto;max-width:120px;border-radius:10px}
img.avatar.logo{height:36px;width:auto;max-width:90px;border-radius:9px;border:1px solid var(--line)}
img.loginlogo{max-height:64px;max-width:220px;background:#fff;border-radius:12px;padding:6px;object-fit:contain}
.brand strong{line-height:1.2}
div.brandmark{font-size:15px;letter-spacing:-.5px}
div.avatar{font-size:12px}
.brand:has(img.logo){flex-direction:column;align-items:flex-start;gap:10px}
.brand:has(img.logo) img.brandmark.logo{height:auto;max-height:64px;max-width:200px}
@media(max-width:720px){.brand:has(img.logo){flex-direction:row;align-items:center}.brand:has(img.logo) img.brandmark.logo{max-height:34px;max-width:110px}}
/* Outreach Healthcare logo is square with its own wordmark */
.brand:has(img.logo) img.brandmark.logo{width:120px;height:auto;max-height:none;max-width:120px;border-radius:14px;padding:6px}
img.loginlogo{width:150px;max-width:150px;max-height:none;height:auto;border-radius:18px;padding:8px}
img.avatar.logo{width:40px;height:40px;max-width:40px;padding:2px;border-radius:10px}
@media(max-width:720px){.brand:has(img.logo) img.brandmark.logo{width:46px;max-width:46px;padding:2px;border-radius:9px}.loginmobile img.loginlogo{width:90px}}
