/* Sara Care Patient Report Portal v0.7.3 (STAGING). Scoped to existing private shortcode. */
.scbm-report-portal{--sc-navy:#082a60;--sc-teal:#009f87;--sc-ink:#183451;--sc-muted:#667e91;--sc-line:#dce9ee;--sc-surface:#f6fafc;max-width:1160px!important;width:calc(100% - 14px);margin:25px auto;border:0;border-radius:21px;background:var(--sc-surface);box-shadow:0 20px 60px rgba(8,42,96,.09);font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--sc-ink)}
.scbm-report-portal .scbm-portal-hero{position:relative;overflow:hidden;background:linear-gradient(110deg,#082a60 12%,#0c477b 76%,#067b78);color:white;padding:36px 42px;border-radius:20px 20px 0 0}
.scbm-report-portal .scbm-portal-hero:before{content:"+";pointer-events:none;position:absolute;right:45px;top:-65px;font-weight:900;font-size:245px;line-height:1;color:rgba(255,255,255,.06)}
.scbm-report-portal .scbm-portal-hero>*{position:relative;z-index:1}
.scbm-report-portal .scbm-portal-kicker{display:block;font-size:11px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:#a9e8df}
.scbm-report-portal .scbm-portal-hero h2{font-size:clamp(1.6rem,3.2vw,2.25rem);line-height:1.15;color:#fff;margin:11px 0 10px;font-weight:800}
.scbm-report-portal .scbm-portal-hero p{max-width:680px;line-height:1.65;color:#d9edf3;margin:0;font-size:14px}
.scbm-report-portal .scbm-portal-hero-badges{display:flex;flex-wrap:wrap;gap:9px;margin-top:21px}
.scbm-report-portal .scbm-portal-hero-badges span{border:1px solid #ffffff4a;background:#ffffff12;border-radius:999px;padding:7px 11px;font-size:11px;color:#fff}
.scbm-report-portal .scbm-portal-body{padding:26px 29px 22px}
.scbm-report-portal .scbm-portal-patient-card,.scbm-report-portal .scbm-portal-library,.scbm-report-portal .scbm-portal-help-grid>section,.scbm-report-portal .scbm-portal-entry{border:1px solid var(--sc-line);background:#fff;border-radius:17px;box-shadow:0 6px 24px rgba(8,42,96,.04)}
.scbm-report-portal .scbm-portal-patient-card{padding:21px 23px}
.scbm-report-portal .scbm-portal-patient-main{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.scbm-report-portal .scbm-portal-patient-main>div:nth-child(2){flex:1;min-width:150px}
.scbm-report-portal .scbm-portal-avatar{border-radius:13px;width:50px;height:50px;display:grid;place-items:center;color:var(--sc-teal);font-size:19px;font-weight:900;background:#e2f4f0}
.scbm-report-portal .scbm-portal-patient-main h3{font-size:18px;color:var(--sc-navy);margin:5px 0}
.scbm-report-portal .scbm-portal-patient-main p{margin:0;color:var(--sc-muted);font-size:12px}
.scbm-report-portal .scbm-portal-verified-chip{border-radius:999px;background:#e5f7ee;color:#116948;padding:9px 13px;font-weight:700;font-size:12px}
.scbm-report-portal .scbm-portal-patient-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;border-top:1px solid #edf3f5;padding-top:19px;margin-top:18px}
.scbm-report-portal .scbm-portal-patient-meta span{display:block;font-size:11px;color:var(--sc-muted);margin-bottom:6px}
.scbm-report-portal .scbm-portal-patient-meta strong{overflow-wrap:anywhere;font-size:13px;color:#1b3752}
.scbm-report-portal .scbm-portal-stat-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:16px 0}
.scbm-report-portal .scbm-portal-stat-row>div{background:#fff;border:1px solid var(--sc-line);border-radius:14px;padding:17px}
.scbm-report-portal .scbm-portal-stat-row strong{display:block;font-size:24px;line-height:1.1;color:var(--sc-navy)}
.scbm-report-portal .scbm-portal-stat-row span{font-size:11px;font-weight:650;color:var(--sc-muted);margin-top:8px;display:block}
.scbm-report-portal .scbm-portal-library{padding:23px}
.scbm-report-portal .scbm-portal-title-row{display:flex;align-items:start;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:14px}
.scbm-report-portal .scbm-portal-title-row h3{font-size:21px;line-height:1.3;color:var(--sc-navy);margin:0 0 6px;font-weight:800}
.scbm-report-portal .scbm-portal-title-row p{margin:0;color:var(--sc-muted);font-size:12px}
.scbm-report-portal .scbm-portal-ready-count{background:#ebf6f9;color:#23667f;border-radius:999px;white-space:nowrap;padding:9px 13px;font-size:12px;font-weight:750}
.scbm-report-portal .scbm-portal-filter{display:flex;gap:8px;overflow-x:auto;padding:4px 0 14px;margin:5px 0 6px;scrollbar-width:thin}
.scbm-report-portal .scbm-portal-filter-btn{font:inherit;font-size:12px;font-weight:700;border:1px solid #d8e6eb;border-radius:999px;background:#fff;color:#3f5a70;padding:9px 15px;cursor:pointer;white-space:nowrap}
.scbm-report-portal .scbm-portal-filter-btn.is-active{color:#fff;border-color:var(--sc-navy);background:var(--sc-navy)}
.scbm-report-portal .scbm-portal-filter-btn:focus-visible,.scbm-report-portal button:focus-visible,.scbm-report-portal input:focus-visible{outline:3px solid var(--sc-teal);outline-offset:3px}
.scbm-report-portal .scbm-portal-report-list{display:flex;flex-direction:column;gap:11px}
.scbm-report-portal .scbm-portal-report-card{border:1px solid #dfebee;border-radius:14px;display:flex;gap:13px;align-items:center;background:#fff;padding:13px;transition:border-color .15s}
.scbm-report-portal .scbm-portal-report-card:hover{border-color:#b5ded9}
.scbm-report-portal .scbm-portal-report-card[hidden]{display:none!important}
.scbm-report-portal .scbm-portal-row-check input{width:18px;height:18px;accent-color:var(--sc-teal);cursor:pointer}
.scbm-report-portal .scbm-portal-report-icon{display:grid;place-items:center;width:47px;height:47px;flex:none;border-radius:11px;font-size:12px;font-weight:900;letter-spacing:.02em;color:#245e9b;background:#e7f0fb}
.scbm-report-portal .scbm-cat-urine{color:#367b58;background:#e9f5ef}.scbm-report-portal .scbm-cat-ecg{color:#6a54a3;background:#f0ebfa}.scbm-report-portal .scbm-cat-xray{color:#986e2b;background:#fcf2e1}.scbm-report-portal .scbm-cat-mri{color:#9d497a;background:#fcecf6}.scbm-report-portal .scbm-cat-other,.scbm-report-portal .scbm-cat-combined{color:#496579;background:#edf2f5}
.scbm-report-portal .scbm-portal-report-info{flex:1;min-width:0}
.scbm-report-portal .scbm-portal-report-info strong{display:block;font-size:14px;line-height:1.4;color:#1d3b57;overflow-wrap:anywhere}
.scbm-report-portal .scbm-portal-report-info span,.scbm-report-portal .scbm-portal-report-info small{display:block;color:#637d90;font-size:11px;line-height:1.55;margin-top:3px}
.scbm-report-portal .scbm-portal-report-controls{min-width:140px;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.scbm-report-portal .scbm-portal-ready-chip{font-size:11px;font-weight:750;background:#e5f7ee;color:#17714e;padding:7px 10px;border-radius:999px;white-space:nowrap}
.scbm-report-portal form{padding:0;margin:0}
.scbm-report-portal .scbm-portal-row-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.scbm-report-portal .scbm-portal-action{border:1px solid #cddfe7;border-radius:9px;color:var(--sc-navy);background:#fff;padding:9px 12px;font-size:12px;font-weight:750;cursor:pointer;min-height:38px;line-height:1.15;white-space:nowrap}
.scbm-report-portal .scbm-portal-view{color:#007c69;border-color:#b2dad5}
.scbm-report-portal .scbm-portal-action:hover{border-color:var(--sc-teal)}
.scbm-report-portal .scbm-portal-action-primary{background:var(--sc-teal);border-color:var(--sc-teal);color:#fff}.scbm-report-portal .scbm-portal-action-secondary{background:#fff}
.scbm-report-portal .scbm-portal-action:disabled{opacity:.5;cursor:not-allowed}
.scbm-report-portal .scbm-portal-download-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:17px;margin-top:18px;border-radius:13px;border:1px solid #cde8df;background:#effaf7}
.scbm-report-portal .scbm-portal-download-bar strong{display:block;font-size:13px;color:var(--sc-navy)}
.scbm-report-portal .scbm-portal-download-bar small{color:#708891;font-size:11px;display:block;margin-top:4px}
.scbm-report-portal .scbm-portal-download-actions{display:flex;gap:9px;flex-wrap:wrap}
.scbm-report-portal .scbm-portal-privacy,.scbm-report-portal .scbm-portal-help-note{font-size:11px;color:#657e8c;line-height:1.6;margin:17px 0 0}
.scbm-report-portal .scbm-portal-help-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:15px}
.scbm-report-portal .scbm-portal-help-grid>section{padding:20px}
.scbm-report-portal .scbm-portal-help-grid h3{font-size:15px;color:var(--sc-navy);margin:0 0 10px}
.scbm-report-portal .scbm-portal-help-grid p{font-size:12px;color:#637b8e;margin:8px 0;line-height:1.6}
.scbm-report-portal .scbm-portal-help-grid a{color:#007966;font-weight:750;text-decoration:underline}
.scbm-report-portal .scbm-portal-logout{text-align:right;margin-top:15px!important}
.scbm-report-portal .scbm-portal-logout button{font:inherit;font-size:12px;background:transparent;border:0;color:#526e81;text-decoration:underline;cursor:pointer}
.scbm-report-portal .scbm-portal-entry-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:17px}
.scbm-report-portal .scbm-portal-entry{padding:23px}
.scbm-report-portal .scbm-portal-entry .scbm-panel{margin:0 0 12px;padding:0;border:0;box-shadow:none}
.scbm-report-portal .scbm-portal-entry h3{color:var(--sc-navy);margin:0 0 10px;font-size:20px}
.scbm-report-portal .scbm-portal-entry p{line-height:1.7;font-size:13px;color:#637b8e}
.scbm-report-portal .scbm-portal-entry form{padding:0!important}
.scbm-report-portal .scbm-portal-entry label{font-size:12px;font-weight:700;display:block;margin:14px 0;color:#284960}
.scbm-report-portal .scbm-portal-entry input,.scbm-report-portal .scbm-portal-entry select{width:100%;font:inherit;padding:13px;border-radius:10px;border:1px solid #cbdce3;margin-top:7px;background:#fff;color:#19374c}
.scbm-report-portal .scbm-portal-entry .scbm-submit{border-radius:10px;background:var(--sc-teal);color:#fff;font-size:13px;margin:12px 0 2px;min-height:46px}
.scbm-report-portal .scbm-portal-flash{border:1px solid #ade8d1;background:#e9f9f2;color:#146144;padding:13px;border-radius:12px;margin-bottom:15px}
.scbm-report-portal .scbm-portal-empty,.scbm-report-portal .scbm-portal-alert{background:#fff7e8;color:#805d18;padding:15px;border:1px solid #f1d8a1;border-radius:12px}
.scbm-report-portal .scbm-portal-stage-note{text-align:center;font-size:11px;color:#607788;margin-top:19px}
.scbm-report-portal .scbm-portal-report-card[hidden],.scbm-report-portal .scbm-portal-filter-empty[hidden]{display:none!important}
@media(max-width:980px){.scbm-report-portal .scbm-portal-entry-grid{grid-template-columns:1fr}.scbm-report-portal .scbm-portal-patient-main{align-items:flex-start}}
@media(max-width:700px){.scbm-report-portal{width:100%;border-radius:14px}.scbm-report-portal .scbm-portal-hero{border-radius:14px 14px 0 0;padding:27px 20px}.scbm-report-portal .scbm-portal-body{padding:14px}.scbm-report-portal .scbm-portal-patient-card{padding:18px}.scbm-report-portal .scbm-portal-patient-meta{grid-template-columns:1fr 1fr}.scbm-report-portal .scbm-portal-stat-row{gap:7px}.scbm-report-portal .scbm-portal-stat-row>div{padding:12px}.scbm-report-portal .scbm-portal-stat-row strong{font-size:18px}.scbm-report-portal .scbm-portal-stat-row span{font-size:10px}.scbm-report-portal .scbm-portal-library{padding:15px}.scbm-report-portal .scbm-portal-report-card{flex-wrap:wrap;gap:10px}.scbm-report-portal .scbm-portal-report-controls{flex-basis:100%;border-top:1px solid #edf3f4;padding-top:10px;flex-direction:row;align-items:center;justify-content:space-between}.scbm-report-portal .scbm-portal-report-info{flex-basis:calc(100% - 93px)}.scbm-report-portal .scbm-portal-row-actions{justify-content:flex-end}.scbm-report-portal .scbm-portal-ready-chip{margin-right:auto}.scbm-report-portal .scbm-portal-download-actions,.scbm-report-portal .scbm-portal-download-actions>form{width:100%}.scbm-report-portal .scbm-portal-download-actions button{width:100%;min-height:42px}.scbm-report-portal .scbm-portal-help-grid{grid-template-columns:1fr}.scbm-report-portal .scbm-portal-entry{padding:18px}}
@media(max-width:400px){.scbm-report-portal .scbm-portal-patient-meta{grid-template-columns:1fr}.scbm-report-portal .scbm-portal-ready-chip{font-size:10px}.scbm-report-portal .scbm-portal-action{font-size:11px;padding:9px 10px}.scbm-report-portal .scbm-portal-report-controls{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.scbm-report-portal *{scroll-behavior:auto!important;transition:none!important}}

/* v0.7.4 report-request outcome: red for unmatched/invalid, green only after saved. */
.scbm-report-portal .scbm-portal-flash-error{background:#fff0f0;color:#901b24;border:2px solid #d73544;border-left-width:6px}
.scbm-report-portal .scbm-portal-flash-success{background:#e9f9f2;color:#146144;border-color:#ade8d1}
.scbm-report-portal .scbm-portal-flash strong{display:block;font-size:15px;margin-bottom:4px}
.scbm-report-portal .scbm-portal-flash p{margin:0;line-height:1.55}
.scbm-report-portal .scbm-portal-entry input.scbm-portal-field-invalid{border:2px solid #d73544;background:#fff7f7;box-shadow:0 0 0 2px rgba(215,53,68,.08)}
.scbm-report-portal .scbm-portal-entry input.scbm-portal-field-invalid:focus{outline:2px solid #901b24;outline-offset:2px}
.scbm-report-portal .scbm-portal-field-error{display:block;color:#9b202c;font-size:12px;font-weight:600;margin-top:5px}


/* v1.3.4 branded portal surfaces */

.scbm-report-portal{position:relative;overflow:hidden;background:linear-gradient(180deg,#f6fafc 0%,#f9fcfd 100%)}
.scbm-report-portal:after{content:"";position:absolute;right:-30px;bottom:-18px;width:240px;height:180px;background:url('sara-care-official-logo.png') center/contain no-repeat;opacity:.04;pointer-events:none}
.scbm-report-portal .scbm-portal-patient-card,.scbm-report-portal .scbm-portal-library,.scbm-report-portal .scbm-portal-help-grid>section,.scbm-report-portal .scbm-portal-entry{position:relative;overflow:hidden}
.scbm-report-portal .scbm-portal-patient-card:before,.scbm-report-portal .scbm-portal-library:before,.scbm-report-portal .scbm-portal-help-grid>section:before,.scbm-report-portal .scbm-portal-entry:before{content:"";position:absolute;right:-8px;bottom:-12px;width:105px;height:76px;background:url('sara-care-official-logo.png') center/contain no-repeat;opacity:.035;pointer-events:none}

/* v1.3.17: post-OTP test status; report files stay behind payment gate */
.scbm-report-portal .scbm-portal-test-progress{background:#fff;border:1px solid #dce9ed;border-radius:17px;padding:22px;margin:18px 0;box-shadow:0 8px 24px rgba(18,58,79,.04)}
.scbm-report-portal .scbm-test-counts{display:flex;gap:10px;flex-wrap:wrap;margin:13px 0}
.scbm-report-portal .scbm-test-counts>span{display:inline-flex;gap:9px;align-items:center;border-radius:11px;padding:11px 16px;font-weight:800}
.scbm-report-portal .scbm-tc-ready{background:#e5f7ed;color:#13664b}
.scbm-report-portal .scbm-tc-pending{background:#fff2e4;color:#92571d}
.scbm-report-portal .scbm-test-counts strong{font-size:22px}
.scbm-report-portal .scbm-test-progress-list{border:1px solid #edf2f5;border-radius:12px;overflow:hidden}
.scbm-report-portal .scbm-test-progress-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;border-bottom:1px solid #ecf1f3}
.scbm-report-portal .scbm-test-progress-row:last-child{border-bottom:0}
.scbm-report-portal .scbm-test-progress-row strong{font-size:14px;color:#173c59;display:block}
.scbm-report-portal .scbm-test-progress-row small{display:block;font-size:12px;margin-top:4px;color:#597184}
.scbm-report-portal .scbm-test-state{border-radius:20px;font-weight:800;font-size:12px;padding:6px 11px;white-space:nowrap}
.scbm-report-portal .scbm-test-state.is-ready{background:#dff5e9;color:#116747}
.scbm-report-portal .scbm-test-state.is-pending{background:#fff0df;color:#875119}
.scbm-report-portal .scbm-test-footnote,.scbm-report-portal .scbm-test-empty{font-size:12px;color:#5c7285;margin:12px 0 0}
@media(max-width:520px){.scbm-report-portal .scbm-portal-test-progress{padding:16px}.scbm-report-portal .scbm-test-progress-row{align-items:flex-start}.scbm-report-portal .scbm-test-progress-row strong{font-size:13px}}
