@font-face{font-family:"Thmanyah Sans";src:url("/fonts/thmanyah-sans-300.woff2") format("woff2");font-weight:300;font-display:swap}
@font-face{font-family:"Thmanyah Sans";src:url("/fonts/thmanyah-sans-400.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Thmanyah Sans";src:url("/fonts/thmanyah-sans-500.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Thmanyah Sans";src:url("/fonts/thmanyah-sans-700.woff2") format("woff2");font-weight:700;font-display:swap}
body.nmaf-open{overflow:hidden;font-family:"Thmanyah Sans",system-ui,-apple-system,"Segoe UI",sans-serif}
#nmaf-admin{--nmaf-navy:#071b4f;--nmaf-mint:#119985;--nmaf-canvas:#f4f7fb;--nmaf-border:#dbe3ec;--nmaf-muted:#62728a;position:fixed;inset:0;z-index:100000;overflow:auto;direction:rtl;padding:clamp(14px,3vw,40px);background:var(--nmaf-canvas);color:#20231f;font:400 15px/1.7 "Thmanyah Sans",system-ui,-apple-system,"Segoe UI",sans-serif}
#nmaf-admin[hidden]{display:none!important}
#nmaf-admin *,#nmaf-admin *::before,#nmaf-admin *::after{box-sizing:border-box}
#nmaf-admin .nmaf-layout{width:min(1440px,100%);margin-inline:auto;padding-bottom:32px}
#nmaf-admin button,#nmaf-admin input,#nmaf-admin select,#nmaf-admin textarea{font-family:"Thmanyah Sans",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;line-height:1.5}
#nmaf-admin button,#nmaf-admin a{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid var(--nmaf-border);border-radius:10px;background:#fff;color:var(--nmaf-navy);font-weight:500;text-decoration:none;cursor:pointer;transition:background-color .18s,border-color .18s}
#nmaf-admin button:hover,#nmaf-admin a:hover{background:#edf3f8;border-color:#9cacc1}
#nmaf-admin :is(button,a,input,select,textarea):focus-visible{outline:3px solid #386fa4;outline-offset:3px}
#nmaf-admin button:disabled{opacity:.55;cursor:wait}
#nmaf-admin .nmaf-icon{width:20px;height:20px;flex:0 0 20px}
#nmaf-admin h1,#nmaf-admin h2,#nmaf-admin h3,#nmaf-admin h4{color:var(--nmaf-navy);font-weight:700}
#nmaf-admin p{margin:10px 0}
#nmaf-admin small,#nmaf-admin .nmaf-muted{color:var(--nmaf-muted)}
#nmaf-admin .nmaf-head{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:250px;padding:36px 40px;border:1px solid rgba(255,255,255,.9);border-radius:28px;background:var(--nmaf-canvas);box-shadow:0 18px 60px rgba(7,27,79,.09),0 3px 14px rgba(7,27,79,.04);overflow:hidden}
#nmaf-admin .nmaf-head::before{content:"";position:absolute;z-index:-1;inset:0;background:url("/hospital.jpeg") center 48% / cover no-repeat;filter:saturate(.82) contrast(.98) brightness(1.04);-webkit-mask-image:linear-gradient(to right,#000 0 43%,transparent 61%);mask-image:linear-gradient(to right,#000 0 43%,transparent 61%)}
#nmaf-admin .nmaf-head::after{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,rgba(247,250,254,.18),rgba(7,27,79,.02) 55%,rgba(7,27,79,.12));pointer-events:none}
#nmaf-admin .nmaf-head-copy{max-width:58%}
#nmaf-admin .nmaf-head-copy small{display:block;font-size:14px;color:#14315f}
#nmaf-admin h1{font-size:clamp(28px,3vw,42px);line-height:1.4;margin:8px 0}
#nmaf-admin .nmaf-head-copy p{color:#14315f;font-size:clamp(14px,1.4vw,19px);line-height:1.8}
#nmaf-admin .nmaf-head-actions{align-self:flex-end;justify-content:flex-end;max-width:42%}
#nmaf-admin .nmaf-head-actions button,#nmaf-admin .nmaf-head-actions a{background:rgba(255,255,255,.96);box-shadow:0 3px 12px rgba(7,27,79,.06)}
#nmaf-admin .nmaf-head-actions .nmaf-doctor-link{border-color:var(--nmaf-navy)}
#nmaf-admin .nmaf-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#nmaf-admin .nmaf-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:26px 0;background:#fff;border:1px solid var(--nmaf-border);border-radius:14px;box-shadow:0 3px 16px rgba(7,27,79,.035);overflow:hidden}
#nmaf-admin .nmaf-metric{display:flex;flex-direction:column;gap:4px;min-height:116px;margin:16px 0;padding:0 16px;border:0;border-inline-start:1px solid var(--nmaf-border);border-radius:0;background:#fff;color:var(--nmaf-muted);font-size:16px;font-weight:400}
#nmaf-admin .nmaf-metric:first-child{border-inline-start:0}
#nmaf-admin .nmaf-metric:hover,#nmaf-admin .nmaf-metric[aria-pressed="true"]{background:#f8fafc}
#nmaf-admin .nmaf-metric strong{font-size:34px;font-weight:700;line-height:1.4;color:var(--nmaf-navy)}
#nmaf-admin .nmaf-metric .nmaf-count-new,#nmaf-admin .nmaf-metric .nmaf-count-pending{color:#386fa4}
#nmaf-admin .nmaf-metric .nmaf-count-accepted,#nmaf-admin .nmaf-metric .nmaf-count-approved{color:#237a57}
#nmaf-admin .nmaf-metric .nmaf-count-rejected{color:#b44343}
#nmaf-admin .nmaf-metric .nmaf-count-deferred{color:#9a6518}
#nmaf-admin .nmaf-list{background:#fff;border:1px solid var(--nmaf-border);border-radius:14px;padding:22px;box-shadow:0 3px 16px rgba(7,27,79,.035)}
#nmaf-admin .nmaf-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}
#nmaf-admin .nmaf-list-toolbar h2{margin:0;font-size:23px;white-space:nowrap}
#nmaf-admin .nmaf-list-filters{display:flex;align-items:center;gap:12px;min-width:0;width:min(620px,68%)}
#nmaf-admin .nmaf-search{position:relative;display:flex;align-items:center;flex:1;min-width:0}
#nmaf-admin .nmaf-search .nmaf-icon{position:absolute;inset-inline-start:14px;color:var(--nmaf-muted);pointer-events:none}
#nmaf-admin .nmaf-list .nmaf-search input{padding-inline:44px 14px}
#nmaf-admin .nmaf-list-filters>label:last-child{width:170px;flex-shrink:0}
#nmaf-admin .nmaf-table-wrap{overflow:auto;border:1px solid var(--nmaf-border);border-radius:10px}
#nmaf-admin table{width:100%;border-collapse:collapse;text-align:start;min-width:980px;font-size:15px}
#nmaf-admin th,#nmaf-admin td{padding:17px 14px;border-bottom:1px solid #e5eaf0;vertical-align:middle}
#nmaf-admin th{background:#f4f7fb;color:#3f4959;font-size:14px;font-weight:700;white-space:nowrap}
#nmaf-admin tbody tr:last-child td{border-bottom:0}
#nmaf-admin tbody tr:hover{background:#fafcfe}
#nmaf-admin td small{display:block;margin-top:3px;font-size:13px}
#nmaf-admin .nmaf-row-number{width:44px;color:var(--nmaf-muted)}
#nmaf-admin .nmaf-drug{min-width:160px}
#nmaf-admin .nmaf-drug strong{display:block;font-size:16px;font-weight:500}
#nmaf-admin .nmaf-reference{direction:ltr;unicode-bidi:isolate;font-size:12px;font-weight:400;color:#58677c;overflow-wrap:anywhere}
#nmaf-admin .nmaf-row-actions{min-width:218px}
#nmaf-admin .nmaf-row-actions [data-open]{border-color:#1b3a6b;white-space:nowrap}
#nmaf-admin .nmaf-delete{color:#b44343;border-color:transparent;background:transparent;padding-inline:9px}
#nmaf-admin .nmaf-delete:hover{background:#fff2f1;border-color:#e4b9b7}
#nmaf-admin .nmaf-status{display:inline-flex;align-items:center;gap:7px;max-width:100%;font-size:13px;font-weight:700;line-height:1.6;color:#386fa4}
#nmaf-admin .nmaf-status::before{content:"";width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:currentColor}
#nmaf-admin .nmaf-status-accepted,#nmaf-admin .nmaf-status-approved{color:#237a57}
#nmaf-admin .nmaf-status-rejected{color:#b44343}
#nmaf-admin .nmaf-status-restricted,#nmaf-admin .nmaf-status-deferred{color:#9a6518}
#nmaf-admin .nmaf-list-summary{margin:15px 0 0;color:var(--nmaf-muted);font-size:13px}
#nmaf-admin .nmaf-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:230px;padding:36px 20px;text-align:center;color:var(--nmaf-muted)}
#nmaf-admin .nmaf-empty>.nmaf-icon{width:36px;height:36px;flex-basis:36px;color:#8798ae}
#nmaf-admin .nmaf-empty h3{margin:6px 0;font-size:18px;border:0}
#nmaf-admin .nmaf-empty p{max-width:440px;margin:0;font-size:14px}
#nmaf-admin .nmaf-detail-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:24px 0 18px}
#nmaf-admin .nmaf-paper{background:#fff;border:1px solid var(--nmaf-border);border-radius:14px;padding:clamp(20px,3vw,40px)}
#nmaf-admin .nmaf-paper-head{display:flex;justify-content:space-between;align-items:center;gap:18px;padding-bottom:22px;border-bottom:1px solid var(--nmaf-border)}
#nmaf-admin .nmaf-paper-head h2{font-size:27px;margin:5px 0 0;overflow-wrap:anywhere}
#nmaf-admin .nmaf-paper-head h2 span{font-size:20px;font-weight:400;color:var(--nmaf-muted)}
#nmaf-admin .nmaf-section{margin:28px 0}
#nmaf-admin h3{font-size:18px;margin:0 0 16px;padding-bottom:11px;border-bottom:1px solid var(--nmaf-border)}
#nmaf-admin h4{font-size:15px;margin:18px 0 9px}
#nmaf-admin .nmaf-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 26px;margin:0}
#nmaf-admin .nmaf-details>div{padding:13px 0;border-bottom:1px solid #edf0f4;overflow-wrap:anywhere}
#nmaf-admin .nmaf-details>div:last-child{grid-column:1/-1}
#nmaf-admin .nmaf-review-summary .nmaf-details>div:last-child{grid-column:auto}
#nmaf-admin dt{font-size:12px;color:var(--nmaf-muted)}
#nmaf-admin dd{margin:5px 0 0;white-space:pre-wrap;line-height:1.8}
#nmaf-admin .nmaf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}
#nmaf-admin .nmaf-field{display:flex;flex-direction:column;gap:8px;margin:14px 0;font-size:14px}
#nmaf-admin input:not([type=checkbox]),#nmaf-admin select,#nmaf-admin textarea{width:100%;min-width:0;min-height:46px;padding:11px 13px;border:1px solid var(--nmaf-border);border-radius:10px;background:#fff;color:#20231f}
#nmaf-admin textarea{min-height:105px;resize:vertical;line-height:1.8}
#nmaf-admin input:disabled,#nmaf-admin select:disabled,#nmaf-admin textarea:disabled{background:#f7f9fc;color:#3f4959;opacity:1;-webkit-text-fill-color:#3f4959}
#nmaf-admin [data-field="ebsCode"],#nmaf-admin [data-field="nupcoCode"],#nmaf-admin [data-field="patients"],#nmaf-admin [data-field="newCost"],#nmaf-admin [data-field="currentCost"],#nmaf-admin [data-field="otherCosts"]{direction:ltr;text-align:left}
#nmaf-admin input[type=checkbox]{width:17px;height:17px;accent-color:#1b3a6b;vertical-align:middle;flex-shrink:0}
#nmaf-admin .nmaf-primary{background:#1b3a6b;border-color:#1b3a6b;color:#fff}
#nmaf-admin .nmaf-primary:hover{background:#102f60}
#nmaf-admin .nmaf-danger{background:#b44343;border-color:#b44343;color:#fff}
#nmaf-admin .nmaf-danger:hover{background:#963535}
#nmaf-admin .nmaf-reasons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#nmaf-admin fieldset{border:1px solid var(--nmaf-border);border-radius:12px;padding:17px}
#nmaf-admin legend{font-size:14px;font-weight:700;color:var(--nmaf-navy);padding-inline:6px}
#nmaf-admin fieldset label{display:flex;align-items:flex-start;gap:9px;padding:7px 0;font-size:13px;line-height:1.8}
#nmaf-admin .nmaf-rejection-summary{padding-inline-start:22px;line-height:2;color:#973c3c}
#nmaf-admin .nmaf-impact{padding:20px;border-inline-start:3px solid #386fa4;background:#f2f7fb;margin:20px 0;border-radius:10px}
#nmaf-admin .nmaf-impact span{font-size:13px;color:var(--nmaf-muted)}
#nmaf-admin .nmaf-impact strong{display:block;font-size:25px;line-height:1.6;color:var(--nmaf-navy)}
#nmaf-admin .nmaf-ai-panel,#nmaf-admin .nmaf-pt-panel{margin:28px 0;padding:24px;border:1px solid #ccdbe7;border-radius:12px;background:#f8fbfd}
#nmaf-admin .nmaf-ai-panel h3,#nmaf-admin .nmaf-pt-panel h3{margin-top:0}
#nmaf-admin .nmaf-ai-consent{display:flex;align-items:flex-start;gap:9px;margin:16px 0;font-size:13px;line-height:1.9}
#nmaf-admin .nmaf-ai-consent input{margin-top:5px}
#nmaf-admin .nmaf-ai-result{border-top:1px solid var(--nmaf-border);margin-top:20px;padding-top:18px}
#nmaf-admin .nmaf-ai-result>strong{color:#8c621b}
#nmaf-admin .nmaf-ai-result li{margin:4px 0}
#nmaf-admin .nmaf-ai-result ul{padding-inline-start:22px}
#nmaf-admin .nmaf-alert{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #bedacb;border-radius:12px;padding:14px 18px;margin:20px 0;background:#edf8f2;color:#237a57}
#nmaf-admin .nmaf-alert[data-tone="error"]{background:#fff0ef;border-color:#e4b9b7;color:#963535}
#nmaf-admin .nmaf-view-note{margin:20px 0 0;padding-inline-start:12px;border-inline-start:3px solid #386fa4;color:#426383;font-size:13px}
#nmaf-admin #nmaf-decision-error{color:#b44343;font-size:13px}
#nmaf-admin[data-busy="true"] .nmaf-paper,#nmaf-admin[data-busy="true"] .nmaf-list{pointer-events:none;opacity:.65;cursor:progress}
#nmaf-admin .nmaf-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:1000px){#nmaf-admin .nmaf-list-toolbar{align-items:flex-start;flex-direction:column;gap:15px}#nmaf-admin .nmaf-list-filters{width:100%}#nmaf-admin .nmaf-head{padding:28px;min-height:230px}#nmaf-admin .nmaf-head-actions{max-width:40%;flex-direction:column;align-items:stretch}}
@media(max-width:760px){
 #nmaf-admin{padding:12px}
 #nmaf-admin .nmaf-head{flex-direction:column;align-items:stretch;gap:15px;min-height:0;padding:170px 22px 24px;border-radius:24px}
 #nmaf-admin .nmaf-head::before{bottom:auto;height:175px;background-position:center 48%;-webkit-mask-image:linear-gradient(to bottom,#000 0 72%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0 72%,transparent 100%)}
 #nmaf-admin .nmaf-head::after{height:175px;bottom:auto;background:linear-gradient(180deg,rgba(247,250,254,.08),rgba(244,247,251,0) 75%,#f4f7fb)}
 #nmaf-admin .nmaf-head-copy{max-width:none}
 #nmaf-admin .nmaf-head-copy small{font-size:12px}
 #nmaf-admin h1{font-size:28px}
 #nmaf-admin .nmaf-head-copy p{font-size:14px}
 #nmaf-admin .nmaf-head-actions{flex-direction:row;align-self:stretch;max-width:none;justify-content:flex-start}
 #nmaf-admin .nmaf-head-actions a{flex:1}
 #nmaf-admin .nmaf-head-actions button{flex:0 0 auto}
 #nmaf-admin .nmaf-metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin:18px 0}
 #nmaf-admin .nmaf-metric{min-height:92px;margin:0;padding:14px 8px;font-size:13px}
 #nmaf-admin .nmaf-metric:nth-child(3){border-inline-start:0}
 #nmaf-admin .nmaf-metric:nth-child(n+3){border-top:1px solid var(--nmaf-border)}
 #nmaf-admin .nmaf-metric strong{font-size:27px}
 #nmaf-admin .nmaf-list{padding:16px}
 #nmaf-admin .nmaf-list-toolbar h2{font-size:20px}
 #nmaf-admin .nmaf-list-filters{align-items:stretch;flex-direction:column}
 #nmaf-admin .nmaf-list-filters>label:last-child{width:100%}
 #nmaf-admin .nmaf-table-wrap{overflow:visible;border-radius:10px}
 #nmaf-admin table,#nmaf-admin tbody{display:block;min-width:0;width:100%}
 #nmaf-admin thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #nmaf-admin tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;padding:16px;border-bottom:1px solid var(--nmaf-border)}
 #nmaf-admin tbody tr:last-child{border-bottom:0}
 #nmaf-admin td{display:block;min-width:0;border:0;padding:0;font-size:13px;overflow-wrap:anywhere}
 #nmaf-admin td::before{content:attr(data-label);display:block;margin-bottom:3px;font-size:11px;color:var(--nmaf-muted)}
 #nmaf-admin td.nmaf-row-number{display:none}
 #nmaf-admin td.nmaf-drug,#nmaf-admin td.nmaf-row-actions{grid-column:1/-1;min-width:0}
 #nmaf-admin .nmaf-drug strong{font-size:17px}
 #nmaf-admin .nmaf-row-actions{padding-top:9px}
 #nmaf-admin .nmaf-row-actions::before{display:none}
 #nmaf-admin .nmaf-row-actions .nmaf-actions{flex-wrap:nowrap}
 #nmaf-admin .nmaf-row-actions [data-open]{flex:1}
 #nmaf-admin .nmaf-detail-toolbar{align-items:stretch;flex-direction:column;margin-top:18px}
 #nmaf-admin .nmaf-detail-toolbar>.nmaf-actions{justify-content:flex-start}
 #nmaf-admin .nmaf-detail-toolbar button{font-size:12px;padding-inline:10px}
 #nmaf-admin .nmaf-paper{padding:20px 16px}
 #nmaf-admin .nmaf-paper-head{align-items:flex-start;flex-direction:column;gap:10px}
 #nmaf-admin .nmaf-paper-head h2{font-size:23px}
 #nmaf-admin .nmaf-paper-head h2 span{font-size:17px}
 #nmaf-admin .nmaf-grid,#nmaf-admin .nmaf-details,#nmaf-admin .nmaf-reasons{grid-template-columns:1fr}
 #nmaf-admin .nmaf-details>div:last-child{grid-column:auto}
 #nmaf-admin .nmaf-ai-panel,#nmaf-admin .nmaf-pt-panel{padding:18px 14px}
 #nmaf-admin .nmaf-alert{align-items:flex-start;flex-direction:column;font-size:13px}
}
@media(prefers-reduced-motion:reduce){#nmaf-admin *,#nmaf-admin *::before,#nmaf-admin *::after{transition:none!important;scroll-behavior:auto!important}}

