/* Mehrad design system. Scoped to portal shells; clinical values remain server-owned. */
@font-face{font-family:MehradPremium;src:url('../fonts/IRANSans.ttf') format('truetype');font-display:swap}
:root:root{--wine:#7a1238;--wine2:#410e25;--rose:#f8edf2;--bg:#f3f6fa;--ink:#302433;--muted:#746774;--line:#e0e8ef;--shadow:0 5px 22px #18334d06;--patient-wine:#7a1238;--patient-wine-dark:#410e25;--patient-wine-soft:#f8edf2;--patient-bg:#f3f6fa;--patient-muted:#746774;--edu-wine:#7a1238;--edu-dark:#410e25;--edu-rose:#f8edf2;--edu-bg:#f3f6fa;--edu-muted:#746774;--wine-950:#410e25;--wine-900:#57132f;--wine-800:#7a1238;--wine-700:#7a1238;--wine-100:#f8edf2;--wine-50:#fff7fa;--ink-950:#302433;--ink-700:#4c6378;--ink-500:#746774;--canvas:#f3f6fa}
body:is(.meh-dashboard,.patient-body,.edu-body,.board-executive){background:#f3f6fa;color:#302433;font-family:MehradPremium,Tahoma,sans-serif!important;-webkit-font-smoothing:antialiased}
body:is(.meh-dashboard,.patient-body,.edu-body,.board-executive) :is(button,input,select,textarea){font-family:inherit}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-sidebar,.patient-sidebar,.edu-sidebar){background:#410e25;box-shadow:none;padding:26px 18px;color:#ead6df;border-left:1px solid #6b2a46}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-brand,.patient-brand,.edu-brand){padding-bottom:24px;border-bottom:1px solid #ffffff14}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-brand,.patient-brand,.edu-brand) img{border-radius:15px;width:46px;height:46px}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-role-chip,.patient-role,.edu-role){border:0;border-radius:6px;background:#ffffff0a;color:#d6adbF;font-size:11px;letter-spacing:.2px;margin-block:22px 14px}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-nav,.patient-nav,.edu-nav) a{min-height:47px;border-radius:10px;font-size:13px;opacity:1;color:#dec6d1!important;transition:background .18s,color .18s;transform:none;border:1px solid transparent}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-nav,.patient-nav,.edu-nav) a:hover{background:#ffffff0a;color:#fff!important;transform:none}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-nav,.patient-nav,.edu-nav) a:is(.is-active,.active,[aria-current=page]){background:#74304c;border-color:#96526e;color:#fff!important;box-shadow:inset -3px 0 #efb8cc}
body:is(.meh-dashboard,.patient-body,.edu-body) .portal-menu-search{color:#d8b8c7;font-size:11px}
body:is(.meh-dashboard,.patient-body,.edu-body) .portal-menu-search input{background:#ffffff08;border-color:#ffffff1c;color:#fff;font-size:12px;border-radius:9px}
body:is(.meh-dashboard,.patient-body,.edu-body) .portal-menu-search input::placeholder{color:#c7a5b6}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-topbar,.patient-topbar,.edu-topbar){background:#ffffffed;border-color:#e0e8ef;box-shadow:0 3px 18px #122c4203;min-height:80px}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-content,.patient-content,.edu-content){padding:28px clamp(18px,2.5vw,38px) 40px}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-hero,.patient-hero,.edu-hero,.meh-card--hero){background:radial-gradient(ellipse at 5% 110%,#8b3154 0,transparent 52%),linear-gradient(110deg,#68213f,#410e25 70%);border:1px solid #71344f;border-radius:22px;box-shadow:0 12px 30px #18334d12;color:#fff}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-hero,.patient-hero){padding:32px 36px;min-height:220px}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-hero,.patient-hero) h1{font-size:clamp(25px,2.3vw,36px);font-weight:800;letter-spacing:-.9px;line-height:1.65;margin:10px 0;color:#fff}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-hero,.patient-hero) p{font-size:13px;color:#ead6df;max-width:650px;line-height:2}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-eyebrow,.patient-eyebrow){background:#ffffff0c;border:1px solid #ffffff20;border-radius:7px;color:#f5c6d7;font-size:11px}
body.meh-dashboard .meh-hero-actions{margin-top:22px;flex-wrap:wrap}
body.meh-dashboard .meh-hero .meh-btn-soft{background:#fff4f8;color:#7a1238;border:1px solid #e6c5d3}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-card,.meh-panel,.patient-card,.edu-card){border:1px solid #e0e8ef;border-radius:17px;box-shadow:0 4px 18px #18334d04}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-panel-head,.patient-panel-head){padding-bottom:17px;border-bottom:1px solid #edf1f5;margin-bottom:20px}
body.meh-dashboard .meh-kpi{border:1px solid #e0e8ef;border-radius:16px;box-shadow:0 4px 18px #18334d04;align-items:flex-start;padding:22px 18px;min-width:0;gap:13px}
body.meh-dashboard .meh-kpi>div{min-width:0}
body.meh-dashboard .meh-kpi-value{font-size:clamp(20px,1.7vw,27px);letter-spacing:-.6px;margin:7px 0;overflow-wrap:anywhere;line-height:1.55}
body.meh-dashboard :is(.meh-kpi-label,.meh-kpi-meta){color:#746774;font-size:11px}
body.meh-dashboard :is(.meh-kpi-icon,.meh-action-icon){width:43px;height:43px;border-radius:12px;font-size:18px}
body.meh-dashboard .meh-action{position:relative;padding:22px;gap:10px;border-radius:15px;background:#fff;min-height:192px;transition:box-shadow .18s,border-color .18s,transform .18s}
body.meh-dashboard .meh-action:hover{border-color:#cd94aa;box-shadow:0 9px 24px #1d606610;transform:translateY(-3px)}
body.meh-dashboard .meh-action strong{font-size:14px;margin-top:6px}
body.meh-dashboard .meh-action small{font-size:11px;line-height:1.9;margin:0}
body.meh-dashboard .meh-action .meh-arrow{position:absolute;top:25px;left:22px;color:#8ca6b7;font-size:13px}
body.meh-dashboard .meh-actions.meh-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
body.patient-body .patient-security{position:static;margin-top:24px;flex-shrink:0}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-btn,.patient-btn,.edu-btn){border-radius:9px;min-height:42px;font-size:12px;transition:filter .15s,box-shadow .15s}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-btn-primary,.edu-btn-primary){background:#7a1238;box-shadow:0 3px 8px #7a123815}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-btn,.patient-btn,.edu-btn):hover{filter:brightness(.96)}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-input,.meh-select,.meh-textarea,.edu-input,.edu-select){border-color:#dce5ec;background:#fbfcfe;border-radius:9px;min-height:44px}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-table,.table,.edu-table) th{background:#f5f8fb;color:#597086;border-bottom:1px solid #dce5ec;font-size:12px;padding:15px 14px}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-table,.table,.edu-table) td{border-color:#edf1f5;padding:15px 14px;font-size:12px}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-table,.table,.edu-table) tbody tr:hover{background:#fcf7f9}
body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-page-head,.edu-page-head) h1{letter-spacing:-.6px}
body:is(.meh-dashboard,.patient-body,.edu-body,.board-executive) :is(a,button,input,select,textarea):focus-visible{outline:3px solid #1b8dca;outline-offset:3px}

/* Executive workspace: persistent navigation and a compact reporting canvas. */
body.board-executive .topbar{background:#fff;color:#302433;box-shadow:none;border-bottom:1px solid #e0e8ef;backdrop-filter:none;padding:16px 32px;min-height:80px}
body.board-executive .brand-mark{background:#f8edf2;color:#7a1238;border:1px solid #ecd2dd;border-radius:12px}
body.board-executive .brand small{color:#746774}
body.board-executive .top-actions a{border:1px solid #dce5ec;background:#fff;color:#4c6378;font-size:12px;border-radius:9px}
body.board-executive .board-shell{width:auto;margin:28px 30px 60px}
.board-rail{background:#410e25;color:#fff;padding:30px 18px;display:flex;flex-direction:column}
.rail-brand{display:flex;align-items:center;gap:11px;padding:0 5px 26px;border-bottom:1px solid #ffffff16}
.rail-brand img{width:44px;height:44px;border-radius:13px;background:#fff;padding:4px}
.rail-brand strong,.rail-brand small{display:block}.rail-brand strong{font-size:15px}.rail-brand small{font-size:10px;color:#c7a5b6;margin-top:3px}
.rail-caption{display:block;font-size:10px;color:#bd92a5;margin:27px 12px 13px;letter-spacing:.5px}
body.board-executive .board-shortcuts{display:grid;gap:7px;margin:0}
body.board-executive .board-shortcuts a{display:flex;gap:12px;align-items:center;min-height:46px;padding:11px 13px;background:transparent;border:1px solid transparent;color:#dfc5d0;font-size:12px;font-weight:400;border-radius:10px}
body.board-executive .board-shortcuts a i{width:19px;text-align:center;font-size:15px;color:#cda4b6}
body.board-executive .board-shortcuts a:hover{background:#ffffff09;color:#fff}
body.board-executive .board-shortcuts a[aria-current=page]{background:#74304c;border-color:#96526e;box-shadow:inset -3px 0 #efb8cc;color:#fff}
body.board-executive .board-shortcuts a[aria-current=page] i{color:#f5c6d7}
.rail-note{margin-top:auto;padding:18px 12px 0;color:#c8a2b3;font-size:10px;line-height:2;border-top:1px solid #ffffff14}
.rail-note strong{color:#ead6df;display:block;font-size:12px;font-weight:400}
body.board-executive .hero{min-height:180px;border-radius:20px;padding:30px 32px;background:radial-gradient(ellipse at 0 100%,#8b3154,transparent 55%),#4e142c;box-shadow:none;align-items:center;gap:20px}
body.board-executive .hero h1{font-size:clamp(25px,2.4vw,36px);letter-spacing:-1px;margin:7px 0;line-height:1.55}
body.board-executive .hero p{font-size:12px;max-width:660px;line-height:2;color:#e2c4d1}
body.board-executive .eyebrow{font-size:10px;letter-spacing:.3px;color:#f5c6d7;background:#ffffff08;border:1px solid #ffffff1c;padding:5px 10px;border-radius:6px}
body.board-executive .hero::before{width:230px;height:230px;border:1px solid #a7e1dc29;left:-50px;top:-45px}
body.board-executive .hero::after{width:170px;height:170px;border:1px solid #a7e1dc29;left:-20px;right:auto;bottom:-4px}
.hero-emblem{width:118px;height:118px;flex:0 0 118px;display:grid;place-items:center;border-radius:50%;border:1px solid #ffffff20;background:#ffffff05}
.hero-emblem svg{width:82px;height:82px;stroke:#92ddcc;fill:none;stroke-width:1.5}
.service-scope-note{font-size:12px;line-height:2;color:#746774;border-right:3px solid #ad5276;padding:8px 14px;margin:0 0 20px;background:#fcf3f6;border-radius:8px}
body.board-executive .or-filter{grid-template-columns:minmax(200px,1.4fr) minmax(130px,1fr) minmax(130px,1fr) auto auto;margin:0 0 16px;box-shadow:none}
body.board-executive .field select{font:inherit;width:100%;min-height:47px;border:1px solid #dbe0e9;border-radius:10px;background:#fbfcfe;padding:8px 12px;color:#302433;font-size:12px}
@media(max-width:1100px){body.board-executive .or-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.service-category-field{grid-column:1/-1}}
@media(max-width:480px){body.board-executive .or-filter{grid-template-columns:1fr}}
body.board-executive .live-pill{font-size:10px;background:#ffffff0a;border-radius:6px;padding:5px 10px;display:inline-block;margin-top:12px}
body.board-executive .board-tabs{margin:22px 0;padding:5px;box-shadow:none;border-radius:12px;background:#e7edf3;border:1px solid #e0e8ef;backdrop-filter:none;gap:4px}
body.board-executive .board-tabs a{min-height:45px;font-size:12px;font-weight:600;border-radius:8px;gap:8px}
body.board-executive .board-tabs a[aria-selected=true]{background:#fff;color:#7a1238;box-shadow:0 2px 6px #17395112}
body.board-executive .report-toolbar{margin:22px 0 17px}
body.board-executive .report-toolbar strong{font-size:14px}
body.board-executive .report-toolbar small{font-size:10px;color:#746774}
body.board-executive :is(.primary-button,.ghost-button){min-height:40px;border-radius:8px;font-size:11px;padding-inline:15px;box-shadow:none}
body.board-executive .ghost-button{background:#fff;border-color:#dce5ec;color:#4c6378}
body.board-executive .summary-card{position:relative;min-height:156px;border-radius:15px;padding:22px;background:#fff;border:1px solid #dfe7ee;box-shadow:0 4px 14px #1e385004}
body.board-executive .summary-card>span{font-size:11px;color:#746774;line-height:1.9}
body.board-executive .summary-card>strong{font-size:clamp(20px,1.8vw,28px);letter-spacing:-.8px;margin-block:12px 8px;line-height:1.5}
body.board-executive .summary-card>small{font-size:10px;color:#61778a;line-height:1.9}
body.board-executive .summary-card.accent{background:#7a1238;border-color:#7a1238;color:#fff}
body.board-executive .summary-card.accent :is(span,small){color:#f4dce6}
body.board-executive .summary-card:before{content:'';position:absolute;top:0;right:22px;width:30px;height:3px;background:#8fb8d4;border-radius:0 0 4px 4px}
body.board-executive .summary-card.accent:before{background:#efb8cc}
body.board-executive .summary-card:nth-child(3):before{background:#b5a1e1}
body.board-executive .summary-card:nth-child(4):before{background:#dfba7b}
body.board-executive .live-kpi-grid{gap:12px;margin:12px 0}
body.board-executive .live-kpi-grid article{min-height:105px;border-radius:13px;padding:17px 18px;box-shadow:none}
body.board-executive .live-kpi-grid span{font-size:10px;font-weight:400;color:#746774}
body.board-executive .live-kpi-grid strong{font-size:14px;margin-top:10px}
body.board-executive .live-kpi-grid small{color:#746774;font-size:10px;margin-top:4px}
body.board-executive .executive-notice{background:#fcf3f6;border:1px solid #edd5df;border-inline-start:3px solid #ad5276;border-radius:10px;padding:14px 18px;font-size:11px;color:#72374f;margin:20px 0 26px}
body.board-executive .section-head{margin-top:26px;align-items:center}
body.board-executive .section-head h2{font-size:19px;line-height:1.7}
body.board-executive .section-head span{font-size:10px}
body.board-executive .snapshot-date{border:0;background:#e7edf3;border-radius:6px;font-size:10px;color:#587084}
body.board-executive .compare-tools{background:#fff;border-radius:12px;padding:15px;gap:15px}
body.board-executive .compare-tools :is(input,select){border-radius:8px;font-size:12px;background:#f8fafc}
body.board-executive .physician-card{border-radius:15px;box-shadow:none}
body.board-executive .physician-main{grid-template-columns:38px minmax(140px,1.1fr) minmax(150px,1fr) 105px auto;gap:12px;padding:20px;min-height:98px}
body.board-executive .rank{background:#edf3f8;color:#4d6c82;border-radius:10px;font-size:13px;width:36px;height:36px}
body.board-executive .doctor strong{font-size:14px}
body.board-executive .doctor span{font-size:10px;color:#746774}
body.board-executive .metric-strip{background:#f8fafc;border-top:1px solid #edf1f5}
body.board-executive .metric-strip small{color:#746774}
body.board-executive .detail-toggle{border-radius:8px;font-size:11px;background:#f8edf2;border-color:#ecd2dd;color:#7a1238}
body.board-executive :is(.executive-panel,.executive-grid>article,.benchmark-card,.mix-card,.trend-card,.official-finance-matrix,.or-trend-card,.or-operation-card){border-radius:15px;box-shadow:none}
body.board-executive .bar i{background:#a8466c}
@media(min-width:1200px){.board-rail{position:fixed;inset:0 0 0 auto;width:236px;height:100vh;z-index:40;overflow-y:auto}.board-executive .topbar{margin-right:236px}body.board-executive .board-shell{margin-right:266px}}
@media(max-width:1199px){.board-rail{padding:12px 24px;background:#410e25}.rail-brand,.rail-caption,.rail-note{display:none}body.board-executive .board-shortcuts{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:8px}body.board-executive .board-shortcuts a{white-space:nowrap;flex:0 0 auto;min-height:40px;font-size:11px}body.board-executive .physician-main{grid-template-columns:38px minmax(120px,1fr) minmax(130px,1fr) 95px auto}}
@media(max-width:1000px){body.meh-dashboard .meh-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}body.board-executive .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){body.meh-dashboard .meh-actions.meh-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){body.meh-dashboard .meh-actions.meh-grid{grid-template-columns:1fr}}
@media(max-width:760px){body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-content,.patient-content,.edu-content){padding:18px 16px 30px}body:is(.meh-dashboard,.patient-body,.edu-body) :is(.meh-hero,.patient-hero){padding:25px 22px;min-height:0;border-radius:17px}body.meh-dashboard .meh-hero h1{font-size:26px}body.meh-dashboard .meh-kpi{padding:16px;gap:10px}body.meh-dashboard .meh-kpi-value{font-size:19px}body.meh-dashboard .meh-kpi-icon{width:36px;height:36px;font-size:15px}body.meh-dashboard .meh-action{min-height:165px;padding:18px}body.board-executive .topbar{padding:12px 16px;min-height:72px;gap:8px}body.board-executive .top-actions a{padding:7px 9px;font-size:10px}body.board-executive .brand strong{font-size:12px}body.board-executive .brand small{font-size:9px}body.board-executive .brand-mark{display:none}.board-rail{padding:8px 12px}body.board-executive .board-shell{margin:18px 14px 35px}body.board-executive .hero{padding:25px 22px;min-height:185px}body.board-executive .hero h1{font-size:26px;letter-spacing:-.6px}body.board-executive .hero p{font-size:11px}.hero-emblem{display:none}body.board-executive .board-tabs{margin:16px 0;grid-template-columns:repeat(4,minmax(125px,1fr));overflow-x:auto}body.board-executive .report-toolbar{margin-top:20px}body.board-executive .summary-card{padding:17px;min-height:160px}body.board-executive .summary-card>strong{font-size:21px}body.board-executive .summary-card>span{font-size:10px}body.board-executive .summary-card>small{font-size:9px}body.board-executive .physician-main{grid-template-columns:36px minmax(0,1fr) auto;gap:10px}body.board-executive .key-metric{grid-column:1/-1}body.board-executive .section-head{align-items:flex-start;gap:12px;flex-direction:column}body.board-executive .section-head h2{font-size:18px}}
@media(max-width:480px){body.meh-dashboard .meh-kpis{grid-template-columns:1fr}body.board-executive .live-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.board-executive .live-kpi-grid article{padding:14px;min-width:0}body.board-executive .live-kpi-grid strong{font-size:12px}body.board-executive .live-kpi-grid span{font-size:9px}body.board-executive .summary-grid{gap:10px}body.board-executive .compare-tools{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){body.meh-dashboard .meh-action{transition:none;transform:none}}
@media print{.board-rail,.hero-emblem{display:none!important}body.board-executive .board-shell{margin:0;width:100%}body.board-executive .hero{background:#fff;color:#111;min-height:0;padding:16px}body.board-executive .hero :is(p,.eyebrow){color:#333}body.board-executive .summary-card.accent{background:#fff;color:#111;border-color:#bbb}body.board-executive .summary-card.accent :is(span,small){color:#333}body.board-executive .physician-main{grid-template-columns:36px minmax(0,1fr) minmax(0,1fr) 90px}}
