/* Najaf Ops V3 — premium RTL application design system */
:root{
  --navy:#0d1c31;--navy2:#142943;--primary:#315fc9;--primary2:#234caa;
  --aqua:#159c91;--paper:#f5f7fa;--ink:#14243b;--muted:#77859a;
  --line:#e6eaf1;--card:#fff;--shadow:0 9px 36px rgba(17,38,66,.045);--radius:20px
}
body{background:#f4f6fa;color:#1c2d45;font-feature-settings:'lnum' 1,'tnum' 1;}
.login-art{background:radial-gradient(circle at 85% 8%,rgba(83,125,195,.2),transparent 42%),radial-gradient(circle at 8% 85%,rgba(18,168,161,.17),transparent 50%),linear-gradient(145deg,#112c49,#091628 76%)}
.art-center h1{letter-spacing:-1.9px;line-height:1.26}.art-center em{color:#b8e7df}.art-mark,.brand-mark{background:linear-gradient(155deg,#3e78e5,#19478f);box-shadow:0 12px 28px #1e4b8e2b;border-radius:17px}
.login-card{padding:34px 30px;border:1px solid #e8ebf2;border-radius:25px;box-shadow:0 22px 70px #0a2c5410;background:#fff}.login-card h2{font-size:40px}
.login-panel{background:#f9fafc}
.sidebar{width:282px;padding:32px 18px 23px;background:radial-gradient(circle at 0 0,rgba(78,129,188,.15),transparent 50%),linear-gradient(180deg,#132944,#0d1c30 64%,#0c1a2c);border-left:1px solid #2d4360}
.sidebar-logo{padding:3px 9px 26px;margin-bottom:4px;border-color:#ffffff17}.sidebar-logo strong{font-size:20px}.sidebar-logo small{font-size:11px;color:#9aaec6}.sidebar-logo .brand-mark{width:47px;height:47px;border-radius:15px}
.side-caption{font-size:10px;letter-spacing:.3px;color:#92a8c2;padding:27px 13px 10px}.side-caption-groups{margin-top:10px;border-top:1px solid #ffffff13}
.side-nav{gap:7px}.nav-item{width:100%;padding:14px 16px;min-height:49px;text-align:right;border-radius:14px;font-size:12.5px;font-weight:800;color:#b7c6d9;position:relative}.nav-item .icon{width:20px;height:20px;stroke-width:1.8}.nav-item:hover{background:#ffffff13}.nav-item.active{color:#fff;background:#24466e;box-shadow:inset -3px 0 0 #a9dacf,0 9px 27px rgba(3,14,26,.18)}.nav-item.active:before{content:'';width:6px;height:6px;background:#90e9db;border-radius:50%;margin-left:0}.nav-dot{width:8px;height:8px;background:#f2bc7c}
.side-bottom{padding-top:10px}.side-security{border:1px solid #ffffff19;background:#ffffff08;border-radius:18px;padding:15px}.side-security b{color:#f0f6ff}.side-security span{color:#adc0d7}.side-logout{border-radius:12px;margin-top:8px;padding:13px 15px}.side-logout:hover{background:#ffffff10}
.app-main{background:#f5f7fb;min-height:100vh}.app-topbar{height:89px;background:rgba(255,255,255,.94);border-bottom:1px solid #e5e9f1;box-shadow:0 2px 15px rgba(23,42,72,.023)}
.crumb{font-size:10.5px;color:#95a0ae}.crumb b{color:#446baf}.top-greeting h1{font-size:25px;letter-spacing:-.4px}.top-search{border-radius:14px;background:#f5f7fb;border:1px solid #e9eef6;min-width:260px;min-height:43px}.top-notify{width:45px;height:45px;border-radius:14px;background:#f0f4fa}.user-avatar{background:#e3ecfd;color:#2e5ab3;border-radius:14px}
.content{max-width:1540px;padding-top:42px}.intro-row{margin-bottom:29px}.intro-row h2{font-size:clamp(26px,2.9vw,35px)}.intro-row p{font-size:12.5px}.eyebrow{color:#5174b0}
.today-box{background:#fff;border-radius:17px}.stat-grid{gap:13px;grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:38px}.stat-card{min-height:123px;padding:21px 18px;border-radius:18px;border:1px solid #e8edf4;box-shadow:0 7px 24px #18325708}.stat-card:after{width:0}.stat-card strong{font-size:35px;margin-top:11px;color:#1a2e4c;font-feature-settings:'lnum' 1,'tnum' 1}.stat-card small{font-size:10.5px;font-weight:750;color:#7f8da2}.stat-icon{height:46px;width:46px;border-radius:14px}
.section-head{margin-bottom:17px}.section-head h3{font-size:23px}.section-kicker{color:#65809f;letter-spacing:.1px}.filter-row{margin-bottom:22px;gap:8px}.pill{border-radius:12px;padding:9px 16px;background:#fff;color:#77879d}.pill.active{background:#1c3657;border-color:#1c3657;color:#fff}
.card-stack{gap:12px}.work-card{border:1px solid #e7ebf2;border-radius:19px;box-shadow:0 7px 27px rgba(25,44,72,.035);padding:22px 23px;transition:box-shadow .18s,border .18s,transform .18s;gap:20px}.work-card:hover{transform:translateY(-2px);border-color:#cdd8e5;box-shadow:0 12px 34px rgba(25,44,72,.075)}.work-title{font-size:15.5px;margin:4px 0}.work-desc{font-size:12px;color:#7b899e}.work-meta{margin-top:12px;color:#74859b;font-size:11px}.work-code{font-size:11px;letter-spacing:.5px;color:#607ca6}
.badge{border-radius:10px;padding:4px 11px;font-size:10.5px}.badge.review{background:#eee8ff;color:#754eb5}.badge.success{background:#e4f8ee;color:#18815b}.badge.warning{background:#fff3dd;color:#ac7413}.badge.danger{background:#fff0ed;color:#b34f42}
.work-actions{min-width:154px}.mini-btn{padding:11px 17px;background:#edf2fb;border-color:#e4eaf3;border-radius:12px;color:#315a9b;white-space:nowrap}.mini-btn:hover{background:#e3ecfc}
.progress-container{margin-top:15px;max-width:490px}.progress-caption{display:flex;align-items:center;justify-content:space-between;color:#8493a7;font-size:10.5px;font-weight:700;margin:0 0 8px}.progress-caption b{font-size:12px;color:#244774}.progress-track{height:7px;border-radius:99px;background:#e8ecf4;overflow:hidden;direction:rtl}.progress-track i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#3160d0,#17a6a0);transition:width .3s}.review-needed{border-right:3px solid #9075c8}
.review-inbox{background:#fff;border:1px solid #e2e6ef;border-radius:21px;padding:23px 25px;margin:0 0 35px;box-shadow:var(--shadow)}.review-inbox-title{display:flex;align-items:center;justify-content:space-between}.review-inbox-title h3{margin:5px 0;font:900 23px Tajawal,sans-serif}.review-inbox-title p{font-size:11px;color:#7a8ba2;margin:0}.review-count{display:grid;place-items:center;border-radius:14px;background:#e9e3fc;color:#7151b1;font:900 23px Tajawal,sans-serif;width:48px;height:48px}.review-inbox-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:18px}.review-quick-item{border:1px solid #eaebf5;border-radius:14px;padding:13px 14px;background:#f8f9fd;text-align:right;color:#243954}.review-quick-item:hover{background:#f2f0fd;border-color:#dcd5f4}.review-quick-item b{font-size:12px;display:block}.review-quick-item span{font-size:10px;color:#7e8ca1;display:block;margin-top:6px}
.unit-card{border-radius:19px;border:1px solid #e9edf5;box-shadow:0 7px 24px rgba(19,46,72,.04)}.unit-card h4{font-size:18px}.unit-badge{border-radius:13px}
.modal-box{width:min(100%,760px);max-height:min(91vh,940px);border-radius:24px;padding:28px 30px 32px}.modal-head{padding-bottom:19px;margin-bottom:22px}.modal-head h3{font-size:27px}.form-field input,.form-field textarea,.form-field select{background:#f9fbfd;border-radius:13px;min-height:45px}.form-field textarea{min-height:110px}.form-field label{font-size:12px}.form-actions{margin-top:23px}.button.primary{background:linear-gradient(125deg,#315fca,#21498d);box-shadow:0 9px 22px #194a961e}
.task-stage-rail{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:20px}.stage{display:flex;align-items:center;gap:7px;background:#f4f6fa;border-radius:12px;padding:10px 8px;color:#8b97a8;font-size:10.5px}.stage span{display:grid;place-items:center;width:21px;height:21px;border-radius:8px;background:#e6ebf2;color:#7f8da1;font-family:Arial;font-size:11px;font-weight:800;flex:none}.stage b{font-weight:750}.stage.reached{background:#eaf1fd;color:#2458a1}.stage.reached span{background:#3567be;color:#fff}
.task-summary-box{border:1px solid #e6ecf4;background:#f9fafc;border-radius:18px;padding:20px;margin:12px 0 18px}.task-summary-box h4{font:900 20px Tajawal,sans-serif;margin:0 0 7px}.task-summary-box p{font-size:12px;color:#62758d;margin:0 0 14px;line-height:2;white-space:pre-wrap}.task-summary-meta{display:flex;flex-wrap:wrap;gap:14px;color:#718399;font-size:11px;margin-bottom:15px}.task-summary-meta svg{width:15px;height:15px}
.submit-evidence-panel{border:1px solid #d9e5f2;background:#f9fbff;border-radius:20px;padding:21px;margin:24px 0}.submit-evidence-panel h4{font:900 21px Tajawal;margin:7px 0}.submit-evidence-panel p{font-size:11px;color:#73869e;margin:0 0 20px}.photo-hint{font-size:11px;margin-top:8px;color:#617b9c}.review-notice{padding:17px 20px;border:1px solid #e6def4;background:#f7f4fc;border-radius:17px;margin:17px 0;color:#6d539a}.review-notice b{display:block;font-size:14px}.review-notice p{margin:6px 0 0;font-size:12px}.review-notice.approved{background:#effaf4;border-color:#d9efe1;color:#21774d}.review-notice.rejected{background:#fff6ef;border-color:#f2dfcb;color:#9e6429}
.decision-picker{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0}.decision-picker label{cursor:pointer}.decision-picker input{position:absolute;opacity:0}.decision-picker span{display:flex;gap:10px;align-items:center;background:#f8fafd;border:1px solid #e3eaf3;border-radius:13px;padding:13px 15px;font-weight:800;font-size:12px}.decision-picker input:checked+span{background:#eaf1fd;color:#2654a1;border-color:#b5c9e9}.decision-picker input:focus-visible+span{outline:3px solid #8cc8ff}
.evidence-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.evidence-grid a{display:block;border:1px solid #e3e8f0;border-radius:16px;padding:6px;background:#fff;overflow:hidden}.evidence-grid img{height:126px;width:100%;object-fit:cover;border-radius:11px}.evidence-grid span{display:block;padding:9px 6px;font-size:10px;color:#6e8096;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.work-timeline{border-right:2px solid #e7ecf4;padding:2px 19px 0 0;margin-right:8px}.timeline-item{position:relative;padding:0 8px 15px 0;margin-bottom:7px}.timeline-item>i{position:absolute;right:-26px;top:10px;width:12px;height:12px;background:#5681bf;border:3px solid #e1ecfc;border-radius:50%}.timeline-item b{font-size:12px;color:#34506d}.timeline-item time{font-size:10px;color:#8e9bad;margin-right:10px}.timeline-item p{font-size:12px;color:#62758b;white-space:pre-wrap;margin:6px 0 0}
@media(max-width:1260px){.sidebar{width:248px}.stat-card{padding-inline:14px}.stat-icon{width:40px;height:40px}.stat-card strong{font-size:31px}}
@media(max-width:1050px){.stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.review-inbox-items{grid-template-columns:1fr 1fr}}
@media(max-width:950px){.sidebar{width:76px;padding-inline:10px}.sidebar-logo .brand-mark{width:46px}.sidebar-logo>div:last-child{display:none}.side-caption{font-size:0;padding:12px 0}.side-caption-groups{margin-top:10px}.nav-item{font-size:0;justify-content:center;padding:13px 4px}.nav-item.active:before{display:none}.side-nav{gap:8px}}
@media(max-width:700px){.content{padding-top:26px}.app-topbar{height:76px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-card{min-height:95px;padding:15px}.stat-card strong{font-size:30px}.stat-card small{font-size:10px}.stat-icon{height:35px;width:35px}.review-inbox{padding:18px;margin-bottom:26px}.review-inbox-title h3{font-size:20px}.review-inbox-items{grid-template-columns:1fr}.work-card{padding:16px;border-radius:16px}.work-title{font-size:14px}.progress-container{margin-top:13px}.bottom-nav{border-radius:20px 20px 0 0;background:#fff;padding-bottom:max(7px,env(safe-area-inset-bottom))}.bottom-nav button.active{color:#204b97;background:#eaf0fb}.modal-box{padding:21px 16px 30px;max-height:95dvh}.task-stage-rail{gap:5px}.stage{display:block;text-align:center;padding:8px 3px;font-size:9px}.stage span{margin:auto auto 4px}.task-summary-box{padding:16px}.decision-picker{grid-template-columns:1fr 1fr;gap:8px}.decision-picker span{font-size:11px;padding:10px}.evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.evidence-grid img{height:112px}}
@media(max-width:700px){.top-search{min-width:0;width:42px;height:42px;flex:none;justify-content:center;padding:8px}.top-search span,.top-search kbd{display:none}.top-greeting,.top-actions{min-width:0}.top-greeting h1{font-size:19px}.app-topbar{gap:7px}}

/* V4: purposeful app interface, unchanged navy/blue palette */
.login-art .art-center h1{font-size:clamp(48px,4.5vw,76px);line-height:1.17}
.login-art .art-center p{max-width:380px;font-size:13px}
.login-panel .login-card>p{font-size:12px;line-height:1.8}
.login-hint{font-size:10.5px}
.work-desc{-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
.security-layout{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin:22px 0}
.security-panel{background:#fff;border:1px solid #e5ebf4;border-radius:20px;padding:20px;margin:0 0 18px;box-shadow:0 8px 24px rgba(15,44,77,.035);min-width:0}
.security-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px;flex-wrap:wrap}
.security-panel-head h4{font-size:17px;color:#22354e;margin:0;font-weight:900}
.security-list{display:flex;flex-direction:column;gap:9px;max-height:475px;overflow:auto}
.security-row{padding:13px 14px;border:1px solid #eaf0f7;background:#fafcff;border-radius:13px;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.security-row strong{display:block;font-size:12px;color:#28435f;overflow-wrap:anywhere}
.security-row small{display:block;color:#7d90a6;font-size:10.5px;margin-top:4px;overflow-wrap:anywhere}
.security-row button{flex:none}
.security-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}
.security-stats .stat-card{min-height:95px}
.security-revoke{width:100%;margin-top:13px}
.security-panel .empty{min-height:90px}
@media(max-width:850px){.security-layout{grid-template-columns:1fr}}
@media(max-width:700px){.security-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.security-panel{padding:14px}.security-row{padding:11px}.security-panel-head h4{font-size:15px}}

@media(max-width:700px){.bottom-nav button{min-width:0;flex:1;padding:7px 2px}.bottom-nav{gap:2px}.bottom-nav button span{font-size:9px}.bottom-nav button .icon{height:19px;width:19px}}

/* Ensure hidden data views and administrator-only controls never occupy layout space. */
[hidden]{display:none!important}
