@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');
:root{--ink:#25231e;--muted:#706b60;--gold:#957625;--red:#a41d38;--paper:#f8f6f0;--line:#e9e3d7;--white:#fff;--green:#30734f}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--paper);font:16px 'IBM Plex Sans Arabic',Tahoma,Arial,sans-serif}body:before{content:'';position:fixed;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#a18436,#c60e43);z-index:9}aside{position:fixed;inset:4px 0 0 auto;width:245px;background:#fff;border-left:1px solid var(--line);display:flex;flex-direction:column;z-index:5}.brand{display:flex;gap:10px;align-items:center;padding:20px 17px;border-bottom:1px solid var(--line);font-weight:700}.brand img{width:54px;height:56px;object-fit:contain;mix-blend-mode:multiply}.brand small{display:block;color:var(--gold);font-weight:500}nav{padding:12px;overflow:auto;flex:1}nav a{display:flex;align-items:center;gap:11px;border-radius:9px;padding:7px 10px;margin:2px 0;color:#585449;font-size:15px}nav a.active{background:#f2e9d2;color:#72581a;font-weight:700}nav a:hover{background:#f7f2e7}nav i{font-style:normal;width:17px;color:var(--gold);text-align:center}.nav-label{font-size:13px;color:var(--muted);padding:10px 10px 3px}.aside-foot{padding:12px 18px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}.workspace{margin-right:245px}header{position:sticky;top:4px;background:#fff;z-index:4;min-height:69px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 30px}.tools,.actions,.tabs,.filters{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.tools label{font-size:13px;color:var(--muted)}.breadcrumb{color:var(--muted);font-size:14px}.breadcrumb b{color:var(--ink);margin-inline-start:8px}#menu{display:none}.bell{font-size:22px;padding:0 10px}main{max-width:1510px;margin:auto;padding:26px 30px 16px}footer{padding:10px 30px 24px;color:var(--muted);font-size:13px}.hero{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:200px;margin-bottom:22px;padding:27px 32px;border:1px solid #e4d9bd;border-radius:18px;background:linear-gradient(110deg,#eee4ca 0%,#faf8f0 65%,#fff 100%);position:relative;overflow:hidden}.hero:before{position:absolute;content:'';inset:0 0 auto;height:3px;background:linear-gradient(90deg,#a88735,#c50b44)}.hero img{width:135px;mix-blend-mode:multiply}.eyebrow{color:#82671f;font-size:14px;font-weight:700}.hero h1,.page h1{font-size:clamp(29px,4vw,44px);line-height:1.2;letter-spacing:-.025em;margin:9px 0}.hero p,.page p{margin:5px 0 15px;color:#5e594e}.page{margin:5px 0 20px}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:14px 0}.two{grid-template-columns:1.45fr 1fr}.three{grid-template-columns:repeat(3,minmax(0,1fr))}.card{border:1px solid var(--line);background:white;border-radius:14px;padding:17px;min-width:0}.card h2{margin:0 0 13px;font-size:20px}.stat{display:block;text-align:start;width:100%;font-weight:500}.stat strong{display:block;font-size:34px;line-height:1.2;margin:9px 0;color:#332b17}.muted,small{color:var(--muted)}.row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}.row:last-child{border:0}.bar{height:9px;width:100%;background:#f0ebe1;border-radius:999px;overflow:hidden}.bar span{height:100%;display:block;background:linear-gradient(90deg,#b89b4b,#8e7025);border-radius:999px}.progress{min-width:75px}button,input,select,textarea{font:inherit}button,.button,select,input,textarea{border:1px solid #ddd5c5;border-radius:8px;padding:7px 11px;background:#fff;color:inherit}button,.button,select{cursor:pointer}button:hover,.button:hover{border-color:#a68b49}button:disabled{opacity:.5;cursor:default}.primary,.tab.active{background:#82651e;color:white;border-color:#82651e}.ghost{border:0;background:transparent;padding:0;text-align:start;color:#795e1d}.tabs{margin:14px 0}.filter-group{margin:0 0 13px}.tag{display:inline-block;padding:2px 8px;background:#f3eee2;border-radius:999px;font-size:13px;white-space:nowrap}.tag.good{background:#e6f1e9;color:#236342}.tag.bad{background:#f9e6eb;color:#a51b37}.tag.warn{background:#fff0dc;color:#875013}.table{overflow:auto}table{border-collapse:collapse;width:100%;text-align:right;white-space:nowrap}th,td{padding:11px 10px;border-bottom:1px solid var(--line)}th{font-size:14px;color:var(--muted);background:#faf8f1}td:first-child{white-space:normal;min-width:165px}a{color:inherit;text-decoration:none}a:hover{text-decoration:none}:focus-visible{outline:2px solid #9d771d;outline-offset:3px}.kanban{grid-template-columns:repeat(4,minmax(0,1fr))}.lane{background:#f1ede3;padding:10px;border-radius:12px}.lane button{display:block;width:100%;text-align:start;margin:8px 0}.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.section-title h2{margin:0}.notice{padding:10px 13px;background:#f4edde;border-radius:8px;color:#6e5519;margin:12px 0}.field{display:grid;gap:5px;margin:10px 0}.field label{font-weight:600}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}dialog{border:1px solid var(--line);border-radius:16px;padding:0;width:min(690px,94vw);max-height:88vh;color:var(--ink);box-shadow:0 15px 80px #372b2450}dialog::backdrop{background:#26201980}.dialog-top{padding:12px 19px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font-size:20px}#dialog-body{padding:17px 20px}.check{display:flex;align-items:center;gap:7px;margin:8px 0}.detail{margin:9px 0;padding:9px 12px;border:1px solid var(--line);border-radius:8px}.detail summary{cursor:pointer;font-weight:600}.detail p{margin:8px 0}.req-id{color:var(--gold);font-size:13px;display:inline-block;margin-inline-end:6px}#toast{position:fixed;bottom:18px;left:18px;background:#332b1e;color:#fff;border-radius:8px;padding:9px 15px;z-index:10;display:none}.matrix{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;direction:ltr}.matrix button{padding:8px}.calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.calendar button{min-height:58px;text-align:start}.calendar small{display:block}.timeline .row{display:grid;grid-template-columns:minmax(135px,1fr) 2.4fr 100px}.slot{height:21px;background:repeating-linear-gradient(to left,#f3ede1 0%,#f3ede1 13.9%,#e5dcc9 14.3%);border-radius:4px}.slot span{display:block;height:100%;background:#ac8b3b;border-radius:4px}.empty{padding:20px;color:var(--muted);text-align:center}.source{color:var(--muted);font-size:14px}.numbers{font-variant-numeric:tabular-nums}.switch{max-width:100%}
@media(max-width:1100px){aside{width:205px}.workspace{margin-right:205px}main,header{padding-inline:18px}.grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:780px){aside{display:none;width:235px;box-shadow:0 0 35px #24190033}body.menu aside{display:flex}.workspace{margin-right:0}#menu{display:block}header{padding:8px 12px;justify-content:flex-start}.breadcrumb{display:none}.tools{margin-inline-start:auto}.tools label{font-size:12px}.tools select{font-size:13px;padding:5px}main{padding:16px 12px}.hero{padding:21px 16px}.hero img{width:76px}.grid,.grid.two,.grid.three,.kanban{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.two{grid-template-columns:1fr}.calendar small{display:none}}@media(max-width:420px){.hero img{display:none}.timeline .row{grid-template-columns:1fr 1fr}.timeline .row small{grid-column:1/-1}.grid.three{grid-template-columns:1fr}}
@media print{aside,header,footer,.actions,.tabs,#toast,main>details{display:none!important}.workspace{margin:0}main{padding:0}.card{break-inside:avoid}body{background:white}}
.stage-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:10px;margin:12px 0}.stage-step{display:flex;flex-direction:column;gap:7px;text-align:start;transition:border-color .15s,background .15s;min-height:114px}.stage-step span{font-size:13px;color:var(--gold);font-weight:700}.stage-step b{line-height:1.35}.stage-step small{margin-top:auto}.stage-step:hover,.stage-step.selected{border-color:#9b7e2d;background:#f8efda}.stage-step.selected{box-shadow:inset 0 3px #957625}.card+.card{margin-top:12px}.grid>.card,.stage-grid>.card{margin-top:0}
body[data-brand=sana]{--ink:#171217;--muted:#65585c;--gold:#be1739;--red:#e61e46;--paper:#f7f4f5;--line:#eadce1;--accent:#be1739;--accent-bright:#e61e46;--accent-soft:#fbe9ed;--accent-text:#8d1430;--hero-end:#fbdbe3}
body[data-brand=rakeen]{--ink:#1b1b1c;--muted:#695b4d;--gold:#795c22;--red:#4d362f;--paper:#efedeb;--line:#ded7cf;--accent:#69501e;--accent-bright:#9c8036;--accent-soft:#ede5d4;--accent-text:#604619;--hero-end:#eae2d2}
body[data-brand]:not([data-brand=joint]):before,body[data-brand]:not([data-brand=joint]) .hero:before{background:linear-gradient(90deg,var(--accent),var(--accent-bright))}
body[data-brand]:not([data-brand=joint]) .hero{background:linear-gradient(110deg,var(--hero-end),#fff 80%);border-color:var(--line)}
body[data-brand]:not([data-brand=joint]) :is(nav a.active,nav a:hover,.stage-step.selected,.stage-step:hover,.notice){background:var(--accent-soft);color:var(--accent-text)}
body[data-brand]:not([data-brand=joint]) :is(.primary,.tab.active){background:var(--accent);border-color:var(--accent);color:#fff}
body[data-brand]:not([data-brand=joint]) :is(.eyebrow,.ghost,.stat strong){color:var(--accent-text)}
body[data-brand]:not([data-brand=joint]) .bar span{background:linear-gradient(90deg,var(--accent-bright),var(--accent))}
body[data-brand]:not([data-brand=joint]) .stage-step.selected{box-shadow:inset 0 3px var(--accent);border-color:var(--accent)}
body[data-brand=rakeen] .aside-foot{background:#1b1b1c;color:#f5efe3}
.company-actions{padding:5px 0}.company-actions span{font-size:14px;color:var(--muted)}
@media(min-width:1101px){.kanban{grid-template-columns:repeat(3,minmax(0,1fr))}}
.stage-tasks .section-title h2{margin-bottom:3px}.stage-tasks .table button.primary{white-space:nowrap}.stage-group{margin:16px 0 6px;font-size:17px}.stage-tasks .filter-group{margin-top:15px}
.scope-card{display:grid;gap:8px;text-align:start;width:100%}.scope-card strong{font-size:18px}.scope-card span{font-size:14px;color:var(--muted)}.scope-card:hover{background:var(--accent-soft,#f6efdf)}
.extension-table td:nth-child(4),.extension-table td:nth-child(5){white-space:normal;min-width:210px}.stage-tasks .table td:last-child button{white-space:normal}
.scope-phase{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:10px}.scope-phase h3,.scope-phase p{margin:0 0 6px}.scope-phase .section-title{align-items:baseline}
.report-filters{gap:12px;align-items:end}.report-filters>label{display:grid;gap:6px;font-size:14px;margin:0}.report-chart-row{display:grid;grid-template-columns:minmax(110px,1fr) minmax(60px,2fr) 32px;align-items:center;gap:12px;padding:8px 0}.report-chart-row b{text-align:end}.report-kpi:hover{background:var(--accent-soft,#faf5e6)}.table td .bar{margin-top:4px;min-width:74px}
@media print{#report-filters,.report-kpi[data-action]{cursor:default}#report-filters{display:none}}
.bell{position:relative}.bell sup{position:absolute;top:-2px;inset-inline-end:1px;background:var(--red);border-radius:999px;color:#fff;min-width:16px;text-align:center;font-size:11px;padding:0 2px}.field textarea{width:100%}#ticket-form fieldset{border:1px solid var(--line);border-radius:8px;margin:12px 0;padding:8px 12px}
[hidden]{display:none!important}
.login-screen{position:relative;display:grid;grid-template-columns:minmax(0,1.14fr) minmax(0,1fr);min-height:100svh;background:#f6f4ef}
.login-brand-panel{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:clamp(35px,6vh,74px);padding:clamp(28px,6.5vw,110px);background:radial-gradient(ellipse at 12% 86%,#544225,#27231b 55%,#201e19);color:#faf5e7}
.login-brand-panel:after{content:"";position:absolute;z-index:-1;inset:0;background:repeating-conic-gradient(from 12deg at 0% 100%,#d1b16f2e 0deg .6deg,transparent 1deg 10deg);mask-image:radial-gradient(ellipse at 0% 100%,#000,transparent 74%)}
.login-wordmarks{display:grid;grid-template-columns:1fr 1fr;gap:0;width:min(100%,510px)}
.login-wordmark{display:grid;place-items:center;min-width:0;height:clamp(78px,9vw,126px);padding:0 16px}
.login-wordmark-sana{border-inline-end:1px solid #b89a5f66;padding-inline-start:0}
.login-wordmark img{display:block;width:100%;height:100%;object-fit:contain;min-height:0}
.login-wordmark-rakeen img{max-width:155px}
.login-brand-copy{max-width:600px}
.login-season{margin:0 0 12px;color:#e4c47c;font-weight:700;font-size:16px;display:flex;align-items:center;gap:10px}
.login-season:before{content:"";width:24px;height:2px;background:#d9b968}
.login-brand-panel h1{font-size:clamp(49px,6.1vw,89px);line-height:1.08;letter-spacing:-.055em;margin:0;color:#fffbf1}
.login-description{max-width:390px;color:#e4dac3;font-size:17px;margin:20px 0 0;line-height:1.8}
.login-form-panel{display:grid;place-items:center;padding:36px clamp(20px,5.6vw,88px)}
.login-card{width:min(100%,410px);padding:clamp(12px,2vw,20px) 0}
.login-kicker{font-size:14px;font-weight:700;letter-spacing:.01em;color:#8f2340;margin:0 0 7px}
.login-card h2{font-size:clamp(32px,4.5vw,43px);line-height:1.2;margin:0}
.login-intro{color:var(--muted);margin:9px 0 23px}
.login-card .field{margin:15px 0;font-weight:600}
.login-card :is(select,input){min-height:50px;width:100%;background:#fcfaf5;border-color:#ded5c7}
.login-card button.primary{width:100%;min-height:49px;margin-top:9px;font-weight:700;background:#2e281d;border-color:#2e281d}
.login-card button.primary:hover{background:#574322;border-color:#574322}
.login-help{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:20px 0 0;padding-top:15px;border-top:1px solid #ebe5da;color:var(--muted);font-size:14px}
.login-help bdi{display:inline-block;min-width:22px;border-radius:5px;background:#f2e9d5;color:#574322;text-align:center;font-weight:700}
.login-credit{position:absolute;bottom:0;left:0;display:flex;align-items:center;gap:8px;padding:16px 24px;color:#635747;font-size:14px}.login-heart{color:#bd1539;font-size:24px;line-height:1}
.login-error{font-size:14px;color:#a51b37;margin:0}
.tools #account-switch{font-size:13px}
@media(max-width:780px){
 .login-screen{grid-template-columns:1fr}
 .login-brand-panel{padding:24px clamp(16px,6vw,35px) 28px;gap:20px}
 .login-wordmarks{max-width:420px}
 .login-wordmark{height:clamp(69px,19vw,92px);padding:4px 10px}
 .login-wordmark-rakeen img{max-width:118px}
 .login-season{font-size:14px;margin-bottom:6px}
 .login-brand-panel h1{font-size:clamp(29px,8.2vw,48px);letter-spacing:-.035em}
 .login-brand-panel h1 br{display:none}
 .login-description{font-size:14px;margin-top:9px;line-height:1.6}
 .login-form-panel{padding:23px clamp(22px,8vw,46px) 66px;align-items:start}
 .login-credit{padding:12px 16px}
 .login-card .field{margin:12px 0}
 .tools #account-switch{max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
