.employee-workspace-v3{--ew-ink:#17213c;--ew-muted:#71809b;--ew-border:#e3e8f2;--ew-purple:#6c35d7;--ew-cyan:#20b9e9;--ew-soft:#f7f8fc;max-width:1460px;margin:0 auto;padding:18px;color:var(--ew-ink);font-family:plex,Tajawal,Arial,sans-serif}.employee-workspace-v3 *{box-sizing:border-box}.ew-icon{width:20px;height:20px;flex:0 0 auto}.ew-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;padding:18px 20px;border:1px solid var(--ew-border);border-radius:18px;background:#fff;box-shadow:0 12px 28px rgba(40,52,83,.07)}.ew-back,.ew-secondary,.ew-primary,.ew-inline-action,.ew-load-more{min-height:40px;border-radius:10px;padding:0 14px;font:700 13px inherit;cursor:pointer}.ew-back,.ew-secondary,.ew-inline-action,.ew-load-more{border:1px solid #d8deeb;background:#fff;color:#34425f}.ew-primary{border:0;background:linear-gradient(110deg,var(--ew-purple),#7c2fea 55%,var(--ew-cyan));color:#fff}.ew-identity{display:flex;align-items:center;min-width:0;gap:14px}.ew-identity .profile-photo{width:64px;height:64px;border-radius:16px;object-fit:cover}.ew-identity>div{min-width:0}.ew-name-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.ew-name-line h1{max-width:640px;margin:0;font-size:22px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ew-name-line span{color:var(--ew-muted);font-weight:800}.ew-name-line em{padding:4px 9px;border-radius:999px;font-size:11px;font-style:normal;font-weight:800}.ew-name-line em.is-active{background:#e9f8f1;color:#14815b}.ew-name-line em.is-ended{background:#fff0f0;color:#b33d4b}.ew-identity p{margin:6px 0 0;color:var(--ew-muted);font-size:13px}.ew-identity p i{margin:0 3px;color:#bbc4d3;font-style:normal}.ew-primary-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.ew-language{display:flex;border:1px solid #dce2ed;border-radius:9px;padding:2px}.ew-language button{min-width:32px;height:30px;border:0;border-radius:7px;background:transparent;color:#72809a;font-weight:800;cursor:pointer}.ew-language button.is-active{background:#eee8ff;color:#5a2aba}.ew-tabs{position:sticky;top:0;z-index:5;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:14px 0;padding:5px;border:1px solid var(--ew-border);border-radius:14px;background:rgba(255,255,255,.96);box-shadow:0 7px 20px rgba(39,50,80,.06);backdrop-filter:blur(12px)}.ew-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border:0;border-radius:10px;background:transparent;color:#6f7c94;font:700 13px inherit;cursor:pointer}.ew-tabs button:hover{background:#f7f5ff;color:#5f32bd}.ew-tabs button.is-active{background:linear-gradient(115deg,#6c35d7,#7438dc 55%,#29b8e6);color:#fff;box-shadow:0 6px 14px rgba(98,51,205,.22)}.ew-tabs button:focus-visible,.employee-workspace-v3 button:focus-visible{outline:3px solid rgba(42,183,231,.32);outline-offset:2px}.ew-content{min-height:480px}.ew-panel{animation:ew-panel-in .18s ease}.ew-panel[hidden]{display:none!important}@keyframes ew-panel-in{from{opacity:.55;transform:translateY(3px)}to{opacity:1;transform:none}}.ew-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ew-kpi{position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-areas:'icon label' 'icon value' 'icon meta';gap:2px 11px;min-height:118px;padding:17px;border:1px solid var(--ew-border);border-radius:15px;background:#fff}.ew-kpi .ew-icon{grid-area:icon;width:38px;height:38px;padding:9px;border-radius:11px;background:#f1ecff;color:#6531c8}.ew-kpi>span{grid-area:label;color:var(--ew-muted);font-size:12px}.ew-kpi>strong{grid-area:value;margin-top:3px;font-size:18px}.ew-kpi>small{grid-area:meta;margin-top:5px;color:#8793a9;font-size:11px;line-height:1.5}.ew-kpi.is-attendance .ew-icon{background:#e8f8fb;color:#148db3}.ew-kpi.is-financial .ew-icon{background:#ecf8f1;color:#178357}.ew-overview-grid,.ew-two-columns{display:grid;grid-template-columns:1fr 1.35fr;gap:12px;margin-top:12px}.ew-card{padding:17px;border:1px solid var(--ew-border);border-radius:15px;background:#fff}.ew-card>header:not(.ew-section-heading){display:flex;align-items:center;gap:9px;margin-bottom:13px}.ew-card>header .ew-icon{color:#6632cb}.ew-card h2{margin:0;font-size:16px}.ew-alerts ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}.ew-alerts li{padding:10px 12px;border-inline-start:3px solid #e6a438;border-radius:8px;background:#fff9ec;color:#76501b;font-size:12px}.ew-good-state{padding:13px;border-radius:9px;background:#edf9f3;color:#197b59;font-weight:700}.ew-mini-activity .ew-activity-row:nth-child(n+4){display:none}.ew-info-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;margin:0}.ew-info-list>div{display:grid;grid-template-columns:minmax(110px,.8fr) minmax(0,1.2fr);align-items:center;gap:9px;padding:11px 0;border-bottom:1px solid #edf0f5}.ew-info-list dt{color:var(--ew-muted);font-size:12px}.ew-info-list dd{margin:0;color:var(--ew-ink);font-size:13px;font-weight:800;overflow-wrap:anywhere}.ew-inline-action{margin-top:12px}.ew-operational-sections,.ew-record-sections{display:grid;gap:12px;margin-top:12px}.ew-operational-sections>.profile-section,.ew-record-sections>.profile-section,.ew-asset-sections>.profile-section{max-width:none;margin:0;padding:17px;border:1px solid var(--ew-border);border-radius:15px;box-shadow:none}.ew-financial-compare{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:12px}.ew-financial-card{display:flex;flex-direction:column;gap:6px;min-height:112px;padding:17px;border:1px solid var(--ew-border);border-radius:15px;background:#fff}.ew-financial-card.is-current{border-color:#b9a3ec;background:linear-gradient(135deg,#faf8ff,#fff)}.ew-financial-card span{color:var(--ew-muted);font-size:12px}.ew-financial-card strong{font-size:20px}.ew-financial-card small{color:#8a95a8;font-size:11px}.ew-payroll-breakdown{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.ew-payroll-breakdown>div{display:grid;gap:5px;padding:12px;border-radius:10px;background:var(--ew-soft)}.ew-payroll-breakdown span{color:var(--ew-muted);font-size:11px}.ew-payroll-breakdown b{font-size:15px}.ew-payroll-breakdown .positive{color:#13835b}.ew-payroll-breakdown .negative{color:#b74451}.ew-permission-state{display:grid;justify-items:center;gap:9px;padding:48px;border:1px dashed #cfd6e3;border-radius:16px;background:#fff;text-align:center}.ew-permission-state .ew-icon{width:34px;height:34px;color:#7351c7}.ew-permission-state h2,.ew-permission-state p{margin:0}.ew-permission-state p{color:var(--ew-muted)}.ew-assets-grid{display:grid;grid-template-columns:minmax(260px,.65fr) minmax(0,1.35fr);gap:12px}.ew-asset-sections{display:grid;gap:12px}.ew-activity-card{padding:0;overflow:hidden}.ew-section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 17px;border-bottom:1px solid var(--ew-border)}.ew-section-heading>div:first-child{display:flex;align-items:center;gap:9px}.ew-section-heading .ew-icon{color:#6632cb}.ew-activity-filters{display:flex;flex-wrap:wrap;gap:5px}.ew-activity-filters button{min-height:31px;padding:0 10px;border:1px solid #dce2ec;border-radius:999px;background:#fff;color:#66738b;font:700 11px inherit;cursor:pointer}.ew-activity-filters button.is-active{border-color:#8a68d7;background:#f0ebff;color:#5d2abb}.ew-activity-list{display:grid}.ew-activity-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:start;padding:14px 17px;border-bottom:1px solid #edf0f5}.ew-activity-row[hidden]{display:none}.ew-activity-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#f1edff;color:#6432c6}.ew-activity-copy{min-width:0}.ew-activity-copy header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.ew-activity-copy b{font-size:13px}.ew-activity-copy time{white-space:nowrap;color:#8b96a8;font-size:10px}.ew-activity-copy p{margin:5px 0;color:#56647d;font-size:12px;line-height:1.6}.ew-activity-copy footer{display:flex;flex-wrap:wrap;gap:7px 13px;color:#8b96a8;font-size:10px}.ew-activity-copy code{font-family:monospace}.ew-activity-row>strong{white-space:nowrap;font-size:13px}.ew-load-more{display:block;margin:12px auto}.ew-documents{margin-top:12px}.ew-document-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.ew-document-list button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:46px;padding:9px 11px;border:1px solid #e2e7ef;border-radius:9px;background:#fff;color:#263550;cursor:pointer}.ew-document-list button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.ew-document-list button small{white-space:nowrap;color:#8a95a8}.ew-empty{padding:22px;color:var(--ew-muted);text-align:center}
@media(max-width:1100px){.ew-header{grid-template-columns:auto 1fr}.ew-primary-actions{grid-column:1/-1;justify-content:flex-start}.ew-kpi-grid,.ew-financial-compare{grid-template-columns:repeat(2,minmax(0,1fr))}.ew-tabs button span{font-size:12px}.ew-assets-grid{grid-template-columns:1fr}.ew-document-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:768px){.employee-workspace-v3{padding:10px}.ew-header{grid-template-columns:1fr;padding:14px}.ew-back{justify-self:start}.ew-primary-actions{grid-column:auto;justify-content:stretch}.ew-primary-actions>button{flex:1 1 140px}.ew-tabs{display:flex;overflow-x:auto;scrollbar-width:none}.ew-tabs button{flex:0 0 auto;min-width:150px;padding:0 13px}.ew-overview-grid,.ew-two-columns{grid-template-columns:1fr}.ew-section-heading{align-items:flex-start;flex-direction:column}.ew-activity-filters{width:100%;overflow-x:auto;flex-wrap:nowrap;padding-bottom:3px}.ew-activity-filters button{white-space:nowrap}.ew-info-list{grid-template-columns:1fr}.ew-payroll-breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.ew-identity{align-items:flex-start}.ew-identity .profile-photo{width:54px;height:54px}.ew-name-line h1{width:100%;white-space:normal;font-size:18px}.ew-kpi-grid,.ew-financial-compare{grid-template-columns:1fr}.ew-kpi{min-height:102px}.ew-tabs button{min-width:138px}.ew-document-list{grid-template-columns:1fr}.ew-activity-row{grid-template-columns:auto minmax(0,1fr);padding:12px}.ew-activity-row>strong{grid-column:2}.ew-activity-copy header{display:grid}.ew-payroll-breakdown{grid-template-columns:1fr}.ew-info-list>div{grid-template-columns:1fr;gap:3px}.ew-primary-actions .ew-language{flex:0 0 auto;width:auto}}
.ew-operational-sections>.profile-section,.ew-record-sections>.profile-section,.ew-asset-sections>.profile-section{min-height:0!important}.ew-operational-sections>.profile-section h2,.ew-record-sections>.profile-section h2,.ew-asset-sections>.profile-section h2{margin-top:0}

/* Employee Workspace V3.2 — operational typography and density system */
.employee-workspace-v3{--ew-strong:#101a33;--ew-muted:#65738c;--ew-soft-muted:#7d899e;--ew-divider:#edf0f5;--ew-title:clamp(22px,1.7vw,24px);--ew-section:18px;--ew-card-title:16px;--ew-body:14px;--ew-label:13px;--ew-meta:12px;font-family:plex,Arial,sans-serif;font-size:var(--ew-body);line-height:1.55;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}.employee-workspace-v3 button,.employee-workspace-v3 input,.employee-workspace-v3 select{font-family:inherit}.employee-workspace-v3 [dir=ltr],.employee-workspace-v3 code,.employee-workspace-v3 time{unicode-bidi:plaintext;font-variant-numeric:tabular-nums}
.ew-header{padding:17px 19px}.ew-back,.ew-secondary,.ew-primary,.ew-inline-action,.ew-load-more{min-height:42px;padding-inline:15px;font-size:13px;font-weight:700;line-height:1.25}.ew-identity .profile-photo{width:62px;height:62px}.ew-name-line h1{color:var(--ew-strong);font-size:var(--ew-title);font-weight:700;line-height:1.32;unicode-bidi:plaintext}.ew-name-line span{font-size:13px;font-weight:700}.ew-name-line em{padding:5px 10px;font-size:12px;font-weight:700;line-height:1.3}.ew-identity p{font-size:13px;line-height:1.55;unicode-bidi:plaintext}.ew-language button{min-width:34px;height:32px;font-size:12px}.ew-tabs button{min-height:50px;color:#5f6e89;font-size:13px;font-weight:700;line-height:1.35}
.ew-kpi{align-content:center;min-height:108px;padding:15px 16px}.ew-kpi>span{font-size:var(--ew-label);font-weight:600}.ew-kpi>strong{color:var(--ew-strong);font-size:18px;font-weight:700;line-height:1.35;overflow-wrap:anywhere}.ew-kpi>small{color:var(--ew-soft-muted);font-size:var(--ew-meta);font-weight:500;line-height:1.5;overflow-wrap:anywhere}
.ew-overview-grid{grid-template-columns:minmax(240px,.72fr) minmax(360px,1.32fr) minmax(280px,.96fr);align-items:start}.ew-card{min-width:0;padding:16px;box-shadow:0 5px 16px rgba(32,43,73,.03)}.ew-card>header:not(.ew-section-heading){margin-bottom:11px}.ew-card h2{color:var(--ew-strong);font-size:var(--ew-card-title);font-weight:700;line-height:1.45}.ew-alerts{min-height:0}.ew-alerts li{font-size:13px;line-height:1.55}.ew-good-state{padding:11px 12px;font-size:13px}.ew-recent-card{padding-bottom:10px}.ew-mini-activity .ew-activity-row{padding-inline:0}.ew-mini-activity .ew-activity-row:last-child{border-bottom:0}.ew-identity-card .ew-info-list{grid-template-columns:1fr}.ew-identity-card .ew-info-list>div{grid-template-columns:minmax(90px,.7fr) minmax(0,1.3fr);padding:8px 0}
.ew-info-list{gap-inline:20px}.ew-info-list>div{grid-template-columns:minmax(118px,.82fr) minmax(0,1.18fr);gap:10px;padding:10px 0;border-color:var(--ew-divider)}.ew-info-list dt{font-size:var(--ew-label);font-weight:500;line-height:1.45}.ew-info-list dd{color:var(--ew-strong);font-size:14px;font-weight:700;line-height:1.5}
.ew-operational-sections,.ew-record-sections{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.ew-operational-sections>.profile-section,.ew-record-sections>.profile-section,.ew-asset-sections>.profile-section{min-width:0;padding:16px}.ew-operational-sections>.profile-section h2,.ew-record-sections>.profile-section h2,.ew-asset-sections>.profile-section h2{color:var(--ew-strong);font-size:var(--ew-card-title);line-height:1.45}.ew-operational-sections>.profile-section h3,.ew-record-sections>.profile-section h3,.ew-asset-sections>.profile-section h3{font-size:15px}.ew-operational-sections>.profile-section p,.ew-record-sections>.profile-section p,.ew-asset-sections>.profile-section p{font-size:13px;line-height:1.65}.ew-operational-sections>.profile-section dt,.ew-record-sections>.profile-section dt,.ew-asset-sections>.profile-section dt{font-size:13px}.ew-operational-sections>.profile-section dd,.ew-record-sections>.profile-section dd,.ew-asset-sections>.profile-section dd{font-size:14px}.ew-operational-sections>.profile-section:only-child,.ew-record-sections>.profile-section:only-child{grid-column:1/-1}
.ew-financial-compare{grid-template-columns:1.22fr repeat(3,minmax(0,1fr))}.ew-financial-card{justify-content:center;min-height:106px;padding:15px 16px}.ew-financial-card span{font-size:var(--ew-label);font-weight:600}.ew-financial-card strong{color:var(--ew-strong);font-size:20px;font-weight:700;line-height:1.35}.ew-financial-card small{color:var(--ew-soft-muted);font-size:var(--ew-meta);line-height:1.45}.ew-payroll-breakdown>div{padding:11px 12px}.ew-payroll-breakdown span{font-size:var(--ew-label)}.ew-payroll-breakdown b{font-size:15px}.ew-permission-state h2{font-size:var(--ew-section)}.ew-permission-state p{max-width:520px;color:var(--ew-muted);font-size:14px;line-height:1.65}
.ew-assets-grid{grid-template-columns:minmax(280px,.66fr) minmax(0,1.34fr);align-items:start}.ew-digital-access{position:sticky;top:78px}.ew-asset-sections{grid-template-columns:repeat(2,minmax(0,1fr))}.ew-asset-sections>.profile-section:only-child{grid-column:1/-1}
.ew-section-heading{padding:14px 16px}.ew-section-heading h2{font-size:var(--ew-section)}.ew-activity-filters{gap:6px}.ew-activity-filters button{min-height:34px;padding-inline:11px;font-size:12px;line-height:1.25}.ew-activity-row{gap:11px;padding:12px 16px;border-color:var(--ew-divider)}.ew-activity-row:last-child{border-bottom:0}.ew-activity-icon.is-attendance{background:#e9f8fb;color:#128ba9}.ew-activity-icon.is-assets{background:#edf7f1;color:#167b58}.ew-activity-icon.is-documents{background:#fff5e8;color:#9b681f}.ew-activity-copy header{gap:14px}.ew-activity-copy header>div{display:grid;gap:1px;min-width:0}.ew-activity-copy b{color:var(--ew-strong);font-size:14px;font-weight:700;line-height:1.45}.ew-activity-copy header span{color:var(--ew-muted);font-size:12px;line-height:1.45}.ew-activity-copy time{color:var(--ew-soft-muted);font-size:12px;line-height:1.5}.ew-activity-copy p{margin:4px 0 0;color:#506079;font-size:13px;line-height:1.6}.ew-activity-copy details{margin-top:5px}.ew-activity-copy summary{width:max-content;max-width:100%;color:#6841bd;font-size:12px;font-weight:700;cursor:pointer}.ew-activity-provenance{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:7px;padding:8px 10px;border-radius:8px;background:#f7f8fc;color:var(--ew-muted);font-size:12px}.ew-activity-provenance span{display:flex;align-items:center;gap:6px;min-width:0}.ew-activity-provenance b,.ew-activity-provenance code{font-size:12px}.ew-activity-provenance code{max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#53617a}.ew-activity-row>strong{color:var(--ew-strong);font-size:14px;line-height:1.45}.ew-document-list button{min-height:48px;font-size:13px}.ew-document-list button small{color:var(--ew-soft-muted);font-size:12px}.ew-empty{font-size:14px}
@media(max-width:1180px){.ew-overview-grid{grid-template-columns:1fr 1.35fr}.ew-overview-grid>.ew-identity-card{grid-column:1/-1}.ew-identity-card .ew-info-list{grid-template-columns:repeat(2,minmax(0,1fr))}.ew-financial-compare{grid-template-columns:repeat(2,minmax(0,1fr))}.ew-assets-grid{grid-template-columns:1fr}.ew-digital-access{position:static}.ew-asset-sections{grid-template-columns:1fr}}
@media(max-width:768px){.employee-workspace-v3{--ew-section:17px}.ew-primary-actions>button{min-height:44px}.ew-tabs button{min-width:154px}.ew-overview-grid>.ew-identity-card{grid-column:auto}.ew-identity-card .ew-info-list{grid-template-columns:1fr}.ew-activity-filters button{min-height:38px}.ew-operational-sections,.ew-record-sections{grid-template-columns:1fr}.ew-operational-sections>.profile-section:only-child,.ew-record-sections>.profile-section:only-child{grid-column:auto}}
@media(max-width:480px){.ew-name-line h1{font-size:21px}.ew-kpi{min-height:98px}.ew-tabs button{min-width:144px;min-height:48px}.ew-activity-row{padding:11px 12px}.ew-activity-provenance{display:grid}.ew-info-list>div,.ew-identity-card .ew-info-list>div{grid-template-columns:1fr;gap:2px;padding:9px 0}.ew-card{padding:14px}.ew-section-heading{padding:13px}.ew-permission-state{padding:34px 16px}}
.employee-workspace-v3 .ew-identity .profile-photo{display:grid;place-items:center;flex:0 0 62px;width:62px;height:62px;overflow:hidden;border-radius:16px;background:linear-gradient(145deg,#eee8ff,#daf6ff);color:#5f2bc7;font-size:18px;font-weight:700;object-fit:cover}
@media(max-width:480px){.employee-workspace-v3 .ew-identity .profile-photo{flex-basis:54px;width:54px;height:54px;font-size:16px}}
