:root{font-family:Tahoma,Arial,sans-serif;color:#213834;background:#f3f6f5;font-size:16px}*{box-sizing:border-box}body{margin:0;display:flex}button,input,select{font:inherit}button,select{cursor:pointer}button:disabled{opacity:.45;cursor:wait}aside{width:245px;background:#103f38;color:white;position:fixed;right:0;top:0;bottom:0;padding:32px 22px}.brand{display:flex;align-items:center;gap:15px;font-size:21px;line-height:1.7}.brand img{width:42px;height:60px;object-fit:contain;background:white;border-radius:5px}.brand small{font-size:16px;font-weight:normal}.section-label{font-size:14px;color:#b6d1c9;margin-top:52px}nav{display:grid;gap:10px}nav button{border:0;background:transparent;color:#d4e7e1;text-align:right;padding:15px;border-radius:8px}nav button.active{background:#e5f1eb;color:#103f38;font-weight:bold}.aside-bottom{position:absolute;bottom:28px;line-height:1.9;font-size:14px;color:#bad0c9}main{margin-right:245px;width:calc(100% - 245px);padding:0 36px 36px}.top{display:flex;justify-content:space-between;align-items:center;min-height:90px;border-bottom:1px solid #dbe4df;color:#64756f;font-size:14px}.top label{display:flex;align-items:center;gap:12px}.intro{margin:32px 0 24px}.eyebrow{color:#7b233a;font-size:14px;font-weight:bold}h1{font-size:30px;margin:10px 0}p{line-height:1.8;color:#63776f}form{display:flex;align-items:end;gap:18px;background:white;border:1px solid #dfe7e3;border-radius:12px;padding:24px}label{display:grid;gap:9px;font-size:14px}form label:first-child{flex:1}input,select{padding:12px;border:1px solid #c9d7d0;border-radius:6px;background:white;color:#203a32;min-width:140px}button{border:1px solid #bdcec5;border-radius:6px;background:white;color:#24493c;padding:12px 20px}.primary{background:#195c4d;color:white;border-color:#195c4d}.stats{display:grid;grid-template-columns:1fr 1.3fr 1.3fr;gap:18px;margin:24px 0}.stats article{background:white;border:1px solid #dfe7e3;border-radius:10px;padding:20px}.stats span{color:#65776f;font-size:14px}.stats strong{display:block;font-size:26px;margin-top:13px;direction:ltr;text-align:right}#period{font-size:19px}.workspace{background:white;border:1px solid #dfe7e3;border-radius:12px;overflow:hidden}.toolbar{display:flex;align-items:center;justify-content:space-between;padding:22px;gap:12px}h2{font-size:20px;margin:0}.toolbar p{margin:8px 0 0;font-size:14px}.actions{display:flex;gap:10px}iframe{display:block;width:100%;height:660px;border:0;background:#e7eceb}.hint{font-size:14px}#message:not(:empty){padding:15px;background:#fff3dc;color:#674719;border-radius:8px;margin-bottom:16px}#secondary{background:white;padding:24px;border-radius:12px}table{width:100%;border-collapse:collapse}th,td{text-align:right;border-bottom:1px solid #dfe7e3;padding:12px}#empty{padding:24px;color:#6a4b13;background:#fff7e7}@media(max-width:1000px){aside{width:195px;padding:25px 14px}main{margin-right:195px;width:calc(100% - 195px);padding:0 20px}form{flex-wrap:wrap}.stats{gap:10px}.toolbar{flex-wrap:wrap}}@media(max-width:700px){body{display:block}aside{position:static;width:auto;padding:14px}.brand,.section-label,.aside-bottom{display:none}nav{display:flex;flex-wrap:wrap;gap:3px}nav button{padding:10px}main{margin:0;width:100%;padding:0 14px}.top{flex-wrap:wrap;gap:8px;padding:12px 0}.stats{grid-template-columns:1fr}.intro{margin-top:24px}form{padding:16px}form label{width:100%}iframe{height:510px}}
#identity{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:4px;max-width:190px;overflow-wrap:anywhere}.account-name{font-weight:bold}.account-role{font-size:12px}#shell .top .icon-button{width:44px;height:44px;padding:10px;display:grid;place-items:center;flex-shrink:0} .icon-button svg{width:22px;height:22px;pointer-events:none}#portalResults{margin-top:20px}#archiveUpload{flex-wrap:wrap}#archiveRows{margin-top:20px}@media(max-width:700px){#identity{max-width:170px}.top>.actions{margin-inline-start:auto}#archiveUpload input[type=file]{width:100%;min-width:0}#paymentForm select,#annualForm select{max-width:100%}}
:root{--accent:#195c4d}[hidden]{display:none!important}body{display:block}#shell{width:100%}.auth{min-height:100vh;display:grid;place-items:center;padding:25px;background:linear-gradient(130deg,#103f38,#f1f5f2)}.auth-card{width:min(100%,480px);padding:36px;background:white;border-radius:16px;box-shadow:0 15px 60px #0f31252b}.auth-card>img{height:78px;display:block;margin:auto}.auth-card h1{font-size:24px;text-align:center}.auth-card form{display:grid;border:0;padding:0}.auth-card small{color:#64756f}.auth-card input{width:100%}#authError,#dialogError{color:#9b2439}.card{background:white;border:1px solid #dfe7e3;border-radius:12px;padding:24px;margin-bottom:20px}.table-scroll{overflow:auto}td .actions{flex-wrap:wrap}td button{padding:8px 12px;font-size:14px}.stack{display:grid!important;gap:18px;border:0;padding:0!important}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.wide{grid-column:1/-1}fieldset{border:1px solid #d5e1da;border-radius:8px;padding:20px}legend{font-weight:bold;color:#195c4d;padding:0 8px}textarea{font:inherit;min-height:85px;border:1px solid #c9d7d0;border-radius:6px;padding:12px;resize:vertical;width:100%}.check{display:flex;align-items:center;gap:10px;line-height:1.8}.check input,input[type=checkbox]{min-width:0;width:18px;height:18px;flex-shrink:0}.form-grid input,.form-grid select{width:100%;min-width:0}dialog{width:min(900px,94vw);max-height:90vh;overflow:auto;border:0;border-radius:14px;padding:26px;color:#213834}dialog::backdrop{background:#14332d99}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #dfe7e3;margin-bottom:20px;padding-bottom:16px}dialog .dialog-head button{padding:8px 16px}a{color:#195c4d}#columnMap{margin:20px 0}#rawRows table{font-size:14px}#rawRows td{min-width:90px}#annualSummary{margin-top:20px}.top .actions{align-items:center;flex-wrap:wrap}.top button{font-size:14px;padding:8px 12px}#payPeriod{font-size:18px}nav{gap:4px}nav button{padding:11px 14px}aside .section-label{margin-top:24px}.aside-bottom{font-size:12px}.card>h2{margin-bottom:16px}.table-scroll td{vertical-align:top}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b77840;outline-offset:2px}@media(max-width:700px){.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.card{padding:16px}dialog{padding:18px}.top .actions{gap:8px}.auth-card{padding:25px}nav{display:flex}nav button{font-size:14px}fieldset{padding:12px}}
body{display:block}#auth{width:100%}#shell{width:100%}#dialogBody form.stack{display:grid}#dialogBody form{margin-bottom:16px}
.password-input button[aria-pressed=true] .eye-slash{display:none}#dialog .password-input input{width:100%}#dialog .password-input button{background:transparent;border:0;box-shadow:none;color:var(--brand-burgundy)}#accountPassword::-ms-reveal,#accountPassword::-ms-clear{display:none}
/* A neutral identity area fades into the existing burgundy navigation surface. */
#shell aside .brand{position:relative;isolation:isolate;width:calc(100% + 20px);max-width:none;margin-inline:-10px}#shell aside .brand::before{content:"";position:absolute;z-index:-1;pointer-events:none;inset:-32px -12px -24px;background:linear-gradient(to bottom,#f2f2f2 0,#f2f2f2 calc(100% - 24px),#6f0c1f 100%)}#shell .brand-letterhead-text{background:transparent;padding:0}#shell .letterhead-en{color:#656565}#shell aside .section-label{color:#fff}@media(min-width:701px) and (max-width:1000px){#shell aside .brand{width:calc(100% + 12px);margin-inline:-6px}#shell aside .brand::before{inset:-25px -8px -24px}}@media(max-width:700px){#shell aside .brand{width:calc(100% + 12px);margin:8px -6px 28px}#shell aside .brand::before{inset:-22px -8px -24px}}
.brand-letterhead-text .letterhead-ar{font-size:7.9cqw;line-height:1.2}.brand-letterhead-text .letterhead-en{font-size:5.8cqw;line-height:1.15}.brand-letterhead-text .letterhead-office,.brand-letterhead-text .letterhead-license{font-size:5.15cqw;line-height:1.08}
.brand{flex-direction:column;gap:12px;text-align:center}.brand img{width:50px;height:70px;background:transparent;border:0;border-radius:0;box-shadow:none;filter:drop-shadow(0 0 2px rgba(255,255,255,.9)) drop-shadow(0 0 7px rgba(255,255,255,.55))}.brand-name{width:100%;line-height:1.6}.brand-name strong{display:block;font-size:21px}.brand-english{display:block;font-family:Arial,Tahoma,sans-serif;font-size:14px;font-weight:600;white-space:normal;line-height:1.45;margin-top:3px}.brand-office{display:block;font-size:14px;line-height:1.65;margin-top:9px;color:#eee1e5}aside .section-label{text-align:center}@media(min-width:701px) and (max-height:850px){#shell aside{overflow-y:auto}#shell .aside-bottom{position:static;margin-top:24px}}
/* Dashboard palette sampled from the current logo: #6f0c1f, #d4cdce, #868887.
   Print and PDF templates own their styles and are intentionally unaffected. */
:root{--brand-burgundy:#6f0c1f;--brand-stone:#d4cdce;--brand-gray:#868887;--brand-ink:#322b2d;--brand-muted:#665d60;--brand-border:#ded7d9;--brand-surface:#f6f4f5}
#shell aside p.section-label{color:#fff}
#shell aside{padding-top:16px}#shell aside .brand::before{top:-16px}@media(min-width:701px) and (max-width:1000px){#shell aside{padding-top:12px}#shell aside .brand::before{top:-12px}}@media(max-width:700px){#shell aside{padding-top:6px}#shell aside .brand{margin-top:0}#shell aside .brand::before{top:-6px}}
.brand img.brand-logo{width:min(100px,70%);height:auto;aspect-ratio:150/212;max-width:100%;flex-shrink:0}.brand-letterhead-text{width:100%;aspect-ratio:3135/883;container-type:inline-size;background:#fff;padding:.5% 1%;display:flex;flex-direction:column;justify-content:space-between;text-align:center;flex-shrink:0}.letterhead-line{display:block;white-space:nowrap;font-style:normal}.letterhead-ar{font-family:Tahoma,Arial,sans-serif;font-size:8.3cqw;font-weight:900;line-height:1;color:#c00000}.letterhead-en{font-family:Calibri,Arial,sans-serif;font-size:6cqw;font-weight:700;line-height:1;color:#969696}.letterhead-office,.letterhead-license{font-family:"Times New Roman",Tahoma,serif;font-size:5.35cqw;font-weight:700;line-height:1.05;color:#000}
.brand img.brand-logo{filter:drop-shadow(0 0 1px #fff) drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px rgba(255,255,255,.95))}.brand img.brand-letterhead{width:100%;height:auto;object-fit:contain;filter:none;border-radius:0;background:white;display:block;flex-shrink:0}@media(max-width:700px){#shell .brand{display:flex;margin:8px auto 20px;max-width:360px}#shell aside .section-label{display:block;margin-top:0;margin-bottom:14px}}
#shell{min-height:100vh;color:var(--brand-ink);background:var(--brand-surface)}#shell aside{background:var(--brand-burgundy);color:#fff}#shell .brand-name{color:#fff}#shell .brand-english,#shell aside .section-label,#shell .aside-bottom{color:#eee1e5}#shell .top{color:var(--brand-muted);border-color:var(--brand-border)}#shell p,#shell .stats span{color:var(--brand-muted)}#shell h1,#shell h2,#shell .eyebrow{color:var(--brand-burgundy)}#shell .stats strong{color:var(--brand-ink)}#shell .card,#shell form,#shell .workspace,#shell .stats article{border-color:var(--brand-border)}#shell th,#shell td{border-color:var(--brand-border)}#shell button,dialog button{color:var(--brand-burgundy);background:#fff;border-color:#cbbec2}#shell button:hover,dialog button:hover{border-color:var(--brand-burgundy);background:#f8f0f2}#shell .primary,dialog .primary{background:var(--brand-burgundy);border-color:var(--brand-burgundy);color:white}#shell .primary:hover,dialog .primary:hover{background:#550b1a;border-color:#550b1a}#shell nav button{background:transparent;color:#f6edf0;border:0}#shell nav button:hover{background:#831b31}#shell nav button.active{background:#f6e9ed;color:var(--brand-burgundy)}#shell input,#shell select,dialog input,dialog select,dialog textarea{color:var(--brand-ink);border-color:#cbbec2;background:white}#shell a,dialog a,dialog legend,dialog h2{color:var(--brand-burgundy)}dialog{color:var(--brand-ink)}dialog fieldset,.dialog-head{border-color:var(--brand-border)}#shell input[type=checkbox],dialog input[type=checkbox]{accent-color:var(--brand-burgundy)}#shell button:focus-visible,#shell input:focus-visible,#shell select:focus-visible,dialog button:focus-visible,dialog input:focus-visible,dialog select:focus-visible,dialog textarea:focus-visible{outline:3px solid var(--brand-burgundy);outline-offset:3px}#shell nav button:focus-visible{outline-color:white;outline-offset:2px}
.password-field{display:grid;gap:9px}.password-input{position:relative}.password-field input{min-width:0;padding-left:52px;padding-right:12px}.password-input button{position:absolute;left:6px;top:50%;transform:translateY(-50%);width:40px;height:40px;display:grid;place-items:center;padding:0;border:0;border-radius:4px;background:transparent;color:#536f63;box-shadow:none}.password-input button:hover{color:#103f38}.password-input button:focus-visible{outline:2px solid #b77840;outline-offset:-3px}.password-eye{width:22px;height:22px;pointer-events:none}#toggleAuthPassword[aria-pressed=true] .eye-slash{display:none}#authPassword::-ms-reveal,#authPassword::-ms-clear{display:none}
/* Shared header matches the institutional Arabic font; page headings use Jeddah. */
#shell .top>span:first-child{font-family:Tahoma,Arial,sans-serif;font-weight:900;font-size:26px;line-height:1.6;color:var(--brand-burgundy)}
#shell .intro #title{font-family:"AF_Jeddah","MCS Jeddah S_U normal.",Tahoma,sans-serif;font-size:36px;font-weight:400;line-height:1.6;margin:8px 0}
#shell .top{gap:18px;flex-wrap:wrap;padding-block:14px}
@media(max-width:700px){#shell .top>span:first-child{font-size:21px;flex-basis:100%}#shell .intro #title{font-size:32px}}/* Compact payment introduction with a larger title and one descriptive strip. */
#shell[data-view="payment"] .intro{margin:10px 0 6px}
#shell[data-view="payment"] .intro #title{font-size:108px;line-height:1.06;margin:0}
#shell[data-view="payment"] #subtitle{display:none}
#shell[data-view="payment"] #message:not(:empty){padding:8px 12px;margin-bottom:10px;font-size:14px;line-height:1.6}
@media(max-width:700px){#shell[data-view="payment"] .intro #title{font-size:clamp(60px,18vw,96px);line-height:1.1}#shell[data-view="payment"] .intro{margin:8px 0 6px}}