.mes-app{--mes-green:#126a50;--mes-ink:#193c33;--mes-muted:#647b72;--mes-line:#dfe8e2;--mes-gold:#edc970;box-sizing:border-box;max-width:1180px;margin:28px auto;color:var(--mes-ink);font-family:var(--mes-ui-font,inherit);font-size:14px;line-height:1.85;text-align:right;isolation:isolate;background:#f6f8f4;border:1px solid #e3eae3;border-radius:24px;overflow:hidden}
.mes-app *,.mes-app *:before,.mes-app *:after{box-sizing:border-box}
.mes-app h2,.mes-app h3,.mes-app h4,.mes-app p,.mes-app fieldset{padding:0;margin:0;font-family:inherit;color:inherit;letter-spacing:normal}
.mes-app button,.mes-app input,.mes-app select{font-family:inherit;letter-spacing:normal;max-width:100%}
.mes-app button{cursor:pointer;transition:background .16s,transform .16s;line-height:1.6;text-transform:none;box-shadow:none}
.mes-app button:disabled{opacity:.6;cursor:wait}
.mes-app [hidden]{display:none!important}
.mes-app :focus-visible{outline:3px solid #ba9033;outline-offset:3px}
.mes-hero{position:relative;background:#143f32;color:#fff!important;padding:32px 38px 38px;display:flex;justify-content:space-between;gap:24px;overflow:hidden}
.mes-brand{display:flex;align-items:center;gap:9px;font-size:17px;font-weight:bold;margin-bottom:22px}
.mes-brand svg{width:25px;height:25px;color:var(--mes-gold)}
.mes-tag{font-size:10px;font-weight:normal;color:#d9e9de;border:1px solid #638172;border-radius:20px;padding:2px 9px;margin-right:9px}
.mes-hero h2{font-size:clamp(25px,3vw,37px);font-weight:700;line-height:1.75;max-width:610px}
.mes-hero h2 em{color:var(--mes-gold);font-style:normal}
.mes-hero p{color:#c8dcd2;font-size:12px;margin-top:12px}
.mes-art{width:280px;flex:none;position:relative;align-self:center;height:210px}
.mes-sun{position:absolute;width:78px;height:78px;background:var(--mes-gold);border-radius:50%;top:9px;left:67px;box-shadow:0 0 0 17px #edc9700b,0 0 0 36px #edc97008}
.mes-orbit{position:absolute;inset:12px 16px;border:1px solid #719e8050;border-radius:50%;transform:rotate(-28deg)}
.mes-panel{position:absolute;width:215px;height:111px;left:21px;top:95px;transform:skew(-18deg) rotate(-7deg);border:3px solid #adc5b8;border-radius:5px;background:repeating-linear-gradient(0deg,transparent 0,transparent 33px,#a9c5b34d 33px,#a9c5b34d 35px),repeating-linear-gradient(90deg,#285846 0,#285846 40px,#a9c5b34d 40px,#a9c5b34d 42px);box-shadow:9px 12px 0 #092a2060}
.mes-art span{position:absolute;bottom:-27px;left:38px;font-size:9px;letter-spacing:1px;color:#a8c5b7}
.mes-layout{display:grid;grid-template-columns:minmax(300px,370px) minmax(0,1fr);align-items:start;gap:24px;padding:28px}
.mes-input-card{background:white;border:1px solid var(--mes-line);border-radius:17px;padding:23px;min-width:0}
.mes-card-heading{display:flex;gap:11px;align-items:center;margin-bottom:25px}
.mes-step{display:grid;place-items:center;background:#e9f1e9;border-radius:12px;width:37px;height:40px;font-size:16px}
.mes-app h3{font-size:18px;font-weight:bold;line-height:1.7}
.mes-card-heading p{font-size:11px;color:var(--mes-muted)}
.mes-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 13px}
.mes-wide{grid-column:1/-1}
.mes-field{display:flex;flex-direction:column;gap:7px;margin:0;font-size:11px;font-weight:bold;min-width:0}
.mes-field>span>small{display:inline;font-weight:normal}
.mes-app .mes-field input,.mes-app .mes-field select,.mes-app .mes-capacity select{background:#fff;color:var(--mes-ink);border:1px solid #cfdcd3;border-radius:9px;height:46px;min-height:46px;width:100%;font-size:13px;padding:8px 11px;box-shadow:none;margin:0}
.mes-app select{appearance:auto}
.mes-field input:focus,.mes-field select:focus{border-color:var(--mes-green)}
.mes-field small{font-size:9px;color:var(--mes-muted);font-weight:normal;line-height:1.8}
.mes-capacity{display:flex;direction:ltr;gap:8px}
.mes-app .mes-capacity input{font-size:22px;font-weight:bold;min-width:0}
.mes-app .mes-capacity select{width:105px;flex:none;direction:rtl;font-size:12px;background:#f2f6f0}
.mes-sale{border:0;display:flex;flex-direction:column;gap:8px;min-width:0}
.mes-sale legend{font-size:11px;font-weight:bold;margin-bottom:10px;padding:0}
.mes-sale label{display:flex;position:relative;align-items:center;gap:9px;border:1px solid #d9e3db;border-radius:9px;padding:10px 12px;font-size:11px;cursor:pointer}
.mes-sale label:has(input:checked){background:#eef5ee;border-color:#8faf99;font-weight:bold}
.mes-app input[type=radio],.mes-app input[type=checkbox]{width:16px;height:16px;min-height:16px;flex:none;margin:0;accent-color:var(--mes-green);appearance:auto}
.mes-advanced{margin:22px 0;border-top:1px solid var(--mes-line);padding-top:14px}
.mes-app summary{cursor:pointer;font-size:11px;font-weight:bold;list-style-position:inside}
.mes-advanced summary span{float:left;font-weight:normal;font-size:9px;color:var(--mes-muted)}
.mes-advanced .mes-form-grid{margin-top:20px}
.mes-app .mes-button{display:flex;justify-content:center;align-items:center;gap:14px;width:100%;border:1px solid var(--mes-green);background:var(--mes-green);border-radius:10px;padding:13px 15px;color:white;font-size:12px;font-weight:bold;min-height:48px}
.mes-app .mes-button:hover{background:#0a533d}
.mes-button span{font-size:20px;line-height:1}
.mes-form-note{text-align:center;font-size:9px;color:var(--mes-muted)!important;margin-top:10px!important}
.mes-rates-note{border-top:1px solid var(--mes-line);padding-top:16px;margin-top:24px;display:flex;gap:8px;align-items:baseline}
.mes-rates-note strong{display:block;font-size:10px;font-weight:normal}
.mes-rate-date{display:block;font-size:9px;color:var(--mes-muted)}
.mes-dot{width:6px;height:6px;border-radius:50%;background:#c79b3f;flex:none}
.mes-error{font-size:11px;color:#a32b27!important;margin:12px 0!important;padding:10px;background:#fff1ec;border-radius:7px}
.mes-output{min-width:0;outline:none;scroll-margin-top:24px}
.mes-empty{padding:57px 23px 35px;text-align:center;color:var(--mes-muted);border:1px dashed #c8d9ca;border-radius:17px;min-height:470px}
.mes-empty>svg{width:65px;height:65px;color:#94ac90;margin-bottom:22px}
.mes-empty h3{font-size:17px;color:#385647}
.mes-empty p{font-size:12px;max-width:320px;margin:15px auto 30px;line-height:2.2}
.mes-empty-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:330px;margin:auto}
.mes-empty-grid span{background:#edf1e9;padding:15px 9px;border-radius:10px;font-size:11px}
.mes-result-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 18px}
.mes-eyebrow{font-size:9px;color:var(--mes-muted)}
.mes-result-header h3{font-size:20px;margin:3px 0}
.mes-result-header p{font-size:10px;color:var(--mes-muted)}
.mes-app .mes-print{font-size:10px;border:1px solid #cfdbd0;border-radius:8px;background:white;padding:8px 11px;color:var(--mes-ink);white-space:nowrap}
.mes-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mes-metric{padding:18px;border:1px solid var(--mes-line);background:#fff;border-radius:13px;min-width:0}
.mes-metric>span{font-size:10px;color:var(--mes-muted);display:block}
.mes-metric strong{display:block;font-size:clamp(21px,2vw,29px);line-height:1.5;margin:11px 0 1px;overflow-wrap:anywhere}
.mes-metric small{font-size:10px;display:block}
.mes-metric p{font-size:9px;color:var(--mes-muted);margin-top:12px;border-top:1px solid #e7ede6;padding-top:10px}
.mes-metric.mes-featured{background:#eaf1e4;border-color:#cddcc3}
.mes-warnings,.mes-stale{font-size:10px;line-height:2.1;background:#fcf5e3;border:1px solid #eddfb8;border-radius:10px;padding:13px 16px;margin:16px 0!important;color:#745a25!important}
.mes-warnings ul{padding:0 17px 0 0;margin:4px 0 0;list-style:disc}
.mes-warnings li{margin:3px 0}
.mes-detail-card{border:1px solid var(--mes-line);background:#fff;border-radius:13px;padding:18px;margin-top:16px}
.mes-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:16px}
.mes-app h4{font-size:12px;font-weight:bold;line-height:1.8}
.mes-section-title>span{font-size:9px;color:var(--mes-muted)}
.mes-table-scroll{max-width:100%;overflow:auto}
.mes-app table{width:100%;border-collapse:collapse;margin:0;font-size:9px;background:none;border:0;color:var(--mes-ink);line-height:1.9;white-space:nowrap}
.mes-app th,.mes-app td{border:0;border-bottom:1px solid #e5ece5;padding:12px 8px;text-align:right;background:none}
.mes-app thead th{color:var(--mes-muted);font-size:8px;font-weight:normal;background:#f6f8f3}
.mes-app tbody th{font-weight:normal}
.mes-app td{font-variant-numeric:tabular-nums}
.mes-app .mes-total th,.mes-app .mes-total td{font-weight:bold;color:var(--mes-green);border-bottom:0}
.mes-caption{font-size:9px;line-height:2;color:var(--mes-muted)!important;margin-top:13px!important}
.mes-chart{display:block;width:100%;height:auto;direction:ltr;overflow:visible}
.mes-chart text{font-size:10px;font-family:inherit;fill:#708579}
.mes-cash-summary{display:grid;grid-template-columns:1fr 1fr;gap:14px;border-top:1px solid var(--mes-line);padding-top:16px;margin-top:10px}
.mes-cash-summary span{display:block;font-size:9px;color:var(--mes-muted)}
.mes-cash-summary strong{font-size:12px;display:block;margin-top:6px;line-height:1.9}
.mes-year-table{margin-top:15px;border-top:1px solid var(--mes-line);padding-top:13px}
.mes-year-table summary{font-size:10px;margin-bottom:10px}
.mes-assumptions{padding:18px 2px;font-size:10px}
.mes-assumptions dl{display:grid;grid-template-columns:1fr 1fr;gap:0 20px;margin:12px 0}
.mes-assumptions dl>div{padding:8px 0;border-bottom:1px solid var(--mes-line)}
.mes-assumptions dt{font-size:9px;color:var(--mes-muted)}
.mes-assumptions dd{margin:3px 0 0;font-size:11px}
.mes-assumptions p{font-size:9px;color:var(--mes-muted);line-height:2.1;margin-top:8px}
.mes-lead{background:#eaf1e8;border:1px solid #d4e2cf;border-radius:13px;padding:20px;margin-top:5px}
.mes-lead>p{font-size:10px;margin:5px 0 18px;color:var(--mes-muted)}
.mes-consent{display:flex;gap:8px;align-items:flex-start;font-size:9px;line-height:2.1;margin:17px 0}
.mes-consent input{margin-top:3px!important}
.mes-consent a{color:var(--mes-green);text-decoration:underline}
.mes-app .mes-secondary{background:white;color:var(--mes-green);font-size:11px;min-height:42px;padding:10px}
.mes-app .mes-secondary:hover{color:white}
.mes-lead-status{font-size:10px;margin-top:10px!important}
.mes-hp{position:absolute!important;left:-99999px!important;width:1px;height:1px;overflow:hidden}
.mes-report-date{font-size:8px;color:var(--mes-muted)!important;margin-top:15px!important}
.mes-footer{text-align:center;color:var(--mes-muted);font-size:9px;padding:0 28px 23px}
@media(max-width:1000px){.mes-layout{grid-template-columns:minmax(270px,320px) minmax(0,1fr);gap:16px;padding:20px}.mes-input-card{padding:18px}.mes-detail-card{padding:13px}.mes-metric{padding:14px}.mes-result-header h3{font-size:17px}}
@media(max-width:850px){.mes-layout{grid-template-columns:1fr}.mes-hero{padding:27px}.mes-art{width:200px;transform:scale(.8);transform-origin:left center}.mes-form-grid{gap:18px}.mes-empty{min-height:330px;padding-top:32px}.mes-input-card{padding:24px}.mes-hero h2{font-size:29px}.mes-hero p{font-size:11px}}
@media(max-width:520px){.mes-app{margin:12px auto;border-radius:16px;font-size:13px}.mes-hero{padding:23px 20px}.mes-hero h2{font-size:25px}.mes-hero p{max-width:230px}.mes-art{display:none}.mes-brand{font-size:15px;margin-bottom:17px}.mes-layout{padding:13px;gap:22px}.mes-input-card{padding:18px}.mes-form-grid{gap:17px 10px}.mes-field{font-size:10px}.mes-app .mes-field select{font-size:11px;padding:8px 6px}.mes-metric{padding:14px}.mes-metric strong{font-size:23px}.mes-metric>span{font-size:9px}.mes-result-header h3{font-size:17px}.mes-result-header{align-items:start}.mes-print{padding:7px!important;font-size:9px!important}.mes-detail-card{padding:13px}.mes-section-title{gap:6px}.mes-section-title>span{font-size:8px}.mes-app th,.mes-app td{padding:10px 6px}.mes-cash-summary strong{font-size:11px}.mes-footer{padding:0 20px 20px}.mes-lead{padding:16px}}
@media(prefers-reduced-motion:reduce){.mes-app *{transition:none!important;scroll-behavior:auto!important}}
.mes-print-report{border:0;border-radius:0;background:white;margin:0;max-width:none;padding:20px}
@media print{.mes-app{font-size:10px;line-height:1.7;background:white;border:0;max-width:none;margin:0;overflow:visible}.mes-print,.mes-lead,.mes-stale{display:none!important}.mes-metrics{grid-template-columns:1fr 1fr}.mes-metric,.mes-detail-card,.mes-warnings{break-inside:avoid}.mes-assumptions{break-inside:avoid}.mes-table-scroll{overflow:visible}.mes-year-table{break-inside:auto}.mes-app table{font-size:8px;white-space:normal}.mes-app tr{break-inside:avoid}.mes-app thead{display:table-header-group}.mes-app th,.mes-app td{padding:5px}.mes-metric strong{font-size:22px}.mes-detail-card{margin-top:10px;padding:12px}.mes-chart{max-height:170px}.mes-app *{-webkit-print-color-adjust:exact;print-color-adjust:exact}@page{size:A4;margin:12mm}}

@font-face{font-family:"MES Report";src:url("fonts/NotoSansArabic-Regular.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"MES Report";src:url("fonts/NotoSansArabic-Bold.ttf") format("truetype");font-weight:700;font-display:swap}
@font-face{font-family:"MES Symbols";src:url("fonts/DejaVuSans.ttf") format("truetype");font-display:swap}
.mes-app.mes-app *,.mes-app.mes-app *::before,.mes-app.mes-app *::after{font-family:inherit!important}
.mes-brand-logo{width:85px;height:85px;object-fit:contain;background:white;border-radius:12px;padding:4px}
.mes-project-options{border:1px solid var(--mes-line);border-radius:10px;padding:16px!important;margin-top:22px!important;min-width:0}
.mes-project-options legend{font-size:11px;font-weight:bold;padding:0 5px}
.mes-row-note{display:block;color:var(--mes-muted);font-size:8px;font-weight:normal}
.mes-report-actions{display:flex;flex-direction:column;gap:6px;flex:none}
.mes-app .mes-pdf{background:var(--mes-green);color:white;border:0;border-radius:8px;padding:10px 12px;font-size:11px;font-weight:bold}
.mes-pdf-status{font-size:10px;color:var(--mes-muted);margin-bottom:8px!important}
.mes-schedule-summary{background:#edf4e8;padding:16px;border-radius:9px;display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center}
.mes-schedule-summary strong{font-size:22px}.mes-schedule-summary span{font-size:10px}
.mes-gantt-scroll{overflow:auto;padding:20px 0 8px}.mes-gantt{min-width:620px;padding-left:12px}
.mes-gantt-row{display:grid;grid-template-columns:185px 1fr;gap:10px;align-items:center;margin:0 0 9px}
.mes-gantt-row>span{font-size:10px;line-height:1.7}.mes-gantt-row small{display:block;color:var(--mes-muted);font-size:8px}
.mes-track{height:20px;position:relative;direction:ltr;background:repeating-linear-gradient(90deg,#edf1ed 0,#edf1ed 1px,transparent 1px,transparent 10%)}
.mes-track i{display:block;min-width:4px;position:absolute;top:2px;height:16px;background:#4c8c77;border-radius:4px}
.mes-track .mes-critical{background:#b7862a}.mes-track .mes-buffer{background:#dedbd0;border:1px dashed #a4a398}
.mes-axis{height:24px}.mes-axis>div{position:relative;direction:ltr;height:20px}.mes-axis b{position:absolute;transform:translateX(-50%);font-size:9px;font-weight:normal}
.mes-timeline-notes{font-size:10px;line-height:2.1;margin-top:12px}.mes-timeline-notes ul{padding-right:20px}
.mes-print-logos{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.mes-print-logos img{object-fit:contain;max-width:220px;height:90px}
@media print{.mes-report-actions,.mes-pdf-status{display:none!important}.mes-gantt-scroll{overflow:visible}.mes-gantt{min-width:0}.mes-gantt-row{grid-template-columns:160px 1fr}.mes-timeline-notes{font-size:9px}}
