/* Status: PROTOTYPE (not production code; see Prototypes/Payroll/README.md)
   SMART EMIS Payroll: design layer over Tailwind (CR-204, PAY-R448-A).
   Dense enterprise look: navy navigation, white surfaces, one indigo action colour,
   semantic status colours that always travel with text, tabular figures. */
/* GOV-R314-A (CR-703): colours from the shared theme variables */
:root {
  --nav-bg: color-mix(in srgb, rgb(var(--nav-to)) 70%, rgb(var(--nav-from))); --nav-bg-2: color-mix(in srgb, rgb(var(--nav-to)) 94%, rgb(var(--on-brand))); --nav-text: rgb(var(--nav-ink)); --nav-muted: color-mix(in srgb, rgb(var(--nav-ink)) 70%, rgb(var(--nav-from))); --nav-active: rgb(var(--brand-600));
  --ink-3: rgb(var(--ink-muted)); /* the other tokens are in ../shared/emis-theme.css (GOV-R147) */
}
html, body { height: 100%; }
/* CR-725 (GOV-R323-A): the base size of the foundation, --fs-3 (14px), in place of 13px */
body { background: rgb(var(--canvas)); color: rgb(var(--ink)); font-size: calc(var(--fs-3, 14px) * var(--es-ts, 1)); }
/* PAY-R1200-A (CR-599): «حجم النص» and «تقليل الحركة» of My profile (napp-prefs.js sets data-es-text and data-es-motion on <html>).
   The root size grows the rem text of Tailwind; --es-ts grows the px font sizes of this file; bar and band heights stay as they are. */
html[data-es-text="112"] { font-size: 112%; --es-ts: 1.12; }
html[data-es-text="125"] { font-size: 125%; --es-ts: 1.25; }
html[data-es-motion="reduce"] *, html[data-es-motion="reduce"] *::before, html[data-es-motion="reduce"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
[dir="rtl"], [dir="rtl"] button, [dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea { font-family: 'IBM Plex Sans Arabic', 'Cairo', system-ui, sans-serif; }
[dir="ltr"], [dir="ltr"] button, [dir="ltr"] input, [dir="ltr"] select, [dir="ltr"] textarea { font-family: 'Inter', system-ui, sans-serif; }
.num, .font-mono, td.t-end, th.t-end { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
:focus-visible { outline: 2px solid rgb(var(--brand-500)); outline-offset: 2px; border-radius: 4px; }

/* Shell */
#app-shell { display: flex; height: 100vh; overflow: hidden; }
#side { width: 268px; flex: none; background: var(--nav-bg); color: var(--nav-text); display: flex; flex-direction: column; z-index: 45; transition: transform .2s ease; }
#content-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#top-bar { height: 56px; flex: none; background: rgb(var(--surface)); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 20px; }
#main-scroll { flex: 1; overflow-y: auto; padding: 18px 24px 40px; }
#main-content { max-width: 1440px; margin: 0 auto; }
#side-backdrop { display: none; }
.menu-btn { display: none !important; }
@media (max-width: 1023px) {
  #side { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; transform: translateX(-100%); }
  [dir="rtl"] #side { transform: translateX(100%); }
  body.nav-open #side { transform: none; }
  body.nav-open #side-backdrop { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 44; }
  .menu-btn { display: inline-flex !important; }
  #main-scroll { padding: 12px 12px 32px; }
  #top-bar { padding: 0 12px; }
  .hide-md { display: none !important; }
}
.brand { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg,rgb(var(--brand-500)),rgb(var(--brand-800))); display: flex; align-items: center; justify-content: center; color: rgb(var(--on-brand)); flex: none; }
.brand b { display: block; color: rgb(var(--on-brand)); font-size: calc(13.5px * var(--es-ts, 1)); font-weight: 700; }
.brand small { color: var(--nav-muted); font-size: calc(11px * var(--es-ts, 1)); }
.side-search { padding: 10px 12px 6px; }
.side-search input { width: 100%; background: var(--nav-bg-2); border: 1px solid rgba(255,255,255,.12); border-radius: 7px; color: rgb(var(--on-brand)); font-size: calc(12px * var(--es-ts, 1)); padding: 7px 10px; }
.side-search input::placeholder { color: var(--nav-muted); }
#side-nav { flex: 1; overflow-y: auto; padding: 4px 8px 12px; }
#side-nav::-webkit-scrollbar { width: 6px; }
#side-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 6px; }
.nav-group-t { color: var(--nav-muted); font-size: calc(11px * var(--es-ts, 1)); font-weight: 600; padding: 12px 8px 5px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 9px; padding: 6.5px 8px; border-radius: 6px; font-size: calc(12px * var(--es-ts, 1)); color: var(--nav-text); text-align: start; line-height: 1.35; }
.nav-item:hover { background: var(--nav-bg-2); color: rgb(var(--on-brand)); }
.nav-item i.ic { width: 15px; text-align: center; font-size: calc(12px * var(--es-ts, 1)); opacity: .8; flex: none; }
.nav-item .sid { margin-inline-start: auto; font-size: calc(11px * var(--es-ts, 1)); color: var(--nav-muted); direction: ltr; flex: none; }
.nav-item.active { background: var(--nav-active); color: rgb(var(--on-brand)); font-weight: 600; }
.nav-item.active .sid { color: rgb(var(--brand-100)); }
.nav-item.off { color: color-mix(in srgb, rgb(var(--nav-ink)) 73%, rgb(var(--nav-from))); }
.side-foot { padding: 10px 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: calc(11px * var(--es-ts, 1)); color: var(--nav-muted); line-height: 1.6; }
.crumb { font-size: calc(12px * var(--es-ts, 1)); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.crumb b { color: rgb(var(--ink)); font-weight: 600; }
.ctl { height: 32px; font-size: calc(12px * var(--es-ts, 1)); border: 1px solid rgb(var(--border-strong)); border-radius: 7px; background: rgb(var(--surface)); padding: 0 10px; color: rgb(var(--ink)); }
.ctl-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ctl-btn:hover { background: rgb(var(--surface-2)); }

/* Page kit */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.page-head h2 { font-size: calc(19px * var(--es-ts, 1)); font-weight: 700; letter-spacing: -.01em; color: rgb(var(--ink)); }
.page-head p { font-size: calc(12px * var(--es-ts, 1)); color: var(--ink-3); margin-top: 2px; max-width: 780px; line-height: 1.6; }
.meta-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); margin-bottom: 12px; padding: 6px 10px; background: rgb(var(--surface-2)); border-radius: 6px; }
.meta-strip code { font-size: calc(11px * var(--es-ts, 1)); color: rgb(var(--ink-2)); direction: ltr; unicode-bidi: isolate; }
.card { background: rgb(var(--surface)); border: 1px solid var(--line); border-radius: 9px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: calc(13px * var(--es-ts, 1)); font-weight: 600; color: rgb(var(--ink)); }
.card-body { padding: 14px; }
.stack > * + * { margin-top: 14px; }
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpi { background: rgb(var(--surface)); border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; text-align: start; display: block; width: 100%; }
button.kpi:hover { border-color: rgb(var(--brand-300)); }
.kpi .l { font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); font-weight: 600; }
.kpi .v { font-size: calc(19px * var(--es-ts, 1)); font-weight: 700; margin-top: 3px; color: rgb(var(--ink)); font-variant-numeric: tabular-nums; line-height: 1.3; }
.kpi .v small { font-size: calc(11px * var(--es-ts, 1)); font-weight: 600; color: var(--ink-3); }
.kpi .s { font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); margin-top: 1px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; border-radius: 7px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .12s; }
.btn-p { background: rgb(var(--brand-600)); color: rgb(var(--on-brand)); }
.btn-p:hover { background: rgb(var(--brand-700)); }
.btn-s { background: rgb(var(--surface)); color: rgb(var(--ink-2)); border-color: rgb(var(--border-strong)); }
.btn-s:hover { background: rgb(var(--surface-2)); }
.btn-ok { background: color-mix(in srgb, rgb(var(--ok)) 80%, black); color: rgb(var(--on-brand)); }
.btn-ok:hover { background: color-mix(in srgb, rgb(var(--ok)) 64%, black); }
.btn-no { background: color-mix(in srgb, rgb(var(--bad)) 84%, black); color: rgb(var(--on-brand)); }
.btn-no:hover { background: color-mix(in srgb, rgb(var(--bad)) 71%, black); }
.btn[disabled] { background: rgb(var(--surface-2)); color: color-mix(in srgb, rgb(var(--ink-muted)) 45%, rgb(var(--ink-faint))); border-color: var(--line); cursor: not-allowed; }
.btn-xs { height: 26px; padding: 0 8px; font-size: calc(11px * var(--es-ts, 1)); }
.link { color: rgb(var(--brand-700)); font-weight: 600; cursor: pointer; }
.link:hover { text-decoration: underline; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: calc(11px * var(--es-ts, 1)); font-weight: 600; border: 1px solid; white-space: nowrap; line-height: 1.6; }
.c-gray { background: color-mix(in srgb, rgb(var(--border)) 50%, rgb(var(--surface))); color: rgb(var(--ink-2)); border-color: rgb(var(--border-strong)); }
.c-amber { background: color-mix(in srgb, rgb(var(--warn)) 4%, rgb(var(--surface))); color: color-mix(in srgb, color-mix(in srgb, rgb(var(--warn)) 80%, rgb(var(--bad))) 67%, black); border-color: oklch(from rgb(var(--warn)) 0.879 0.153 calc(h + 33)); }
.c-green { background: color-mix(in srgb, rgb(var(--ok)) 5%, rgb(var(--surface))); color: color-mix(in srgb, rgb(var(--ok)) 64%, black); border-color: oklch(from rgb(var(--ok)) 0.845 0.143 h); }
.c-red { background: color-mix(in srgb, rgb(var(--bad)) 6%, rgb(var(--surface))); color: color-mix(in srgb, rgb(var(--bad)) 71%, black); border-color: color-mix(in srgb, rgb(var(--bad)) 42%, rgb(var(--surface))); }
.c-blue { background: color-mix(in srgb, rgb(var(--chv-1)) 7%, rgb(var(--surface))); color: color-mix(in srgb, rgb(var(--chv-1)) 74%, black); border-color: oklch(from rgb(var(--chv-1)) 0.809 0.096 calc(h - 11)); }
.c-indigo { background: color-mix(in srgb, color-mix(in srgb, rgb(var(--chv-1)) 55%, rgb(var(--chv-5))) 9%, rgb(var(--surface))); color: color-mix(in srgb, color-mix(in srgb, rgb(var(--chv-1)) 55%, rgb(var(--chv-5))) 70%, black); border-color: color-mix(in srgb, color-mix(in srgb, rgb(var(--chv-1)) 55%, rgb(var(--chv-5))) 47%, rgb(var(--surface))); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; border: 1px solid; font-size: calc(12px * var(--es-ts, 1)); line-height: 1.6; }
.notice.warn { background: color-mix(in srgb, rgb(var(--warn)) 4%, rgb(var(--surface))); border-color: oklch(from rgb(var(--warn)) 0.924 0.115 calc(h + 37)); color: color-mix(in srgb, color-mix(in srgb, rgb(var(--warn)) 80%, rgb(var(--bad))) 55%, black); }
.notice.info { background: color-mix(in srgb, rgb(var(--chv-1)) 7%, rgb(var(--surface))); border-color: oklch(from rgb(var(--chv-1)) 0.882 0.059 calc(h - 9)); color: color-mix(in srgb, rgb(var(--chv-1)) 59%, black); }
.notice.bad { background: color-mix(in srgb, rgb(var(--bad)) 6%, rgb(var(--surface))); border-color: color-mix(in srgb, rgb(var(--bad)) 22%, rgb(var(--surface))); color: color-mix(in srgb, rgb(var(--bad)) 60%, black); }
.notice.ok { background: color-mix(in srgb, rgb(var(--ok)) 5%, rgb(var(--surface))); border-color: oklch(from rgb(var(--ok)) 0.905 0.093 h); color: color-mix(in srgb, rgb(var(--ok)) 52%, black); }
.notice.gray { background: rgb(var(--surface-2)); border-color: rgb(var(--border)); color: rgb(var(--ink-2)); }
.dg-wrap { overflow-x: auto; }
table.dg { width: 100%; border-collapse: collapse; font-size: calc(12px * var(--es-ts, 1)); }
table.dg th { background: rgb(var(--surface-2)); color: rgb(var(--ink-2)); font-weight: 600; font-size: calc(11px * var(--es-ts, 1)); padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
table.dg th.sortable { cursor: pointer; }
table.dg th.sortable:hover { color: rgb(var(--ink)); }
table.dg td { padding: 7px 10px; border-bottom: 1px solid var(--line); color: rgb(var(--ink)); vertical-align: middle; }
table.dg tr:last-child td { border-bottom: 0; }
table.dg tbody tr:hover { background: rgb(var(--surface-2)); }
table.dg tr.total td { font-weight: 700; background: rgb(var(--surface-2)); border-top: 1px solid var(--line); }
.t-end { text-align: end !important; }
.t-center { text-align: center !important; }
.grid-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.grid-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 8px 12px; font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); border-top: 1px solid var(--line); }
.empty { padding: 34px 16px; text-align: center; color: var(--ink-3); font-size: calc(12px * var(--es-ts, 1)); }
.empty i { display: block; font-size: calc(24px * var(--es-ts, 1)); color: rgb(var(--border-strong)); margin-bottom: 8px; }
.tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); padding: 0 8px; }
.tab { padding: 10px 12px; font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: rgb(var(--ink)); }
.tab.on { color: rgb(var(--brand-700)); border-color: rgb(var(--brand-600)); }
.tab .cnt { font-size: calc(11px * var(--es-ts, 1)); background: rgb(var(--border)); color: rgb(var(--ink-2)); border-radius: 999px; padding: 0 6px; margin-inline-start: 4px; }
.life { display: flex; align-items: stretch; overflow-x: auto; padding-bottom: 2px; }
.life div { flex: 1 0 auto; min-width: 74px; text-align: center; font-size: calc(11px * var(--es-ts, 1)); padding: 18px 4px 0; position: relative; color: color-mix(in srgb, rgb(var(--ink-muted)) 45%, rgb(var(--ink-faint))); line-height: 1.3; }
.life div::before { content: ''; position: absolute; top: 5px; inset-inline-start: 50%; width: 100%; height: 2px; background: rgb(var(--border)); }
.life div:last-child::before { display: none; }
.life div::after { content: ''; position: absolute; top: 0; inset-inline-start: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: rgb(var(--border)); }
.life .done { color: rgb(var(--ink-2)); }
.life .done::before, .life .done::after { background: rgb(var(--ok)); }
.life .now { color: rgb(var(--brand-800)); font-weight: 700; }
.life .now::after { background: rgb(var(--brand-600)); box-shadow: 0 0 0 3px rgb(var(--brand-200)); }
.life .stop { color: color-mix(in srgb, rgb(var(--bad)) 68%, rgb(var(--ink))); font-weight: 700; }
.life .stop::after { background: color-mix(in srgb, rgb(var(--bad)) 84%, black); }
.fld label { display: block; font-size: calc(11.5px * var(--es-ts, 1)); font-weight: 600; color: rgb(var(--ink-2)); margin-bottom: 4px; }
.fld label .req { color: color-mix(in srgb, rgb(var(--bad)) 84%, black); }
.fld input, .fld select, .fld textarea { width: 100%; font-size: calc(12.5px * var(--es-ts, 1)); border: 1px solid rgb(var(--border-strong)); border-radius: 7px; padding: 6px 9px; background: rgb(var(--surface)); }
.fld input[readonly], .fld input:disabled, .fld select:disabled { background: rgb(var(--surface-2)); color: rgb(var(--ink-muted)); }
.fld .err { color: color-mix(in srgb, rgb(var(--bad)) 84%, black); font-size: calc(11px * var(--es-ts, 1)); margin-top: 3px; }
.fld .hint { color: var(--ink-3); font-size: calc(11px * var(--es-ts, 1)); margin-top: 3px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 18px; }
.dl dt { font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); }
.dl dd { font-size: calc(12.5px * var(--es-ts, 1)); color: rgb(var(--ink)); font-weight: 600; margin-top: 1px; overflow-wrap: anywhere; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: 6px; font-size: calc(12px * var(--es-ts, 1)); color: var(--ink-3); padding: 5px 10px; border-radius: 999px; background: rgb(var(--surface-2)); }
.steps span.on { background: rgb(var(--brand-50)); color: rgb(var(--brand-800)); font-weight: 600; }
.steps span.ok { background: color-mix(in srgb, rgb(var(--ok)) 5%, rgb(var(--surface))); color: color-mix(in srgb, rgb(var(--ok)) 64%, black); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { padding: 5px 11px; font-size: calc(12px * var(--es-ts, 1)); border: 1px solid rgb(var(--border-strong)); border-radius: 7px; background: rgb(var(--surface)); color: rgb(var(--ink-2)); font-weight: 600; }
.seg button.on { background: rgb(var(--brand-50)); border-color: rgb(var(--brand-300)); color: rgb(var(--brand-800)); font-weight: 600; }
.pair { display: grid; gap: 14px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
@media (max-width: 900px) { .pair { grid-template-columns: minmax(0,1fr); } }

/* Older screens: bring them onto the same scale without rewriting them */
#main-content .rounded-2xl { border-radius: 9px; }
#main-content .rounded-xl { border-radius: 7px; }
#main-content .font-black { font-weight: 700; }
#main-content .text-2xl { font-size: calc(19px * var(--es-ts, 1)); line-height: 1.35; }
#main-content .uppercase { text-transform: none; letter-spacing: 0; }
#main-content .bg-gradient-to-r { background-image: none; }
#main-content .animate-pulse { animation: none; }
#main-content .space-y-6 > * + * { margin-top: 14px; }
#main-content input:not([type=checkbox]):not([type=radio]), #main-content select, #main-content textarea { border: 1px solid rgb(var(--border-strong)); border-radius: 7px; padding: 5px 9px; }
#modal-container input:not([type=checkbox]):not([type=radio]), #modal-container select, #modal-container textarea { border: 1px solid rgb(var(--border-strong)); border-radius: 7px; padding: 6px 9px; width: 100%; }

@media print {
  #side, #top-bar, .no-print, .meta-strip { display: none !important; }
  #main-scroll { overflow: visible; padding: 0; }
  #app-shell { height: auto; display: block; }
  body { background: rgb(var(--surface)); }
}

table.dg td .ltr { white-space: nowrap; }
#toast-container > div { max-width: 420px; }

#main-content .truncate { white-space: normal; overflow: visible; overflow-wrap: anywhere; }

/* SCR-PB02 stages and next step ([PROPOSED], owner request 2026-11-04) */
.guide { margin-bottom: 12px; overflow: hidden; }
.guide-steps { display: flex; list-style: none; margin: 0; padding: 14px 10px 10px; }
.guide-steps li { flex: 1 1 0; min-width: 0; position: relative; text-align: center; font-size: calc(11.5px * var(--es-ts, 1)); color: var(--ink-3); }
.guide-steps li::before, .guide-steps li::after { content: ''; position: absolute; top: 13px; width: 50%; height: 2px; background: var(--line); }
.guide-steps li::before { inset-inline-start: 0; }
.guide-steps li::after { inset-inline-end: 0; }
.guide-steps li:first-child::before, .guide-steps li:last-child::after { display: none; }
.guide-steps .n { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(var(--surface)); border: 2px solid var(--line); font-weight: 700; font-size: calc(12px * var(--es-ts, 1)); font-variant-numeric: tabular-nums; }
.guide-steps .t { display: block; margin-top: 5px; }
.guide-steps .tag, .guide-steps .ic { display: none; }   /* DRAFT 2026-11-18: the stage and icon of a step (guided-run.js) stay hidden until the theme shows them (data-step-tags / data-step-icons) */
.guide-steps button { display: block; width: 100%; padding: 0; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.guide-steps button:hover:not(:disabled) .t { text-decoration: underline; }
.guide-steps button:disabled { cursor: not-allowed; opacity: .75; }
.guide-steps .view .t { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.wiz-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.wiz-head h3 { margin: 0; font-size: calc(14px * var(--es-ts, 1)); font-weight: 700; color: rgb(var(--ink)); }
.wiz-foot { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; padding: 10px 14px; background: rgb(var(--surface)); border-top: 1px solid var(--line); }
.wiz-foot .foot-end { text-align: end; }
.wiz-foot .why { margin-top: 4px; max-width: 280px; font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); }
.guide-steps button:focus-visible .n { outline: 2px solid rgb(var(--brand-600)); outline-offset: 2px; }
.guide-more { padding: 0 14px 10px; font-size: calc(12px * var(--es-ts, 1)); }
.more-acts summary { cursor: pointer; font-size: calc(12.5px * var(--es-ts, 1)); font-weight: 600; color: rgb(var(--ink-2)); margin-bottom: 8px; }
.src-tile .d { display: block; font-size: calc(11px * var(--es-ts, 1)); line-height: 1.35; color: var(--ink-3); margin-top: 2px; }
.guide-steps .done { color: rgb(var(--ink-2)); }
.guide-steps .done::after, .guide-steps .done + li::before { background: rgb(var(--ok)); }
.guide-steps .done .n { background: rgb(var(--ok)); border-color: rgb(var(--ok)); color: rgb(var(--on-brand)); }
.guide-steps .now { color: rgb(var(--brand-800)); font-weight: 700; }
.guide-steps .now .n { background: rgb(var(--brand-600)); border-color: rgb(var(--brand-600)); color: rgb(var(--on-brand)); box-shadow: 0 0 0 3px rgb(var(--brand-200)); }
.guide-steps .stop { color: color-mix(in srgb, rgb(var(--bad)) 68%, rgb(var(--ink))); font-weight: 700; }
.guide-steps .stop .n { background: color-mix(in srgb, rgb(var(--bad)) 84%, black); border-color: color-mix(in srgb, rgb(var(--bad)) 84%, black); color: rgb(var(--on-brand)); }
.guide-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 11px 14px; background: rgb(var(--brand-50)); border-top: 1px solid rgb(var(--brand-100)); }
.guide-next.is-stop { background: rgb(var(--surface-2)); border-top-color: var(--line); }
.guide-text { flex: 1 1 260px; min-width: 0; }
.guide-text .k { display: block; font-size: calc(11px * var(--es-ts, 1)); font-weight: 600; color: rgb(var(--brand-700)); }
.guide-next.is-stop .k { color: var(--ink-3); }
.guide-text b { display: block; font-size: calc(14px * var(--es-ts, 1)); color: rgb(var(--ink)); margin-top: 1px; }
.guide-text p { margin: 2px 0 0; font-size: calc(12px * var(--es-ts, 1)); color: rgb(var(--ink-2)); }
.guide-act { flex: 0 0 auto; }
/* PAY-R1082-A (CR-501): SCR-PB11 / SCR-PB12 and the operation-mode drawer of SCR-PA13 */
.guide-act .why { display: block; }
/* PAY-R1109-A (CR-519): the record picker is the shared EmisPicker (shared/emis-picker.css); its module-local CSS is removed. Below: the tabs of SCR-PB11 and the line cards of the add drawer */
.gd-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); }
.gd-tab { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 0; border-bottom: 3px solid transparent; background: none; color: rgb(var(--ink-2)); font-size: calc(12.5px * var(--es-ts, 1)); font-weight: 600; cursor: pointer; border-radius: 8px 8px 0 0; }
.gd-tab:hover { background: rgb(var(--brand-50)); }
.gd-tab.on { color: rgb(var(--brand-700)); border-bottom-color: rgb(var(--brand-600)); }
.gd-tab:focus-visible { outline: 2px solid rgb(var(--brand-600)); outline-offset: 2px; }
.gd-tab-n { min-width: 20px; padding: 0 6px; border-radius: 999px; background: rgb(var(--surface-2)); border: 1px solid var(--line); font-size: calc(11px * var(--es-ts, 1)); font-variant-numeric: tabular-nums; text-align: center; }
@media (pointer: coarse) { .gd-tab { min-height: 44px; } }
.gd-lines { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.gd-line { container-type: inline-size; border: 1px solid var(--line); border-radius: 16px; background: rgb(var(--surface-2)); box-shadow: 0 1px 2px rgba(16,24,40,.05); padding: 16px; }
.gd-line-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.gd-line-n { width: 26px; height: 26px; border-radius: 50%; background: rgb(var(--brand-50)); color: rgb(var(--brand-700)); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: calc(12px * var(--es-ts, 1)); font-variant-numeric: tabular-nums; flex: none; }
.gd-line-t { font-weight: 700; font-size: calc(13px * var(--es-ts, 1)); }
/* [DOCUMENTED REQUIREMENT — PAY-R1109-A, CR-519] the card grid follows the width of the CARD (container query), not the viewport: the add drawer is the standard 36rem panel.
   Two columns with named areas: category | item, current HR value | amount, reason code (full), reason detail (full); one column when the card is under 440px (a phone). */
.gd-line-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  grid-template-areas: "cat item" "cur amt" "rc ref" "rd rd"; }
.gd-line-g > * { min-width: 0; }
.gd-a-cat { grid-area: cat; } .gd-a-item { grid-area: item; } .gd-a-cur { grid-area: cur; } .gd-a-amt { grid-area: amt; } .gd-a-rc { grid-area: rc; } .gd-a-ref { grid-area: ref; } .gd-a-rd { grid-area: rd; }
@container (max-width: 440px) { .gd-line-g { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cat" "item" "cur" "amt" "rc" "ref" "rd"; } }
/* the fields of a line card: label 12px / 600 above the field, 13px values, 10px field radius (the skill's rounded-field), hints under the field */
.gd-line .fld label { font-size: calc(12px * var(--es-ts, 1)); line-height: 16px; margin-bottom: 6px; }
.gd-line .fld input, .gd-line .fld select, .gd-line .fld textarea { font-size: calc(13px * var(--es-ts, 1)); line-height: 20px; border-radius: 10px; padding: 7px 12px; }
.gd-line .fld select, .gd-line .fld input { min-height: 38px; }
.gd-line .fld textarea { min-height: 76px; resize: vertical; }
/* the shared picker field keeps its own look inside `.fld` (the generic `.fld input` and `[readonly]` rules would flatten its icon padding and grey it) */
.fld input.ep-in { min-height: 40px; padding: 8px 12px; padding-inline-start: 34px; padding-inline-end: 40px; border-radius: 10px; font-size: calc(13px * var(--es-ts, 1)); }
.fld input.ep-in[readonly]:not(:disabled) { background: rgb(var(--surface)); color: rgb(var(--ink)); }
.gd-line .fld input.ep-in { min-height: 40px; padding: 8px 12px; padding-inline-start: 34px; padding-inline-end: 40px; border-radius: 10px; font-size: calc(13px * var(--es-ts, 1)); }
@media (pointer: coarse) { .gd-line .fld input.ep-in { min-height: 44px; } }
.gd-line .fld .hint, .gd-line .fld .err { font-size: calc(11px * var(--es-ts, 1)); line-height: 16px; margin-top: 4px; }
/* the amount input with the currency chip joined as an add-on (logical borders: the chip sits at the end in RTL and LTR) */
.gd-amt { display: flex; align-items: stretch; }
.gd-amt input { flex: 1 1 auto; min-width: 0; border-start-end-radius: 0 !important; border-end-end-radius: 0 !important; }
.gd-amt-chip { display: inline-flex; align-items: center; padding: 0 12px; font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; white-space: nowrap; color: rgb(var(--ink-2)); background: rgb(var(--surface-2)); border: 1px solid rgb(var(--border-strong)); border-inline-start: 0; border-start-end-radius: 10px; border-end-end-radius: 10px; }
.gd-amt:focus-within .gd-amt-chip { border-color: rgb(var(--brand-600)); }
.gd-line .fld select:focus-visible, .gd-line .fld input:focus-visible, .gd-line .fld textarea:focus-visible { outline: 2px solid rgb(var(--brand-600)); outline-offset: 2px; }
@media (pointer: coarse) { .gd-line .fld select, .gd-line .fld input, .gd-amt-chip, .gd-line .btn { min-height: 44px; } #ga-more { min-height: 44px; } }
.gd-key { display: inline-block; font: 600 11px/1.6 ui-monospace, Menlo, monospace; border: 1px solid rgb(var(--border-strong)); border-radius: 9999px; padding: 0 8px; color: rgb(var(--ink-2)); background: rgb(var(--surface)); word-break: break-all; }
.gd-flags { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.gd-flags legend { font-size: calc(11.5px * var(--es-ts, 1)); font-weight: 700; padding: 0 6px; }
.gd-flag { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: calc(12.5px * var(--es-ts, 1)); }
.guide-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 14px; margin: 0; padding: 10px 14px; border-top: 1px solid var(--line); }
.guide-sum dt { font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); }
.guide-sum dd { margin: 1px 0 0; font-size: calc(13px * var(--es-ts, 1)); font-weight: 700; color: rgb(var(--ink)); font-variant-numeric: tabular-nums; }
.guide-act .why { margin-top: 4px; max-width: 260px; font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); }
/* SCR-PB02 input sources and per-employee view ([PROPOSED], PAY-R779-A): colour always travels with a column title */
.src { border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; }
.src-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.src-head h4 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: calc(13px * var(--es-ts, 1)); font-weight: 700; color: rgb(var(--ink)); }
.src-note { margin: 6px 0 0; font-size: calc(12px * var(--es-ts, 1)); color: rgb(var(--ink-2)); }
.src-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.src-list li { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.src-list b { display: block; font-size: calc(12px * var(--es-ts, 1)); color: rgb(var(--ink)); }
.src-list span { display: block; font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); margin-top: 1px; overflow-wrap: anywhere; }
.src-list em { display: block; font-style: normal; font-size: calc(11px * var(--es-ts, 1)); color: color-mix(in srgb, rgb(var(--ok)) 64%, black); margin-top: 3px; }
.src-list .off { background: rgb(var(--surface-2)); }
.src-list .off em { color: var(--ink-3); }
.src-tiles { display: grid; gap: 8px; margin-top: 9px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.src-tile { display: block; text-align: start; background: rgb(var(--surface)); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; min-width: 0; }
.src-tile:hover { border-color: rgb(var(--brand-300)); }
.src-tile.on { background: rgb(var(--brand-50)); border-color: rgb(var(--brand-500)); box-shadow: inset 0 0 0 1px rgb(var(--brand-500)); }
.src-tile .l { display: block; font-size: calc(11px * var(--es-ts, 1)); color: rgb(var(--ink-2)); overflow-wrap: anywhere; }
.src-tile .v { display: block; font-size: calc(13px * var(--es-ts, 1)); font-weight: 700; color: rgb(var(--ink)); margin-top: 2px; }
.src-tile .s { display: block; font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.src-tile .m { display: block; font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); margin-top: 2px; }
.src-tile.is-empty { background: rgb(var(--surface-2)); }
.src-tile.is-empty.on { background: rgb(var(--brand-50)); }
.src-detail { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
.src-detail h5 { margin: 0; font-size: calc(13px * var(--es-ts, 1)); font-weight: 700; color: rgb(var(--ink)); }
.src-detail .src-note { margin: 0; }
table.dg th.col-earn { background: color-mix(in srgb, color-mix(in srgb, rgb(var(--chv-1)) 55%, rgb(var(--chv-5))) 16%, rgb(var(--surface))); color: color-mix(in srgb, color-mix(in srgb, rgb(var(--chv-1)) 55%, rgb(var(--chv-5))) 70%, black); }
table.dg td.col-earn { background: color-mix(in srgb, color-mix(in srgb, rgb(var(--chv-1)) 55%, rgb(var(--chv-5))) 9%, rgb(var(--surface))); color: color-mix(in srgb, color-mix(in srgb, rgb(var(--chv-1)) 55%, rgb(var(--chv-5))) 70%, black); font-weight: 600; }
table.dg th.col-ded { background: color-mix(in srgb, rgb(var(--bad)) 12%, rgb(var(--surface))); color: color-mix(in srgb, rgb(var(--bad)) 71%, black); }
table.dg td.col-ded { background: color-mix(in srgb, rgb(var(--bad)) 6%, rgb(var(--surface))); color: color-mix(in srgb, rgb(var(--bad)) 71%, black); font-weight: 600; }
table.dg th.col-net { background: color-mix(in srgb, rgb(var(--ok)) 10%, rgb(var(--surface))); color: color-mix(in srgb, rgb(var(--ok)) 64%, black); }
table.dg td.col-net { background: color-mix(in srgb, rgb(var(--ok)) 5%, rgb(var(--surface))); color: color-mix(in srgb, rgb(var(--ok)) 64%, black); font-weight: 700; }
table.dg tr.dg-total td { border-top: 2px solid rgb(var(--border-strong)); font-weight: 700; }
@media (max-width: 700px) { .guide-steps li .t { display: none; } .guide-steps li[aria-current] .t { display: block; white-space: nowrap; } .guide-act { flex: 1 1 100%; } .guide-act .why { max-width: none; } }

/* ===== Design layer of the ui-ux-pro-max skill (GOV-R142-A; PAY-R891-A, CR-243) =====
   Visual only: no field, column, status code or rule changes. Module hue Payroll = emerald (skill section 2).
   Earnings columns and the c-indigo chip keep indigo on purpose, so earnings never look like net pay. */
:root { --nav-bg: rgb(var(--nav-from)); --nav-bg-2: color-mix(in srgb, rgb(var(--nav-to)) 96%, rgb(var(--on-brand))); }
.dark { --ink-3: rgb(var(--ink-muted)); }
body { background: rgb(var(--canvas)); }
[dir="ltr"] body { font-feature-settings: "cv11", "ss01"; }

/* Shell */
#side { background: linear-gradient(180deg, rgb(var(--nav-from)) 0%, rgb(var(--nav-to)) 100%); }
.brand-mark { background: var(--grad-brand); border-radius: 10px; box-shadow: var(--shadow-glow); }
.nav-item { border-radius: 8px; position: relative; transition: background .15s, color .15s; }
.nav-item.active { background: rgba(255,255,255,.10); color: rgb(var(--on-brand)); }
.nav-item.active::before { content: ''; position: absolute; inset-block: 6px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: rgb(var(--brand-400)); }
.nav-item.active i.ic { color: rgb(var(--brand-300)); opacity: 1; }
.side-search input { border-radius: 9px; }
#top-bar { background: rgb(var(--surface) / .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: relative; z-index: 20; }
.ctl { border-radius: 9px; border-color: rgb(var(--border-strong)); }
.kbd-hint { font-family: ui-monospace, monospace; font-size: calc(11px * var(--es-ts, 1)); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; color: var(--ink-3); background: rgb(var(--surface)); }
.meta-strip { background: rgb(var(--surface)); border: 1px solid var(--line); border-radius: 10px; }

/* Page head = gradient hero band (skill section 0, module pages) */
.page-hero { position: relative; overflow: hidden; border-radius: 18px; background: var(--grad-brand); color: rgb(var(--on-brand)); padding: 18px 22px 20px; margin-bottom: 14px; box-shadow: var(--shadow-2); }
.page-hero::before { content: ''; position: absolute; width: 280px; height: 280px; top: -120px; inset-inline-end: -60px; border-radius: 50%; background: rgba(255,255,255,.12); filter: blur(30px); pointer-events: none; }
.page-hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 22px 22px; opacity: .45; pointer-events: none; }
.page-hero .page-head { position: relative; z-index: 1; margin-bottom: 0; }
.page-hero .page-head h2 { color: rgb(var(--on-brand)); font-size: calc(21px * var(--es-ts, 1)); }
.page-hero .page-head p { color: rgba(255,255,255,.85); }
.page-hero .btn-s { background: rgba(255,255,255,.16); color: rgb(var(--on-brand)); border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.page-hero .btn-s:hover { background: rgba(255,255,255,.26); }
.page-hero .btn-p { background: #ffffff !important; color: rgb(var(--brand-700)) !important; border: 1px solid rgba(255, 255, 255, 0.4) !important; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }
.page-hero .btn-p:hover { background: #f8fafc !important; color: rgb(var(--brand-800)) !important; box-shadow: var(--shadow-2); }
.page-hero .chip { background: rgba(255,255,255,.18); color: rgb(var(--on-brand)); border-color: rgba(255,255,255,.35); }
.page-hero .link { color: rgb(var(--on-brand)); text-decoration: underline; }
.page-hero select, .page-hero input { color: color-mix(in srgb, rgb(var(--chv-8)) 27%, rgb(var(--nav-from))); }

/* Cards and KPIs */
.card { border-radius: 14px; border-color: var(--line); box-shadow: var(--shadow-1); }
.card-head { padding: 12px 16px; }
.card-head h3 { font-size: calc(13.5px * var(--es-ts, 1)); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-head h3::before { content: ''; width: 4px; height: 14px; border-radius: 4px; background: var(--grad-brand); flex: none; }
.card-body { padding: 16px; }
.kpis { gap: 12px; }
.kpi { position: relative; overflow: hidden; border-radius: 14px; padding: 14px 16px; border-color: var(--line); box-shadow: var(--shadow-1); transition: transform .15s, box-shadow .15s, border-color .15s; }
.kpi::after { content: ''; position: absolute; inset-block: 12px; inset-inline-start: 0; width: 3px; border-radius: 3px; background: rgb(var(--brand-500)); opacity: .9; }
.kpi:nth-child(4n+2)::after { background: rgb(var(--ch-4)); }
.kpi:nth-child(4n+3)::after { background: rgb(var(--ch-3)); }
.kpi:nth-child(4n+4)::after { background: rgb(var(--ch-8)); }
button.kpi:hover, .kpi.spot:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: rgb(var(--brand-200)); }
.kpis > .kpi:first-child { border: 1px solid transparent; background: linear-gradient(rgb(var(--surface)), rgb(var(--surface))) padding-box, var(--grad-brand) border-box; box-shadow: var(--shadow-glow); }
.kpis > .kpi:first-child::after { display: none; }
.kpi .l { font-size: calc(11.5px * var(--es-ts, 1)); font-weight: 600; }
.kpi .v { font-size: calc(22px * var(--es-ts, 1)); font-weight: 800; letter-spacing: -.01em; margin-top: 6px; }
.kpi .kpi-ic { display: none; }   /* DRAFT 2026-11-18: the card icon (kit.js P.kpi) stays hidden until the theme shows KPI icons (shared emis-tokens.css, data-kpi-icon-show) */

/* Spotlight hover (world-class technique 2) */
.spot::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s; background: radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgb(var(--brand-500) / .12), transparent 70%); }
.spot:hover::before { opacity: 1; }

/* Buttons, chips, tabs, tables */
.btn { border-radius: 10px; transition: background .15s, box-shadow .15s, transform .1s; }
.btn:active:not([disabled]) { transform: scale(.98); }
.btn-p:hover { box-shadow: var(--shadow-glow); }
.btn-ok { background: color-mix(in srgb, rgb(var(--ok)) 80%, black); }
.btn-ok:hover { background: color-mix(in srgb, rgb(var(--ok)) 64%, black); }
.chip { padding: 1px 9px; }
.tab.on { color: rgb(var(--brand-700)); border-color: rgb(var(--brand-600)); }
table.dg th { background: rgb(var(--surface-2)); color: rgb(var(--ink-muted)); font-weight: 700; font-size: calc(11px * var(--es-ts, 1)); padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.dg td { padding: 9px 12px; }
table.dg tbody tr { transition: background .12s; }
table.dg tbody tr:hover { background: rgb(var(--brand-50) / .55); }
.grid-tools { padding: 10px 14px; }
.notice { border-radius: 10px; }
.empty i { width: 52px; height: 52px; line-height: 52px; margin: 0 auto 10px; border-radius: 50%; background: rgb(var(--brand-50)); color: rgb(var(--brand-600)); font-size: calc(22px * var(--es-ts, 1)); }

/* Reports and self service (PAY-R918-A, CR-271; skill sections 0a, 6a): dark executive hero, quick-action pills, slide-over drawer */
.page-hero.exec { background: linear-gradient(120deg, rgb(var(--nav-from)) 0%, color-mix(in srgb, color-mix(in srgb, rgb(var(--chv-1)) 55%, rgb(var(--chv-5))) 16%, rgb(var(--nav-from))) 60%, color-mix(in srgb, color-mix(in srgb, rgb(var(--chv-1)) 55%, rgb(var(--chv-5))) 45%, rgb(var(--nav-from))) 100%); }
.pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: 999px; background: rgb(var(--surface)); border: 1px solid var(--line); box-shadow: var(--shadow-1); font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; color: rgb(var(--ink-2)); white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.pill:hover { background: rgb(var(--brand-50)); border-color: rgb(var(--brand-300)); color: rgb(var(--brand-800)); }
.pill i { color: rgb(var(--brand-600)); }
.pill .cnt { background: color-mix(in srgb, rgb(var(--bad)) 84%, black); color: rgb(var(--on-brand)); border-radius: 999px; padding: 0 6px; font-size: calc(11px * var(--es-ts, 1)); font-variant-numeric: tabular-nums; }
.spec-tag { font: 600 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: rgb(var(--ink-2)); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
/* PAY-R921-A (f): the drawer rules are gone with their markup; P.drawer now renders through P.slideOver (.so-*) */
.cert-doc { border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; line-height: 1.9; color: rgb(var(--ink)); background: rgb(var(--surface)); }
.cert-doc h4 { font-size: calc(16px * var(--es-ts, 1)); font-weight: 700; margin-bottom: 8px; color: rgb(var(--ink)); }

/* SCR-PB02 Hub 360 tab bar, slide-over and engine timeline (GOV-R146-A; PAY-R918-A, CR-271). Darker hero stops keep white text at 4.5:1 or more. */
.page-hero { background: var(--grad-hero); }
.page-hero .btn[disabled] { background: rgba(255,255,255,.12); color: rgba(255,255,255,.72); border-color: rgba(255,255,255,.2); }
.hub-status { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.page-hero .hub-status .chip.c-green { background: color-mix(in srgb, rgb(var(--ok)) 5%, rgb(var(--on-brand))); color: color-mix(in srgb, rgb(var(--ok)) 64%, black); border-color: oklch(from rgb(var(--ok)) 0.845 0.143 h); }
.page-hero .hub-status .chip.c-amber { background: color-mix(in srgb, rgb(var(--warn)) 4%, rgb(var(--on-brand))); color: color-mix(in srgb, color-mix(in srgb, rgb(var(--warn)) 80%, rgb(var(--bad))) 67%, black); border-color: oklch(from rgb(var(--warn)) 0.879 0.153 calc(h + 33)); }
.page-hero .hub-status .chip.c-red { background: color-mix(in srgb, rgb(var(--bad)) 6%, rgb(var(--on-brand))); color: color-mix(in srgb, rgb(var(--bad)) 71%, black); border-color: color-mix(in srgb, rgb(var(--bad)) 42%, rgb(var(--on-brand))); }
.page-hero .hub-status .chip.c-gray { background: color-mix(in srgb, rgb(var(--border)) 50%, rgb(var(--on-brand))); color: rgb(var(--ink-2)); border-color: rgb(var(--border-strong)); }
.page-hero .hub-status .chip.c-blue { background: color-mix(in srgb, rgb(var(--chv-1)) 7%, rgb(var(--on-brand))); color: color-mix(in srgb, rgb(var(--chv-1)) 74%, black); border-color: oklch(from rgb(var(--chv-1)) 0.809 0.096 calc(h - 11)); }
.page-hero .hub-status .chip.c-indigo { background: color-mix(in srgb, color-mix(in srgb, rgb(var(--chv-1)) 55%, rgb(var(--chv-5))) 9%, rgb(var(--on-brand))); color: color-mix(in srgb, color-mix(in srgb, rgb(var(--chv-1)) 55%, rgb(var(--chv-5))) 70%, black); border-color: color-mix(in srgb, color-mix(in srgb, rgb(var(--chv-1)) 55%, rgb(var(--chv-5))) 47%, rgb(var(--on-brand))); }
.hub-facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 14px 0 0; }
.hub-facts > div { background: rgb(var(--brand-900) / .42); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 7px 10px; }
.hub-facts dt { font-size: calc(11px * var(--es-ts, 1)); color: rgb(var(--brand-100)); }
.hub-facts dd { margin: 1px 0 0; font-size: calc(13px * var(--es-ts, 1)); font-weight: 700; color: rgb(var(--on-brand)); font-variant-numeric: tabular-nums; }
.hub-bar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 10px; background: rgb(var(--surface)); border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; padding-inline-start: 14px; }
.hub-id { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: calc(12px * var(--es-ts, 1)); color: rgb(var(--ink)); }
.hub-tabs { flex: 1; min-width: 0; border-bottom: 0; padding: 0; }
.hub-tabs .tab { display: inline-flex; align-items: center; gap: 6px; }
.tab.ahead { font-weight: 600; }
@media (max-width: 900px) { .hub-bar { flex-wrap: wrap; padding: 6px 8px 0; } }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; }
#so-root { position: fixed; inset: 0; z-index: 56; }
.so-back { position: absolute; inset: 0; background: rgba(15,23,42,.5); backdrop-filter: blur(4px); }
.so-panel { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 100%; max-width: 36rem; display: flex; flex-direction: column; background: rgb(var(--surface)); color: rgb(var(--ink)); box-shadow: var(--shadow-3); animation: so-in .25s ease-out; }
[dir="rtl"] .so-panel { animation-name: so-in-r; }
@keyframes so-in { from { transform: translateX(100%); } }
@keyframes so-in-r { from { transform: translateX(-100%); } }
.so-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.so-ic { width: 36px; height: 36px; border-radius: 10px; background: rgb(var(--brand-50)); color: rgb(var(--brand-700)); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.so-tt { flex: 1; min-width: 0; }
.so-tt h3 { font-size: calc(15px * var(--es-ts, 1)); font-weight: 700; color: rgb(var(--ink)); }
.so-tt p { font-size: calc(12px * var(--es-ts, 1)); color: rgb(var(--ink-2)); margin-top: 2px; }
.so-x { width: 32px; height: 32px; border-radius: 8px; color: rgb(var(--ink-2)); flex: none; }
.so-x:hover { background: rgb(var(--surface-2)); }
.so-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.so-body > * + * { margin-top: 12px; }
.so-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: calc(13px * var(--es-ts, 1)); line-height: 1.8; color: rgb(var(--ink)); }
.so-dirty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 20px; background: color-mix(in srgb, rgb(var(--warn)) 4%, rgb(var(--surface))); color: color-mix(in srgb, color-mix(in srgb, rgb(var(--warn)) 80%, rgb(var(--bad))) 55%, black); border-top: 1px solid oklch(from rgb(var(--warn)) 0.924 0.115 calc(h + 37)); font-size: calc(12px * var(--es-ts, 1)); }
.so-dirty[hidden] { display: none; }
.so-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 20px; background: rgb(var(--surface-2)); border-top: 1px solid var(--line); }
/* SCR-PD03 trace of the variance source (PAY-R923-A, CR-271; skill slide-over archetype): text stays at 12px or more, the two runs stack on a narrow screen */
.so-panel.so-wide { max-width: 64rem; }
.vt-sum { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgb(var(--surface-2)); }
.vt-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 16px; margin: 0; }
.vt-figs dt { font-size: calc(12px * var(--es-ts, 1)); color: rgb(var(--ink-2)); }
.vt-figs dd { margin: 2px 0 0; font-size: calc(14px * var(--es-ts, 1)); font-weight: 700; color: rgb(var(--ink)); }
.vt-figs dd small { font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; }
.vt-runs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: calc(12px * var(--es-ts, 1)); color: rgb(var(--ink-2)); }
.vt-runs b { color: rgb(var(--ink)); font-weight: 600; }
.vt-cap { caption-side: top; text-align: start; padding: 0 0 6px; font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; color: rgb(var(--ink-2)); }
.vt-el { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.vt-el-h { padding: 10px 12px; background: rgb(var(--brand-50)); border-bottom: 1px solid var(--line); }
.vt-el-h h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: calc(13px * var(--es-ts, 1)); font-weight: 700; color: rgb(var(--ink)); }
.vt-el-h .vt-figs { margin-top: 8px; }
.vt-code { font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; color: rgb(var(--ink-2)); }
.vt-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vt-col { min-width: 0; padding: 10px 12px; }
.vt-col + .vt-col { border-inline-start: 1px solid var(--line); }
.vt-col h5 { margin-bottom: 8px; font-size: calc(12px * var(--es-ts, 1)); font-weight: 700; color: rgb(var(--ink-2)); }
.vt-none { display: flex; align-items: center; gap: 8px; padding: 14px 12px; border: 1px dashed rgb(var(--border-strong)); border-radius: 8px; font-size: calc(12px * var(--es-ts, 1)); color: rgb(var(--ink-2)); }
.vt-line { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.vt-line + .vt-line { margin-top: 8px; }
.vt-line.off { background: rgb(var(--surface-2)); border-style: dashed; }
.vt-line-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.vt-amt { font-size: calc(14px * var(--es-ts, 1)); font-weight: 700; color: rgb(var(--ink)); }
.vt-amt small { font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; }
.vt-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px 12px; margin: 8px 0 0; }
.vt-dl dt { font-size: calc(12px * var(--es-ts, 1)); color: rgb(var(--ink-2)); }
.vt-dl dd { margin: 1px 0 0; font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; color: rgb(var(--ink)); overflow-wrap: anywhere; }
.vt-dl dd small { font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; }
.vt-noref { font-weight: 600; color: rgb(var(--ink-2)); }
.vt-sub { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); font-size: calc(12px * var(--es-ts, 1)); font-weight: 700; color: rgb(var(--ink)); }
.vt-explain { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; margin-top: 8px; font-size: calc(12px * var(--es-ts, 1)); }
@media (max-width: 720px) { .vt-cols { grid-template-columns: minmax(0, 1fr); } .vt-col + .vt-col { border-inline-start: 0; border-top: 1px solid var(--line); } }
/* SCR-PD03 employee review (PAY-R925-A, CR-272; KPI cards with a text value, filterable table, slide-over): text stays at 12px or more, meaning is in the text and never in colour alone */
.er-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.er-head h3 { font-size: calc(15px * var(--es-ts, 1)); font-weight: 700; color: rgb(var(--ink)); }
.er-head p { font-size: calc(12px * var(--es-ts, 1)); color: rgb(var(--ink-2)); margin-top: 2px; }
.er-kpis .kpi .s { font-size: calc(12px * var(--es-ts, 1)); margin-top: 6px; color: rgb(var(--ink-2)); }
.er-bar { height: 7px; border-radius: 999px; background: rgb(var(--border)); overflow: hidden; margin-top: 6px; }
.er-bar > span { display: block; height: 100%; border-radius: 999px; background: rgb(var(--brand-500)); }
.er-bar.done > span { background: rgb(var(--ok)); }
.er-gate { flex-basis: 100%; display: flex; align-items: flex-start; gap: 6px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.92); color: color-mix(in srgb, color-mix(in srgb, rgb(var(--warn)) 80%, rgb(var(--bad))) 55%, black); font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; line-height: 1.6; }
.er-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.er-filters .seg button { font-size: calc(12px * var(--es-ts, 1)); }
.er-check { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; color: rgb(var(--ink)); cursor: pointer; }
.er-box { width: 18px; height: 18px; accent-color: rgb(var(--brand-600)); cursor: pointer; }
.er-box:disabled { cursor: not-allowed; }
.er-box:focus-visible { outline: 2px solid rgb(var(--brand-500)); outline-offset: 2px; }
.er-why { margin-top: 3px; font-size: calc(12px * var(--es-ts, 1)); color: color-mix(in srgb, color-mix(in srgb, rgb(var(--warn)) 80%, rgb(var(--bad))) 64%, rgb(var(--ink))); line-height: 1.5; max-width: 180px; }
.er-sub { display: block; font-size: calc(12px * var(--es-ts, 1)); color: rgb(var(--ink-2)); }
.er-note { display: block; max-width: 180px; font-size: calc(12px * var(--es-ts, 1)); color: rgb(var(--ink-2)); overflow-wrap: anywhere; }
.er-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.er-batch { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(160px, 1.2fr) auto; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.er-batch + .er-batch { margin-top: 8px; }
.er-batch h4 { font-size: calc(13px * var(--es-ts, 1)); font-weight: 700; color: rgb(var(--ink)); }
.er-batch .er-sub { font-size: calc(12px * var(--es-ts, 1)); }
@media (max-width: 640px) { .er-batch { grid-template-columns: minmax(0, 1fr); } }
/* SCR-PD03 audit employee line (PAY-R932-A, CR-273; slide-over): every text at 12px or more; earnings and deductions stack, the previous run of a missing employee is set apart and labelled */
table.ea-table th { font-size: calc(12px * var(--es-ts, 1)); }
table.ea-table td { font-size: calc(13px * var(--es-ts, 1)); }
table.ea-table .er-sub, .ea-link { font-size: calc(12px * var(--es-ts, 1)); }
.ea-link { margin-top: 0; white-space: nowrap; }
.ea-none { color: rgb(var(--ink-2)); text-align: center; }
.ea-prev { padding: 12px 14px; border: 1px dashed rgb(var(--border-strong)); border-radius: 10px; background: rgb(var(--surface-2)); }
.ea-prev h4 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: calc(13px * var(--es-ts, 1)); font-weight: 700; color: rgb(var(--ink)); }
.ea-mark { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.ea-mark-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.ea-mark .er-check { font-size: calc(13px * var(--es-ts, 1)); font-weight: 600; }
.ea-mark .er-why { max-width: none; margin-top: 0; }
/* The required reason of a missing employee (PAY-R933-A, CR-275) */
.ea-mark .fld .hint, .ea-mark .fld .err { font-size: calc(12px * var(--es-ts, 1)); }
.ea-mark .fld .err { font-weight: 600; }
.ea-mark .fld textarea[aria-invalid="true"] { border-color: color-mix(in srgb, rgb(var(--bad)) 83%, rgb(var(--ink))); }
.so-foot .btn[aria-disabled="true"], .so-foot .btn[aria-disabled="true"]:hover { background: rgb(var(--surface-2)); color: rgb(var(--ink-muted)); border-color: var(--line); cursor: not-allowed; }
.er-log { list-style: none; margin: 0; padding: 0; }
.er-log li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: calc(12px * var(--es-ts, 1)); color: rgb(var(--ink-2)); }
.er-log li b { color: rgb(var(--ink)); font-weight: 600; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; padding-inline-start: 20px; padding-block-end: 12px; font-size: calc(12px * var(--es-ts, 1)); color: rgb(var(--ink-2)); }
.tl li::before { content: ''; position: absolute; top: 4px; inset-inline-start: 2px; width: 9px; height: 9px; border-radius: 50%; background: rgb(var(--ink-faint)); }
.tl li:not(:last-child)::after { content: ''; position: absolute; top: 15px; bottom: 0; inset-inline-start: 6px; width: 1px; background: var(--line); }
.tl .tl-amber::before, .tl li.tl-amber::before { background: rgb(var(--warn)); }
.tl li.tl-green::before { background: rgb(var(--ok)); }
.tl li.tl-red::before { background: rgb(var(--bad)); }
.tl b { display: block; font-weight: 600; color: rgb(var(--ink)); }
.tl p { margin: 2px 0 0; color: rgb(var(--ink)); overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .so-panel { animation: none; } }
@media print { #so-root { display: none !important; } }

/* Command palette Ctrl+K (world-class technique 5) */
#cmdk { position: fixed; inset: 0; z-index: 60; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 0; background: rgba(15,23,42,.42); backdrop-filter: blur(4px); }
#cmdk.open { display: flex; }
#cmdk .box { width: 100%; max-width: 600px; border-radius: 18px; overflow: hidden; background: rgb(var(--surface) / .94); backdrop-filter: blur(18px); border: 1px solid var(--line); box-shadow: var(--shadow-3); animation: cmdkpop .18s cubic-bezier(.16,1,.3,1); }
@keyframes cmdkpop { from { opacity: 0; transform: scale(.97) translateY(6px); } }
#cmdk .q { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 54px; border-bottom: 1px solid var(--line); }
#cmdk .q input { flex: 1; border: 0; outline: 0; background: transparent; font-size: calc(15px * var(--es-ts, 1)); }
#cmdk .res { max-height: 340px; overflow-y: auto; padding: 6px; }
#cmdk .grp { font-size: calc(11px * var(--es-ts, 1)); font-weight: 700; color: var(--ink-3); padding: 8px 10px 4px; }
#cmdk .it { width: 100%; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 9px; font-size: calc(13px * var(--es-ts, 1)); color: rgb(var(--ink)); text-align: start; }
#cmdk .it i { width: 16px; text-align: center; color: var(--ink-3); }
#cmdk .it .sid { margin-inline-start: auto; font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); direction: ltr; }
#cmdk .it.sel { background: rgb(var(--brand-50)); color: rgb(var(--brand-800)); }
#cmdk .it.sel i { color: rgb(var(--brand-600)); }
#cmdk .foot { display: flex; gap: 14px; padding: 0 16px; height: 36px; align-items: center; border-top: 1px solid var(--line); font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) { .spot::before { display: none; } .kpi, .btn { transition: none; } button.kpi:hover, .kpi.spot:hover { transform: none; } #cmdk .box { animation: none; } }
@media print { .page-hero { background: none; color: rgb(var(--ink)); box-shadow: none; padding: 0; } .page-hero::before, .page-hero::after { display: none; } .page-hero .page-head h2 { color: rgb(var(--ink)); } .page-hero .page-head p { color: var(--ink-3); } #cmdk { display: none !important; } }

/* Dark mode of the status colours and light tints of this file (GOV-R147); the hero band keeps its own */
.dark .c-gray { background: rgb(100 116 139 / .2); color: rgb(203 213 225); border-color: rgb(100 116 139 / .45); }
.dark .c-amber { background: rgb(245 158 11 / .14); color: rgb(252 211 77); border-color: rgb(245 158 11 / .35); }
.dark .c-green { background: rgb(16 185 129 / .14); color: rgb(110 231 183); border-color: rgb(16 185 129 / .35); }
.dark .c-red { background: rgb(244 63 94 / .14); color: rgb(253 164 175); border-color: rgb(244 63 94 / .35); }
.dark .c-blue { background: rgb(59 130 246 / .14); color: rgb(147 197 253); border-color: rgb(59 130 246 / .35); }
.dark .c-indigo { background: rgb(99 102 241 / .16); color: rgb(165 180 252); border-color: rgb(99 102 241 / .4); }
.dark .page-hero .hub-status .chip.c-green, .dark .page-hero .hub-status .chip.c-amber, .dark .page-hero .hub-status .chip.c-red, .dark .page-hero .hub-status .chip.c-gray, .dark .page-hero .hub-status .chip.c-blue, .dark .page-hero .hub-status .chip.c-indigo { background: rgb(var(--on-brand)); }
.dark .page-hero .chip { color: rgb(var(--on-brand)); }
.dark .page-hero .hub-status .chip.c-green { color: color-mix(in srgb, rgb(var(--ok)) 64%, black); } .dark .page-hero .hub-status .chip.c-amber { color: color-mix(in srgb, color-mix(in srgb, rgb(var(--warn)) 80%, rgb(var(--bad))) 67%, black); } .dark .page-hero .hub-status .chip.c-red { color: color-mix(in srgb, rgb(var(--bad)) 71%, black); } .dark .page-hero .hub-status .chip.c-gray { color: color-mix(in srgb, rgb(var(--chv-8)) 70%, rgb(var(--nav-from))); } .dark .page-hero .hub-status .chip.c-blue { color: color-mix(in srgb, rgb(var(--chv-1)) 74%, black); } .dark .page-hero .hub-status .chip.c-indigo { color: color-mix(in srgb, color-mix(in srgb, rgb(var(--chv-1)) 55%, rgb(var(--chv-5))) 70%, black); }
.dark .notice.warn, .dark .so-dirty { background: rgb(245 158 11 / .14); border-color: rgb(245 158 11 / .35); color: rgb(252 211 77); }
.dark .notice.info { background: rgb(59 130 246 / .14); border-color: rgb(59 130 246 / .35); color: rgb(147 197 253); }
.dark .notice.bad { background: rgb(244 63 94 / .14); border-color: rgb(244 63 94 / .35); color: rgb(253 164 175); }
.dark .notice.ok { background: rgb(16 185 129 / .14); border-color: rgb(16 185 129 / .35); color: rgb(110 231 183); }
.dark .notice.gray { background: rgb(var(--surface-2)); border-color: var(--line); color: rgb(var(--ink-2)); }
.dark table.dg th.col-earn, .dark table.dg td.col-earn { background: rgb(99 102 241 / .16); color: rgb(165 180 252); }
.dark table.dg th.col-ded, .dark table.dg td.col-ded { background: rgb(244 63 94 / .14); color: rgb(253 164 175); }
.dark table.dg th.col-net, .dark table.dg td.col-net { background: rgb(16 185 129 / .14); color: rgb(110 231 183); }
.dark .steps span.on, .dark .seg button.on, .dark .src-tile.on, .dark .src-tile.is-empty.on, .dark .guide-next, .dark .vt-el-h, .dark .so-ic, .dark .empty i, .dark #cmdk .it.sel { background: rgb(var(--brand-500) / .16); border-color: rgb(var(--brand-500) / .35); color: rgb(var(--brand-300)); }
.dark .pill:hover { background: rgb(var(--brand-500) / .16); color: rgb(var(--brand-300)); }
.dark .steps span.ok { background: rgb(16 185 129 / .14); color: rgb(110 231 183); }
.dark table.dg tbody tr:hover { background: rgb(var(--brand-500) / .1); }
.dark .link, .dark .tab.on, .dark .guide-text .k, .dark .guide-steps .now, .dark .life .now { color: rgb(var(--brand-300)); }
.dark .src-list em { color: rgb(110 231 183); }
/* GOV-R148: the required star, the error text and the selected payslip row stay readable in dark mode */
.dark .fld .err, .dark .fld label .req, .dark .req { color: rgb(253 164 175); }
.dark table.dg tr[aria-selected="true"] { background: rgb(var(--brand-500) / .16) !important; }
/* PAY-R969-A (CR-311): the three views of a list grid (smart cards, split view, data table), as in napp; presentation only */
.gv-bar { display: flex; justify-content: flex-end; padding: 8px 12px 0; }
.gv-bar .seg button i { font-size: calc(11px * var(--es-ts, 1)); }
.gv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 12px; }
.gv-card { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgb(var(--surface)); padding: 12px 14px; box-shadow: 0 1px 2px rgb(15 23 42 / .05); transition: box-shadow .15s, border-color .15s, transform .15s; }
.gv-card:hover { border-color: rgb(var(--brand-300)); box-shadow: 0 6px 18px -8px rgb(var(--brand-500) / .35); transform: translateY(-1px); }
.gv-card-h .gv-t, .gv-item .gv-t { font-weight: 600; font-size: calc(13px * var(--es-ts, 1)); color: var(--ink-1, inherit); }
.gv-card-h .gv-s, .gv-item .gv-s { font-size: calc(12px * var(--es-ts, 1)); color: var(--ink-3); margin-top: 2px; }
.gv-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0; }
.gv-dl > div { min-width: 0; }
.gv-dl dt { font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); }
.gv-dl dd { margin: 0; font-size: calc(12px * var(--es-ts, 1)); overflow-wrap: anywhere; }
.gv-card-f { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
.gv-split { display: grid; grid-template-columns: minmax(220px, 2fr) 3fr; gap: 12px; padding: 12px; }
.gv-split.gv-wide-list { grid-template-columns: 1fr; } .gv-split.gv-wide-list > .gv-pane:last-child { display: none; }
.gv-split.gv-wide-detail { grid-template-columns: 1fr; } .gv-split.gv-wide-detail > .gv-pane:first-child { display: none; }
.gv-pane { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: rgb(var(--surface)); overflow: hidden; }
.gv-pane-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.gv-wide { border: 0; background: transparent; color: var(--ink-3); padding: 2px 6px; border-radius: 6px; }
.gv-wide:hover, .gv-wide[aria-pressed="true"] { color: rgb(var(--brand-700)); background: rgb(var(--brand-50)); }
.gv-list { max-height: 520px; overflow: auto; }
.gv-item { display: block; width: 100%; text-align: start; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.gv-item:hover { background: rgb(var(--brand-50) / .6); }
.gv-item.on { background: rgb(var(--brand-50)); box-shadow: inset 3px 0 0 rgb(var(--brand-500)); }
[dir="rtl"] .gv-item.on { box-shadow: inset -3px 0 0 rgb(var(--brand-500)); }
.gv-detail { padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.gv-dl-2 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
@media (max-width: 860px) { .gv-split { grid-template-columns: 1fr; } }
.dark .gv-card, .dark .gv-pane { box-shadow: none; }
.dark .gv-item.on, .dark .gv-wide[aria-pressed="true"], .dark .gv-wide:hover { background: rgb(var(--brand-500) / .16); color: rgb(var(--brand-300)); }
.dark .gv-item:hover { background: rgb(var(--brand-500) / .10); }
@media print { .gv-bar { display: none; } }
/* PAY-R970-A (CR-312): napp page design features (napp-design.js): history panel, advanced search, KPI ribbon, edit toolbar, column chooser, sticky header, filter chips */
.nd-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px; }
.nd-chips:not(:empty) { padding: 8px 12px 0; }
.nd-chip { display: inline-flex; align-items: center; gap: 6px; font-size: calc(11.5px * var(--es-ts, 1)); padding: 3px 4px 3px 10px; border-radius: 999px; background: rgb(var(--brand-50)); color: rgb(var(--brand-800)); border: 1px solid rgb(var(--brand-300)); }
[dir="rtl"] .nd-chip { padding: 3px 10px 3px 4px; }
.nd-chip button { border: 0; background: transparent; color: inherit; width: 18px; height: 18px; border-radius: 999px; }
.nd-chip button:hover { background: rgb(var(--brand-500) / .15); }
.nd-clear { border: 0; background: transparent; font-size: calc(11.5px * var(--es-ts, 1)); color: rgb(190 18 60); text-decoration: underline; }
.nd-sticky .dg-wrap { max-height: 560px; overflow: auto; }
.nd-sticky .dg thead th { position: sticky; top: 0; z-index: 2; background: rgb(var(--surface)); box-shadow: 0 1px 0 var(--line); }
.nd-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; margin: -4px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: rgb(var(--brand-50) / .5); }
.nd-tl { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid rgb(var(--brand-300)); }
.nd-tl li { position: relative; padding: 0 14px 12px; }
.nd-tl li::before { content: ''; position: absolute; inset-inline-start: -6px; top: 4px; width: 10px; height: 10px; border-radius: 999px; background: rgb(var(--brand-500)); }
.nd-tl-h { display: flex; justify-content: space-between; gap: 8px; }
.dark .nd-chip { background: rgb(var(--brand-500) / .16); color: rgb(var(--brand-300)); border-color: rgb(var(--brand-500) / .35); }
.dark .nd-toolbar { background: rgb(var(--brand-500) / .08); }
/* PAY-R975-A (CR-313): sticky blurred footer and attachments drawer on the request forms SCR-PF01..PF04, list heights fitted to the screen */
.nd-form-fit .nd2-card { display: flex; flex-direction: column; min-height: calc(100vh - 230px); }
.nd-form-fit .nd2-card > .card-body { flex: 1; display: flex; flex-direction: column; }
.nd2-footbar { position: sticky; bottom: .5rem; z-index: 6; margin-top: auto !important; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgb(var(--surface) / .72) !important; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 10px 30px -12px rgb(15 23 42 / .35); }
.nd2-att { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nd2-names { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.nd2-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 14px; border: 2px dashed rgb(var(--border-strong)); border-radius: 14px; text-align: center; color: var(--ink-3); cursor: pointer; transition: border-color .15s, background .15s; }
.nd2-drop i { font-size: calc(26px * var(--es-ts, 1)); color: rgb(var(--brand-500)); }
.nd2-drop.on, .nd2-drop:hover { border-color: rgb(var(--brand-500)); background: rgb(var(--brand-50)); }
.nd2-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.nd2-list li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.nd2-list li > i { font-size: calc(18px * var(--es-ts, 1)); color: rgb(var(--brand-600)); }
.nd-sticky .dg-wrap { max-height: calc(100vh - 360px); }
.gv-split .gv-list { max-height: 360px; }
.gv-split.gv-wide-list .gv-list { max-height: calc(100vh - 300px); }
.gv-split .gv-detail { max-height: 400px; overflow: auto; }
.gv-split.gv-wide-detail .gv-detail { max-height: none; }
.dark .nd2-footbar { background: rgb(var(--surface) / .6) !important; box-shadow: none; }
.dark .nd2-drop.on, .dark .nd2-drop:hover { background: rgb(var(--brand-500) / .12); }
@media print { .nd2-footbar { position: static; backdrop-filter: none; } }
/* PAY-R976-A (CR-313): the napp top home bar (SneatNavBar) in the module colours (napp-shell.js) */
#top-bar.hb-bar { position: relative; height: 64px; gap: 12px; padding: 0 16px; border-bottom: 0; color: rgb(var(--on-brand)); background: linear-gradient(135deg, rgb(var(--brand-600)) 0%, rgb(var(--brand-700)) 55%, rgb(var(--brand-900)) 100%); box-shadow: 0 6px 20px -10px rgb(var(--brand-900) / .6); overflow: visible; z-index: 30; }
.hb-glow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; background: radial-gradient(circle at 15% -40%, rgb(255 255 255 / .22), transparent 55%), linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px) 0 0 / 22px 22px; }
.hb-start, .hb-end, .hb-center { position: relative; display: flex; align-items: center; gap: 8px; }
.hb-start { flex: 1; min-width: 0; }
.hb-end { flex: 1; justify-content: flex-end; }
.hb-ic { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; min-width: 38px; padding: 0 10px; border-radius: 11px; border: 1px solid rgb(255 255 255 / .18); background: rgb(255 255 255 / .1); color: rgb(var(--on-brand)); font-size: calc(12.5px * var(--es-ts, 1)); font-weight: 600; position: relative; transition: background .15s, transform .15s; }
.hb-ic:hover, .hb-ic[aria-expanded="true"] { background: rgb(255 255 255 / .22); transform: translateY(-1px); }
.hb-bar .emis-theme-btn { height: 38px; width: 38px; border-radius: 11px; border: 1px solid rgb(255 255 255 / .18) !important; background: rgb(255 255 255 / .1) !important; color: rgb(var(--on-brand)) !important; }
.hb-page { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hb-page-ic { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .25); font-size: calc(17px * var(--es-ts, 1)); }
.hb-page-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.hb-page-tx b { font-size: calc(14.5px * var(--es-ts, 1)); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-page-tx small { font-size: calc(11px * var(--es-ts, 1)); opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-modules { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 14px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .28); background: rgb(255 255 255 / .14); color: rgb(var(--on-brand)); font-size: calc(13px * var(--es-ts, 1)); font-weight: 700; }
[dir="rtl"] .hb-modules { padding: 0 14px 0 8px; }
.hb-modules:hover { background: rgb(255 255 255 / .24); }
.hb-mod-ic { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: rgb(var(--on-brand)); color: rgb(var(--brand-700)); font-size: calc(12px * var(--es-ts, 1)); }
.hb-modules kbd { font-size: calc(11px * var(--es-ts, 1)); font-weight: 600; padding: 2px 6px; border-radius: 6px; background: rgb(0 0 0 / .18); }
.hb-count { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: rgb(244 63 94); color: rgb(var(--on-brand)); font-size: calc(11px * var(--es-ts, 1)); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px rgb(var(--brand-700)); }
.hb-wrap { position: relative; }
.hb-user { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .1); color: rgb(var(--on-brand)); }
[dir="rtl"] .hb-user { padding: 0 4px 0 10px; }
.hb-av { position: relative; width: 34px; height: 34px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--on-brand)); color: rgb(var(--brand-700)); font-weight: 800; font-size: calc(13px * var(--es-ts, 1)); }
.hb-dot { position: absolute; bottom: 0; inset-inline-end: 0; width: 9px; height: 9px; border-radius: 999px; background: rgb(16 185 129); box-shadow: 0 0 0 2px rgb(var(--on-brand)); }
.hb-user-tx { display: flex; flex-direction: column; text-align: start; line-height: 1.2; max-width: 170px; }
.hb-user-tx b { font-size: calc(12.5px * var(--es-ts, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-user-tx small { font-size: calc(11px * var(--es-ts, 1)); opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-dd { display: none; position: absolute; top: calc(100% + 8px); inset-inline-end: 0; max-width: 92vw; color: rgb(var(--ink)); background: rgb(var(--surface)); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -12px rgb(15 23 42 / .35); overflow: hidden; z-index: 50; }
.hb-dd.show { display: block; }
.hb-dd-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.hb-dd-h small, .hb-note small { display: block; font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); }
.hb-dd-sec { padding: 8px 14px 4px; font-size: calc(11px * var(--es-ts, 1)); font-weight: 700; color: var(--ink-3); }
.hb-dd-list { max-height: 300px; overflow: auto; padding: 4px; }
.hb-note, .hb-role { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; text-align: start; font-size: calc(12.5px * var(--es-ts, 1)); }
.hb-note:hover, .hb-role:hover, .hb-role.on { background: rgb(var(--brand-50)); }
.hb-role.on { font-weight: 700; color: rgb(var(--brand-800)); }
.hb-role i { margin-inline-start: auto; }
.hb-note-ic { width: 32px; height: 32px; flex: none; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--brand-50)); color: rgb(var(--brand-700)); }
.hb-empty { padding: 22px; text-align: center; color: var(--ink-3); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.hb-dd-f { padding: 8px 14px; border-top: 1px solid var(--line); font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); text-align: center; }
.dark #top-bar.hb-bar { background: linear-gradient(135deg, color-mix(in srgb, rgb(var(--surface-2)) 50%, rgb(var(--border))) 0%, rgb(var(--surface)) 100%); box-shadow: 0 1px 0 rgb(255 255 255 / .06); }
.dark .hb-mod-ic, .dark .hb-av { background: rgb(var(--brand-500)); color: rgb(var(--on-brand)); }
.dark .hb-note:hover, .dark .hb-role:hover, .dark .hb-role.on, .dark .hb-note-ic { background: rgb(var(--brand-500) / .16); color: rgb(var(--brand-300)); }
@media print { #top-bar.hb-bar { display: none; } }
@media (max-width: 700px) { #top-bar.hb-bar { gap: 6px; padding: 0 8px; } .hb-page-tx, .hb-lang span, .hb-user-tx { display: none !important; } .hb-end { flex: none; gap: 4px; } .hb-ic, .hb-bar .emis-theme-btn { height: 34px; min-width: 34px; width: auto; padding: 0 8px; } .hb-page-ic { width: 34px; height: 34px; } .hb-user { padding: 0 2px !important; height: 38px; } }
/* PAY-R976-A (CR-313): page band (slim or calm, from the theme panel), review information, one tools row, dense tables, softer side menu (napp-shell.js) */
.nd-shell.r-calm .page-hero { padding: 10px 16px; border-radius: 12px; margin-bottom: 12px; color: rgb(var(--ink)); background: linear-gradient(90deg, rgb(var(--brand-50)) 0%, rgb(var(--surface)) 70%); border: 1px solid var(--line); border-inline-start: 4px solid rgb(var(--brand-500)); box-shadow: none; }
.nd-shell.r-calm .page-hero::before, .nd-shell .page-hero::after { display: none; }
.nd-shell.r-calm .page-hero .page-head { align-items: center; }
.nd-shell.r-calm .page-hero .page-head > div:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nd-shell.r-calm .page-hero .page-head h2 { display: none; }
.nd-shell.r-calm .page-hero .page-head p { color: rgb(var(--ink-2)); font-size: calc(12.5px * var(--es-ts, 1)); margin: 0; }
.nd-shell.r-calm .page-hero .btn-s { background: rgb(var(--surface)); color: rgb(var(--ink)); border-color: rgb(var(--border-strong)); backdrop-filter: none; }
.nd-shell.r-calm .page-hero .btn-s:hover { background: rgb(var(--brand-50)); }
.nd-shell.r-calm .page-hero .btn-p { background: rgb(var(--brand-600)); color: rgb(var(--on-brand)); }
.nd-shell.r-calm .page-hero .btn-p:hover { background: rgb(var(--brand-700)); }
.r-info { flex: none; width: 26px; height: 26px; border-radius: 999px; border: 1px solid rgb(var(--border-strong)); background: rgb(var(--surface)); color: rgb(var(--brand-700)); }
.r-info[aria-expanded="true"] { background: rgb(var(--brand-50)); }
.nd-shell .meta-strip.r-meta { display: none; }
.nd-shell .meta-strip.r-meta.r-open { display: flex; }
.nd-shell .grid-tools > button[onclick*="gridExport("], .nd-shell .grid-tools > button[onclick*="gridExportXls("], .nd-shell .grid-tools > button[onclick*="gridExportPdf("], .nd-shell .grid-tools > button[onclick*="nappSearch("], .nd-shell .grid-tools > button[onclick*="nappColumns("], .nd-shell .gv-bar { display: none !important; }
.r-tools { display: inline-flex; align-items: center; gap: 6px; }
.r-vs { display: inline-flex; border: 1px solid rgb(var(--border-strong)); border-radius: 9px; overflow: hidden; }
.r-vs button { width: 32px; height: 30px; border: 0; background: rgb(var(--surface)); color: var(--ink-3); }
.r-vs button + button { border-inline-start: 1px solid var(--line); }
.r-vs button.on { background: rgb(var(--brand-50)); color: rgb(var(--brand-700)); }
.r-ic { width: 32px; height: 30px; border: 1px solid rgb(var(--border-strong)); border-radius: 9px; background: rgb(var(--surface)); color: var(--ink-3); }
.r-ic:hover, .r-vs button:hover { color: rgb(var(--brand-700)); }
.r-more { position: relative; }
.r-menu { display: none; position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 190px; padding: 4px; background: rgb(var(--surface)); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 30px -12px rgb(15 23 42 / .3); z-index: 40; }
.r-more.open .r-menu { display: block; }
.r-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; font-size: calc(12.5px * var(--es-ts, 1)); text-align: start; }
.r-menu button:hover { background: rgb(var(--brand-50)); }
.nd-shell table.dg td { white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.nd-shell table.dg td:last-child, .nd-shell table.dg td:nth-last-child(2) { max-width: none; overflow: visible; width: 1%; }
.nd-shell table.dg td .flex-wrap { flex-wrap: nowrap !important; gap: 4px !important; }
.nd-shell .r-icon-btn { font-size: 0 !important; gap: 0 !important; width: 28px; height: 28px; padding: 0 !important; justify-content: center; }
.nd-shell .r-icon-btn i { font-size: calc(12px * var(--es-ts, 1)); margin: 0 !important; }
.r-dense table.dg td, .r-dense table.dg th { padding-top: 5px; padding-bottom: 5px; }
.nd-shell #side { background: linear-gradient(180deg, rgb(var(--nav-from) / .92) 0%, rgb(var(--nav-to) / .92) 100%); }
.dark .nd-shell.r-calm .page-hero { background: rgb(var(--surface)); color: rgb(var(--ink)); }
.dark .nd-shell.r-calm .page-hero .page-head p { color: rgb(var(--ink-2)); }
.dark .r-vs button.on, .dark .r-menu button:hover, .dark .r-info[aria-expanded="true"] { background: rgb(var(--brand-500) / .16); color: rgb(var(--brand-300)); }
/* PAY-R976-A: the slim green band, the default page head: gradient, glow and rounded head on one line */
.nd-shell.r-slim .page-hero { padding: 10px 18px; border-radius: 16px; margin-bottom: 12px; }
.nd-shell.r-slim .page-hero::before { width: 200px; height: 200px; top: -110px; }
.nd-shell.r-slim .page-hero .page-head { align-items: center; }
.nd-shell.r-slim .page-hero .page-head > div:first-child { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; }
.nd-shell.r-slim .page-hero .page-head h2 { font-size: calc(19px * var(--es-ts, 1)); margin: 0; white-space: nowrap; }
.nd-shell.r-slim .page-hero .page-head p { margin: 0; font-size: calc(12px * var(--es-ts, 1)); max-width: 620px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-inline-start: 12px; border-inline-start: 1px solid rgba(255,255,255,.35); }
.nd-shell.r-slim .r-info { background: rgba(255,255,255,.16); color: rgb(var(--on-brand)); border-color: rgba(255,255,255,.35); }
.r-style { display: inline-flex; border-radius: 999px; overflow: hidden; border: 1px solid rgb(var(--border-strong)); background: rgb(var(--surface)); }
.r-style button { padding: 2px 10px; font-size: calc(11px * var(--es-ts, 1)); font-weight: 600; border: 0; background: transparent; color: var(--ink-3); }
.r-style button.on { background: rgb(var(--brand-600)); color: rgb(var(--on-brand)); }
.nd-shell.r-slim .page-hero .page-head { flex-wrap: nowrap; gap: 12px; }
.nd-shell.r-slim .page-hero .page-head > div:first-child { flex: 1 1 auto; flex-wrap: nowrap; }
.nd-shell.r-slim .page-hero .page-head p { flex: 1 1 auto; min-width: 0; }
.nd-shell.r-slim .page-hero .page-head > div:last-child { flex: none; }
/* PAY-R976-A (CR-313): the side navigator hidden or shown from the home bar, and the user profile with the appearance of each user (napp MyProfile) */
@media (min-width: 1024px) { body.nav-collapsed #side { display: none; } }
.hb-nav[aria-pressed="false"] { background: rgb(255 255 255 / .24); }
.prof-head { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: linear-gradient(135deg, rgb(var(--brand-600)), rgb(var(--brand-800))); color: rgb(var(--on-brand)); }
.prof-head .hb-av { width: 46px; height: 46px; font-size: calc(16px * var(--es-ts, 1)); flex: none; }
.prof-head b { display: block; font-size: calc(14px * var(--es-ts, 1)); }
.prof-head small { display: block; font-size: calc(11.5px * var(--es-ts, 1)); opacity: .85; }
.prof h4 { margin: 4px 0 0; font-size: calc(13px * var(--es-ts, 1)); font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
.prof-row { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.prof-row > label { font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; color: rgb(var(--ink-2)); }
.prof-note { font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); padding: 8px 10px; border-radius: 10px; background: rgb(var(--surface-2)); }
.prof .emis-theme-swatches button i { font-size: calc(12px * var(--es-ts, 1)); }
/* PAY-R977-A (CR-314): home page and my profile (napp-home-profile.js), one Actions button per row (napp-actions.js), the screen number beside the title for the review period */
.scr-no { display: inline-flex; align-items: center; margin-inline-start: 10px; padding: 1px 8px; border-radius: 7px; font-size: calc(11px * var(--es-ts, 1)); font-weight: 700; letter-spacing: .3px; direction: ltr; vertical-align: middle; background: rgb(255 255 255 / .18); border: 1px dashed rgb(255 255 255 / .55); color: rgb(var(--on-brand)); }
.nd-shell.r-calm .scr-no, .page-hero:not(.exec) .scr-no.calm { background: rgb(var(--brand-50)); border-color: rgb(var(--brand-300)); color: rgb(var(--brand-800)); }
.hp-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .hp-wrap, .hp-wrap.rail { grid-template-columns: 1fr; } }
.hp-main { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.hp-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hp-search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid rgb(var(--border-strong)); border-radius: 12px; background: rgb(var(--surface)); color: var(--ink-3); }
.hp-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: calc(13px * var(--es-ts, 1)); min-width: 0; }
.hp-search:focus-within { border-color: rgb(var(--brand-500)); box-shadow: 0 0 0 3px rgb(var(--brand-500) / .15); }
.hp-size { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: calc(11px * var(--es-ts, 1)); }
.hp-size input { width: 110px; accent-color: rgb(var(--brand-600)); }
/* GOV-R181-A (CR-393): the clear button of the home search and the working card-size steppers */
.hp-qx { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; border: 0; border-radius: 999px; background: rgb(var(--ink-1) / .06); color: var(--ink-3); cursor: pointer; transition: background .15s, color .15s; }
.hp-qx:hover { background: rgb(var(--ink-1) / .12); color: var(--ink-1); }
.hp-qx:focus-visible { outline: 2px solid rgb(var(--brand-500)); outline-offset: 2px; }
.hp-step { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; border: 1px solid rgb(var(--ink-1) / .12); border-radius: 8px; background: var(--surface); color: var(--ink-2); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.hp-step:hover:not(:disabled) { background: rgb(var(--brand-500) / .08); border-color: rgb(var(--brand-500) / .35); color: rgb(var(--brand-700)); }
.hp-step:focus-visible { outline: 2px solid rgb(var(--brand-500)); outline-offset: 2px; }
.hp-step:disabled { opacity: .4; cursor: not-allowed; }
.hp-size-v { min-width: 38px; text-align: end; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.hp-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-pill { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgb(var(--border-strong)); background: rgb(var(--surface)); font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; color: rgb(var(--ink-2)); }
.hp-pill span { font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); }
.hp-pill.on { background: rgb(var(--brand-600)); border-color: rgb(var(--brand-600)); color: rgb(var(--on-brand)); }
.hp-pill.on span { color: rgb(255 255 255 / .8); }
.hp-sec { font-size: calc(12.5px * var(--es-ts, 1)); font-weight: 700; color: rgb(var(--ink-2)); display: flex; align-items: center; gap: 6px; }
.hp-sec .fa-star { color: rgb(245 158 11); }
.hp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--hp-size, 200px), 1fr)); gap: 12px; }
.hp-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgb(var(--surface)); cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.hp-card:hover, .hp-card:focus-visible { transform: translateY(-2px); border-color: rgb(var(--brand-300)); box-shadow: 0 12px 26px -14px rgb(var(--brand-600) / .45); }
.hp-card b { font-size: calc(12.5px * var(--es-ts, 1)); line-height: 1.35; }
.hp-card small, .hp-row small { font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); }
.hp-ic { width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: calc(19px * var(--es-ts, 1)); color: rgb(var(--on-brand)); background: linear-gradient(135deg, rgb(var(--brand-500)), rgb(var(--brand-700))); box-shadow: 0 8px 18px -10px rgb(var(--brand-600) / .8); flex: none; }
.hp-ic.sm { width: 34px; height: 34px; font-size: calc(14px * var(--es-ts, 1)); border-radius: 10px; }
.hp-ic.lg { width: 54px; height: 54px; font-size: calc(22px * var(--es-ts, 1)); }
.hp-star { position: absolute; top: 8px; inset-inline-end: 8px; width: 28px; height: 28px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); }
.hp-row .hp-star { position: static; }
.hp-star.on { color: rgb(245 158 11); }
.hp-star:hover { background: rgb(var(--brand-50)); }
.hp-list { display: flex; flex-direction: column; gap: 4px; }
.hp-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.hp-row:hover { border-color: rgb(var(--brand-300)); background: rgb(var(--brand-50) / .5); }
.hp-row b { display: block; font-size: calc(12.5px * var(--es-ts, 1)); }
.hp-mods-h { display: flex; align-items: center; justify-content: space-between; }
.hp-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.hp-mod { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, rgb(var(--brand-50)), rgb(var(--surface)) 60%); text-align: start; }
.hp-mod:hover { border-color: rgb(var(--brand-300)); box-shadow: 0 12px 26px -14px rgb(var(--brand-600) / .45); }
.hp-mod b { font-size: calc(14px * var(--es-ts, 1)); }
.hp-mod small { color: var(--ink-3); }
.hp-mod-go { position: absolute; top: 16px; inset-inline-end: 16px; color: rgb(var(--brand-600)); }
.hp-side { display: flex; flex-direction: column; gap: 12px; }
.hp-side .card-head h3 { display: flex; align-items: center; gap: 6px; font-size: calc(13px * var(--es-ts, 1)); }
.hp-feed { display: flex; flex-direction: column; gap: 2px; padding: 6px !important; }
.hp-feed .hb-note b { font-size: calc(12px * var(--es-ts, 1)); }
.hp-feed .hb-note small { display: block; font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); }
.hp-src { font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); text-align: center; margin: 4px 0 0; }
.hp-dot { display: inline-block; width: 7px; height: 7px; border-radius: 999px; background: rgb(244 63 94); vertical-align: middle; }
/* GOV-R183-A (CR-395): the home side column folds to a 56px rail instead of hiding; the cards area takes the freed width. The state is kept per user (hpPrefs.side). */
.hp-wrap { transition: grid-template-columns .2s ease; }
.hp-wrap.rail { grid-template-columns: 1fr 56px; }
.hp-side-bar { display: flex; justify-content: flex-end; }
.hp-side.rail { align-items: center; gap: 8px; }
.hp-side.rail .hp-side-bar { justify-content: center; }
.hp-side.rail > .card { display: none; }   /* a card injected into the column after the render (napp-follow.js «للمتابعة») never spills out of the 56px rail */
#so-root .fu-card { border: 0; box-shadow: none; }   /* the same card in the drawer: the drawer head already carries the title, so its own head is not repeated */
#so-root .fu-card > .card-head { display: none; }
.hp-side .card { transition: opacity .2s ease; }
.hp-side-tg { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border: 1px solid var(--line); border-radius: 10px; background: rgb(var(--surface)); color: var(--ink-3); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.hp-side-tg:hover { background: rgb(var(--brand-50)); border-color: rgb(var(--brand-300)); color: rgb(var(--brand-700)); }
.hp-side-tg:focus-visible { outline: 2px solid rgb(var(--brand-500)); outline-offset: 2px; }
.hp-rail-b { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--line); border-radius: 12px; background: rgb(var(--surface)); color: rgb(var(--ink-2)); font-size: calc(16px * var(--es-ts, 1)); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.hp-rail-b:hover { background: rgb(var(--brand-50)); border-color: rgb(var(--brand-300)); color: rgb(var(--brand-700)); }
.hp-rail-b:focus-visible { outline: 2px solid rgb(var(--brand-500)); outline-offset: 2px; }
.hp-rail-n { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: rgb(244 63 94); color: rgb(var(--on-brand)); font-size: calc(11px * var(--es-ts, 1)); font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; direction: ltr; }
@media (max-width: 1100px) { .hp-side.rail { flex-direction: row; justify-content: flex-start; } .hp-side.rail .hp-side-bar { justify-content: flex-start; } }
@media (prefers-reduced-motion: reduce) { .hp-wrap, .hp-side .card, .hp-side-tg, .hp-rail-b { transition: none; } }
.hp-ticker { display: flex; align-items: center; gap: 10px; padding: 8px 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgb(var(--surface)); overflow: hidden; }
.hp-ticker-l { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: calc(11.5px * var(--es-ts, 1)); font-weight: 700; color: rgb(var(--on-brand)); background: rgb(var(--brand-600)); padding: 3px 10px; border-radius: 999px; }
.hp-ticker-t { display: flex; gap: 10px; align-items: center; white-space: nowrap; overflow: hidden; font-size: calc(12.5px * var(--es-ts, 1)); color: var(--ink-3); }
.hp-ticker-t button { border: 0; background: transparent; color: rgb(var(--ink-2)); font-size: calc(12.5px * var(--es-ts, 1)); }
.hp-ticker-t button:hover { color: rgb(var(--brand-700)); text-decoration: underline; }
.pf-hero { display: flex; align-items: center; gap: 18px; padding: 18px; margin-bottom: 12px; flex-wrap: wrap; }
.pf-av { position: relative; width: 96px; height: 96px; flex: none; }
.pf-av > span, .pf-av > img { width: 96px; height: 96px; border-radius: 24px; display: flex; align-items: center; justify-content: center; object-fit: cover; font-size: calc(30px * var(--es-ts, 1)); font-weight: 800; color: rgb(var(--on-brand)); background: linear-gradient(135deg, rgb(var(--brand-500)), rgb(var(--brand-800))); }
.pf-av-btn, .pf-av-del { position: absolute; bottom: -6px; width: 32px; height: 32px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid rgb(var(--surface)); cursor: pointer; }
.pf-av-btn { inset-inline-end: -6px; background: rgb(var(--brand-600)); color: rgb(var(--on-brand)); }
.pf-av-del { inset-inline-start: -6px; background: rgb(244 63 94); color: rgb(var(--on-brand)); }
.pf-id { flex: 1; min-width: 260px; }
.pf-id h3 { font-size: calc(19px * var(--es-ts, 1)); font-weight: 800; margin: 0; }
.pf-id p { margin: 2px 0 10px; color: var(--ink-3); font-size: calc(12.5px * var(--es-ts, 1)); }
.pf-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: calc(12px * var(--es-ts, 1)); color: var(--ink-3); }
.pf-facts span { display: inline-flex; align-items: center; gap: 6px; }
.pf-facts b { color: rgb(var(--ink)); font-weight: 600; }
.pf-dl { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important; }
.pf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .pf-cols { grid-template-columns: 1fr; } }
.pf-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: calc(12px * var(--es-ts, 1)); color: var(--ink-3); }
.pf-rules li.ok { color: rgb(4 120 87); }
.pf-rules i { margin-inline-end: 6px; }
.pf-canvas { width: 100%; height: 180px; border: 2px dashed rgb(var(--border-strong)); border-radius: 14px; background: rgb(var(--surface)); touch-action: none; cursor: crosshair; }
.pf-col { width: 22px; height: 22px; border-radius: 999px; border: 2px solid rgb(var(--surface)); box-shadow: 0 0 0 1px rgb(var(--border-strong)); }
.pf-sig-view { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgb(var(--surface)); text-align: center; }
.pf-sig-view img { max-height: 160px; margin: auto; }
.act-hide { display: none !important; }
.act-wrap { position: relative; display: inline-block; }
.act-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 9px; border: 1px solid rgb(var(--border-strong)); background: rgb(var(--surface)); color: rgb(var(--ink-2)); font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; white-space: nowrap; }
.act-btn:hover, .act-wrap.open .act-btn { border-color: rgb(var(--brand-500)); color: rgb(var(--brand-700)); background: rgb(var(--brand-50)); }
.act-n { font-size: calc(11px * var(--es-ts, 1)); font-weight: 700; padding: 0 6px; border-radius: 999px; background: rgb(var(--surface-2)); color: var(--ink-3); }
.act-list { display: none; position: absolute; bottom: calc(100% + 6px); top: auto; inset-inline-end: 0; z-index: 60; min-width: 220px; max-width: 320px; padding: 4px; background: rgb(var(--surface)); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -12px rgb(15 23 42 / .35); }
.act-wrap.open .act-list { display: flex; flex-direction: column; }
.act-list .act-item { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; height: auto !important; min-height: 34px; padding: 7px 10px !important; border: 0 !important; border-radius: 8px; background: transparent !important; color: rgb(var(--ink)) !important; font-size: calc(12.5px * var(--es-ts, 1)) !important; font-weight: 600; text-align: start; justify-content: flex-start !important; box-shadow: none !important; text-decoration: none !important; }
.act-list .act-item i { font-size: calc(12px * var(--es-ts, 1)) !important; width: 16px; text-align: center; color: rgb(var(--brand-600)); }
.act-list .act-item:hover:not([disabled]), .act-list .act-item:focus-visible { background: rgb(var(--brand-50)) !important; }
.act-list .act-item[disabled] { opacity: 1; color: var(--ink-3) !important; cursor: not-allowed; }
.act-list .act-item[disabled] i { color: var(--ink-3); }
.act-why { flex-basis: 100%; padding-inline-start: 24px; font-size: calc(11px * var(--es-ts, 1)); color: rgb(190 18 60); line-height: 1.35; }
.dark .act-list .act-item:hover:not([disabled]), .dark .act-btn:hover, .dark .hp-star:hover { background: rgb(var(--brand-500) / .16) !important; }
.dark .pf-canvas, .dark .pf-sig-view { background: color-mix(in srgb, rgb(var(--ink)) 40%, rgb(var(--on-brand))); }
/* PAY-R977-A (CR-314): the slim band on narrow widths (owner 2026-11-10: the buttons covered the title): one line while there is room,
   otherwise the buttons wrap under the title; on small screens the description hides and the title may wrap */
.nd-shell.r-slim .page-hero .page-head { flex-wrap: wrap; row-gap: 8px; }
.nd-shell.r-slim .page-hero .page-head > div:first-child { flex: 1 1 360px; min-width: 0; }
.nd-shell.r-slim .page-hero .page-head > div:last-child { flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; margin-inline-start: auto; }
.nd-shell.r-slim .page-hero .page-head h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nd-shell.r-calm .page-hero .page-head { flex-wrap: wrap; row-gap: 8px; }
.nd-shell.r-calm .page-hero .page-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.nd-shell.r-calm .page-hero .page-head > div:last-child { flex-wrap: wrap; margin-inline-start: auto; }
@media (max-width: 900px) {
  .nd-shell.r-slim .page-hero .page-head p { display: none; }
  .nd-shell.r-slim .page-hero .page-head h2 { white-space: normal; overflow: visible; }
  .nd-shell .page-hero .page-head > div:last-child { justify-content: flex-start; margin-inline-start: 0; }
  .nd-shell .page-hero .page-head > div:first-child { flex-basis: 100%; }
}
/* PAY-R979-A (CR-316): the enterprise home with every module (napp-home-all.js) */
.ha-main { padding: 14px; display: flex; flex-direction: column; gap: 16px; }
.ha-sec h3 { font-size: calc(14px * var(--es-ts, 1)); font-weight: 800; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.ha-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ha-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; cursor: pointer; text-align: start; background: linear-gradient(160deg, rgb(var(--brand-50)), rgb(var(--surface)) 62%); transition: transform .15s, box-shadow .15s, border-color .15s; }
.ha-card:hover, .ha-card:focus-visible { transform: translateY(-2px); border-color: rgb(var(--brand-300)); box-shadow: 0 14px 28px -16px rgb(var(--brand-600) / .55); }
.ha-card.off { background: rgb(var(--surface)); }
.ha-card.off .ha-ic { filter: grayscale(.35); opacity: .85; }
.ha-ic { width: 50px; height: 50px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; font-size: calc(21px * var(--es-ts, 1)); color: rgb(var(--on-brand)); background: linear-gradient(135deg, rgb(var(--brand-500)), rgb(var(--brand-700))); box-shadow: 0 10px 20px -12px rgb(var(--brand-600) / .9); }
.ha-card b { font-size: calc(14px * var(--es-ts, 1)); margin-top: 4px; }
.ha-card small { font-size: calc(11.5px * var(--es-ts, 1)); color: var(--ink-3); min-height: 30px; }
.ha-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.ha-why { font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); }
.dark .ha-card { background: rgb(var(--surface)); }
/* PAY-R979-A (CR-316), owner 2026-11-10: the «My profile and appearance» panel was too big (93px swatches, 829px tall): compact rows, label beside the choice, small round swatches */
.prof { gap: 10px !important; }
.prof .prof-head { padding: 10px 12px; gap: 10px; border-radius: 12px; }
.prof .prof-head .hb-av { width: 40px; height: 40px; font-size: calc(14px * var(--es-ts, 1)); }
.prof .prof-head b { font-size: calc(13px * var(--es-ts, 1)); }
.prof .prof-head small { font-size: calc(11px * var(--es-ts, 1)); }
.prof h4 { margin: 2px 0 0; font-size: calc(12.5px * var(--es-ts, 1)); }
.prof-row { flex-direction: row !important; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px !important; padding: 8px 10px !important; border-radius: 10px !important; }
.prof-row > label { flex: 0 0 auto; margin: 0; font-size: calc(12px * var(--es-ts, 1)); }
.prof .emis-theme-modes { flex: 0 1 230px; min-width: 190px; gap: 4px; }
.prof .emis-theme-modes button { min-height: 28px; padding: 0 8px; font-size: calc(12px * var(--es-ts, 1)); border-radius: 8px; }
.prof .emis-theme-swatches { display: flex !important; flex-wrap: wrap; gap: 6px; flex: 0 1 auto; justify-content: flex-end; }
.prof .emis-theme-swatches button { width: 26px; height: 26px; aspect-ratio: auto; border-radius: 999px; flex: none; border-width: 2px; }
.prof .emis-theme-swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px rgb(var(--surface)), 0 0 0 4px rgb(var(--ink)); }
.prof .emis-theme-swatches button i { font-size: calc(11px * var(--es-ts, 1)) !important; }
.prof .prof-note { font-size: calc(11px * var(--es-ts, 1)); padding: 6px 8px; }
/* PAY-R981-A (CR-316): the top bar height chosen in My profile › appearance: slim 52px, medium 64px (default), wide 78px */
body.hb-h-s #top-bar.hb-bar { height: 52px; }
body.hb-h-s .hb-ic, body.hb-h-s .hb-bar .emis-theme-btn { height: 32px; min-width: 32px; border-radius: 9px; font-size: calc(12px * var(--es-ts, 1)); }
body.hb-h-s .hb-page-ic { width: 32px; height: 32px; font-size: calc(14px * var(--es-ts, 1)); border-radius: 10px; }
body.hb-h-s .hb-page-tx b { font-size: calc(13px * var(--es-ts, 1)); }
body.hb-h-s .hb-page-tx small { display: none; }
body.hb-h-s .hb-modules { height: 34px; font-size: calc(12px * var(--es-ts, 1)); }
body.hb-h-s .hb-mod-ic { width: 24px; height: 24px; font-size: calc(11px * var(--es-ts, 1)); }
body.hb-h-s .hb-user { height: 36px; }
body.hb-h-s .hb-av { width: 28px; height: 28px; font-size: calc(12px * var(--es-ts, 1)); }
body.hb-h-l #top-bar.hb-bar { height: 78px; padding: 0 20px; }
body.hb-h-l .hb-ic, body.hb-h-l .hb-bar .emis-theme-btn { height: 44px; min-width: 44px; border-radius: 13px; font-size: calc(14px * var(--es-ts, 1)); }
body.hb-h-l .hb-page-ic { width: 48px; height: 48px; font-size: calc(20px * var(--es-ts, 1)); border-radius: 14px; }
body.hb-h-l .hb-page-tx b { font-size: calc(16.5px * var(--es-ts, 1)); }
body.hb-h-l .hb-page-tx small { font-size: calc(12px * var(--es-ts, 1)); }
body.hb-h-l .hb-modules { height: 46px; font-size: calc(14px * var(--es-ts, 1)); }
body.hb-h-l .hb-mod-ic { width: 32px; height: 32px; font-size: calc(14px * var(--es-ts, 1)); }
body.hb-h-l .hb-user { height: 50px; }
body.hb-h-l .hb-av { width: 40px; height: 40px; font-size: calc(15px * var(--es-ts, 1)); }
.prof .emis-theme-modes.prof-3 { grid-template-columns: 1fr 1fr 1fr; flex-basis: 250px; }
/* PAY-R982-A (CR-317): the page band height chosen in My profile › appearance: slim (one line, default), medium (title, then the description under it), wide (the large band) */
.prof-hint { display: block; font-size: calc(11px * var(--es-ts, 1)); font-weight: 400; color: var(--ink-3); }
body.band-m .nd-shell .page-hero, body.band-m.nd-shell .page-hero { padding: 14px 20px; }
body.band-m.nd-shell .page-hero .page-head > div:first-child { flex-wrap: wrap; row-gap: 4px; }
body.band-m.nd-shell .page-hero .page-head h2 { font-size: calc(20px * var(--es-ts, 1)); }
body.band-m.nd-shell .page-hero .page-head p { flex: 1 1 100% !important; order: 9; white-space: normal; overflow: visible; padding-inline-start: 0; border-inline-start: 0; font-size: calc(12.5px * var(--es-ts, 1)); max-width: none; }
body.band-l.nd-shell .page-hero { padding: 22px 26px 24px; border-radius: 18px; }
body.band-l.nd-shell.r-slim .page-hero::before { width: 300px; height: 300px; top: -130px; }
body.band-l.nd-shell .page-hero .page-head > div:first-child { flex-wrap: wrap; row-gap: 6px; }
body.band-l.nd-shell .page-hero .page-head h2 { font-size: calc(23px * var(--es-ts, 1)); }
body.band-l.nd-shell .page-hero .page-head p { flex: 1 1 100% !important; order: 9; white-space: normal; overflow: visible; padding-inline-start: 0; border-inline-start: 0; font-size: calc(13.5px * var(--es-ts, 1)); max-width: 760px; margin-top: 2px; }
@media (max-width: 900px) { body.band-m.nd-shell .page-hero .page-head p, body.band-l.nd-shell .page-hero .page-head p { display: block; } }
/* PAY-R983-A (CR-318): sign out in the user menu and the signed-out screen */
.hb-dd-acts { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hb-out { background: rgb(255 241 242); color: rgb(190 18 60); border: 1px solid rgb(253 164 175); }
.hb-out:hover { background: rgb(254 226 226); }
body.is-signed-out { overflow: hidden; }
#signed-out { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(circle at 20% 10%, rgb(var(--brand-500) / .35), transparent 50%), linear-gradient(135deg, rgb(var(--brand-800)), rgb(15 23 42)); }
.so-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 26px 22px; border-radius: 22px; background: rgb(var(--surface)); color: rgb(var(--ink)); text-align: center; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .5); }
.so-brand { display: flex; align-items: center; gap: 8px; color: rgb(var(--brand-700)); font-size: calc(13px * var(--es-ts, 1)); letter-spacing: .5px; }
.so-ok { font-size: calc(44px * var(--es-ts, 1)); color: rgb(16 185 129); margin-top: 6px; }
.so-card h2 { font-size: calc(20px * var(--es-ts, 1)); font-weight: 800; margin: 0; }
.so-card p { margin: 0; color: var(--ink-3); font-size: calc(13px * var(--es-ts, 1)); }
.so-in { width: 100%; justify-content: center; margin-top: 8px; }
.so-other { width: 100%; text-align: start; font-size: calc(12.5px * var(--es-ts, 1)); }
.so-other summary { cursor: pointer; color: rgb(var(--brand-700)); text-align: center; }
.so-other div { display: flex; flex-direction: column; gap: 2px; max-height: 200px; overflow: auto; margin-top: 6px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; }
.so-other div button { border: 0; background: transparent; padding: 6px 8px; border-radius: 8px; text-align: start; font-size: calc(12.5px * var(--es-ts, 1)); }
.so-other div button:hover { background: rgb(var(--brand-50)); }
.so-card small { color: var(--ink-3); font-size: calc(11px * var(--es-ts, 1)); }
.dark .hb-out { background: rgb(244 63 94 / .15); color: rgb(253 164 175); border-color: rgb(244 63 94 / .35); }
/* PAY-R983-A: the close button of the home-bar menus */
.hb-dd-h .hb-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); }
.hb-dd-h .hb-x:hover { background: rgb(var(--brand-50)); color: rgb(var(--ink)); }
.hb-dd { max-height: calc(100vh - 90px); overflow: auto; }

/* PAY-R985-A (CR-320): side menu with the napp tabs «الشاشات» / «التقارير», one search, folding groups, favourites */
.sn-head { padding: 10px 10px 6px; display: flex; flex-direction: column; gap: 8px; }
.sn-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 11px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.sn-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 8px; border-radius: 8px; font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; color: var(--nav-muted); transition: background .15s, color .15s; }
.sn-tab:hover { color: rgb(var(--on-brand)); }
.sn-tab[aria-selected="true"] { background: rgb(var(--brand-600)); color: rgb(var(--on-brand)); box-shadow: 0 4px 12px -4px rgb(var(--brand-600) / .6); }
.sn-n { font-size: calc(11px * var(--es-ts, 1)); font-weight: 700; min-width: 18px; padding: 0 5px; border-radius: 9px; background: rgba(255,255,255,.12); line-height: 16px; text-align: center; direction: ltr; }
.sn-search { display: flex; align-items: center; gap: 6px; padding: 0 6px 0 9px; border-radius: 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); transition: border-color .15s, box-shadow .15s; }
.sn-search:focus-within { border-color: rgb(var(--brand-400)); box-shadow: 0 0 0 3px rgb(var(--brand-500) / .25); }
.sn-search > i { font-size: calc(11px * var(--es-ts, 1)); color: var(--nav-muted); }
.sn-head .sn-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 7px 0; font-size: calc(12px * var(--es-ts, 1)); color: rgb(var(--on-brand)); outline: none; border-radius: 0; }
.sn-search input::-webkit-search-cancel-button { display: none; }
.sn-x, .sn-acts button { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--nav-muted); font-size: calc(11px * var(--es-ts, 1)); }
.sn-x[hidden] { display: none; }
.sn-x:hover { background: rgb(244 63 94 / .18); color: rgb(253 164 175); }
.sn-acts { display: flex; gap: 1px; padding-inline-start: 4px; border-inline-start: 1px solid rgba(255,255,255,.12); }
.sn-acts button:hover { background: rgba(255,255,255,.1); color: rgb(var(--on-brand)); }
.sn-g { margin-top: 2px; }
.sn-gh { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 8px 6px; border-radius: 8px; font-size: calc(11px * var(--es-ts, 1)); font-weight: 700; color: var(--nav-muted); text-align: start; letter-spacing: .2px; }
.sn-gh:hover { color: rgb(var(--on-brand)); background: rgba(255,255,255,.04); }
.sn-gh .sn-gi { width: 15px; text-align: center; font-size: calc(11px * var(--es-ts, 1)); }
.sn-gh .sn-n { margin-inline-start: auto; background: rgba(255,255,255,.08); font-weight: 600; }
.sn-gh.has-cur { color: rgb(var(--brand-300)); }
.sn-chev { font-size: calc(11px * var(--es-ts, 1)); transition: transform .18s; transform: rotate(-90deg); }
[dir="rtl"] .sn-chev { transform: rotate(90deg); }
.sn-g.open .sn-chev { transform: none; }
.sn-items { display: flex; flex-direction: column; gap: 1px; padding-bottom: 4px; animation: sn-in .16s ease-out; }
@keyframes sn-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sn-items { animation: none; } .sn-chev { transition: none; } }
.sn-row { position: relative; display: flex; align-items: center; }
.sn-row .nav-item { padding-inline-end: 30px; }
.sn-row .nav-item .sn-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-star { position: absolute; inset-inline-end: 4px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; font-size: calc(11px * var(--es-ts, 1)); color: var(--nav-muted); opacity: 0; transition: opacity .15s; }
.sn-row:hover .sn-star, .sn-star:focus-visible, .sn-star.on { opacity: 1; }
.sn-star.on { color: rgb(251 191 36); }
.sn-row:hover .nav-item .sid, .sn-row .nav-item:has(+ .sn-star.on) .sid { visibility: hidden; }
.nav-item mark { background: rgb(251 191 36 / .35); color: inherit; border-radius: 3px; padding: 0 1px; }
.sn-empty { padding: 26px 12px; text-align: center; color: var(--nav-muted); font-size: calc(12px * var(--es-ts, 1)); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.sn-empty > i { font-size: calc(22px * var(--es-ts, 1)); opacity: .6; }
.sn-more { width: calc(100% - 8px); margin: 8px 4px 0; padding: 7px; border-radius: 8px; border: 1px dashed rgba(255,255,255,.18); color: var(--nav-muted); font-size: calc(11.5px * var(--es-ts, 1)); display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
.sn-more:hover { color: rgb(var(--on-brand)); border-color: rgb(var(--brand-400)); }

/* PAY-R984-A (CR-320): the side menu look, the user's choice in My profile; dark is the look so far */
body.nav-look-brand #side, body.nav-look-brand.nd-shell #side { background: linear-gradient(180deg, rgb(var(--brand-800)) 0%, rgb(var(--brand-950)) 100%); --nav-muted: rgb(var(--brand-100) / .75); --nav-text: rgb(var(--brand-50) / .92); --nav-bg-2: rgba(255,255,255,.10); }
body.nav-look-brand .nav-item.active { background: rgba(255,255,255,.16); }
body.nav-look-brand .nav-item.active::before { background: rgb(var(--on-brand)); }
body.nav-look-brand .nav-item.active i.ic, body.nav-look-brand .sn-gh.has-cur { color: rgb(var(--on-brand)); }
body.nav-look-brand .sn-tab[aria-selected="true"] { background: rgb(var(--on-brand)); color: rgb(var(--brand-800)); box-shadow: 0 4px 12px -4px rgba(0,0,0,.35); }
body.nav-look-brand .sn-tab[aria-selected="true"] .sn-n { background: rgb(var(--brand-100)); }
body.nav-look-brand .brand-mark { background: rgba(255,255,255,.16); box-shadow: none; }
body.nav-look-light #side, body.nav-look-light.nd-shell #side { background: rgb(var(--surface)); color: rgb(var(--ink-2)); border-inline-end: 1px solid var(--line); --nav-muted: rgb(var(--ink-muted)); --nav-text: rgb(var(--ink-2)); --nav-bg-2: rgb(var(--brand-50)); }
body.nav-look-light .brand { border-bottom-color: var(--line); }
body.nav-look-light .brand b { color: rgb(var(--ink)); }
body.nav-look-light .nav-item:hover { background: rgb(var(--brand-50)); color: rgb(var(--brand-800)); }
body.nav-look-light .nav-item.active { background: rgb(var(--brand-50)); color: rgb(var(--brand-800)); }
body.nav-look-light .nav-item.active::before { background: rgb(var(--brand-600)); }
body.nav-look-light .nav-item.active i.ic, body.nav-look-light .sn-gh.has-cur { color: rgb(var(--brand-700)); }
body.nav-look-light .nav-item.active .sid { color: rgb(var(--brand-700)); }
body.nav-look-light .nav-item.off { color: rgb(var(--ink-faint)); }
body.nav-look-light .sn-tabs, body.nav-look-light .sn-search { background: rgb(var(--surface-2)); border-color: var(--line); }
body.nav-look-light .sn-tab:hover, body.nav-look-light .sn-gh:hover, body.nav-look-light .sn-acts button:hover, body.nav-look-light .sn-more:hover { color: rgb(var(--brand-700)); }
body.nav-look-light .sn-gh:hover, body.nav-look-light .sn-acts button:hover { background: rgb(var(--surface-2)); }
body.nav-look-light .sn-head .sn-search input { color: rgb(var(--ink)); }
body.nav-look-light .sn-n { background: rgb(var(--ink) / .07); }
body.nav-look-light .sn-tab[aria-selected="true"] .sn-n { background: rgba(255,255,255,.22); }
body.nav-look-light .sn-acts, body.nav-look-light .sn-more { border-color: var(--line); }
body.nav-look-light .side-foot { border-top-color: var(--line); }
body.nav-look-light #side-nav::-webkit-scrollbar-thumb { background: rgb(var(--ink) / .14); }
.dark body.nav-look-light .nav-item:hover, .dark body.nav-look-light .nav-item.active { background: rgb(var(--brand-500) / .14); color: rgb(var(--brand-200)); }
.dark body.nav-look-light .nav-item.active i.ic, .dark body.nav-look-light .nav-item.active .sid, .dark body.nav-look-light .sn-gh.has-cur { color: rgb(var(--brand-300)); }
/* the choice in My profile shows a small swatch of each look */
.sn-look { display: inline-flex; align-items: center; gap: 6px; }
.sn-sw { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); flex: none; }
.sn-look-light .sn-sw { background: #fff; } /* GOV-R275-exempt: swatch sample of the light menu look, white in every mode like the dark swatch beside it */
.sn-look-brand .sn-sw { background: linear-gradient(180deg, rgb(var(--brand-700)), rgb(var(--brand-950))); }
.sn-look-dark .sn-sw { background: linear-gradient(180deg, rgb(15 23 42), rgb(17 28 58)); }

/* PAY-R985-A (CR-320): the application card at the top of the side menu and the application switcher */
.sn-app { position: relative; padding: 10px 10px 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sn-app-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 13px; text-align: start; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); transition: background .15s, border-color .15s; }
.sn-app-btn:hover, .sn-app-btn[aria-expanded="true"] { background: rgba(255,255,255,.09); border-color: rgb(var(--brand-400) / .5); }
.sn-app-ic { width: 38px; height: 38px; flex: none; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; color: rgb(var(--on-brand)); font-size: calc(16px * var(--es-ts, 1)); background: var(--grad-brand, linear-gradient(135deg, rgb(var(--brand-500)), rgb(var(--brand-800)))); box-shadow: 0 6px 16px -6px rgb(var(--brand-500) / .7); }
.sn-app-tx { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.sn-app-tx small { font-size: calc(11px * var(--es-ts, 1)); letter-spacing: .8px; color: var(--nav-muted); font-weight: 700; }
.sn-app-tx b { font-size: calc(15px * var(--es-ts, 1)); font-weight: 800; color: rgb(var(--on-brand)); }
.sn-app-tx em { font-style: normal; font-size: calc(11px * var(--es-ts, 1)); color: var(--nav-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-app-chev { font-size: calc(11px * var(--es-ts, 1)); color: var(--nav-muted); transition: transform .18s; }
.sn-app-btn[aria-expanded="true"] .sn-app-chev { transform: rotate(180deg); }
.sn-am-menu { position: absolute; z-index: 60; top: calc(100% - 2px); inset-inline: 10px; display: flex; flex-direction: column; max-height: min(70vh, 560px); border-radius: 14px; background: rgb(var(--surface)); color: rgb(var(--ink)); border: 1px solid var(--line); box-shadow: 0 24px 48px -16px rgba(2,6,23,.45); overflow: hidden; animation: sn-in .16s ease-out; }
.sn-am-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: calc(12.5px * var(--es-ts, 1)); }
.sn-am-h .sn-n { background: rgb(var(--ink) / .07); color: rgb(var(--ink-2)); }
.sn-am-h .sn-x { margin-inline-start: auto; color: rgb(var(--ink-muted)); }
.sn-am-list { overflow-y: auto; padding: 4px 6px 6px; }
.sn-am-g { padding: 9px 8px 4px; font-size: calc(11px * var(--es-ts, 1)); font-weight: 700; color: rgb(var(--ink-muted)); }
.sn-am { width: 100%; display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 9px; text-align: start; font-size: calc(12.5px * var(--es-ts, 1)); color: rgb(var(--ink-2)); }
.sn-am:hover, .sn-am:focus-visible { background: rgb(var(--surface-2)); color: rgb(var(--ink)); }
.sn-am.cur { background: rgb(var(--brand-50)); color: rgb(var(--brand-800)); font-weight: 700; }
.sn-am-ic { width: 26px; height: 26px; flex: none; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: calc(12px * var(--es-ts, 1)); color: rgb(var(--on-brand)); background: linear-gradient(135deg, rgb(var(--brand-500)), rgb(var(--brand-700))); }
.sn-am.off .sn-am-ic { opacity: .55; filter: saturate(.6); }
.sn-am-tx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-am-st { flex: none; font-size: calc(11px * var(--es-ts, 1)); font-weight: 600; padding: 1px 7px; border-radius: 9px; }
.sn-am-st.ok { background: rgb(16 185 129 / .12); color: rgb(4 120 87); }
.sn-am-st.no { background: rgb(var(--ink) / .06); color: rgb(var(--ink-muted)); }
.sn-am-st.cur { display: inline-flex; gap: 4px; align-items: center; background: rgb(var(--brand-600)); color: rgb(var(--on-brand)); }
.sn-am-all { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-top: 1px solid var(--line); font-size: calc(12px * var(--es-ts, 1)); font-weight: 700; color: rgb(var(--brand-700)); background: rgb(var(--surface-2)); }
.sn-am-all:hover { background: rgb(var(--brand-50)); }
.dark .sn-am.cur { background: rgb(var(--brand-500) / .16); color: rgb(var(--brand-200)); }
.dark .sn-am-st.ok { color: rgb(110 231 183); }
.dark .sn-am-all { color: rgb(var(--brand-300)); }
body.nav-look-light .sn-app { border-bottom-color: var(--line); }
body.nav-look-light .sn-app-btn { background: rgb(var(--surface-2)); border-color: var(--line); }
body.nav-look-light .sn-app-btn:hover, body.nav-look-light .sn-app-btn[aria-expanded="true"] { background: rgb(var(--brand-50)); border-color: rgb(var(--brand-300)); }
body.nav-look-light .sn-app-tx b { color: rgb(var(--ink)); }
body.nav-look-brand .sn-app-ic { background: rgba(255,255,255,.18); box-shadow: none; }

/* GOV-R156-A (CR-322): the user photo in the home bar user button and the menu head */
.hb-av .hb-photo { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; display: block; }
.hb-av:has(.hb-photo) { background: rgb(var(--on-brand)); padding: 2px; box-shadow: 0 0 0 2px rgb(255 255 255 / .55); }
.hb-av-dd { width: 40px; height: 40px; font-size: calc(14px * var(--es-ts, 1)); flex: none; background: rgb(var(--brand-600)); color: rgb(var(--on-brand)); }
.hb-dd-h .hb-av-dd:has(.hb-photo) { box-shadow: 0 0 0 2px rgb(var(--brand-200)); }

/* GOV-R157-A (CR-323): the «+» new colour in My profile */
.prof .emis-theme-swatches .prof-add, .emis-theme-swatches label.prof-add { position: relative; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.prof-add input[type="color"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.prof-add:focus-within { outline: 2px solid rgb(var(--brand-500)); outline-offset: 2px; }
.prof .emis-theme-swatches .prof-add { width: 26px; height: 26px; border-radius: 999px; flex: none; font-size: calc(11px * var(--es-ts, 1)); }

/* GOV-R158-A (CR-323): the small close icon at the end of the coloured page band */
.page-hero .page-head .band-x { flex: none; align-self: flex-start; width: 28px; height: 28px; margin-inline-start: 4px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: calc(12px * var(--es-ts, 1)); color: rgb(var(--on-brand)); background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .28); cursor: pointer; transition: background .15s, transform .15s; }
.page-hero .page-head .band-x:hover { background: rgb(255 255 255 / .28); transform: rotate(90deg); }
.page-hero .page-head .band-x:focus-visible { outline: 2px solid rgb(var(--on-brand)); outline-offset: 2px; }
body.r-calm .page-hero .page-head .band-x { color: rgb(var(--ink-2)); background: rgb(var(--surface-2)); border-color: var(--line); }
@media (prefers-reduced-motion: reduce) { .page-hero .page-head .band-x:hover { transform: none; } }

/* PAY-R986-A, PAY-R987-A (CR-324): announcements — the moving ticker of the home page, the bell tabs and the strip under the home bar (napp-news.js) */
.hp-ticker.news-on { gap: 10px; }
.hp-ticker.news-on .hp-ticker-t { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent); }
.news-track { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; animation: news-move 38s linear infinite; }
.news-dup { display: inline-flex; align-items: center; gap: 12px; }
[dir="rtl"] .news-track { animation-name: news-move-rtl; }
@keyframes news-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes news-move-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
.hp-ticker:hover .news-track, .hp-ticker:focus-within .news-track, .hp-ticker.paused .news-track { animation-play-state: paused; }
.news-it { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 2px 4px; border-radius: 6px; font-size: calc(12.5px * var(--es-ts, 1)); color: rgb(var(--ink-2)); cursor: pointer; }
.news-it b { font-weight: 700; color: rgb(var(--ink)); }
.news-it span:not(.chip) { color: var(--ink-3); }
.news-it.unread b::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-inline-end: 5px; border-radius: 50%; background: rgb(var(--brand-500)); vertical-align: middle; }
.news-it:hover b, .news-it:focus-visible b { color: rgb(var(--brand-700)); text-decoration: underline; }
.news-it .fa-thumbtack { color: rgb(var(--brand-600)); font-size: calc(11px * var(--es-ts, 1)); }
.news-sep { color: var(--ink-3); }
.news-pr { font-size: calc(11px * var(--es-ts, 1)) !important; padding: 1px 7px !important; }
.hp-ticker-p { flex: none; width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line); background: rgb(var(--surface-2)); color: rgb(var(--ink-2)); font-size: calc(11px * var(--es-ts, 1)); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.hp-ticker-p:hover { color: rgb(var(--brand-700)); border-color: rgb(var(--brand-300)); }
@media (prefers-reduced-motion: reduce) {
  .news-track { animation: none; }
  .news-dup, .hp-ticker-p { display: none; }
  .hp-ticker.news-on .hp-ticker-t { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
}
/* the bell */
.news-dot { position: absolute; bottom: -2px; inset-inline-start: -2px; width: 10px; height: 10px; border-radius: 50%; background: rgb(251 191 36); border: 2px solid rgb(var(--brand-700)); }
.news-tabs { display: flex; gap: 4px; padding: 6px 8px 0; }
.news-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px; border-radius: 9px; border: 1px solid var(--line); background: rgb(var(--surface-2)); color: rgb(var(--ink-2)); font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; cursor: pointer; }
.news-tabs button[aria-selected="true"] { background: rgb(var(--brand-600)); border-color: rgb(var(--brand-600)); color: rgb(var(--on-brand)); }
.news-n { min-width: 18px; padding: 0 5px; border-radius: 9px; font-size: calc(11px * var(--es-ts, 1)); line-height: 16px; background: rgb(var(--ink) / .08); direction: ltr; }
.news-tabs button[aria-selected="true"] .news-n { background: rgb(255 255 255 / .25); }
.news-row { align-items: flex-start; }
.news-row.unread b::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-inline-start: 6px; border-radius: 50%; background: rgb(var(--brand-500)); vertical-align: middle; }
.news-row-f { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.news-ic-urgent { background: rgb(255 228 230) !important; color: rgb(190 18 60) !important; }
.news-ic-high { background: rgb(254 243 199) !important; color: rgb(180 83 9) !important; }
.news-ic-low { background: rgb(241 245 249) !important; color: rgb(100 116 139) !important; }
.news-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
/* the strip under the home bar */
.news-strip { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 16px; font-size: calc(12.5px * var(--es-ts, 1)); border-bottom: 1px solid var(--line); background: rgb(var(--brand-50)); color: rgb(var(--ink)); position: relative; z-index: 19; animation: news-in .2s ease-out; }
.news-strip.pr-urgent { background: rgb(255 241 242); border-bottom-color: rgb(253 164 175); }
.news-strip.pr-high { background: rgb(255 251 235); border-bottom-color: rgb(253 230 138); }
.news-strip-ic { color: rgb(var(--brand-700)); }
.news-strip.pr-urgent .news-strip-ic { color: rgb(190 18 60); }
.news-strip.pr-high .news-strip-ic { color: rgb(180 83 9); }
.news-strip b { white-space: nowrap; }
.news-strip-m { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); }
.news-strip-a { display: inline-flex; gap: 6px; flex: none; }
@keyframes news-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .news-strip { animation: none; } }
@media (max-width: 700px) { .news-strip-m { display: none; } .news-strip b { white-space: normal; } }
.dark .news-strip { background: rgb(var(--brand-500) / .12); }
.dark .news-strip.pr-urgent { background: rgb(244 63 94 / .14); border-bottom-color: rgb(244 63 94 / .35); }
.dark .news-strip.pr-high { background: rgb(245 158 11 / .14); border-bottom-color: rgb(245 158 11 / .35); }
@media print { .news-strip { display: none !important; } }

/* PAY-R990-A (CR-325): the screen number of the screen specification beside the name, for the review period: always visible in the side menu, a chip in the home bar */
.sn-row:hover .nav-item .sid.scr-rev, .sn-row .nav-item:has(+ .sn-star.on) .sid.scr-rev { visibility: visible; }
.nav-item .sid.scr-rev { font: 600 9.5px/1.4 ui-monospace, monospace; padding: 0 5px; border-radius: 6px; border: 1px dashed rgba(255,255,255,.28); color: var(--nav-muted); }
body.nav-look-light .nav-item .sid.scr-rev { border-color: var(--line); }
.hb-scr { display: inline-block; margin-inline-start: 6px; padding: 0 6px; border-radius: 6px; border: 1px dashed rgb(255 255 255 / .5); font: 600 10px/1.5 ui-monospace, monospace; direction: ltr; vertical-align: middle; opacity: .95; }

/* PAY-R994-A (CR-327): View Record History and View Action History (napp NLogHistory, ActionHistoryViewer) */
.rh-head { display: inline-flex; align-items: center; gap: 10px; }
.rh-head-ic { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--brand-50)); color: rgb(var(--brand-700)); }
.rh-head b { display: block; font-size: calc(15px * var(--es-ts, 1)); } .rh-head small { display: block; font-size: calc(11.5px * var(--es-ts, 1)); font-weight: 400; color: var(--ink-3); }
.rh-id { font-size: calc(11px * var(--es-ts, 1)) !important; }
.rh-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 12px; border-radius: 10px; background: rgb(var(--surface-2)); border: 1px solid var(--line); font-size: calc(12px * var(--es-ts, 1)); color: var(--ink-3); margin-bottom: 12px; }
.rh-meta i { color: rgb(var(--brand-600)); margin-inline-end: 6px; }
.rh-meta code { color: rgb(var(--brand-700)); font-weight: 700; font-size: calc(11.5px * var(--es-ts, 1)); direction: ltr; }
.rh-tl, .ah-tl { list-style: none; margin: 0; padding: 0; position: relative; }
.rh-tl::before, .ah-tl::before { content: ''; position: absolute; top: 14px; bottom: 14px; inset-inline-start: 15px; width: 2px; background: var(--line); }
.rh-step, .ah-it { position: relative; display: flex; gap: 12px; padding-bottom: 12px; }
.rh-mark, .ah-mark { position: relative; z-index: 1; flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: rgb(var(--on-brand)); font-size: calc(12px * var(--es-ts, 1)); box-shadow: 0 0 0 4px rgb(var(--surface)); }
.rh-new .rh-mark { background: rgb(16 185 129); } .rh-upd .rh-mark { background: rgb(var(--brand-600)); }
.rh-card, .ah-card { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgb(var(--surface)); }
.rh-top, .ah-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rh-when { margin-inline-start: auto; font-size: calc(11.5px * var(--es-ts, 1)); color: var(--ink-3); display: inline-flex; gap: 5px; align-items: center; }
.rh-who { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.rh-who small { display: block; font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); } .rh-who b { font-size: calc(13px * var(--es-ts, 1)); }
.rh-av { width: 28px; height: 28px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--brand-50)); color: rgb(var(--brand-700)); font-size: calc(11px * var(--es-ts, 1)); font-weight: 800; }
.rh-note { margin: 4px 0 0; font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); }
.ah-top b { font-size: calc(13px * var(--es-ts, 1)); }
.ah-act { font-size: calc(11px * var(--es-ts, 1)); font-weight: 700; padding: 1px 9px; border-radius: 999px; background: rgb(var(--surface-2)); color: rgb(var(--ink-2)); border: 1px solid var(--line); }
.ah-note { margin-top: 7px; padding: 6px 9px; border-radius: 8px; background: rgb(var(--surface-2)); font-size: calc(12px * var(--es-ts, 1)); color: rgb(var(--ink-2)); display: flex; gap: 6px; align-items: flex-start; }
.ah-ok .ah-mark { background: rgb(16 185 129); } .ah-ok .ah-act { background: rgb(209 250 229); color: rgb(6 95 70); border-color: rgb(167 243 208); }
.ah-no .ah-mark { background: rgb(225 29 72); } .ah-no .ah-act { background: rgb(255 228 230); color: rgb(159 18 57); border-color: rgb(253 164 175); }
.ah-back .ah-mark { background: rgb(217 119 6); } .ah-back .ah-act { background: rgb(254 243 199); color: rgb(146 64 14); border-color: rgb(253 230 138); }
.ah-off .ah-mark { background: rgb(100 116 139); }
.ah-del .ah-mark { background: rgb(124 58 237); }
.ah-sub .ah-mark { background: rgb(14 165 233); } .ah-sub .ah-act { background: rgb(224 242 254); color: rgb(7 89 133); border-color: rgb(186 230 253); }
.ah-oth .ah-mark { background: rgb(var(--brand-600)); }
.ah-empty { padding: 18px; text-align: center; color: var(--ink-3); font-size: calc(12.5px * var(--es-ts, 1)); display: flex; gap: 8px; justify-content: center; align-items: center; border: 1px dashed var(--line); border-radius: 12px; }
.hv-menu { position: relative; display: inline-block; }
.hv-menu summary { list-style: none; cursor: pointer; }
.hv-menu summary::-webkit-details-marker { display: none; }
.hv-list { position: absolute; z-index: 80; top: calc(100% + 4px); inset-inline-start: 0; min-width: 200px; display: flex; flex-direction: column; padding: 5px; border-radius: 12px; background: rgb(var(--surface)); border: 1px solid var(--line); box-shadow: 0 18px 40px -14px rgba(2,6,23,.4); }
.hv-list button { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; border: 0; background: transparent; text-align: start; font-size: calc(12.5px * var(--es-ts, 1)); color: rgb(var(--ink-2)); cursor: pointer; }
.hv-list button:hover { background: rgb(var(--brand-50)); color: rgb(var(--brand-800)); }
.dark .ah-ok .ah-act, .dark .ah-no .ah-act, .dark .ah-back .ah-act, .dark .ah-sub .ah-act { background: rgb(var(--surface-2)); color: rgb(var(--ink)); }

/* PAY-R995-A (CR-328): the home page card «للمتابعة»: expiring documents and circulars (napp RightSideMenuBar) */
.fu-tabs { display: flex; gap: 4px; padding: 0 12px; }
.fu-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 8px; border-radius: 10px; border: 1px solid var(--line); background: rgb(var(--surface-2)); color: rgb(var(--ink-2)); font-size: calc(12px * var(--es-ts, 1)); font-weight: 700; cursor: pointer; }
.fu-tabs button[aria-selected="true"] { background: rgb(var(--brand-600)); border-color: rgb(var(--brand-600)); color: rgb(var(--on-brand)); }
.fu-n { min-width: 18px; padding: 0 5px; border-radius: 9px; font-size: calc(11px * var(--es-ts, 1)); line-height: 16px; background: rgb(var(--ink) / .08); direction: ltr; }
.fu-n.red { background: rgb(225 29 72); color: rgb(var(--on-brand)); } .fu-n.amber { background: rgb(245 158 11); color: rgb(var(--on-brand)); }
.fu-tabs button[aria-selected="true"] .fu-n:not(.red):not(.amber) { background: rgb(255 255 255 / .25); }
.fu-body { display: flex; flex-direction: column; gap: 6px; }
.fu-seg { display: flex; gap: 4px; padding: 3px; border-radius: 11px; background: rgb(var(--surface-2)); border: 1px solid var(--line); margin-bottom: 4px; }
.fu-seg button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 6px; border-radius: 8px; border: 0; background: transparent; font-size: calc(11.5px * var(--es-ts, 1)); font-weight: 600; color: rgb(var(--ink-2)); cursor: pointer; }
.fu-seg button span { min-width: 18px; padding: 0 5px; border-radius: 9px; font-size: calc(11px * var(--es-ts, 1)); line-height: 16px; direction: ltr; }
.fu-seg .ex span { background: rgb(255 228 230); color: rgb(159 18 57); } .fu-seg .so span { background: rgb(254 243 199); color: rgb(146 64 14); }
.fu-seg .ex[aria-pressed="true"] { background: rgb(225 29 72); color: rgb(var(--on-brand)); } .fu-seg .so[aria-pressed="true"] { background: rgb(217 119 6); color: rgb(var(--on-brand)); }
.fu-seg button[aria-pressed="true"] span { background: rgb(255 255 255 / .25); color: rgb(var(--on-brand)); }
.fu-doc { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); border-inline-start: 4px solid var(--fu, rgb(var(--brand-500))); background: rgb(var(--surface)); text-align: start; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.fu-doc:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -12px rgba(2,6,23,.35); }
.fu-doc.ex { --fu: rgb(225 29 72); } .fu-doc.so { --fu: rgb(217 119 6); }
.fu-doc-ic { width: 32px; height: 32px; flex: none; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: calc(13px * var(--es-ts, 1)); }
.fu-doc.ex .fu-doc-ic { background: rgb(255 228 230); color: rgb(190 18 60); } .fu-doc.so .fu-doc-ic { background: rgb(254 243 199); color: rgb(180 83 9); }
.fu-doc-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; } .fu-doc-tx b { font-size: calc(12.5px * var(--es-ts, 1)); } .fu-doc-tx small { font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); }
.fu-cnt { min-width: 26px; padding: 2px 8px; border-radius: 999px; font-size: calc(12px * var(--es-ts, 1)); font-weight: 800; text-align: center; color: rgb(var(--on-brand)); background: var(--fu); direction: ltr; }
.fu-go { font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); }
.fu-empty { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 18px 8px; text-align: center; color: var(--ink-3); font-size: calc(12px * var(--es-ts, 1)); } .fu-empty i { font-size: calc(22px * var(--es-ts, 1)); color: rgb(16 185 129); } .fu-empty b { color: rgb(var(--ink-2)); }
.fu-circ { display: flex; flex-direction: column; gap: 5px; width: 100%; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line); background: rgb(var(--surface)); text-align: start; cursor: pointer; }
.fu-circ:hover { border-color: rgb(var(--brand-300)); background: rgb(var(--brand-50) / .5); }
.fu-circ-top { display: flex; align-items: flex-start; gap: 8px; } .fu-circ-top b { flex: 1; font-size: calc(12.5px * var(--es-ts, 1)); line-height: 1.45; }
.fu-tag { flex: none; font-size: calc(11px * var(--es-ts, 1)); font-weight: 700; padding: 1px 8px; border-radius: 999px; background: rgb(var(--brand-50)); color: rgb(var(--brand-700)); border: 1px solid rgb(var(--brand-200)); }
.fu-circ-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); } .fu-circ-meta i { margin-inline-end: 4px; }
.fu-foot { padding: 6px 14px 10px; font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); }
.dark .fu-doc.ex .fu-doc-ic { background: rgb(244 63 94 / .16); } .dark .fu-doc.so .fu-doc-ic { background: rgb(245 158 11 / .16); }
@media (prefers-reduced-motion: reduce) { .fu-doc { transition: none; } .fu-doc:hover { transform: none; } }

/* PAY-R996-A (CR-328): the system name SEMIS — Smart Enterprise Management Information System on the signed-out card */
.so-brand, .es-out-brand { flex-wrap: wrap; justify-content: center; text-align: center; }
.so-full, .es-out-full { flex-basis: 100%; font-size: calc(11px * var(--es-ts, 1)); font-weight: 600; color: var(--ink-3, rgb(var(--ink-muted))); letter-spacing: .2px; }

/* PAY-R997-A (CR-328): the home tile colour from the form registration (ADMN_FORMS A, R, G, B); the icon square keeps the module gradient for contrast */
.hp-card.hp-look { background: linear-gradient(160deg, rgb(var(--tile) / var(--tile-t, .9)), rgb(var(--surface)) 64%); border-color: var(--line); } /* PAY-R999-A: white card, faint tint of the form colour */
.hp-card.hp-look .hp-ic, .hp-ic.hp-look { background: linear-gradient(135deg, rgb(var(--tile-i1, var(--brand-500))), rgb(var(--tile-i2, var(--brand-700)))); box-shadow: 0 10px 20px -12px rgb(var(--tile-i2, var(--brand-600)) / .9); }
.hp-card.hp-look:hover { border-color: rgb(var(--tile-i1, var(--brand-300)) / .45); box-shadow: 0 14px 28px -16px rgb(var(--tile-i2, var(--brand-600)) / .55); }
.hp-card.hp-look b { color: rgb(15 23 42); } .hp-card.hp-look small { color: rgb(71 85 105); }
.hp-ic.sm.hp-look { box-shadow: 0 6px 14px -10px rgb(var(--tile-i2, var(--brand-600)) / .9); }
.dark .hp-card.hp-look { background: linear-gradient(160deg, rgb(var(--tile-i1, var(--brand-500)) / .16), rgb(var(--surface)) 64%); border-color: var(--line); }
.dark .hp-card.hp-look b { color: rgb(var(--ink)); } .dark .hp-card.hp-look small { color: rgb(var(--ink-muted)); }

/* PAY-R998-A (CR-335, as GOV-R163-A of the shared shell): the favourite star of a home card, a home row and an enterprise-home module card shows only on hover or
   keyboard focus; a starred item keeps its filled star; touch screens without hover always show it (the side menu already does this, .sn-star) */
@media (hover: hover) {
  .hp-star:not(.on) { opacity: 0; transform: scale(.85); transition: opacity .15s, transform .15s; }
  .hp-card:hover .hp-star, .hp-card:focus-within .hp-star, .hp-card:focus-visible .hp-star,
  .hp-row:hover .hp-star, .hp-row:focus-within .hp-star, .hp-row:focus-visible .hp-star,
  .ha-card:hover .hp-star, .ha-card:focus-within .hp-star, .ha-card:focus-visible .hp-star, .hp-star:focus-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hp-star { transition: none; } }

/* PAY-R1000-A (CR-337): the card «للمتابعة» redesigned to match the page: a quiet segmented control for the tabs, two small stat cards for Expired / Expiring soon,
   document rows with a thin inner accent bar (as the KPI cards, GOV-R162-A) and a soft count chip; no solid red or green blocks and no thick edge */
.fu-tabs { gap: 2px; margin: 0 12px; padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: rgb(var(--surface-2)); }
.fu-tabs button { border: 0 !important; background: transparent !important; color: rgb(var(--ink-muted)) !important; border-radius: 9px; padding: 6px 8px; font-weight: 700; white-space: nowrap; }
.fu-tabs button:hover { color: rgb(var(--ink)) !important; }
.fu-tabs button[aria-selected="true"] { background: rgb(var(--surface)) !important; color: rgb(var(--brand-700)) !important; box-shadow: 0 1px 3px rgb(15 23 42 / .12); }
.fu-tabs .fu-n, .fu-tabs button[aria-selected="true"] .fu-n { background: rgb(var(--ink) / .07); color: rgb(var(--ink-2)); font-weight: 700; }
.fu-tabs .fu-n.red { background: rgb(255 228 230); color: rgb(159 18 57); } .fu-tabs .fu-n.amber { background: rgb(254 243 199); color: rgb(146 64 14); }
.fu-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; border: 0; background: none; margin-bottom: 6px; }
.fu-seg button { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; gap: 2px 6px; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line) !important; background: rgb(var(--surface)) !important; color: rgb(var(--ink-2)) !important; font-size: calc(11.5px * var(--es-ts, 1)); font-weight: 600; white-space: nowrap; text-align: start; overflow: hidden; transition: border-color .15s, background .15s; }
.fu-seg button span { grid-column: 1 / -1; order: -1; padding: 0; min-width: 0; background: none !important; font-size: calc(20px * var(--es-ts, 1)); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.fu-seg .ex span { color: rgb(190 18 60) !important; } .fu-seg .so span { color: rgb(180 83 9) !important; }
.fu-seg .ex i { color: rgb(225 29 72); } .fu-seg .so i { color: rgb(217 119 6); }
.fu-seg .ex[aria-pressed="true"] { background: rgb(255 241 242) !important; border-color: rgb(253 164 175) !important; color: rgb(159 18 57) !important; box-shadow: inset 0 0 0 1px rgb(253 164 175); }
.fu-seg .so[aria-pressed="true"] { background: rgb(255 251 235) !important; border-color: rgb(252 211 77) !important; color: rgb(146 64 14) !important; box-shadow: inset 0 0 0 1px rgb(252 211 77); }
.fu-doc { position: relative; border-inline-start-width: 1px !important; padding-inline-start: 16px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.fu-doc::before { content: ''; position: absolute; inset-inline-start: 6px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--fu); }
.fu-doc:hover { border-color: rgb(var(--brand-300)); }
.fu-doc.ex:hover { border-color: rgb(253 164 175); } .fu-doc.so:hover { border-color: rgb(252 211 77); }
.fu-cnt { color: rgb(var(--ink-2)); }
.fu-doc.ex .fu-cnt { background: rgb(255 241 242); color: rgb(190 18 60); box-shadow: inset 0 0 0 1px rgb(253 164 175); }
.fu-doc.so .fu-cnt { background: rgb(255 251 235); color: rgb(180 83 9); box-shadow: inset 0 0 0 1px rgb(252 211 77); }
.dark .fu-seg button { background: rgb(var(--surface)) !important; }
.dark .fu-seg .ex[aria-pressed="true"] { background: rgb(244 63 94 / .12) !important; } .dark .fu-seg .so[aria-pressed="true"] { background: rgb(245 158 11 / .12) !important; }
.dark .fu-doc.ex .fu-cnt { background: rgb(244 63 94 / .16); color: rgb(253 164 175); } .dark .fu-doc.so .fu-cnt { background: rgb(245 158 11 / .16); color: rgb(252 211 77); }
@media (prefers-reduced-motion: reduce) { .fu-seg button { transition: none; } }

/* PAY-R1001-A (CR-338): My profile completed to the napp MyProfile page: identity line, four info cards, office strip, personal and contact rows */
.pf-line { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 12px !important; }
.pf-line span { display: inline-flex; align-items: center; gap: 6px; } .pf-line b { color: rgb(var(--ink)); font-weight: 600; }
.pf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pf-ic { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgb(var(--surface)); min-width: 0; }
.pf-ic-l { display: inline-flex; align-items: center; gap: 6px; font-size: calc(11px * var(--es-ts, 1)); font-weight: 700; letter-spacing: .02em; color: var(--ink-3); }
.pf-ic-v { font-size: calc(13px * var(--es-ts, 1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline-end: 26px; }
.pf-ic-e { position: absolute; inset-inline-end: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 8px; border: 0; background: transparent; color: rgb(var(--brand-600)); cursor: pointer; }
.pf-ic-e:hover { background: rgb(var(--brand-50)); }
.pf-strip { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgb(var(--surface-2)); font-size: calc(12px * var(--es-ts, 1)); color: var(--ink-3); }
.pf-strip span { display: inline-flex; align-items: center; gap: 6px; } .pf-strip b { color: rgb(var(--ink)); font-weight: 600; }
.pf-strip-end { margin-inline-start: auto; }
.pf-x-indigo { color: rgb(79 70 229); } .pf-x-green { color: rgb(5 150 105); } .pf-x-sky { color: rgb(2 132 199); } .pf-x-amber { color: rgb(217 119 6); } .pf-x-rose { color: rgb(225 29 72); }
.pf-rows { display: flex; flex-direction: column; gap: 2px; }
.pf-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px dashed var(--line); } .pf-row:last-child { border-bottom: 0; }
.pf-row-ic { width: 36px; height: 36px; flex: none; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: calc(14px * var(--es-ts, 1)); }
.pf-row-tx { min-width: 0; display: flex; flex-direction: column; gap: 1px; } .pf-row-tx small { font-size: calc(11px * var(--es-ts, 1)); font-weight: 700; letter-spacing: .02em; color: var(--ink-3); } .pf-row-tx b { font-size: calc(13px * var(--es-ts, 1)); font-weight: 600; }
.pf-t-indigo { background: rgb(224 231 255); color: rgb(67 56 202); } .pf-t-sky { background: rgb(224 242 254); color: rgb(3 105 161); } .pf-t-amber { background: rgb(254 243 199); color: rgb(180 83 9); }
.pf-t-slate { background: rgb(241 245 249); color: rgb(71 85 105); } .pf-t-green { background: rgb(220 252 231); color: rgb(21 128 61); } .pf-t-violet { background: rgb(237 233 254); color: rgb(109 40 217); } .pf-t-rose { background: rgb(255 228 230); color: rgb(190 18 60); }
.dark .pf-ic, .dark .pf-strip { background: rgb(var(--surface)); }
.dark .pf-row-ic { background: rgb(var(--brand-500) / .14); color: rgb(var(--brand-200)); }
@media (max-width: 760px) { .pf-strip-end { margin-inline-start: 0; } }

/* [DOCUMENTED REQUIREMENT — PAY-R1109-A, CR-519] craft pass of the add drawer (skill 6e, GOV-R205-A): the line card is a RAISED card with a header band and a filled brand tile, one padding (16px),
   two sizes in the body (12 label, 14 value) besides the card title (16), one control height (40), the current HR value is a sunken datum cell (accent bar, label above, figure below) */
.so-tt h3 { font-size: calc(16px * var(--es-ts, 1)); line-height: 24px; }
.gd-line { background: rgb(var(--surface)); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-1); padding: 0; overflow: hidden; }
.gd-line-h { background: linear-gradient(to bottom, rgb(var(--brand-50) / .8), rgb(var(--surface))); border-bottom: 1px solid rgb(var(--brand-100)); padding: 12px 16px; margin: 0; gap: 10px; }
.gd-line-n { width: 32px; height: 32px; border-radius: 10px; background: rgb(var(--brand-600)); color: rgb(var(--on-brand)); font-size: calc(14px * var(--es-ts, 1)); font-weight: 700; }
.gd-line-t { font-size: calc(16px * var(--es-ts, 1)); font-weight: 700; line-height: 24px; color: rgb(var(--ink)); }
.gd-line-g { padding: 16px; }
.gd-line .fld label { font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; line-height: 16px; color: rgb(var(--ink-2)); margin-bottom: 6px; }
.gd-line .fld input, .gd-line .fld select, .gd-line .fld textarea { font-size: calc(14px * var(--es-ts, 1)); line-height: 20px; }
.gd-line .fld select, .gd-line .fld input:not(.ep-in), .gd-line .fld input.ep-in, .gd-amt-chip { min-height: 40px; }
.gd-line .fld .hint, .gd-line .fld .err, .gd-line .fld [role="alert"] { font-size: calc(12px * var(--es-ts, 1)); line-height: 16px; color: rgb(var(--ink-muted)); }
.gd-line .fld .err { color: color-mix(in srgb, rgb(var(--bad)) 83%, rgb(var(--ink))); font-weight: 600; }
.gd-a-cur { grid-area: cur; }
.gd-datum { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 56px; padding: 8px 12px; padding-inline-start: 16px; background: rgb(var(--surface-2)); border: 1px solid var(--line); border-radius: 10px; }
.gd-datum::before { content: ""; position: absolute; inset-block: 8px; inset-inline-start: 6px; width: 3px; border-radius: 3px; background: rgb(var(--brand-600)); }
.gd-datum-l { font-size: calc(11px * var(--es-ts, 1)); font-weight: 600; line-height: 16px; color: rgb(var(--ink-muted)); }
.gd-datum-v { font-size: calc(16px * var(--es-ts, 1)); font-weight: 700; line-height: 24px; color: rgb(var(--ink)); font-variant-numeric: tabular-nums; }
.gd-amt-chip { font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; }
.gd-line-h .btn { min-height: 32px; }
@media (pointer: coarse) { .gd-line-h .btn { min-height: 44px; } }
.gd-line .gd-a-cur .hint { margin-top: 6px; }

/* owner requests 2026-11-15 (PAY-R1109-A): every income category is a tab, so the tab row scrolls sideways instead of wrapping; the manual lines are one card with two tabs;
   the integrated values and the audit log are folded sections (a native disclosure, collapsed by default) */
.gd-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.gd-tab { flex: none; white-space: nowrap; }
.gd-tabs-2 .gd-tab { padding-inline: 16px; }
.gd-tabs-2 .gd-tab i { color: rgb(var(--ink-muted)); }
.gd-tabs-2 .gd-tab.on i { color: rgb(var(--brand-600)); }
details.gd-fold > summary.card-head { cursor: pointer; list-style: none; }
details.gd-fold > summary.card-head::-webkit-details-marker { display: none; }
details.gd-fold > summary.card-head .gd-fold-n { margin-inline-start: auto; }
details.gd-fold > summary.card-head .gd-fold-c { margin-inline-start: 8px; color: rgb(var(--ink-muted)); transition: transform .18s ease-out; }
details.gd-fold:not(:has(.gd-fold-n)) > summary.card-head .gd-fold-c { margin-inline-start: auto; }
details.gd-fold[open] > summary.card-head .gd-fold-c { transform: rotate(180deg); }
details.gd-fold > summary.card-head:focus-visible { outline: 2px solid rgb(var(--brand-600)); outline-offset: 2px; border-radius: 12px; }
details.gd-fold:not([open]) > summary.card-head { border-bottom: 0; }
@media (pointer: coarse) { details.gd-fold > summary.card-head { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { details.gd-fold > summary.card-head .gd-fold-c { transition: none; } }

/* PAY-R1114-A: the employee cell of the SCR-PB12 grid stacks the name and the number with a gap (the number no longer touches the name) */
.gd-emp { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.gd-emp .link { text-align: start; }
.gd-emp-no { font-size: calc(12px * var(--es-ts, 1)); line-height: 16px; color: rgb(var(--ink-muted)); font-variant-numeric: tabular-nums; }
/* PAY-R1114-A: a secondary line written as <div class="text-xs"> under a name (the code under an income type, the unit under an employee) is a block of its own with a small gap, never glued to the name */
div.text-xs { display: block; margin-top: 2px; }

/* ---------- PAY-R1115-A (CR-524): the employee drawer layout: identity strip, collapsible cards with state chips in their headers, a toolbar row and information buttons instead of standing notes ---------- */
.gd-id { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.gd-id-av { flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgb(var(--brand-600)); color: rgb(var(--on-brand)); display: inline-flex; align-items: center; justify-content: center; font-size: calc(15px * var(--es-ts, 1)); font-weight: 700; letter-spacing: .02em; }
.gd-id-b { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.gd-id-t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gd-id-t strong { font-size: calc(16px * var(--es-ts, 1)); font-weight: 700; line-height: 24px; color: rgb(var(--ink)); }
.gd-id-no { font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; color: rgb(var(--ink-2)); padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgb(var(--surface-2)); }
.gd-id-m { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 0; }
.gd-id-m > div { display: inline-flex; gap: 4px; align-items: baseline; }
.gd-id-m dt { font-size: calc(11px * var(--es-ts, 1)); font-weight: 600; color: rgb(var(--ink-muted)); }
.gd-id-m dt::after { content: ":"; }
.gd-id-m dd { margin: 0; font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; color: rgb(var(--ink)); }
.gd-info { flex: none; width: 28px; height: 28px; border: 0; border-radius: 999px; background: none; color: rgb(var(--ink-muted)); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.gd-info:hover { background: rgb(var(--brand-50)); color: rgb(var(--brand-700)); }
.gd-info[aria-expanded="true"] { background: rgb(var(--brand-50)); color: rgb(var(--brand-700)); }
.gd-info:focus-visible { outline: 2px solid rgb(var(--brand-600)); outline-offset: 2px; }
@media (pointer: coarse) { .gd-info { width: 44px; height: 44px; } }
.gd-info-p { margin: 0; padding: 8px 12px; border-radius: 10px; background: rgb(var(--brand-50)); color: rgb(var(--ink-2)); font-size: calc(12px * var(--es-ts, 1)); line-height: 18px; }
.gd-info-p[hidden] { display: none; }
.gd-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
details.gd-fold > summary.card-head { gap: 8px; }
.gd-fold-m { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-inline-start: auto; }
details.gd-fold > summary.card-head .gd-fold-n { margin-inline-start: 0; }
details.gd-fold > summary.card-head .gd-fold-c { margin-inline-start: 4px; }
details.gd-fold:not(:has(.gd-fold-n)) > summary.card-head .gd-fold-c { margin-inline-start: 4px; }
details.gd-fold > .card-body { border-top: 1px solid var(--line); }
.gd-au-h { margin: 0 0 8px; font-size: calc(12px * var(--es-ts, 1)); color: rgb(var(--ink-muted)); }

/* PAY-R1116-A: the label of a sortable header is a real button inside the header cell (the cell keeps scope and aria-sort; the button carries the click, the keyboard and the focus ring) */
table.dg th .dg-sort { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; cursor: pointer; }
table.dg th.t-end .dg-sort { justify-content: flex-end; }
table.dg th.t-center .dg-sort { justify-content: center; }
table.dg th .dg-sort:hover { color: rgb(var(--ink)); }
table.dg th .dg-sort:focus-visible { outline: 2px solid rgb(var(--brand-600)); outline-offset: 2px; border-radius: 4px; }
table.dg th.sortable { cursor: default; }
.wz-mini { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.wz-mini li { flex: 1 1 140px; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; color: var(--ink-3); background: rgb(var(--surface)); }
.wz-mini .n { width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; flex: none; border: 1px solid var(--line); font-size: calc(11px * var(--es-ts, 1)); font-weight: 700; }
.wz-mini li.now { color: rgb(var(--brand-700)); border-color: rgb(var(--brand-600)); background: rgb(var(--brand-50)); }
.wz-mini li.now .n { background: rgb(var(--brand-600)); border-color: transparent; color: rgb(var(--on-brand)); }
.wz-mini li.done .n { background: rgb(var(--brand-100)); color: rgb(var(--brand-700)); border-color: transparent; }
.wz-panel { box-shadow: none; }
/* the step open now is dark, apart from the progress of the run (done green, current of the run brand) (CR-531, PAY-R1121-A) */
.guide-steps li.view:not(.now):not(.warn) .n { background: rgb(var(--ink)); border-color: rgb(var(--ink)); color: rgb(var(--on-brand)); box-shadow: 0 0 0 3px rgb(var(--border)); }
.guide-steps li.view:not(.now):not(.warn) .t { color: rgb(var(--ink)); }
.guide-steps li.view.now .n { box-shadow: 0 0 0 3px rgb(var(--ink)); }
.dark .guide-steps li.view:not(.now):not(.warn) .n { background: color-mix(in srgb, rgb(var(--ink)) 40%, rgb(var(--on-brand))); border-color: color-mix(in srgb, rgb(var(--ink)) 40%, rgb(var(--on-brand))); color: rgb(var(--surface)); box-shadow: 0 0 0 3px rgb(var(--chv-8)); }
.dark .guide-steps li.view:not(.now):not(.warn) .t { color: color-mix(in srgb, rgb(var(--ink)) 40%, rgb(var(--on-brand))); }
/* the copy-last-period drawer (CR-534, PAY-R1124-A): a list box with a header, rows with the checkbox beside the text */
.gt-box { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: rgb(var(--surface)); }
.gt-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgb(var(--surface)); }
.gt-head b { font-weight: 700; }
.gt-count { color: var(--ink-3); font-size: calc(12px * var(--es-ts, 1)); margin-inline-end: auto; }
.gt-list { max-height: 264px; overflow: auto; }
label.gt-row { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 14px; font-size: calc(13px * var(--es-ts, 1)); font-weight: 400; cursor: pointer; }
.gt-list .gt-row + .gt-row { border-top: 1px solid var(--line); }
.gt-row:hover { background: rgb(var(--brand-50)); }
.gt-row input[type=checkbox] { flex: none; width: 16px; height: 16px; margin: 0; accent-color: rgb(var(--brand-600)); }
.gt-name { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.gt-no { flex: none; color: var(--ink-3); font-size: calc(12px * var(--es-ts, 1)); }
label.gt-all { padding: 0; font-weight: 600; }
.gt-all:hover { background: transparent; }
.gt-line { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.gt-line .fld { flex: 1 1 220px; margin: 0; }
.gt-opts { display: grid; gap: 8px; margin-top: 14px; }
label.gt-opt { border: 1px solid var(--line); border-radius: 10px; background: rgb(var(--surface)); align-items: flex-start; }
label.gt-opt input { margin-top: 2px; }
#gt-out { margin-top: 14px; }
/* the value change drawer, finished to the craft of the skill: identity card, a card with a header band and a hairline grid of items (CR-535, CR-536, PAY-R1125-A, PAY-R1126-A) */
.gs-top, .gs-box { border: 1px solid var(--line); border-radius: 16px; background: rgb(var(--surface)); box-shadow: 0 1px 2px rgba(16, 24, 40, .05); overflow: hidden; }
.gs-top { padding: 14px 16px 0; }
.gs-idc { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; }
.gs-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: rgb(var(--brand-600)); color: rgb(var(--on-brand)); font-weight: 700; font-size: calc(16px * var(--es-ts, 1)); }
.gs-idt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.gs-nm { font-weight: 700; font-size: calc(15px * var(--es-ts, 1)); overflow-wrap: anywhere; }
.gs-ref { align-self: flex-start; border: 1px solid var(--line); border-radius: 999px; padding: 0 10px; font-size: calc(11px * var(--es-ts, 1)); font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; background: rgb(var(--surface)); }
.gs-cnt { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.gs-cap { font-size: calc(11px * var(--es-ts, 1)); font-weight: 600; color: var(--ink-3); }
.gs-cnt b { font-size: calc(16px * var(--es-ts, 1)); font-weight: 800; font-variant-numeric: tabular-nums; }
.gs-prog-b { height: 4px; margin: 0 -16px; background: var(--line); }
.gs-prog-b i { display: block; height: 100%; background: rgb(var(--brand-600)); }
.gs-box { margin-top: 14px; }
.gs-ch { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgb(var(--surface)); }
.gs-ch b { font-weight: 700; flex: 1 1 auto; }
.gs-tile { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 10px; background: rgb(var(--brand-600)); color: rgb(var(--on-brand)); font-size: calc(13px * var(--es-ts, 1)); }
.gs-ct { min-width: 22px; height: 20px; padding: 0 8px; border-radius: 999px; background: rgb(var(--brand-600)); color: rgb(var(--on-brand)); font-size: calc(11px * var(--es-ts, 1)); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.gs-th { display: none; }
.gs-rows { display: grid; gap: 1px; background: var(--line); }
.gs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; align-items: end; padding: 14px 16px; background: rgb(var(--surface)); }
.gs-rtop { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.gs-rt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.gs-rt b { font-weight: 700; overflow-wrap: anywhere; }
.gs-rc, .gs-rn { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gs-rc::before, .gs-rn::before { content: attr(data-l); font-size: calc(11px * var(--es-ts, 1)); font-weight: 600; color: var(--ink-3); }
.gs-rv { display: flex; align-items: baseline; gap: 6px; height: 40px; }
.gs-rv b { font-size: calc(18px * var(--es-ts, 1)); font-weight: 800; font-variant-numeric: tabular-nums; }
.gs-rv small { font-size: calc(11px * var(--es-ts, 1)); font-weight: 600; color: var(--ink-3); }
.gs-rn input { display: block; width: 100%; min-width: 0; box-sizing: border-box; height: 40px; padding: 0 12px; font-size: calc(15px * var(--es-ts, 1)); font-weight: 700; border: 1px solid rgb(var(--control-border)); border-radius: 10px; background: rgb(var(--surface)); color: inherit; font-variant-numeric: tabular-nums; }
.gs-rn input:focus-visible { outline: 2px solid rgb(var(--brand-600)); outline-offset: 2px; }
.gs-off { background: rgb(var(--surface)); } .gs-off .gs-note { grid-column: 1 / -1; color: var(--ink-3); font-size: calc(12px * var(--es-ts, 1)); }.gs-dchip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgb(var(--surface)); font-size: calc(12px * var(--es-ts, 1)); font-weight: 700; font-variant-numeric: tabular-nums; }
.gs-dchip i { font-size: calc(11px * var(--es-ts, 1)); }
.gs-good { border-color: oklch(from rgb(var(--ok)) 0.845 0.143 h); background: color-mix(in srgb, rgb(var(--ok)) 5%, rgb(var(--surface))); color: color-mix(in srgb, rgb(var(--ok)) 76%, rgb(var(--ink))); }
.gs-bad { border-color: color-mix(in srgb, rgb(var(--bad)) 42%, rgb(var(--surface))); background: color-mix(in srgb, rgb(var(--bad)) 6%, rgb(var(--surface))); color: color-mix(in srgb, rgb(var(--bad)) 83%, rgb(var(--ink))); }
.gs-flat { color: var(--ink-3); }
.gs-hint { margin: 8px 0 0; color: var(--ink-3); font-size: calc(12px * var(--es-ts, 1)); }
.gs-foot { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); background: rgb(var(--surface)); }
.gs-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.gs-done { text-align: center; padding: 12px 0; } .gs-done i { font-size: calc(34px * var(--es-ts, 1)); color: rgb(var(--ok)); } .gs-done h4 { margin: 8px 0 4px; font-weight: 700; } .gs-done p { margin: 0; color: var(--ink-3); font-size: calc(13px * var(--es-ts, 1)); }
.gs-sums { list-style: none; margin: 12px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.gs-sum { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; font-size: calc(13px * var(--es-ts, 1)); } .gs-sum + .gs-sum { border-top: 1px solid var(--line); } .gs-sum.skip { color: var(--ink-3); }
/* ways of changing and adding, the employee finder, the one-income-type table and the result step (CR-537, PAY-R1127-A, PAY-R1128-A) */
.gs-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
label.gs-mode { position: relative; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 12px 14px 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgb(var(--surface)); cursor: pointer; font-weight: 400; }
.gs-mode input { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; width: 16px; height: 16px; margin: 0; accent-color: rgb(var(--brand-600)); }
.gs-mode.on { border-color: rgb(var(--brand-600)); background: rgb(var(--brand-50)); box-shadow: 0 0 0 3px rgb(var(--brand-100)); }
.gs-mt { display: flex; align-items: center; gap: 8px; padding-inline-end: 28px; } .gs-mt i { color: rgb(var(--brand-700)); } .gs-mt b { font-weight: 700; }
.gs-mode small { color: var(--ink-3); font-size: calc(12px * var(--es-ts, 1)); }
.gs-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.gs-filters .fld { margin: 0; } .gs-filters label { display: block; margin-bottom: 4px; font-size: calc(11px * var(--es-ts, 1)); font-weight: 600; color: var(--ink-3); }
.gs-filters input, .gs-filters select { width: 100%; min-width: 160px; box-sizing: border-box; height: 38px; padding: 0 10px; border: 1px solid rgb(var(--control-border)); border-radius: 10px; background: rgb(var(--surface)); color: inherit; }
.gs-filters input:focus-visible, .gs-filters select:focus-visible { outline: 2px solid rgb(var(--brand-600)); outline-offset: 2px; }
.gt-name { display: flex; flex-direction: column; gap: 2px; } .gt-meta { font-size: calc(11px * var(--es-ts, 1)); font-weight: 400; color: var(--ink-3); }
.gs-shown { padding: 8px 14px; border-top: 1px solid var(--line); font-size: calc(12px * var(--es-ts, 1)); color: var(--ink-3); background: rgb(var(--surface)); }
.gs-none { padding: 14px; margin: 0; }
.gs-fill { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.gs-fill .fld { flex: 1 1 220px; margin: 0; } .gs-fill label { display: block; margin-bottom: 4px; font-size: calc(11px * var(--es-ts, 1)); font-weight: 600; color: var(--ink-3); }
.gs-fill input { width: 100%; min-width: 160px; box-sizing: border-box; height: 40px; padding: 0 12px; font-weight: 700; border: 1px solid rgb(var(--control-border)); border-radius: 10px; background: rgb(var(--surface)); }
.gs-res { text-align: center; padding: 8px 0 16px; }
.gs-ok { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 999px; background: rgb(var(--ok)); color: rgb(var(--on-brand)); font-size: calc(22px * var(--es-ts, 1)); box-shadow: 0 0 0 6px color-mix(in srgb, rgb(var(--ok)) 10%, rgb(var(--surface))); }
.gs-res h4 { margin: 12px 0 4px; font-weight: 700; font-size: calc(18px * var(--es-ts, 1)); } .gs-res p { margin: 0 auto; max-width: 52ch; color: var(--ink-3); font-size: calc(13px * var(--es-ts, 1)); }
.gs-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.gs-tl { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgb(var(--surface)); box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.gs-tt { display: flex; flex-direction: column; } .gs-tt b { font-size: calc(22px * var(--es-ts, 1)); font-weight: 800; font-variant-numeric: tabular-nums; }
.gs-t-ok .gs-tile { background: rgb(var(--ok)); } .gs-t-skip .gs-tile { background: rgb(var(--chv-8)); }
.gs-ers { list-style: none; margin: 0; padding: 0; }
.gs-er { display: flex; align-items: center; gap: 12px; padding: 12px 16px; } .gs-er + .gs-er { border-top: 1px solid var(--line); }
.gs-er-off { background: rgb(var(--surface)); color: var(--ink-3); }
.gs-av-s { width: 32px; height: 32px; font-size: calc(14px * var(--es-ts, 1)); } .gs-av-off { background: rgb(var(--chv-8)); }
.gs-el { margin-inline-start: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.gs-lc { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgb(var(--surface)); font-size: calc(12px * var(--es-ts, 1)); } .gs-lc b { font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .gs-er { flex-wrap: wrap; } .gs-el { margin-inline-start: 0; justify-content: flex-start; width: 100%; } .gs-off .gs-note { grid-column: 1 / -1; } }
/* details and attachments of the value change and add drawers; the reference and attachment cell of the grid (CR-538, PAY-R1129-A) */
.gs-detb { display: grid; gap: 14px; padding: 14px 16px; }
.gs-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-items: flex-start; }
.gs-f label, .gs-f .gs-k { font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; color: var(--ink-2); }
.gs-f textarea, .gs-f input { width: 100%; box-sizing: border-box; padding: 8px 12px; border: 1px solid rgb(var(--control-border)); border-radius: 10px; background: rgb(var(--surface)); color: inherit; font: inherit; }
.gs-f input { height: 40px; padding-block: 0; }
.gs-f textarea:focus-visible, .gs-f input:focus-visible { outline: 2px solid rgb(var(--brand-600)); outline-offset: 2px; }
.gs-f-wide { align-items: stretch; }
.gs-att { display: grid; gap: 8px; }
label.gs-drop { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; border: 1px dashed rgb(var(--control-border)); border-radius: 10px; background: rgb(var(--surface)); cursor: pointer; font-weight: 400; }
label.gs-drop.on, label.gs-drop:hover { border-color: rgb(var(--brand-600)); background: rgb(var(--brand-50)); }
.gs-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.gs-drop > i { flex: none; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--brand-600)); color: rgb(var(--on-brand)); }
.gs-dt { display: flex; flex-direction: column; gap: 2px; } .gs-dt b { font-weight: 600; font-size: calc(13px * var(--es-ts, 1)); } .gs-dt small { font-size: calc(11px * var(--es-ts, 1)); color: var(--ink-3); }
.gs-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gs-file { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgb(var(--surface)); font-size: calc(13px * var(--es-ts, 1)); }
.gs-file > i { color: rgb(var(--brand-700)); } .gs-fn { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-weight: 600; } .gs-fs { color: var(--ink-3); font-size: calc(12px * var(--es-ts, 1)); font-variant-numeric: tabular-nums; }
.gs-fx { flex: none; width: 28px; height: 28px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); cursor: pointer; }
.gs-fx:hover { background: rgb(var(--surface)); color: var(--ink-2); } .gs-fx:focus-visible { outline: 2px solid rgb(var(--brand-600)); outline-offset: 2px; }
.gs-ac { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 6px; font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; color: var(--ink-2); }
.dg td div.text-xs { white-space: normal; overflow-wrap: anywhere; min-width: 12rem; }
/* a shorter value change drawer: the details card folds, the choice cards are compact (CR-539, PAY-R1131-A) */
.gs-det > summary { cursor: pointer; list-style: none; } .gs-det > summary::-webkit-details-marker { display: none; }
.gs-det > summary:focus-visible { outline: 2px solid rgb(var(--brand-600)); outline-offset: -2px; }
.gs-sumx { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.gs-chev { margin-inline-start: 8px; color: var(--ink-3); transition: transform .18s ease-out; } .gs-det[open] > summary .gs-chev { transform: rotate(180deg); }
.gs-det:not([open]) > summary { border-bottom: 0; }
.gs-f2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.gs-mode small { display: none; } label.gs-mode { padding: 10px 14px; }
.gs-modes { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.gt-list { max-height: 208px; }
/* a draft run is at step 1 in the warning amber: the pre-run checks have not passed (CR-541, PAY-R1135-A) */
.guide-steps .warn { color: color-mix(in srgb, color-mix(in srgb, rgb(var(--warn)) 80%, rgb(var(--bad))) 64%, rgb(var(--ink))); font-weight: 700; }
.guide-steps .warn .n { background: color-mix(in srgb, color-mix(in srgb, rgb(var(--warn)) 80%, rgb(var(--bad))) 82%, black); border-color: color-mix(in srgb, color-mix(in srgb, rgb(var(--warn)) 80%, rgb(var(--bad))) 82%, black); color: rgb(var(--on-brand)); box-shadow: 0 0 0 3px oklch(from rgb(var(--warn)) 0.924 0.115 calc(h + 37)); }
.guide-steps li.view.warn .n { box-shadow: 0 0 0 3px rgb(var(--ink)); }
/* the totals band under the employee tables of the Guided Payroll Run (CR-542, PAY-R1136-A) */
.tb { margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; background: rgb(var(--surface)); box-shadow: 0 1px 2px rgba(16, 24, 40, .05); overflow: hidden; }
.tb-row, .tb-run { display: grid; grid-template-columns: minmax(150px, 1.3fr) repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; align-items: center; padding: 12px 16px; }
.tb-row { background: rgb(var(--surface)); }
.tb-run { border-top: 1px solid var(--line); grid-template-columns: minmax(150px, 1.3fr) repeat(3, minmax(110px, 1fr)); }
.tb-c { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tb-k { font-size: calc(11px * var(--es-ts, 1)); font-weight: 600; color: var(--ink-3); }
.tb-t { font-size: calc(13px * var(--es-ts, 1)); font-weight: 700; color: var(--ink-1, inherit); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tb-c b { font-size: calc(15px * var(--es-ts, 1)); font-weight: 800; font-variant-numeric: tabular-nums; } .tb-s b { color: rgb(var(--brand-700)); }
.tb-n { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); font-size: calc(12px * var(--es-ts, 1)); color: var(--ink-3); }
/* the Previous button of a step footer or a wizard: tinted in the module colour, the pair of the filled Next button (CR-545, PAY-R1140-A) */
.btn-tint { background: rgb(var(--brand-50)); color: rgb(var(--brand-700)); border: 1px solid rgb(var(--brand-200)); }
.btn-tint:hover:not(:disabled) { background: rgb(var(--brand-600)); border-color: rgb(var(--brand-600)); color: rgb(var(--on-brand)); }
.btn-tint:focus-visible { outline: 2px solid rgb(var(--brand-600)); outline-offset: 2px; }
/* CR-547 (PAY-R1142-A): the review stages of step 5 of the guided run */
.rv-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.rv-steps li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.rv-steps .n { width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; flex: none; border: 1px solid var(--line); font-size: calc(11px * var(--es-ts, 1)); font-weight: 600; }
.rv-steps b { font-size: calc(13px * var(--es-ts, 1)); font-weight: 600; display: block; }
.rv-steps .rv-st { font-size: calc(12px * var(--es-ts, 1)); font-weight: 600; display: block; color: rgb(var(--brand-700)); }
.rv-steps p { margin: 2px 0 0; font-size: calc(12px * var(--es-ts, 1)); color: rgb(var(--ink-muted)); }
.rv-steps li.now { border-color: rgb(var(--brand-600)); background: rgb(var(--brand-50)); }
.rv-steps li.now .n { background: rgb(var(--brand-600)); border-color: transparent; color: rgb(var(--on-brand)); }
.rv-steps li.done .n { background: rgb(var(--brand-100)); color: rgb(var(--brand-700)); border-color: transparent; }
.rv-steps li.wait .rv-st { color: rgb(var(--ink-muted)); }

/* CR-550 (PAY-R1145-A): step 5 scrolls as one page, the tables inside it have no scroll box of their own */
.pb-flat .dg-wrap { max-height: none; overflow-y: visible; }

/* CR-552 (PAY-R1147-A): the review grid in eight columns: the mark, the reviewer, the date and the note are one cell */
.er-rv { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; min-width: 0; }
.er-rv .er-note { max-width: 150px; }
.er-nw { white-space: nowrap; }

/* CR-554 (PAY-R1150-A): the payslip statement of SCR-PE01 and the view of SCR-PE04 */
.ps { max-width: 1040px; }
.ps-id { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px; }
.ps-av { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: rgb(var(--brand-600)); color: rgb(var(--on-brand)); font-size: calc(20px * var(--es-ts, 1)); font-weight: 700; }
.ps-who { flex: 1 1 220px; min-width: 0; }
.ps-who h3 { margin: 0; font-size: calc(18px * var(--es-ts, 1)); font-weight: 700; }
.ps-who p { margin: 2px 0 0; font-size: calc(13px * var(--es-ts, 1)); color: rgb(var(--ink-muted)); }
.ps-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ps-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.ps-net { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 12px; background: rgb(var(--brand-50)); border: 1px solid rgb(var(--brand-600)); color: rgb(var(--brand-700)); font-size: calc(15px * var(--es-ts, 1)); font-weight: 600; }
.ps-net b { font-size: calc(22px * var(--es-ts, 1)); font-weight: 700; }
.ps-lines .card-head .chip { margin-inline-start: auto; }
.ps-kpis { grid-template-columns: repeat(3, 1fr); }
.ps-pick { min-width: 240px; }
@media (max-width: 640px) { .ps-kpis { grid-template-columns: 1fr; } }

/* CR-559 (PAY-R1154-A): the facts of the page band stay in one row of equal columns and wrap only on a narrow screen */
.hub-facts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.hub-facts > div { min-width: 0; }
.hub-facts dd { overflow-wrap: anywhere; }
@media (max-width: 900px) { .hub-facts { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } }

/* CR-559 (PAY-R1154-A): the on screen view of the payroll statements: the groups of the templates, sticky serial and name columns */
.sv-wrap { max-height: none; overflow-x: auto; }
table.sv { font-size: calc(12px * var(--es-ts, 1)); min-width: 100%; }
table.sv th, table.sv td { white-space: nowrap; padding: 6px 10px; }
table.sv th.sv-g { text-align: center; font-size: calc(12px * var(--es-ts, 1)); border-bottom: 1px solid var(--line); }
table.sv .sv-id { background: rgb(var(--surface-2)); }
table.sv .sv-ea { background: rgb(var(--brand-50)); color: rgb(var(--brand-800)); }
table.sv .sv-de { background: color-mix(in srgb, rgb(var(--bad)) 6%, rgb(var(--surface))); color: color-mix(in srgb, rgb(var(--bad)) 68%, rgb(var(--ink))); }
table.sv .sv-nt { background: rgb(var(--brand-100)); color: rgb(var(--brand-800)); }
table.sv .sv-c0 { position: sticky; inset-inline-start: 0; z-index: 2; background: inherit; min-width: 44px; }
table.sv td.sv-c0 { background: rgb(var(--surface)); }
table.sv .sv-name { position: sticky; inset-inline-start: 44px; z-index: 2; }
table.sv td.sv-name { background: rgb(var(--surface)); font-weight: 600; }
