/* Employee self service: the second sign in look (reveals over the classic login) and the employee home. */
.ess-layer {
  --brand: #F26B2C; --brand-2: #FF9A4D; --brand-soft: #FFF1E8; --brand-ink: #B9471A;
  --ink: #1F2430; --ink-2: #4B5263; --muted: #8A90A0; --line: #ECE7E2; --bg: #F6F2EE; --card: #FFFFFF;
  --ok: #16A36A; --ok-soft: #E5F7EF; --warn: #E39A0B; --warn-soft: #FFF5DE; --bad: #DC3D43; --bad-soft: #FDECEC;
  --info: #2F6FED; --info-soft: #E9F0FE; --violet: #7A5AF8; --violet-soft: #F0ECFF; --teal: #0EA5A4; --teal-soft: #E1F6F5;
  --pink: #E0457B; --pink-soft: #FDE9F0;
  --shadow: 0 1px 2px rgba(31,36,48,.05), 0 8px 24px rgba(31,36,48,.07);
  --shadow-lg: 0 2px 6px rgba(31,36,48,.06), 0 24px 60px rgba(31,36,48,.12);
  font-family: 'Droid Arabic Kufi', Tahoma, 'Segoe UI', sans-serif;
  font-size: 14px; line-height: 1.6; color: var(--ink);
}
.ess-layer * { box-sizing: border-box; }
.ess-layer svg, .ess-ctabs svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---- the two tabs above today's login box (the only change to the classic page) ---- */
.ess-ctabs { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px; max-width: 360px; margin: 0 auto 8px; }
.ess-ctabs button { border: 0; border-radius: 5px; padding: 9px 8px; font-family: inherit; font-size: 13px; background: rgba(255,255,255,.8); color: #665851; display: flex; gap: 6px; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,.1); cursor: pointer; }
.ess-ctabs button svg { width: 16px; height: 16px; }
.ess-ctabs button.on { background: #fff; color: #a8712c; font-weight: 700; box-shadow: inset 0 -3px 0 #da9e52, 0 2px 4px rgba(0,0,0,.1); }
.ess-ctabs button:focus-visible { outline: 2px solid #da9e52; outline-offset: 2px; }
.ess-ctabs button:nth-child(2):not(.on) { animation: ess-nudge 2.4s ease-in-out 1.2s 2; }
@keyframes ess-nudge { 0%, 100% { box-shadow: 0 2px 4px rgba(0,0,0,.1); } 50% { box-shadow: 0 0 0 4px rgba(218,158,82,.55), 0 2px 4px rgba(0,0,0,.1); } }

/* ---- the reveal: the classic page blurs, the new look grows out of the clicked tab ---- */
.ess-blur { position: fixed; inset: 0; z-index: 1040; pointer-events: none; opacity: 0; backdrop-filter: blur(6px) brightness(.8); -webkit-backdrop-filter: blur(6px) brightness(.8); transition: opacity .9s; }
html.ess-on .ess-blur { opacity: 1; }
.ess-layer { position: fixed; inset: 0; z-index: 1050; background: #fff; overflow: auto; visibility: hidden; pointer-events: none;
  clip-path: circle(0px at var(--ess-x, 50%) var(--ess-y, 30%));
  transition: clip-path .9s cubic-bezier(.7,0,.2,1), visibility 0s linear .9s; }
html.ess-on .ess-layer { visibility: visible; pointer-events: auto; clip-path: circle(160% at var(--ess-x, 50%) var(--ess-y, 30%)); transition: clip-path .9s cubic-bezier(.7,0,.2,1), visibility 0s; }
html.ess-instant .ess-layer, html.ess-instant .ess-blur { transition: none !important; }

.ess-login { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100%; background: #fff; }
.ess-art { background: radial-gradient(circle at 80% 10%, rgba(255,255,255,.25), transparent 40%), linear-gradient(150deg, #F26B2C 0%, #FF8F45 55%, #FFB066 100%);
  color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; position: relative; overflow: hidden; }
.ess-circle { position: absolute; border-radius: 50%; background: rgba(255,255,255,.1); }
.ess-circle-1 { width: 420px; height: 420px; inset-inline-start: -140px; bottom: -160px; }
.ess-circle-2 { width: 180px; height: 180px; inset-inline-end: -50px; top: 120px; }
.ess-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; position: relative; }
.ess-brand-logo { width: 54px; height: 54px; border-radius: 14px; background: #fff; display: grid; place-items: center; padding: 8px; box-shadow: 0 6px 16px rgba(0,0,0,.15); flex: none; }
.ess-brand-logo { width: auto; min-width: 54px; padding: 8px 12px; }
.ess-brand-logo img { height: 28px; width: auto; }
.ess-brand-name small { display: block; font-weight: 400; font-size: 12px; opacity: .85; }
.ess-pitch { position: relative; }
.ess-pitch h2 { font-size: 34px; line-height: 1.4; margin: 0 0 14px; font-weight: 700; color: #fff !important; }
.ess-pitch p { font-size: 16px; opacity: .93; max-width: 420px; margin: 0; }
.ess-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 460px; position: relative; }
.ess-feat { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); border-radius: 16px; padding: 14px; display: flex; gap: 10px; align-items: center; font-size: 13.5px; }

.ess-form { padding: 56px 64px; display: flex; flex-direction: column; justify-content: center; max-width: 620px; width: 100%; margin: 0 auto; }
.ess-form > * { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s; }
html.ess-on .ess-form > * { opacity: 1; transform: none; }
html.ess-on .ess-form > *:nth-child(2) { transition-delay: .4s; }
html.ess-on .ess-form > *:nth-child(3) { transition-delay: .45s; }
html.ess-on .ess-form > *:nth-child(4) { transition-delay: .5s; }
html.ess-on .ess-form > *:nth-child(5) { transition-delay: .55s; }
html.ess-on .ess-form > *:nth-child(n+6) { transition-delay: .6s; }
html.ess-instant .ess-form > * { transition: none !important; }
.ess-brand-small { display: none; color: var(--ink); margin-bottom: 18px; }
.ess-brand-small .ess-brand-logo { box-shadow: var(--shadow); border: 1px solid var(--line); }
.ess-title { font-size: 26px; font-weight: 700; }
.ess-muted { color: var(--muted); }
.ess-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #F5F1ED; border-radius: 16px; padding: 5px; margin: 22px 0 26px; }
.ess-tabs button { border: 0; background: none; padding: 12px 10px; border-radius: 12px; font-family: inherit; font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; justify-content: center; cursor: pointer; }
.ess-tabs button svg { width: 20px; height: 20px; }
.ess-tabs button.on { background: #fff; color: var(--brand-ink); font-weight: 700; box-shadow: var(--shadow); }
.ess-tabs button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ess-field { margin-bottom: 16px; }
.ess-field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 600; }
.ess-input { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 14px; padding: 4px 14px; background: #fff; color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.ess-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(242,107,44,.12); color: var(--ink); }
.ess-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 15px; padding: 10px 0; color: var(--ink); }
.ess-alert { background: var(--warn-soft); color: #7a5200; border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; font-size: 13px; }
.ess-alert p { margin: 4px 0 0; }
.ess-btn { width: 100%; border: 0; border-radius: 14px; padding: 15px 22px; font-family: inherit; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; justify-content: center; cursor: pointer; }
.ess-btn[disabled] { opacity: .6; cursor: not-allowed; }
.ess-btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px rgba(242,107,44,.3); margin-top: 6px; }
.ess-btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink-2); margin: 4px 0 14px; }
.ess-enroll { margin-top: 4px; }

@media (max-width: 860px) {
  .ess-login { grid-template-columns: 1fr; }
  .ess-art { display: none; }
  .ess-form { padding: 28px 22px 40px; justify-content: flex-start; }
  .ess-brand-small { display: flex; }
}

/* =====================================================================================================
   Self service pages (.ss-home / .ss-page): ERP tokens and the shared components.
   Component class names (reuse these, do not invent parallel ones):
   layout    ss-top (header: ss-brand, ss-logo, ss-brand-text, ss-top-actions, ss-me, ss-lang, ss-top-btn)
             ss-body (page container), ss-pagebar (ss-back, ss-pagebar-text, ss-crumb, h1)
   surfaces  ss-card (+ ss-pad), ss-section-title (alias ss-group), ss-alert, ss-hint
   buttons   ss-btn + ss-btn-primary | ss-btn-secondary | ss-btn-ghost | ss-btn-danger, sizes ss-btn-sm | ss-btn-lg, ss-btn-block
             legacy: ss-btn-bad (red outline), ss-btn-ok (green)
   status    ss-badge + is-pending | is-review | is-approved | is-rejected | is-neutral (legacy: ss-pill p-pending ...)
   filters   ss-filters > ss-chip (+ .on or .sel for the active one)
   lists     ss-list (card) > ss-row (ss-row-ic, ss-row-main, ss-row-meta, ss-chev), ss-empty (icon + text)
   dialog    ss-dialog-back > ss-dialog (ss-dialog-head, ss-dialog-body, ss-dialog-foot)
   phone bar ss-actionbar (sticky at the bottom on phone, normal row on desktop)
   stepper   ss-steps > li (ss-step-dot, ss-step-title, ss-step-sub) + is-done | is-current | is-rejected
   upload    ss-upload (drop zone: ss-upload-ic, ss-upload-text, ss-btn), ss-filechip (ss-filechip-name, ss-filechip-size, ss-filechip-x)
   forms     the ERP np-* controls are restyled inside .ss-page (label above, 44px fields); errors: .has-error or .ng-invalid.ng-touched
   home      ss-hero, ss-avatar, ss-stat, ss-tiles > ss-tile (ss-tile-ic, ss-tile-text, ss-chev)
   icons     inline svg line icons; add class ss-chev to a ">" chevron, it flips itself in Arabic
   ===================================================================================================== */
.ss-home {
  --brand: #DA9E52; --brand-hover: #C4883D; --brand-2: var(--brand); --brand-soft: #FBF3E8; --brand-ink: #9A6424;
  --ink: #1D1B22; --ink-2: #5D5866; --muted: #6F6A78; --line: #E7E4EC; --field-line: #C9C4D2; --bg: #FBFAF7; --card: #FFFFFF; --field-ro: #F4F2F6;
  --st-pending: #946200; --st-pending-bg: #FFF4DC; --st-review: #245B8F; --st-review-bg: #E8F0FA;
  --st-approved: #216846; --st-approved-bg: #E6F4EC; --st-rejected: #B13D3D; --st-rejected-bg: #FBEAEA; --st-neutral: #59666F; --st-neutral-bg: #EEF0F2;
  --ok: #216846; --ok-soft: #E6F4EC; --warn: #946200; --warn-soft: #FFF4DC; --bad: #B13D3D; --bad-soft: #FBEAEA;
  --info: #245B8F; --info-soft: #E8F0FA; --violet: #7A5AF8; --violet-soft: #F0ECFF; --teal: #0EA5A4; --teal-soft: #E1F6F5;
  --pink: #E0457B; --pink-soft: #FDE9F0;
  --edge: #1D1B22; --border: #E3DFE8; --hard: 0 1px 2px rgba(29,27,34,.05); --hard-up: 0 8px 22px rgba(29,27,34,.10); --hard-lg: 0 12px 32px rgba(29,27,34,.08); --r: 16px; --r-sm: 10px;
  --shadow: none; --shadow-lg: var(--hard-lg);
  --ring: 0 0 0 3px rgba(218,158,82,.35);
  font-family: 'Droid Arabic Kufi', Tahoma, 'Segoe UI', sans-serif;
  font-size: 14px; line-height: 1.6; color: var(--ink);
  min-height: 100vh; background: var(--bg) radial-gradient(circle at 92% -8%, rgba(218,158,82,.22), transparent 38%) no-repeat;
}
.ss-home * { box-sizing: border-box; }
.ss-home svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
html[dir="rtl"] .ss-home .ss-chev { transform: scaleX(-1); }
.ss-home a:focus-visible, .ss-home button:focus-visible, .ss-home .ss-tile:focus-visible, .ss-home .ss-row:focus-visible { outline: 0; box-shadow: var(--ring); }

/* ---- header ---- */
.ss-home .ss-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 8px 24px; background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.ss-home .ss-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ss-home .ss-logo { display: flex; align-items: center; flex: none; width: auto; min-width: 0; height: auto; padding: 0; border: 0; border-radius: 0; background: none; }
.ss-home .ss-logo img { height: 36px; width: auto; }
.ss-home .ss-brand-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; padding-inline-start: 12px; border-inline-start: 1px solid var(--line); }
.ss-home .ss-brand-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 15px; color: var(--ink); }
.ss-home .ss-brand-text small { font-weight: 400; color: var(--muted); font-size: 12px; }
.ss-home .ss-top-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.ss-home .ss-me { display: flex; align-items: center; gap: 8px; padding-inline-end: 12px; margin-inline-end: 4px; border-inline-end: 1px solid var(--line); }
.ss-home .ss-me-avatar, .ss-home .ss-avatar { border-radius: 50%; background: var(--brand); color: var(--edge); display: grid; place-items: center; font-weight: 800; flex: none; border: 1px solid var(--border); }
.ss-home .ss-me-avatar { width: 40px; height: 40px; font-size: 16px; }
.ss-home .ss-me-name { font-size: 14px; color: var(--ink); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-home .ss-top-btn, .ss-home .ss-lang a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: var(--ink-2); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; }
.ss-home .ss-top-btn:hover, .ss-home .ss-lang a:hover { background: var(--field-ro); color: var(--ink); }
.ss-home .ss-top-btn svg { width: 20px; height: 20px; }
.ss-home .ss-lang, .ss-home .ss-lang .lang-container, .ss-home .ss-lang .global-buttons-segmented { display: inline-flex; align-items: center; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.ss-home .ss-lang img { display: none; }
.ss-home .ss-lang .lang-text { display: inline; margin: 0; padding: 0; font-size: 14px; color: inherit; }
.ss-home .ss-icon-btn { width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--border); background: #fff; display: grid; place-items: center; color: var(--ink); cursor: pointer; box-shadow: var(--hard); }

/* ---- page container, page bar ---- */
.ss-home .ss-body { max-width: 1180px; margin: 0 auto; padding: 28px 24px 40px; }
.ss-home .ss-pagebar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ss-home .ss-back { width: 44px; height: 44px; flex: none; border-radius: var(--r-sm); border: 1px solid var(--border); background: #fff; display: grid; place-items: center; color: var(--ink); cursor: pointer; padding: 0; box-shadow: var(--hard); transition: transform .15s, box-shadow .15s; }
.ss-home .ss-back:hover { transform: translateY(-1px); box-shadow: var(--hard-up); }
.ss-home .ss-back svg { width: 20px; height: 20px; }
html[dir="ltr"] .ss-home .ss-pagebar .ss-back:not(.ss-home-btn) svg { transform: scaleX(-1); }
.ss-home .ss-ftabs { display: flex; gap: 4px; margin: -4px 0 20px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.ss-home .ss-ftabs::-webkit-scrollbar { display: none; }
.ss-home .ss-ftab { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 46px; padding: 0 16px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-2); font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ss-home .ss-ftab svg { width: 18px; height: 18px; }
.ss-home .ss-ftab:hover { color: var(--ink); }
.ss-home .ss-ftab.on { color: var(--brand-ink); border-bottom-color: var(--brand); }
.ss-home .ss-pagebar-text { min-width: 0; }
.ss-home .ss-pagebar h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.2px; color: var(--ink); line-height: 1.4; }
.ss-home .ss-crumb { display: block; margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.ss-home .ss-crumb a { color: var(--brand-ink); font-weight: 600; text-decoration: none; cursor: pointer; }

/* ---- surfaces ---- */
.ss-home .ss-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); box-shadow: none; }
.ss-home .ss-pad { padding: 20px; }
.ss-home .ss-section-title, .ss-home .ss-group { display: block; font-size: 18px; font-weight: 800; margin: 30px 0 12px; color: var(--ink); }
.ss-home .ss-card-title h2, .ss-home .ss-head-text h2 { font-size: 17px; }
.ss-home .ss-alert { background: var(--warn-soft); color: var(--st-pending); border: 1px solid currentColor; border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; }
.ss-home .ss-hint { border-radius: 16px; border: 1px solid #BFD3EA; background: var(--info-soft); color: var(--st-review); }
.ss-home .ss-hint-warn { border-color: #EBCF95; background: var(--warn-soft); color: var(--st-pending); }
.ss-home .ss-hint-violet { border-color: #EBCB9F; background: var(--brand-soft); color: var(--brand-ink); }
.ss-home .ss-card-violet { background: var(--card); }
.ss-home .ss-balance { background: var(--st-approved-bg); border: 1px solid #B4DCC4; border-radius: 16px; }
.ss-home .ss-money { color: var(--ink); }

/* ---- buttons ---- */
.ss-home .ss-btn { min-height: 44px; padding: 0 20px; border: 1px solid var(--border); border-radius: var(--r-sm); background: #fff; color: var(--ink); font-family: inherit; font-size: 14.5px; font-weight: 700; line-height: 1.2; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; box-shadow: var(--hard); text-decoration: none; transition: transform .12s, box-shadow .12s, background-color .15s; }
.ss-home .ss-btn:hover:not([disabled]) { transform: translateY(-1px); box-shadow: var(--hard-up); }
.ss-home .ss-btn:active:not([disabled]) { transform: none; box-shadow: none; }
.ss-home .ss-btn svg { width: 18px; height: 18px; }
.ss-home .ss-btn[disabled], .ss-home .ss-btn.disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.ss-home .ss-btn-primary { background: var(--brand); border-color: transparent; color: var(--edge); }
.ss-home .ss-btn-primary:hover:not([disabled]) { background: #E5AC64; border-color: transparent; }
.ss-home .ss-btn-secondary { background: #fff; border-color: var(--border); color: var(--ink); }
.ss-home .ss-btn-secondary:hover:not([disabled]) { background: var(--field-ro); }
.ss-home .ss-btn-ghost { background: var(--field-ro); border-color: var(--line); color: var(--ink-2); box-shadow: none; }
.ss-home .ss-btn-ghost:hover:not([disabled]) { background: #EAE7EE; color: var(--ink); transform: none; box-shadow: none; }
.ss-home .ss-btn-danger { background: var(--bad); border-color: transparent; color: #fff; }
.ss-home .ss-btn-danger:hover:not([disabled]) { background: #983333; border-color: transparent; }
.ss-home .ss-btn-bad { background: #fff; border-color: var(--border); color: var(--bad); }
.ss-home .ss-btn-bad:hover:not([disabled]) { background: var(--bad-soft); }
.ss-home .ss-btn-ok { background: var(--ok); border-color: transparent; color: #fff; }
.ss-home .ss-btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.ss-home .ss-btn-lg { min-height: 48px; padding: 0 26px; font-size: 15.5px; }
.ss-home .ss-btn-block { display: flex; width: 100%; }

/* ---- status badges ---- */
.ss-home .ss-badge, .ss-home .ss-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 11px; border: 1px solid currentColor; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.6; white-space: nowrap; background: var(--st-neutral-bg); color: var(--st-neutral); }
.ss-home .ss-badge::before, .ss-home .ss-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.ss-home .ss-badge.is-pending, .ss-home .ss-pill.p-pending { background: var(--st-pending-bg); color: var(--st-pending); }
.ss-home .ss-badge.is-review, .ss-home .ss-pill.p-review { background: var(--st-review-bg); color: var(--st-review); }
.ss-home .ss-badge.is-approved, .ss-home .ss-pill.p-approved { background: var(--st-approved-bg); color: var(--st-approved); }
.ss-home .ss-badge.is-rejected, .ss-home .ss-pill.p-rejected { background: var(--st-rejected-bg); color: var(--st-rejected); }
.ss-home .ss-badge.is-neutral { background: var(--st-neutral-bg); color: var(--st-neutral); }
.ss-home .ss-pill-lg { font-size: 13px; padding: 5px 14px; }

/* ---- filter chips ---- */
.ss-home .ss-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.ss-home .ss-chip { min-height: 40px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--ink); font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ss-home .ss-chip:hover { background: var(--brand-soft); }
.ss-home .ss-chip.on, .ss-home .ss-chip.sel, .ss-home.ss-page .ss-chip.sel { border-color: var(--edge); background: var(--edge); color: #fff; font-weight: 700; }
.ss-home .ss-select { min-height: 40px; border: 1px solid var(--field-line); border-radius: 12px; background: #fff; padding: 0 12px; font-family: inherit; font-size: 13.5px; color: var(--ink-2); }

/* ---- list rows, empty state ---- */
.ss-home .ss-list { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.ss-home .ss-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; background: none; border: 0; border-top: 1px solid var(--line); font-family: inherit; color: var(--ink); text-align: start; cursor: pointer; }
.ss-home .ss-row:first-child { border-top: 0; }
.ss-home .ss-row:hover { background: var(--brand-soft); }
.ss-home .ss-row-ic { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--brand-soft); color: var(--edge); display: grid; place-items: center; flex: none; }
.ss-home .ss-row-main { flex: 1; min-width: 0; }
.ss-home .ss-row-main b { display: block; font-weight: 700; }
.ss-home .ss-row-main small { display: block; color: var(--muted); font-size: 12.5px; }
.ss-home .ss-row-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; flex: none; }
.ss-home .ss-row > .ss-chev { color: var(--muted); width: 20px; height: 20px; }
.ss-home .ss-empty { text-align: center; color: var(--muted); border: 1px dashed #B3ADBE; border-radius: var(--r); background: #fff; padding: 32px 16px; font-size: 14px; }
.ss-home .ss-empty svg { width: 40px; height: 40px; margin-bottom: 8px; }
.ss-home .ss-loading { padding: 40px; font-size: 24px; color: var(--muted); text-align: center; }

/* ---- dialog ---- */
.ss-home .ss-dialog-back { position: fixed; inset: 0; z-index: 1000; background: rgba(31,36,48,.45); display: grid; place-items: center; padding: 16px; }
.ss-home .ss-dialog { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--hard-lg); }
.ss-home .ss-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.ss-home .ss-dialog-head h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--ink); }
.ss-home .ss-dialog-body { padding: 20px; }
.ss-home .ss-dialog-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--border); }

/* ---- bottom action bar: a plain row on desktop, sticky on phone ---- */
.ss-home .ss-actionbar { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ---- vertical stepper ---- */
.ss-home .ss-steps { list-style: none; margin: 0; padding: 0; }
.ss-home .ss-steps > li { display: flex; gap: 12px; position: relative; padding-bottom: 20px; }
.ss-home .ss-steps > li:last-child { padding-bottom: 0; }
.ss-home .ss-steps > li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line); }
.ss-home .ss-steps > li.is-done:not(:last-child)::after { background: var(--st-approved); }
.ss-home .ss-step-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--field-line); background: #fff; color: var(--muted); display: grid; place-items: center; font-size: 12.5px; font-weight: 600; flex: none; z-index: 1; }
.ss-home .ss-step-dot svg { width: 14px; height: 14px; stroke-width: 2.4; }
.ss-home .is-done > .ss-step-dot { border-color: var(--st-approved); background: var(--st-approved-bg); color: var(--st-approved); }
.ss-home .is-current > .ss-step-dot { border-color: var(--brand); background: var(--brand); color: var(--edge); }
.ss-home .is-rejected > .ss-step-dot { border-color: var(--st-rejected); background: var(--st-rejected-bg); color: var(--st-rejected); }
.ss-home .ss-step-title { display: block; font-weight: 700; line-height: 1.5; }
.ss-home .ss-step-sub { display: block; color: var(--muted); font-size: 12.5px; }

/* ---- upload zone and file chip ---- */
.ss-home .ss-upload { border: 1px dashed #B3ADBE; border-radius: 18px; background: #fff; padding: 24px 16px; text-align: center; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ss-home .ss-upload.dragover, .ss-home .ss-upload:hover { border-color: var(--brand); background: var(--brand-soft); }
.ss-home .ss-upload-ic { width: 32px; height: 32px; color: var(--brand-ink); }
.ss-home .ss-upload-text small { display: block; color: var(--muted); font-size: 12.5px; }
.ss-home .ss-filechip { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--r-sm); background: #fff; }
.ss-home .ss-filechip > svg { color: var(--brand-ink); }
.ss-home .ss-filechip-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13.5px; }
.ss-home .ss-filechip-size { color: var(--muted); font-size: 12px; flex: none; }
.ss-home .ss-filechip-x { width: 36px; height: 36px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; flex: none; }
.ss-home .ss-filechip-x:hover { background: #E8EBEE; }

/* ---- the ERP form controls inside the self service pages ---- */
.ss-home.ss-page .form-group { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.ss-home.ss-page .form-group::before, .ss-home.ss-page .form-group::after { display: none; }
.ss-home.ss-page .form-group > label, .ss-home.ss-page .form-group > [class*="col-"] { float: none; width: 100%; max-width: 100%; padding-inline: 0; margin: 0; min-height: 0; text-align: start; }
.ss-home.ss-page .form-group > label { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.ss-home.ss-page .form-control { display: block; width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--field-line); border-radius: 12px; background-color: #fff; color: var(--ink); font-family: inherit; font-size: 14.5px; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.ss-home.ss-page textarea.form-control { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.ss-home.ss-page .form-control::placeholder { color: var(--muted); }
.ss-home.ss-page .form-control:focus { border-color: var(--brand); box-shadow: var(--ring); outline: 0; }
.ss-home.ss-page .form-control[readonly], .ss-home.ss-page .form-control[disabled], .ss-home.ss-page fieldset[disabled] .form-control { background-color: var(--field-ro); color: var(--ink-2); cursor: default; opacity: 1; }
.ss-home.ss-page select.form-control { height: 44px !important; appearance: none; -webkit-appearance: none; padding-inline-end: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B5263' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 12px center; }
html[dir="rtl"] .ss-home.ss-page select.form-control { background-position: left 12px center; }
.ss-home.ss-page select.form-control[disabled] { background-color: var(--field-ro); }
/* the ERP marks a required field with a red edge; here a field is red only after it was touched or the form was sent */
html body .ss-home.ss-page .form-group .form-control[class*="ng-invalid"] { border: 1px solid var(--field-line) !important; }
html body .ss-home.ss-page .form-group.has-error .form-control, html body .ss-home.ss-page .form-group .form-control.ng-invalid.ng-touched, html body .ss-home.ss-page .ng-submitted .form-group .form-control.ng-invalid, html body .ss-home.ss-page .form-group .form-control.invalid { border: 1px solid var(--bad) !important; background-color: #fff !important; }
html body .ss-home.ss-page .form-group .form-control.ng-invalid.ng-touched:focus, html body .ss-home.ss-page .ng-submitted .form-group .form-control.ng-invalid:focus { box-shadow: 0 0 0 3px rgba(177,61,61,.25); }
.ss-home.ss-page .np-validations-container { display: block; margin-top: 4px; }
.ss-home.ss-page .text-danger, .ss-home.ss-page .ss-error { color: var(--bad); font-size: 12.5px; }
.ss-home.ss-page .input-group { display: flex; width: 100%; }
.ss-home.ss-page .input-group .form-control { float: none; flex: 1; min-width: 0; width: auto; }
.ss-home.ss-page .input-group .form-control { border-radius: 12px; }
.ss-home.ss-page .input-group .form-control:not(:last-child) { border-start-end-radius: 0; border-end-end-radius: 0; }
.ss-home.ss-page .input-group-addon { display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 14px; border: 1px solid var(--field-line); border-radius: 12px; border-inline-start: 0; border-start-start-radius: 0; border-end-start-radius: 0; background: var(--field-ro); color: var(--ink-2); width: auto; cursor: pointer; }
.ss-home.ss-page .checkbox label { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; font-weight: 500; }
.ss-home.ss-page .np-file-upload .upload-button, .ss-home.ss-page .np-file-upload .btn { min-height: 40px; border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--ink); font-family: inherit; font-weight: 700; padding: 0 16px; box-shadow: var(--hard); }

/* ---- the employee home ---- */
.ss-home .ss-hero { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--hard-lg); padding: 20px 24px; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ss-home .ss-hero::after { display: none; }
.ss-home .ss-hero-loading { display: flex; align-items: center; justify-content: center; min-height: 110px; font-size: 22px; color: var(--muted); }
.ss-home .ss-who { display: flex; gap: 16px; align-items: center; min-width: 0; }
.ss-home .ss-avatar { width: 64px; height: 64px; font-size: 24px; }
.ss-home .ss-who-text { min-width: 0; }
.ss-home .ss-greeting { color: var(--muted); font-size: 13px; opacity: 1; }
.ss-home .ss-hero h1 { margin: 0; font-size: 24px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.ss-home .ss-meta { color: var(--ink-2); font-size: 13.5px; opacity: 1; }
.ss-home .ss-sep { margin: 0 6px; }
.ss-home .ss-stat { flex: none; min-width: 160px; padding: 0; padding-inline-start: 24px; border: 0; border-inline-start: 1px solid var(--line); border-radius: 0; background: none; text-align: start; }
.ss-home .ss-stat small { display: block; color: var(--muted); font-size: 12.5px; opacity: 1; }
.ss-home .ss-stat-val { display: flex; align-items: center; gap: 10px; }
.ss-home .ss-stat-val svg { width: 28px; height: 28px; color: var(--brand-ink); }
.ss-home .ss-stat-val b { font-size: 30px; font-weight: 800; line-height: 1.2; color: var(--ink); }
.ss-home .ss-stat-val span { color: var(--ink-2); font-size: 14px; }

/* ---------- Home: greeting, quick actions, latest requests and service cards ---------- */
.ss-home .is-teal { --c: #14A896; } .ss-home .is-orange { --c: #F08C32; } .ss-home .is-green { --c: #22A35A; }
.ss-home .is-violet { --c: #7C5CDB; } .ss-home .is-blue { --c: #3B82F6; } .ss-home .is-gold { --c: #DA9E52; }
.ss-home .is-pink { --c: #E0527E; } .ss-home .is-indigo { --c: #5865F2; } .ss-home .is-yellow { --c: #F2B01E; }
.ss-home .is-sky { --c: #0EA5E9; } .ss-home .is-purple { --c: #A855F7; }
.ss-home .ssb-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.ss-home .ssb-hi h1 { margin: 0 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -.3px; line-height: 1.35; color: var(--ink); }
.ss-home .ssb-hi p { margin: 0; color: var(--ink-2); font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 6px; }
.ss-home .ssb-hi p b { color: var(--ink); }
.ss-home .ssb-chips { display: flex; gap: 12px; flex-wrap: wrap; }
.ss-home .ssb-chip { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--ink); box-shadow: var(--hard); font-family: inherit; cursor: pointer; text-align: start; transition: transform .15s, box-shadow .15s; }
.ss-home .ssb-chip:hover { transform: translateY(-1px); box-shadow: var(--hard-up); }
.ss-home .ssb-chip svg { width: 22px; height: 22px; flex: none; }
.ss-home .ssb-chip b { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; }
.ss-home .ssb-chip small { display: block; font-size: 12px; color: var(--ink-2); font-weight: 600; }

.ss-home .ssb-row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.ss-home .ssb-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #1F1A2E 0%, #2D2742 100%); color: #fff; border-radius: 18px; padding: 26px; }
.ss-home .ssb-hero::after { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; background: var(--brand); opacity: .14; inset-inline-start: -60px; bottom: -110px; pointer-events: none; }
.ss-home .ssb-hero h2 { position: relative; z-index: 1; margin: 0 0 4px; font-size: 22px; font-weight: 800; color: #fff; }
.ss-home .ssb-hero > p { position: relative; z-index: 1; margin: 0 0 18px; color: rgba(255,255,255,.72); font-size: 14px; }
.ss-home .ssb-acts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ss-home .is-teal.ssb-act { --c: #5EEAD4; } .ss-home .is-orange.ssb-act { --c: #FDBA74; }
.ss-home .is-green.ssb-act { --c: #86EFAC; } .ss-home .is-violet.ssb-act { --c: #C4B5FD; }
.ss-home .ssb-act { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 140px; padding: 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.08); color: #fff; font-family: inherit; text-align: start; cursor: pointer; transition: transform .18s, background-color .18s; }
.ss-home .ssb-act:hover { transform: translateY(-2px); background: rgba(255,255,255,.14); }
.ss-home .ssb-act-ic { width: 50px; height: 50px; border-radius: 16px; background: var(--c); color: #1F1A2E; display: grid; place-items: center; margin-bottom: 8px; }
.ss-home .ssb-act-ic svg { width: 24px; height: 24px; }
.ss-home .ssb-act b { font-size: 15px; font-weight: 800; line-height: 1.35; }
.ss-home .ssb-act small { font-size: 12.5px; color: rgba(255,255,255,.7); line-height: 1.45; }

.ss-home .ssb-photo { display: flex; flex-direction: column; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--hard-lg); padding: 22px; margin: 0; text-align: center; }
.ss-home .ssb-photo-frame { width: 100%; max-width: 220px; aspect-ratio: 1; border: 1px solid var(--border); border-radius: 50%; overflow: hidden; background: #E6E9EE; display: grid; place-items: center; }
.ss-home .ssb-photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-home .ssb-photo-frame .ss-art { position: static; width: 100%; height: 100%; align-self: end; stroke: none; }
.ss-home .ssb-photo-text b { display: block; font-size: 18px; font-weight: 800; color: var(--ink); line-height: 1.4; }
.ss-home .ssb-photo-text small { color: var(--muted); font-size: 13px; }
.ss-home .ssb-photo .ssb-more { margin-top: auto; align-self: center; }
.ss-home .ss-home-btn svg { width: 20px; height: 20px; }
.ss-home .ssb-more { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px; border: 0; background: none; color: var(--brand-ink); font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ss-home .ssb-more svg { width: 18px; height: 18px; }
html[dir="rtl"] .ss-home .ss-chev-ic { transform: scaleX(-1); }

.ss-home .ssb-sec { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 30px 0 14px; }
.ss-home .ssb-sec h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--ink); }
.ss-home .ssb-tabs { display: flex; gap: 6px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: #fff; }
.ss-home .ssb-tabs button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.ss-home .ssb-tabs button.on { background: var(--edge); color: #fff; }
.ss-home .ssb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 0 6px 6px 0; }
.ss-home .ssb-card { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 168px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: #fff; color: var(--ink); font-family: inherit; text-align: start; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.ss-home .ssb-card:hover { transform: translateY(-2px); box-shadow: var(--hard-up); }
.ss-home .ssb-card::before { display: none; content: ""; position: absolute; z-index: -1; width: 150px; height: 150px; border-radius: 46% 54% 60% 40%; background: color-mix(in srgb, var(--c) 26%, #fff); inset-inline-end: -40px; top: -40px; }
.ss-home .ssb-card-group { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.ss-home .ssb-card b { font-size: 17px; font-weight: 800; line-height: 1.35; }
.ss-home .ssb-card-sub { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.ss-home .ssb-pill { margin-top: 6px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 2px 10px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 70%, #1D1B22); font-size: 12px; font-weight: 700; }
.ss-home .ssb-card-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 10px; background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c); }
.ss-home .ssb-card-ic svg { width: 22px; height: 22px; }

@media (max-width: 1100px) {
  .ss-home .ssb-row { grid-template-columns: minmax(0, 1fr); }
  .ss-home .ssb-photo { flex-direction: row; text-align: start; }
  .ss-home .ssb-photo-frame { width: 120px; flex: none; }
  .ss-home .ssb-photo-text { flex: 1; min-width: 0; }
  .ss-home .ssb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ss-home .ssb-hi h1 { font-size: 24px; }
  .ss-home .ssb-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .ss-home .ssb-chip { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 10px; }
  .ss-home .ssb-hero { padding: 20px 16px; }
  .ss-home .ssb-photo-frame { width: 88px; }
  .ss-home .ssb-photo { padding: 16px; gap: 14px; }
  .ss-home .ssb-acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ss-home .ssb-act { min-height: 124px; }
  .ss-home .ssb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ss-home .ssb-card { min-height: 150px; padding: 14px; }
  .ss-home .ssb-card b { font-size: 15px; }
  .ss-home .ssb-tabs { width: 100%; justify-content: space-between; }
  .ss-home .ssb-tabs button { flex: 1; padding: 0 8px; }
}

@media (max-width: 700px) {
  .ss-home .ss-me-name { display: none; }
}
@media (max-width: 560px) {
  .ss-home .ss-top { padding: 8px 12px; min-height: 56px; }
  .ss-home .ss-logo img { height: 30px; }
  .ss-home .ss-brand { gap: 8px; }
  .ss-home .ss-brand-text { padding-inline-start: 8px; }
  .ss-home .ss-brand-text > span { font-size: 13px; }
  .ss-home .ss-brand-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ss-home .ss-me { display: none; }
  .ss-home .ss-top-btn span { display: none; }
  .ss-home .ss-top-btn, .ss-home .ss-lang a { padding: 0 8px; }
  .ss-home .ss-body { padding: 16px; }
  .ss-home .ss-pagebar h1 { font-size: 19px; }
  .ss-home .ss-pad { padding: 16px; }
  .ss-home .ss-chip { min-height: 44px; }
  .ss-home .ss-btn-sm { min-height: 44px; }
  .ss-home .ss-hero { padding: 16px; flex-wrap: wrap; gap: 14px; }
  .ss-home .ss-who { width: 100%; }
  .ss-home .ss-avatar { width: 48px; height: 48px; font-size: 19px; }
  .ss-home .ss-hero h1 { font-size: 18px; }
  .ss-home .ss-stat { width: 100%; min-width: 0; padding: 12px 0 0; border-inline-start: 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .ss-home .ss-stat small { font-size: 13px; }
  .ss-home .ss-stat-val b { font-size: 24px; }
  .ss-home .ss-actionbar { position: sticky; bottom: 0; z-index: 4; margin: 20px -16px -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border); }
  .ss-home .ss-actionbar .ss-btn { flex: 1; }
  .ss-home .ss-dialog-back { align-items: end; padding: 0; }
  .ss-home .ss-dialog { max-width: none; border-radius: var(--r) var(--r) 0 0; box-shadow: none; }
}
