:root{font-family:system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif;background:#f5f7fb;color:#162842;font-size:15px;line-height:1.65}
*{box-sizing:border-box}body{margin:0}a{text-decoration:none;color:inherit}button,input,select,textarea{font:inherit}a,button{cursor:pointer}
.header{background:#112b46;color:#fff;padding:14px max(20px,calc((100vw - 1220px)/2));display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;box-shadow:0 4px 20px #10263d15}.brand{display:flex;align-items:center;gap:10px}.brand-mark,.large-logo{background:#d6b56b;color:#0e2842;border-radius:11px;padding:7px 11px;font-weight:900;letter-spacing:1px}.brand b{display:block;font-size:16px;line-height:1.3;letter-spacing:.5px}.brand small{display:block;color:#cad7e3;font-size:12px}.header nav{display:flex;gap:8px;flex-wrap:wrap}.header nav a{padding:8px 11px;border-radius:8px;color:#e4ecf5}.header nav a:hover{background:#244661}.who{display:flex;gap:12px;align-items:center;font-size:12px;color:#d4e0ee}.who form{margin:0}.linklike{border:1px solid #53718a;border-radius:8px;color:#fff;background:none;padding:5px 10px}
.container{width:min(1180px,calc(100% - 32px));margin:26px auto 65px}.footer{text-align:center;color:#8c96a3;font-size:11px;padding:16px;border-top:1px solid #e4e9ef}.page-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px;flex-wrap:wrap}h1{font-size:27px;margin:0 0 6px}h2{font-size:17px;margin:0 0 14px}h3{font-size:16px;margin:8px 0}.page-title p{color:#6b7786;margin:0}.kicker{color:#a5823b;font-weight:bold;font-size:12px}.panel{background:#fff;border:1px solid #e5e9f0;box-shadow:0 8px 30px #233d5210;border-radius:16px;padding:22px;margin-bottom:18px}.panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.subtle,.hint{font-size:12px;color:#788595}.notice{margin-bottom:15px;padding:12px 15px;background:#eaf7ed;border:1px solid #bcd9c6;border-radius:10px;color:#155931}.error{background:#fff1ee;border:1px solid #f2c2b8;padding:12px 15px;border-radius:10px;color:#8e3029;margin:10px 0}.btn{display:inline-block;border:0;border-radius:9px;padding:10px 18px;font-weight:700;text-align:center;white-space:normal}.btn.primary{background:#163e62;color:white}.btn.primary:hover{background:#245679}.btn.secondary{background:#eaf0f6;color:#1c4162}.btn.small{font-size:12px;padding:7px 11px}.btn.warn{background:#fff0df;color:#9c4b08}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.stack{display:flex;flex-direction:column;gap:14px}.stack h2{margin-top:10px;margin-bottom:0}.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}label{font-weight:650;font-size:13px;display:block}label input,label select,label textarea,.search input{width:100%;margin-top:5px;border:1px solid #cad4df;border-radius:8px;background:#fff;color:#162842;outline:none;padding:10px 12px}input:focus,select:focus,textarea:focus{border-color:#5688af;box-shadow:0 0 0 3px #d9e9f8}textarea{resize:vertical}.form-wide{max-width:860px}.login-box{max-width:440px;background:white;border-radius:18px;border:1px solid #e1e7ec;padding:36px;margin:10vh auto}.login-box .center{margin-bottom:25px}.large-logo{display:inline-block;font-size:22px}.center{text-align:center}.narrow{max-width:540px;margin:0 auto}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:13px}.task-card{display:block;border:1px solid #e0e6ed;border-radius:12px;padding:16px;background:white;transition:box-shadow .15s,transform .15s}.task-card:hover{box-shadow:0 8px 24px #233d5220;transform:translateY(-2px)}.card-top,.card-foot{display:flex;justify-content:space-between;gap:8px;align-items:center}.card-top strong{direction:ltr;font-size:12px}.task-card h3{margin:12px 0 5px}.task-card p{margin:0 0 18px;color:#6c7a88}.card-foot{font-size:12px;color:#718297}.pill{font-size:11px;background:#eaf2f9;color:#215174;padding:4px 8px;border-radius:100px}.empty{text-align:center;padding:55px 12px;color:#748090}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:18px}.stat{background:white;border-radius:12px;border:1px solid #e5e9f0;padding:17px}.stat strong{font-size:27px;display:block}.stat span{font-size:12px;color:#778493}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;min-width:590px}th,td{text-align:right;border-bottom:1px solid #edf0f4;padding:11px 10px}th{font-size:12px;color:#617081;background:#f7f9fc}td{font-size:13px}code{font-size:12px;white-space:nowrap;color:#19547a}.search{display:flex;gap:10px;align-items:end;margin-bottom:15px}.search input{margin:0}.task-head{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}.data-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.data-grid>div{background:#f8fafc;padding:11px;border:1px solid #e7edf2;border-radius:9px}.data-grid small{display:block;color:#7c8797}.data-grid strong{font-weight:650;overflow-wrap:anywhere}.timeline{margin:0;padding:0;list-style:none}.timeline li{padding:10px 14px;border-right:3px solid #b8c9d8;margin:0 4px 10px 0;background:#f8fafc;border-radius:8px}.timeline .when{font-size:11px;color:#748294}.timeline b{display:block}.timeline p{margin:0;white-space:pre-wrap;color:#5c6f83}.section-rule{border:0;border-top:1px solid #e9edf2;margin:25px 0}.prose{white-space:pre-wrap;line-height:1.85}.doc-row{display:flex;justify-content:space-between;padding:9px;border-bottom:1px solid #f0f2f5}.doc-row a{color:#1b5f91}.quote-sheet{max-width:840px;margin:auto;background:white;padding:38px;border-radius:14px;border:1px solid #e4eaf0}.quote-sheet h1{font-size:20px}.quote-ref{direction:ltr;font-size:19px;font-weight:800}.quote-ref small{display:block;font-size:12px;color:#7a8792}.price-box{padding:20px;background:#f0f5fa;border-radius:12px;display:flex;justify-content:space-between;gap:8px;align-items:center;margin:30px 0}.price-box strong{font-size:24px}.tight{margin:0}.warn-text{color:#9b5416}.audit{margin-top:20px}.sep{margin:20px 0;border-top:1px solid #e9edf2}.muted{color:#82909e}
@media(max-width:700px){.container{width:calc(100% - 20px);margin-top:15px}.header{padding:12px}.header nav{order:3;width:100%;overflow:auto;white-space:nowrap;flex-wrap:nowrap}.panel{padding:16px}.grid2,.grid3,.grid4,.stats{grid-template-columns:1fr}.data-grid{grid-template-columns:1fr 1fr}h1{font-size:23px}.quote-sheet{padding:20px}}
@media print{.header,.footer,.print-hide,.notice{display:none!important}.container{width:100%;margin:0}.quote-sheet{border:0;padding:0;max-width:none}}
/* V2 — calm Urban Crown identity: charcoal, antique gold, off-white. */
:root {background:#f7f7f5;color:#222a31;font-family:Tahoma,"Segoe UI",Arial,sans-serif;}
body{background:#f7f7f5;color:#252b31;}
.header{background:#263039;box-shadow:0 3px 18px #101b2016;padding-top:10px;padding-bottom:10px;}
.brand{gap:12px}.brand-image{width:50px;height:50px;object-fit:contain;background:#fff;border-radius:9px;border:1px solid #dfdacd;padding:3px}.brand b{letter-spacing:.8px;color:#fff}.brand small{color:#dbd1bb}
.header nav a{color:#e5e5e1}.header nav a:hover{background:#43505a}.linklike{border-color:#69737a}
.container{max-width:1120px}.kicker{color:#997641}.page-title p{color:#77808a}
.panel,.stat,.task-card{box-shadow:0 3px 20px #121b2307;border:1px solid #e8e7e3;background:#fff}
.panel{border-radius:13px;padding:23px}.stat,.task-card{border-radius:11px}
h1{font-size:26px;letter-spacing:-.4px}h2{font-size:17px}.btn{border-radius:8px}.btn.primary{background:#303d43;color:#fff}.btn.primary:hover{background:#45555c}.btn.secondary{background:#f0ede7;color:#5a4e40}.btn.warn{background:#fbf0e7;color:#995a35}
label input,label select,label textarea,.search input{border-color:#d8d9d9;border-radius:8px;background:#fff}.pill{background:#f1ede4;color:#866339;border-radius:7px;padding:5px 9px;font-size:11px}
.btn:focus-visible,a:focus-visible{outline:3px solid #bdab87;outline-offset:2px}
.stat span,.hint,.subtle{color:#7c858b}.soft-note{padding:13px 14px;background:#f8f6f1;color:#665d4b;border:1px solid #ebe4d7;border-radius:9px;font-size:13px}
.form-wide{max-width:980px}.clean-form{gap:16px}.clean-form h2{margin:0}.section-heading{display:flex;align-items:center;gap:12px}.section-heading .hint{margin:0}.section-gap{margin-top:12px;border-top:1px solid #eeece8;padding-top:20px}.step-no{display:grid;place-items:center;min-width:35px;height:35px;border-radius:10px;background:#eee8db;color:#8d6b3c;font-weight:900;direction:ltr}
.mode-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}.mode-choice{cursor:pointer}.mode-choice input{position:absolute;opacity:0;width:1px;height:1px}.mode-choice span{display:flex;flex-direction:column;border-radius:10px;border:1px solid #deded8;padding:16px 18px;background:#fff;min-height:80px}.mode-choice small{color:#7d8589;font-weight:normal}.mode-choice input:checked+span{border-color:#aa8956;background:#fbf8f0;box-shadow:inset 0 0 0 1px #aa8956}.mode-choice input:focus-visible+span{outline:3px solid #b9a77b}.mode-panel{display:flex;flex-direction:column;gap:12px}.mode-panel[hidden]{display:none!important}.form-footer{border-top:1px solid #eeece8;padding-top:18px;align-items:center}.form-footer .btn{min-width:220px}
.progress-track{display:flex;gap:4px;overflow-x:auto;justify-content:space-between;padding:8px 3px 18px;margin:3px 0 10px}.progress-step{display:flex;flex-direction:column;align-items:center;gap:6px;flex:1;min-width:77px;color:#a3a9ad;font-size:11px;font-weight:600}.progress-step i{width:30px;height:30px;display:grid;place-items:center;border:1px solid #dfe1e0;border-radius:50%;font-style:normal;background:#fff;color:#a4a8a9}.progress-step.completed{color:#78603a}.progress-step.completed i{background:#ae8c56;color:white;border-color:#ae8c56}
.stats.cost-stats{grid-template-columns:repeat(5,minmax(0,1fr));margin-top:14px}.cost-stats .stat strong{font-size:19px}.payment-edit{margin-top:18px;padding:12px;border:1px dashed #d8d2c7;border-radius:8px}.payment-edit summary{cursor:pointer;color:#5f5545;font-weight:650}.payment-edit form{margin-top:14px}
@media(max-width:700px){.mode-cards{grid-template-columns:1fr}.progress-step{min-width:65px}.stats.cost-stats{grid-template-columns:repeat(2,1fr)}.container{width:calc(100% - 20px)}.panel{padding:17px}}

/* V3 — six role-specific workspaces. */
.role-welcome{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px;background:#fff;border:1px solid #e8e6e0;border-radius:14px;padding:24px 28px}
.role-welcome h1{margin:5px 0 7px}.role-welcome p{color:#69747e;margin:0;font-size:13px;line-height:1.8;max-width:680px}
.role-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:0 0 20px}
.role-metric{padding:22px;background:#fff;border:1px solid #e8e6e0;border-radius:12px;min-height:90px}
.role-metric strong{font-size:29px;display:block;direction:ltr;text-align:right;line-height:1.2;color:#28353c}
.role-metric span{display:block;font-size:12px;color:#777f83;margin-top:9px}
.role-task-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(265px,1fr));gap:12px}
.role-task{display:block;padding:18px;border:1px solid #e8e5de;border-radius:10px;background:#fff;margin-bottom:9px}
.role-task:hover{background:#fcfaf6;border-color:#c7b78e}
.role-task-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ref-code{direction:ltr;color:#8c795a;font-size:12px;font-weight:bold}.role-task-name{font-weight:700;margin:12px 0 6px;font-size:15px}.role-task-meta{font-size:12px;color:#78828a}
.role-open{display:inline-block;font-size:12px;color:#876e46;margin-top:13px;font-weight:bold}
.role-empty{padding:30px 10px;text-align:center;color:#8d9296;font-size:14px}
.role-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:13px 0}
.role-summary>div{border:1px solid #edeae4;background:#fafaf8;border-radius:9px;padding:12px;overflow-wrap:anywhere}
.role-summary small{display:block;font-size:12px;color:#828a90;margin-bottom:7px}.role-summary strong{font-size:15px}
.status-pill{padding:9px 13px}.role-nav{gap:4px!important}.role-title{margin-top:8px}
.pending-panel{border-right:4px solid #b69b70}
@media(max-width:700px){.role-welcome{padding:20px;display:block}.role-welcome .btn{margin-top:15px}.role-metrics{grid-template-columns:repeat(2,1fr)}.role-metric{padding:14px}.role-task-list{grid-template-columns:1fr}}

/* V4 official letterhead identity: ultramarine / white / calm silver. */
:root{--uc-blue:#0b44a1;--uc-blue-dark:#102c60;--uc-blue-light:#ecf3fd}
body{background:#f5f7fa;color:#233046}
.header{background:var(--uc-blue-dark)}.header nav a{color:#e7edfb}.header nav a:hover{background:#214779}
.brand-image{width:152px;max-width:34vw;height:48px;object-fit:contain;background:white;padding:4px;border-radius:6px}.brand small{color:#d7e5f8}
.btn.primary{background:var(--uc-blue)}.btn.primary:hover{background:#0c3681}.btn.secondary{background:#eaf1fb;color:#164487}
.kicker,.role-open{color:var(--uc-blue)}.pill{background:#ecf2fc;color:#1c4b91}
.mode-choice input:checked+span{background:#f2f7ff;border-color:#2460ba;box-shadow:inset 0 0 0 1px #2460ba}
.role-metric strong{color:#153768}.role-welcome,.panel,.role-metric,.task-card{border-color:#e1e7ef;box-shadow:0 4px 18px #213e6508}
.pending-panel{border-inline-start:4px solid #184fb0;border-right:0}.soft-note{background:#f0f5fc;color:#294466;border-color:#dce8f7}
.language-links{display:inline-flex;gap:6px;padding:3px;border-radius:7px;background:#1c4078}.language-links a{font-size:12px;color:#eff6ff;padding:4px 7px}.language-links a[aria-current="page"]{background:white;border-radius:5px;color:#1c417c}
.language-bar{text-align:end;font-size:12px;color:#7a899d;margin-bottom:10px}.language-bar a{color:#0b44a1}
.login-box{margin:5vh auto}.login-logo{width:245px;height:82px;object-fit:contain;display:block;margin-bottom:15px}.credential-once{font-family:ui-monospace,monospace;letter-spacing:1px;overflow-wrap:anywhere}
[dir="ltr"]{direction:ltr;text-align:left}[dir="ltr"] th,[dir="ltr"] td{text-align:left}[dir="ltr"] .role-metric strong{text-align:left}
[dir="ltr"] .timeline li{border-right:0;border-left:3px solid #bfd0e9;margin:0 0 10px 4px}
[dir="ltr"] .ref-code{direction:ltr}[dir="ltr"] .card-foot{direction:ltr}
[dir="rtl"]{direction:rtl;text-align:right}[dir="rtl"] th,[dir="rtl"] td{text-align:right}
.quote-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.quote-head img{max-width:260px;max-height:95px;object-fit:contain}
.camera-entry{border-top:1px solid #e2e9f3;padding-top:20px;margin-top:20px}
.inline-actions{display:flex;gap:7px;flex-wrap:wrap}.inline-actions form{margin:0}
.doc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:8px}.doc-row{display:flex;flex-wrap:wrap;gap:4px;justify-content:space-between;align-items:center}
@media(max-width:850px){.header{flex-wrap:wrap}.brand-image{width:120px;height:42px}.who{flex-wrap:wrap}.quote-head img{width:180px}}
@media print{.language-bar,.language-links{display:none}.quote-head img{width:230px}}

/* V4.1 · Director's Desk. Deliberately simpler than the departmental workspaces. */
.director-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;background:linear-gradient(115deg,#0c2b60,#12438b);border-radius:15px;color:white;padding:27px 30px;margin-bottom:19px}
.director-eyebrow{display:block;font-size:11px;color:#c3d8fc;font-weight:750;letter-spacing:1.4px;margin-bottom:9px}
.director-hero h1{font-size:30px;line-height:1.25;margin:0 0 9px;color:white}
.director-hero p{margin:0;max-width:610px;font-size:13px;color:#d7e6ff;line-height:1.75}
.director-date{flex-shrink:0;display:flex;flex-direction:column;align-items:flex-end;border-left:1px solid #ffffff35;padding-left:22px;gap:3px}
.director-date span,.director-date small{font-size:11px;color:#c2d4ec}.director-date strong{font-size:15px;font-weight:700}
.director-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:19px}
.director-kpi{min-height:117px;border:1px solid #dfe6f1;border-radius:12px;background:#fff;padding:19px 20px;display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.director-kpi.important{border-color:#a9c1ec;background:#f7faff}.director-kpi span{color:#69778a;font-size:12px;font-weight:650}.director-kpi strong{font-weight:780;font-size:34px;color:#123d80;line-height:1.2}.director-kpi small{font-size:11px;color:#8993a2}
.director-two-col{display:grid;grid-template-columns:1.38fr 1fr;gap:16px;align-items:start}.director-panel{margin-bottom:16px;padding:22px}.director-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:17px}.director-section-head h2{font-size:17px;margin:4px 0 0;color:#26384f}.section-tag{font-size:10px;color:#285ba2;font-weight:800;letter-spacing:.8px}.count-circle{background:#e8f0fb;color:#1b4c98;border-radius:100px;display:grid;place-items:center;min-width:30px;height:30px;font-weight:800}.subtle-count{background:#f2f5f9;color:#65738b}
.director-decision{display:block;border:1px solid #dde7f3;border-radius:11px;padding:16px 17px;margin-bottom:10px;background:#fcfdff;transition:.15s}.director-decision:hover,.director-watch:hover,.director-jobline:hover{border-color:#89b4e7;background:#f6faff}.director-decision-top,.decision-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px}.director-decision-top{margin-bottom:9px}.decision-ref{font-size:11px;letter-spacing:.2px;color:#78889d;font-weight:700}.decision-type{font-size:10px;color:#235a99;background:#e9f2fc;border-radius:5px;padding:4px 7px;font-weight:800}.decision-type.risk{color:#9e6225;background:#fff2e0}.director-decision>strong{font-size:14px;color:#273a54;line-height:1.5}.director-muted{font-size:11px;color:#8a96a3;margin:3px 0 14px}.decision-bottom{border-top:1px solid #e9edf5;padding-top:12px;font-size:11px;color:#67778a}.decision-bottom b{font-size:14px;color:#193c71;white-space:nowrap}.director-empty{text-align:center;border:1px dashed #dbe2ed;border-radius:10px;padding:29px 13px;background:#fbfcfd}.director-empty strong{display:block;color:#40516a}.director-empty p{font-size:12px;color:#8590a1;margin:6px 0 0}.director-empty.compact{padding:22px 13px}.director-check{display:inline-grid;place-items:center;background:#e9f5ea;color:#32793b;width:36px;height:36px;border-radius:100px;font-size:22px;margin-bottom:9px}
.pulse-line,.manager-data-line{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid #edf0f5;padding:13px 0;font-size:12px;color:#66778e}.pulse-line strong{color:#173d7d;font-size:18px}.manager-data-line strong{font-size:12px;color:#243d60;text-align:end}.director-help{font-size:12px;line-height:1.8;color:#77879d;margin:16px 0 0}.director-watch,.director-jobline{display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid transparent;border-bottom-color:#e9edf3;padding:12px 4px}.director-watch div,.director-jobline span{display:flex;flex-direction:column;gap:3px;min-width:0}.director-watch b,.director-jobline b{font-size:12px;font-weight:700;line-height:1.5}.director-watch small,.director-jobline small{font-size:11px;color:#788798}.director-watch>span{font-size:11px;color:#1f5eaa;white-space:nowrap}.director-jobline em{font-style:normal;font-size:10px;background:#eef3fa;color:#4771a4;border-radius:6px;padding:5px 8px;white-space:nowrap}.director-rule{border:0;border-top:1px solid #e7ebf2;margin:18px 0}.director-more{background:white;border:1px solid #e4e9f1;border-radius:12px;padding:17px 22px;margin-bottom:20px}.director-more summary{font-weight:750;cursor:pointer;color:#2c466c}.director-more summary span{float:right;font-size:11px;color:#5c81b2}.director-more p,.director-caution{font-size:11px;color:#79879a;line-height:1.5}.director-finance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0}.director-finance>div{border:1px solid #e5eaf0;border-radius:10px;background:#f9fbfe;padding:15px}.director-finance small{display:block;color:#718098;font-size:11px;margin-bottom:7px}.director-finance b{font-size:16px;color:#173d7d}.director-back{display:inline-block;margin-bottom:15px;font-size:12px;color:#1c579e;font-weight:750}.director-status{min-width:190px;display:flex;flex-direction:column;gap:6px;background:#ffffff15;padding:14px 17px;border:1px solid #ffffff25;border-radius:10px}.director-status>span,.director-status small{color:#cde1fb;font-size:11px}.director-status strong{font-size:16px;color:white}.director-task-hero{align-items:flex-start}.director-scope{background:#f8fbff;border:1px solid #e5ecf6;border-radius:9px;padding:12px 14px;margin:16px 0}.director-scope summary{color:#254b85;font-size:12px;font-weight:750;cursor:pointer}.director-approve{margin-top:18px}.director-approve .btn{min-width:210px}.director-reject{margin-top:14px;padding-top:14px;border-top:1px solid #e8edf4;display:flex;flex-direction:column;gap:9px}.director-reject label{font-size:12px;color:#546681}.director-reject button{align-self:flex-start}
@media(max-width:960px){.director-two-col{grid-template-columns:1fr}.director-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.director-finance{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:590px){.director-hero{padding:20px;flex-direction:column;align-items:flex-start}.director-hero h1{font-size:25px}.director-date{align-items:flex-start;border-left:0;padding-left:0;border-top:1px solid #ffffff33;padding-top:9px;width:100%}.director-status{width:100%}.director-kpis{gap:8px}.director-kpi{min-height:104px;padding:14px}.director-kpi strong{font-size:29px}.director-panel{padding:16px}.director-finance{grid-template-columns:1fr}.decision-bottom{align-items:flex-start}.director-more{padding:15px}.director-two-col{gap:0}}
[dir="rtl"] .director-date{align-items:flex-start;border-left:0;border-right:1px solid #ffffff35;padding-left:0;padding-right:22px}[dir="rtl"] .director-more summary span{float:left}
[dir="rtl"] .director-reject button{align-self:flex-start}[dir="rtl"] .manager-data-line strong{text-align:left}
@media(max-width:590px){[dir="rtl"] .director-date{border-right:0;padding-right:0}}
/* V4.2 - Administration & HR, built for role-scoped information. */
.hr-hero{background:linear-gradient(115deg,#102f61,#1c5297);border-radius:14px;padding:27px 29px;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:25px;margin-bottom:18px}.hr-hero h1{font-size:27px;margin:6px 0;color:#fff}.hr-hero p{font-size:13px;line-height:1.75;color:#d7e6fa;max-width:660px}.hr-hero .btn{flex-shrink:0;background:white;color:#1b4584}.hr-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.hr-kpis>a{background:white;border:1px solid #dde6f3;border-radius:12px;padding:18px;min-width:0;display:flex;flex-direction:column;gap:3px}.hr-kpis a:hover,.hr-tiles a:hover{border-color:#a2bee5;background:#f9fbff}.hr-kpis small{font-size:11px;color:#687b93}.hr-kpis strong{font-size:32px;color:#163d80;line-height:1.25}.hr-kpis span{font-size:11px;color:#8290a1}.hr-panel{padding:23px}.hr-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:17px}.hr-heading h2{margin:4px 0;font-size:18px}.hr-heading>small{font-size:11px;color:#8796a5}.hr-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.hr-tiles a{border:1px solid #e1e8f1;border-radius:10px;background:#fff;padding:18px;display:flex;flex-direction:column;gap:9px;min-height:134px}.hr-tiles a b{font-size:15px;color:#244570}.hr-tiles a span{font-size:12px;color:#748398;line-height:1.6}.hr-tiles a em{font-size:11px;color:#2056a0;font-style:normal;margin-top:auto;font-weight:750}.hr-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);gap:17px;align-items:start}.hr-layout>.panel{min-width:0}.table-wrap{max-width:100%;overflow-x:auto}.table-wrap table{width:100%;min-width:520px;border-collapse:collapse}.table-wrap th,.table-wrap td{font-size:12px;padding:11px 9px;border-bottom:1px solid #e8edf5;vertical-align:top}.table-wrap th{color:#6683a3;font-size:11px;font-weight:750;white-space:nowrap}.table-wrap td small{display:block;font-size:10px;color:#8594a7;margin-top:3px;line-height:1.5}.table-wrap td b{font-weight:700}.hr-attendance{min-width:1180px!important}.hr-attendance input,.hr-attendance select{width:100%;min-width:87px;padding:7px;font-size:11px}.hr-attendance input[type=number]{min-width:67px;width:72px}.hr-attendance td:first-child{min-width:175px}.hr-state{display:block;color:#326399;font-weight:700}.inline-filter{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-bottom:17px}.inline-filter label{font-size:12px}.inline-filter input{display:block;margin-top:5px}.compact-forms{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:10px 0}.compact-forms form{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.compact-forms input{max-width:200px;font-size:11px}.compact-forms .btn{font-size:11px;padding:9px 12px}.hr-approval{padding:14px 0;border-bottom:1px solid #e9edf3}.hr-approval-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.hr-approval h3{font-size:15px;margin:10px 0 4px}.hr-approval>small{font-size:11px;color:#8390a1}.hr-alert{margin:13px 0;background:#eef5ff;border:1px solid #dce9fa;border-radius:10px;padding:14px}.hr-alert a{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px}.hr-alert b{color:#164886}.hr-alert span{font-size:12px;color:#657f9f}.director-admin-link{background:#eaf2ff;padding:15px 20px;border-radius:11px;border:1px solid #d6e4f7;margin-bottom:14px}.director-admin-link a{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap}.director-admin-link b{font-size:14px;color:#1d4a8a}.director-admin-link span{font-size:12px;color:#69809d}.director-admin-link strong{font-size:12px;color:#1c559c}.hr-pay-total{background:#f5f9ff;border:1px solid #e0eaf8;border-radius:9px;padding:17px;margin-bottom:16px;display:flex;align-items:center;justify-content:space-between;gap:15px}.hr-pay-total small{display:block;color:#7e90a5;font-size:11px}.hr-pay-total strong{font-size:25px;color:#163e83}.hr-pay-table{min-width:910px!important}.hr-adjust{display:flex;flex-direction:column;gap:4px}.hr-adjust input{min-width:125px;padding:6px;font-size:11px}.hr-adjust .btn{font-size:11px}.hr-expiring{color:#9d5e25;font-weight:750}.hr-renew{display:flex;gap:5px;align-items:center}.hr-renew input{width:132px}.hr-short{font-size:12px;color:#546780}.hr-pay-total>span{font-weight:700;color:#31547e}
@media(max-width:900px){.hr-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.hr-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.hr-layout{grid-template-columns:1fr}}@media(max-width:620px){.hr-hero{padding:19px;align-items:flex-start;flex-direction:column}.hr-hero h1{font-size:24px}.hr-tiles{grid-template-columns:1fr}.hr-kpis>a{padding:13px}.hr-kpis strong{font-size:27px}.hr-heading{align-items:flex-start;flex-direction:column}.hr-panel{padding:16px}.table-wrap{margin-inline:-6px}.hr-hero .btn{width:100%}}
/* Field attendance: fast, readable cards on a supervisor's phone. */
.hr-attendance{min-width:1060px!important}.hr-attendance td:first-child{min-width:175px}.hr-attendance input[name^=job_]{min-width:125px}.hr-attendance input[name^=note_]{min-width:125px}
@media(max-width:720px){.table-wrap:has(.hr-attendance){overflow:visible}.hr-attendance{display:block;min-width:0!important;width:100%}.hr-attendance thead{display:none}.hr-attendance tbody{display:block}.hr-attendance tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:13px;margin-bottom:13px;background:#f9fbff;border:1px solid #dce6f4;border-radius:11px}.hr-attendance td{display:block;min-width:0!important;width:auto;border:0!important;padding:2px!important}.hr-attendance td:first-child{grid-column:1/-1;border-bottom:1px solid #e0e8f5!important;padding-bottom:10px!important;margin-bottom:2px}.hr-attendance td:last-child{grid-column:1/-1}.hr-attendance td:before{content:attr(data-label);display:block;color:#527095;font-size:10px;font-weight:750;margin-bottom:4px}.hr-attendance input,.hr-attendance select,.hr-attendance input[type=number],.hr-attendance input[name^=job_],.hr-attendance input[name^=note_]{width:100%;min-width:0;max-width:none;padding:9px}.header .role-nav{scrollbar-width:thin;scrollbar-color:#7897c2 transparent;overscroll-behavior-x:contain;scroll-snap-type:x proximity}.header .role-nav a{scroll-snap-align:start;flex-shrink:0}}

.hr-confirm{display:flex;align-items:flex-start;gap:9px;padding:12px 14px;background:#f4f8ff;border-radius:9px;border:1px solid #d8e7fa;font-size:12px;color:#36547d;margin:12px 0}.hr-confirm input{width:auto!important;flex-shrink:0;margin-top:4px}

/* Final edition · distinct role workspaces */
.operations-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:26px 28px;border-radius:14px;background:linear-gradient(115deg,#102f61,#1b4c89);color:white;margin-bottom:18px}
.operations-hero h1{font-size:28px;color:white;margin:7px 0}.operations-hero p{font-size:13px;color:#d5e7fa;margin:0;max-width:720px;line-height:1.7}
.operations-hero .btn{background:white;color:#17457b;white-space:nowrap}.operations-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.operations-kpis a{display:flex;flex-direction:column;justify-content:space-between;gap:8px;background:white;border:1px solid #dde5f0;border-radius:12px;padding:18px;text-decoration:none;min-height:113px}
.operations-kpis a:hover{border-color:#96b1d3;background:#fbfdff}.operations-kpis span{font-size:12px;color:#66788e}.operations-kpis strong{font-size:30px;color:#163e7d;line-height:1.2;font-variant-numeric:tabular-nums}.operations-kpis small{font-size:10px;color:#8695a5}
.operations-kpis .metric-money{font-size:21px;overflow-wrap:anywhere}.workspace-prompt{background:#eef5fc;border:1px solid #dbe7f7;border-radius:11px;padding:15px 18px;margin-bottom:16px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.workspace-prompt strong{color:#1b497e;font-size:12px}.workspace-prompt span{font-size:12px;line-height:1.6;color:#5d7290}
.field-request-list{display:grid;gap:12px}.field-request{border:1px solid #e0e8f2;background:#fcfdff;border-radius:10px;padding:14px}.field-request-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.field-request-head strong{color:#1d4778;font-size:13px}.field-request .prose{margin:8px 0}.balance-lines{display:grid;gap:6px}.balance-lines a{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #e7edf6;padding:13px 0;text-decoration:none;color:#1f467a}.balance-lines a span{font-size:13px;white-space:nowrap;color:#617896}.balance-lines a b{font-size:13px}
.invoice-sheet .invoice-two{display:grid;grid-template-columns:1fr 1fr;gap:25px;margin:24px 0}.invoice-two small{font-size:11px;color:#6a7d94}.invoice-sheet .invoice-two p{line-height:1.75;font-size:13px}.invoice-meta{display:flex;gap:20px;justify-content:space-between;border-top:1px solid #e6edf4;border-bottom:1px solid #e6edf4;padding:15px 0}.invoice-totals{max-width:460px;margin:25px 0 22px auto;border:1px solid #e2e8f1;border-radius:9px;overflow:hidden}.invoice-totals>div{display:flex;justify-content:space-between;gap:20px;padding:12px 16px;border-bottom:1px solid #edf1f6;font-size:13px}.invoice-totals>div:last-child{border-bottom:0}.invoice-totals .invoice-due{background:#eaf2fc;color:#153e7a}.invoice-due strong{font-size:18px}
[dir="rtl"] .invoice-totals{margin:25px auto 22px 0}
@media(max-width:850px){.operations-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.operations-hero{flex-direction:column;align-items:flex-start}.operations-hero .btn{width:100%}}
@media(max-width:600px){.operations-hero{padding:19px}.operations-hero h1{font-size:23px}.operations-kpis{gap:8px}.operations-kpis a{padding:14px;min-height:105px}.operations-kpis strong{font-size:27px}.operations-kpis .metric-money{font-size:15px}.balance-lines a{align-items:flex-start;flex-direction:column}.invoice-sheet .invoice-two{grid-template-columns:1fr}.invoice-meta{flex-direction:column;gap:5px}.invoice-totals{max-width:none}}
@media print{.header,.footer,.print-hide,.language-bar{display:none!important}.container{max-width:100%;margin:0!important;padding:0!important}.quote-sheet{border:0!important;box-shadow:none!important}}

.site-thumb{display:block;max-width:220px;width:100%;height:138px;object-fit:cover;border-radius:8px;border:1px solid #dce6f3;margin-bottom:8px}.doc-row:has(.site-thumb){display:flex;flex-direction:column;align-items:flex-start}
/* Verified release: compact VAT invoice forms and printable documents */
.tax-line-grid { display:grid;grid-template-columns:minmax(220px,2.5fr) repeat(3,minmax(86px,1fr));gap:12px;padding:16px;margin:12px 0;border:1px solid #dce5ee;border-radius:12px;background:#f9fbfd }
.tax-line-grid label {min-width:0; font-size:0.84rem;}
.tax-line-grid label:first-child {grid-column:span 2;}
.tax-line-grid input,.tax-line-grid select {width:100%;}
.tax-table{width:100%;border-collapse:collapse; margin:16px 0; font-size:.80rem;}
.tax-table th {background:#153a5b;color:#fff;padding:10px 7px;text-align:start;}
.tax-table td{border-bottom:1px solid #d7e0e8;padding:9px 7px;vertical-align:top;}
.tax-table td small {display:block;color:#6b7580;}
.tax-totals{max-width:460px;margin-left:auto;display:grid;gap:8px;padding:14px 18px;background:#f5f8fb;border-radius:10px;}
.tax-totals>div{display:flex;justify-content:space-between;gap:24px;}
.tax-totals .tax-grand{border-top:2px solid #0d3658;padding-top:12px;font-size:1.1rem;font-weight:750;}
@media(max-width:900px){.tax-line-grid{grid-template-columns:1fr 1fr}.tax-line-grid label:first-child {grid-column:span 2}.tax-table{display:block;overflow-x:auto}.tax-totals{margin:12px 0;width:100%;}}
@media print {.tax-line-grid{display:none}.tax-table{display:table;overflow:visible}.tax-table th{background:#e9edf2!important;color:#1c2e3b!important}.quote-sheet{max-width:none!important}.tax-totals{break-inside:avoid}}

/* V5.2: accessible role-scoped action shortcuts */
.uc-quick-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0 18px;padding:14px;border:1px solid var(--border,#d9dde4);border-radius:12px;background:var(--surface,#fff)}
.uc-quick-actions .uc-actions-label{flex-basis:100%;font-weight:700;font-size:14px;opacity:.8}
.uc-quick-actions a.btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;text-align:center;text-decoration:none;white-space:normal}
.uc-action-anchor{scroll-margin-top:85px}
@media (max-width:640px){.uc-quick-actions{padding:10px}.uc-quick-actions a.btn{flex:1 1 130px;font-size:13px}}
.uc-report-item{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:14px 0;border-bottom:1px solid #dde1e6;flex-wrap:wrap}.uc-report-item:last-child{border-bottom:0}.uc-report-item>div{display:flex;gap:8px;flex-wrap:wrap}.uc-report-scroll{overflow-x:auto}.uc-report-table{border-collapse:collapse;width:100%;font-size:13px;min-width:500px}.uc-report-table td,.uc-report-table th{padding:8px 10px;border-bottom:1px solid #dfe4ed;text-align:start;vertical-align:top}.uc-report-table th{background:#263b57;color:white}.uc-report-actions{display:flex;gap:8px;flex-wrap:wrap}@media print{.header,.footer,.print-hide,.uc-report-actions{display:none!important}.container{max-width:100%;margin:0;padding:0}.uc-report-table{font-size:10px;min-width:0}.uc-report-table th{background:#eee!important;color:#000!important}.uc-report-table tr{break-inside:avoid}.panel{border:0;box-shadow:none}}

/* V5.5: polished, accessible navigation without inline CSS (CSP stays strict). */
.login-box .uc-login-submit{width:100%}
:focus-visible{outline:3px solid #b38745;outline-offset:3px}
.role-nav a:focus-visible,.linklike:focus-visible{outline-color:#f4d28b}
.role-nav a[aria-current="page"]{background:rgba(255,255,255,.17)}
@media(max-width:700px){
 .header{gap:10px;align-items:flex-start}
 .header .brand{flex:1 1 auto}
 .header .who{flex:1 1 100%;justify-content:space-between}
 .header .role-nav{order:4;width:100%;display:flex;gap:4px;flex-wrap:nowrap;overflow-x:auto;padding:4px 0 10px}
 .header .role-nav a{flex:0 0 auto;min-height:44px;display:inline-flex;align-items:center}
 .login-box{margin:4vh auto;padding:23px 18px}
 .uc-quick-actions a.btn{min-height:44px}
}
@media print{a[href]:after{content:none!important}}
/* V5.6: Excel bulk import center */
.excel-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:14px;margin:20px 0}
.excel-card{background:var(--surface,#fff);border:1px solid #d9e1e8;border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:7px;min-width:0}
.excel-card strong{font-size:1.1rem;color:#16304a}.excel-card small{color:#687487}.excel-card p{margin:4px 0 12px}.excel-card a{margin-top:auto;text-align:center}
.excel-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.excel-columns{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}
.excel-columns code{padding:7px 9px;background:#eff5fa;border-radius:6px;direction:ltr;unicode-bidi:isolate;font-size:.83rem}
.excel-errors{border-inline-start:4px solid #b22222;background:#fff2f0;padding:14px;margin-top:14px;overflow-wrap:anywhere}
.excel-result{border-inline-start:4px solid #277c65;background:#f0f9f6;padding:15px;margin-top:14px}
.excel-help{color:#475569}.excel-catalog a,.excel-actions a{white-space:normal}

.excel-inline-tools{margin:12px 0 22px;padding:16px}
.excel-inline-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px;gap:8px}
.excel-inline-head span{font-size:.85rem;opacity:.7}.excel-mini-kind{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:6px 0;border-bottom:1px solid #e6eaf0}
.excel-kind-name{font-size:.84rem;font-weight:600;min-width:135px}.excel-inline-upload{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap}.excel-inline-file{font-size:.84rem}.excel-inline-file input{max-width:175px;font-size:.75rem}.excel-inline-confirm{padding:10px;border:1px solid #a4cdbd;border-radius:8px;margin:8px 0}.excel-inline-error{color:#ad2626;font-weight:600}
@media print{.excel-inline-tools{display:none!important}}
@media(max-width:600px){.excel-mini-kind{align-items:flex-start}.excel-inline-upload{width:100%}.excel-inline-file input{max-width:210px}}

.excel-more{width:100%;padding:3px 0}.excel-more summary{font-size:.9rem;cursor:pointer;font-weight:600;padding:8px 0}.excel-more[open]{padding-bottom:7px}
