:root{--navy:#12324a;--teal:#087e8b;--teal2:#0aa6a6;--bg:#f3f7f8;--line:#dce6e9;--muted:#657783;--white:#fff;--amber:#fff6dc;--red:#b42318;--green:#147d52}*{box-sizing:border-box}html{font-family:Arial,sans-serif;color:var(--navy);background:var(--bg)}body{margin:0;font-size:15px;line-height:1.45}a{color:var(--teal);text-decoration:none}header{height:72px;padding:0 max(20px,calc((100% - 1240px)/2));display:flex;align-items:center;gap:28px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:13px;color:var(--navy);font-size:18px;white-space:nowrap}.brand-logo{display:block;width:auto;height:52px;object-fit:contain}.product-name{font-weight:700;padding-left:13px;border-left:1px solid var(--line)}.auth-logo{height:76px}nav{display:flex;gap:18px;margin-left:auto}nav a{color:var(--navy);font-weight:600}.who{font-size:13px;color:var(--muted);padding-left:20px;border-left:1px solid var(--line)}main{max-width:1240px;margin:0 auto;padding:32px 20px 60px}footer{text-align:center;color:var(--muted);font-size:12px;padding:25px}.page-head,.section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.page-head h1{margin:0;font-size:30px}.page-head p,.section-head p{margin:5px 0 0;color:var(--muted)}h2{font-size:19px;margin:0 0 18px}h3{margin:0 0 7px}.eyebrow{text-transform:uppercase;letter-spacing:.09em;font-size:12px;color:var(--teal);font-weight:700}.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:0 5px 18px rgba(18,50,74,.04);margin-bottom:20px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.metric span{display:block;color:var(--muted);font-size:13px}.metric strong{display:block;font-size:30px;margin-top:8px}.split{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px}.grid{display:grid;gap:16px}.grid.two{grid-template-columns:repeat(2,1fr)}.grid.three{grid-template-columns:repeat(3,1fr)}.wide{grid-column:1/-1}.form h2{margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}.form h2:first-of-type{margin-top:0;padding-top:0;border:0}label{display:flex;flex-direction:column;gap:7px;font-weight:600;font-size:13px}input,select,textarea,button,.button{font:inherit;border:1px solid #bdccd1;border-radius:10px;padding:11px 12px;background:#fff;color:var(--navy)}textarea{min-height:92px;resize:vertical}input:focus,select:focus,textarea:focus{outline:3px solid rgba(10,166,166,.13);border-color:var(--teal)}button,.button{cursor:pointer;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.primary{background:var(--teal);border-color:var(--teal);color:#fff}.form>button{margin-top:22px}.check{flex-direction:row;align-items:center;font-weight:500}.check input{width:18px;height:18px}.filters{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.filters>input,.filters>select{min-width:155px;flex:1}.filters label{min-width:170px}.actions{display:flex;gap:8px}.alert{border-radius:10px;padding:12px 16px;margin-bottom:20px}.alert.success{background:#e7f6ef;color:var(--green)}.alert.error{background:#fdeceb;color:var(--red)}table{width:100%;border-collapse:collapse}th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:11px 10px;border-bottom:1px solid var(--line)}td{padding:13px 10px;border-bottom:1px solid #edf2f3;vertical-align:top}.table-scroll{overflow:auto}.status{padding:5px 9px;border-radius:99px;font-size:12px;font-weight:700;background:#eef2f4}.status.ongoing{background:#e4f5f5;color:#06727a}.status.completed{background:#e7f6ef;color:var(--green)}.status.stopped{background:#fdeceb;color:var(--red)}.bars>div{display:grid;grid-template-columns:140px 1fr 35px;align-items:center;gap:12px;margin:14px 0}.bars i{height:9px;background:#e4eef0;border-radius:10px;overflow:hidden}.bars i:after{content:"";display:block;width:var(--w);height:100%;background:linear-gradient(90deg,var(--teal),var(--teal2));border-radius:10px}.details dl{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:0 0 25px}.details dt{color:var(--muted);font-size:12px}.details dd{margin:4px 0 0;font-weight:700}.prose{white-space:normal;color:#334f61}.photos{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:15px}.photos figure{margin:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#f8fbfb}.photos img{display:block;width:100%;height:260px;object-fit:contain;background:#e9eff1}.photos figcaption{padding:10px;font-size:12px}.timeline{display:grid;grid-template-columns:130px 1fr;gap:20px}.timeline-date{font-weight:700;color:var(--teal)}.outcome{border-left:5px solid var(--green)}.featured{display:flex;justify-content:space-between;align-items:center}.empty{color:var(--muted)}small{color:var(--muted)}hr{border:0;border-top:1px solid var(--line);margin:25px 0}.auth{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(145deg,#edf6f6,#f8fafb)}.auth-card{width:min(620px,100%);background:#fff;border:1px solid var(--line);border-radius:20px;padding:32px;box-shadow:0 18px 50px rgba(18,50,74,.11)}.auth-card h1{margin:30px 0 5px}.auth-card>p{color:var(--muted);margin-top:0}.auth-card form{display:grid;gap:17px;margin-top:24px}
@media(max-width:800px){header{height:auto;min-height:66px;padding:12px 16px;flex-wrap:wrap}header nav{order:3;width:100%;overflow:auto;padding-top:10px;border-top:1px solid var(--line)}.who{margin-left:auto}.cards{grid-template-columns:repeat(2,1fr)}.split,.grid.three{grid-template-columns:1fr}.grid.two{grid-template-columns:1fr}.details dl{grid-template-columns:repeat(2,1fr)}.photos{grid-template-columns:1fr}.timeline{grid-template-columns:1fr}.page-head{align-items:flex-start}.page-head h1{font-size:25px}.filters{align-items:stretch}.filters>*{width:100%}.wide{grid-column:auto}}
@media print{header,footer,.no-print,.alert{display:none!important}body{background:#fff;font-size:12px}main{padding:0;max-width:none}.card{box-shadow:none;break-inside:avoid;border-color:#ccd7da}.page-head{margin-bottom:12px}.page-head button,.page-head .button{display:none}.photos{grid-template-columns:repeat(2,1fr)}.photos img{height:230px}.cards{grid-template-columns:repeat(4,1fr)}a{color:inherit}table{font-size:10px}}
.rayvac-lockup{display:inline-flex;align-items:center;gap:10px}.rayvac-mark{display:block;width:44px;height:38px;object-fit:contain;flex:0 0 auto}.rayvac-word{font-size:19px;font-weight:800;letter-spacing:.14em;line-height:1;color:#1d292c}.auth-brand{gap:20px}.auth-brand .rayvac-mark{width:62px;height:52px}.auth-brand .rayvac-word{font-size:25px}.auth-brand .product-name{font-size:20px}@media(max-width:520px){.rayvac-word{font-size:16px}.auth-brand{gap:12px}.auth-brand .rayvac-mark{width:50px;height:43px}.auth-brand .rayvac-word{font-size:20px}.auth-brand .product-name{font-size:17px}}
.rayvac-header-logo{display:block;width:181px;height:44px;object-fit:contain;flex:0 0 auto}.auth-brand{gap:20px}.auth-brand .rayvac-header-logo{width:247px;height:60px}.auth-brand .product-name{font-size:20px}@media(max-width:520px){.rayvac-header-logo{width:148px;height:36px}.auth-brand{gap:12px}.auth-brand .rayvac-header-logo{width:185px;height:45px}.auth-brand .product-name{font-size:17px}}
.field-disabled{opacity:.48}.upload-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:4px}.upload-item{position:relative;display:block;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#eef3f4}.upload-item img{display:block;width:100%;height:90px;object-fit:cover}.upload-item button{position:absolute;right:5px;bottom:5px;padding:5px 8px;border:0;background:rgba(180,35,24,.92);color:#fff;font-size:11px}.photos figcaption{display:flex;align-items:center;justify-content:space-between;gap:10px}.photo-delete{margin:0}.photo-delete button{padding:6px 9px;border-color:#f1b9b5;color:var(--red);background:#fff}
.photo-open{display:block;background:#e9eff1}.photo-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.photo-actions .button,.photo-actions button{padding:6px 9px;font-size:11px;border-radius:7px}.photo-delete{display:inline-flex;margin:0}.photo-delete button{border-color:#f1b9b5;color:var(--red);background:#fff}@media(max-width:520px){.photos figcaption{align-items:flex-start;flex-direction:column}.photo-actions{width:100%}}
.print-only{display:none}.report-period{font-size:13px;font-weight:700;color:var(--navy)!important}@media print{.print-only{display:block!important}.report-print-page .split{grid-template-columns:1fr 1fr}.report-print-page .card{padding:14px;margin-bottom:12px}.report-print-page h2{font-size:16px;margin-bottom:10px}.report-print-page table{font-size:9px}.report-print-page th,.report-print-page td{padding:7px 6px}}
.danger-zone{border-color:#efc2bd}.danger{background:var(--red);border-color:var(--red);color:#fff}button:disabled,.button:disabled{opacity:.45;cursor:not-allowed}
.narrow{max-width:680px}.profile-page .page-head{max-width:680px}.profile-page .form.narrow{padding:28px}.admin-accounts{border-left:5px solid var(--teal)}.admin-accounts .section-head{margin-bottom:10px}.admin-list{display:grid;gap:10px}.admin-item{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#f8fbfb}.admin-item>div:nth-child(2){display:flex;flex-direction:column;gap:2px;min-width:0}.admin-item>div:nth-child(2) span{color:var(--muted);font-size:13px}.admin-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--teal);color:#fff;font-size:18px;font-weight:800;flex:0 0 auto}.role-badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:99px;background:#e4f5f5;color:#06727a;font-size:12px;font-weight:700;margin-left:auto}.page-head p .role-badge{margin-left:8px}@media(max-width:620px){.admin-item{align-items:flex-start;flex-wrap:wrap}.admin-item .role-badge{margin-left:0}.admin-item>.status{margin-left:auto}}
.profile-heading{margin-bottom:18px}.profile-overview{display:flex;align-items:center;gap:16px;border-left:5px solid var(--teal)}.profile-avatar{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,var(--teal),var(--teal2));color:#fff;font-size:24px;font-weight:800;flex:0 0 auto}.profile-identity{min-width:0}.profile-identity h2{margin:0 0 3px}.profile-identity p{margin:0;color:var(--muted)}.profile-forms{align-items:start}.profile-forms .card{margin-bottom:0}.security-note{max-width:780px;margin:20px auto 0;padding:12px 16px;border-radius:10px;background:#eaf4f5;color:#38586a;font-size:13px}@media(max-width:700px){.profile-overview{align-items:flex-start;flex-wrap:wrap}.profile-overview .role-badge{margin-left:0}.profile-overview>.status{margin-left:auto}}
.who{display:flex;flex-direction:column;line-height:1.25}.who small{font-size:10px;color:var(--teal);white-space:nowrap}.permission-list{display:grid;gap:10px}.permission-item{display:flex;flex-direction:row;align-items:flex-start;gap:11px;padding:13px;border:1px solid var(--line);border-radius:11px;background:#f8fbfb;font-weight:400;cursor:pointer}.permission-item input{width:18px;height:18px;margin:2px 0 0;flex:0 0 auto}.permission-item span{display:flex;flex-direction:column;gap:2px}.permission-item b{font-size:13px}.permission-item small{font-size:12px;line-height:1.35}.permission-item:has(input:checked){border-color:#8bc9cd;background:#edf9f9}.role-inline{margin-left:0}.form-intro{color:var(--muted);margin:-8px 0 18px}.permission-form .permission-list{margin-bottom:8px}
.password-field{position:relative;display:block;width:100%}.password-field input{width:100%;padding-right:72px}.password-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);min-width:56px;padding:6px 9px;border:0;border-radius:7px;background:#edf6f6;color:var(--teal);font-size:12px;font-weight:700}.password-toggle:hover,.password-toggle:focus{background:#dff0f1;outline:2px solid rgba(10,166,166,.18)}
.permission-form{max-width:820px}.permission-form>label{margin-top:18px}.permission-form>label:first-of-type{margin-top:0}.permission-form>label input,.permission-form>label select{min-height:50px}.permission-form>h2{margin-bottom:20px}.permission-form>h2:not(:first-of-type){margin-top:34px;padding-top:28px}.permission-form .form-intro{margin:-8px 0 26px}.permission-form .permission-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:4px}.permission-form .permission-item{min-height:78px;padding:15px}.permission-form>button{min-width:210px;margin-top:26px}.permission-form.narrow{margin-left:auto;margin-right:auto}@media(max-width:700px){.permission-form .permission-list{grid-template-columns:1fr}.permission-form>button{width:100%}}
.rep-fixed-access{padding:18px;border:1px solid #8bc9cd;border-radius:12px;background:#edf9f9}.rep-fixed-access h3{margin-bottom:10px}.rep-fixed-access ul{margin:0 0 10px;padding-left:21px}.rep-fixed-access li{margin:5px 0;font-weight:700}.rep-fixed-access p{margin:0;color:var(--muted);font-size:13px}.rep-fixed-access[hidden],.permission-list[hidden]{display:none!important}
.management-fixed-access{padding:12px 14px;border:1px solid #8bc9cd;border-radius:10px;background:#edf9f9;color:var(--navy);font-size:13px}.management-fixed-access[hidden]{display:none!important}
.signout-link{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border:1px solid #efc2bd;border-radius:9px;background:#fff7f6;color:var(--red);font-size:13px;font-weight:700;white-space:nowrap}.signout-link:hover,.signout-link:focus{background:#fdeceb;border-color:#e5968f}@media(max-width:800px){.signout-link{margin-left:auto}.who{padding-left:12px}}

.doctor-report-list{margin-top:20px}.button.compact{padding:7px 10px;font-size:12px;white-space:nowrap}.doctor-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}.report-footer-note{margin-top:20px;color:var(--muted);font-size:10px;text-align:center}@media(max-width:980px){.doctor-metrics{grid-template-columns:repeat(3,1fr)}}@media(max-width:560px){.doctor-metrics{grid-template-columns:repeat(2,1fr)}}@media print{.doctor-metrics{grid-template-columns:repeat(6,1fr)}.doctor-metrics .card{padding:10px}.doctor-metrics .metric strong{font-size:22px}.doctor-report-list{margin-top:12px}}

.overdue-tag{color:#b42318;font-weight:700}.followup-alert{border-left:5px solid #d97706;background:#fffaf0}.followup-escalation{border-left-color:#b42318;background:#fff3f1}.followup-alert h2{margin-bottom:7px}.followup-alert p{margin:0 0 12px;color:#465d68}.followup-alert a{font-weight:700}.followup-queue{margin:8px 0 0}.followup-queue td:last-child{white-space:nowrap}@media print{.followup-alert{display:none!important}}
.monthly-chart{margin:20px 0}.monthly-chart>p{color:var(--muted);margin:0 0 14px}.monthly-scroll{overflow-x:auto;padding-bottom:6px}.monthly-bars{display:flex;align-items:flex-end;gap:10px;min-width:max-content;border-bottom:1px solid var(--line);padding:10px 2px}.monthly-item{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;width:67px;flex:0 0 67px;text-align:center;gap:5px;font-size:11px}.monthly-item strong{font-size:14px}.monthly-track{height:130px;width:100%;display:flex;align-items:flex-end;justify-content:center}.monthly-bar{width:34px;height:var(--bar-height);max-height:125px;background:var(--teal);border-radius:6px 6px 0 0}.monthly-item.partial .monthly-bar{background:#93a5ad}.monthly-item span{white-space:nowrap;font-weight:700}.monthly-item small{color:var(--muted);font-size:10px}.monthly-chart .monthly-note{margin:12px 0 0;color:var(--navy);font-size:13px}@media print{.monthly-chart{break-inside:avoid}.monthly-scroll{overflow:visible}.monthly-bars{min-width:0;flex-wrap:wrap;justify-content:flex-start;gap:6px}.monthly-item{width:48px;flex-basis:48px;font-size:9px}.monthly-item span{font-size:8px}.monthly-item strong{font-size:10px}.monthly-track{height:90px}.monthly-bar{width:25px;max-height:85px}.monthly-item .monthly-bar{height:var(--bar-print-height)}.monthly-chart>p{font-size:10px}}

/* Role-aware case dashboard */
.dashboard-alert-context{color:var(--muted);font-size:12px;margin:17px 0 -7px}
.dashboard-head{margin-bottom:18px}.dashboard-head h1{font-size:32px}.dashboard-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;align-items:end;padding:20px}.dashboard-filters label{min-width:0}.dashboard-filters input,.dashboard-filters select{width:100%;min-width:0;height:44px}.dashboard-filter-actions{display:flex;gap:8px}.dashboard-filter-actions>*{min-height:44px}.dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.dashboard-metrics .card{margin:0;position:relative;overflow:hidden}.dashboard-metrics .card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--teal)}.dashboard-metrics strong{font-size:29px}.dashboard-alerts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:18px 0}.dashboard-alert{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;border:1px solid #b7dcdf;border-radius:13px;background:#eefafa}.dashboard-alert span{font-weight:700}.dashboard-alert strong{font-size:25px;color:var(--teal)}.dashboard-alert.urgent{background:#fff3f1;border-color:#efc2bd}.dashboard-alert.urgent strong{color:var(--red)}.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.dashboard-grid .card{min-width:0}.dashboard-status-legend{display:grid;gap:11px}.dashboard-status-legend>div{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}.dashboard-status-legend strong{margin-left:auto;font-size:18px}.dashboard-dot{display:inline-block;width:11px;height:11px;border-radius:50%;background:#a1abb0}.dashboard-dot.ongoing{background:#11a4a8}.dashboard-dot.completed{background:#28a56b}.dashboard-dot.stopped{background:#c4685d}.dashboard-payment{display:flex;justify-content:space-between;gap:14px;margin:12px 0}.dashboard-payment>div{display:grid;gap:2px}.dashboard-payment strong{font-size:26px}.dashboard-payment-track{height:13px;border-radius:99px;background:#a4c8d5;overflow:hidden;margin:8px 0 12px}.dashboard-payment-track i{display:block;height:100%;background:var(--teal)}.dashboard-ranked{display:grid;gap:8px}.dashboard-ranked>div{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:7px 0}.dashboard-ranked span{overflow-wrap:anywhere}.dashboard-ranked b{color:var(--teal)}.dashboard-ranked-wide{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:30px}.dashboard-page>.card{margin-top:18px}.dashboard-note{color:var(--muted);font-size:12px;margin:16px 0 0}@media(max-width:950px){.dashboard-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.dashboard-head{align-items:flex-start;flex-direction:column}.dashboard-filters,.dashboard-grid,.dashboard-ranked-wide{grid-template-columns:1fr}.dashboard-alerts{grid-template-columns:1fr}.dashboard-metrics strong{font-size:25px}}@media print{.dashboard-filters,.dashboard-head .actions{display:none!important}.dashboard-alerts{grid-template-columns:repeat(3,1fr)}.dashboard-metrics{grid-template-columns:repeat(4,1fr)}.dashboard-grid{grid-template-columns:repeat(2,1fr)}}

/* Clickable follow-up alert cards */
a.alert-link{color:var(--navy);text-decoration:none;cursor:pointer;transition:box-shadow .15s,border-color .15s}a.alert-link:hover{box-shadow:0 4px 14px #12394b1a;border-color:var(--teal)}a.alert-link:focus-visible{outline:3px solid var(--teal);outline-offset:3px}
