/* Status: PROTOTYPE (not production code; see Prototypes/shared/README.md)
 * GOV-R333-A (CR-723; gap G-14 of docs/Business/UI/00-architecture/THEME_SYSTEM_ASSESSMENT_AND_ROADMAP.md): the adapters of the theme builder.
 * The builder variant rules that name module-specific legacy markup (Payroll #modal-overlay, #modal-container > div, #modal-confirm-btn /
 * #modal-cancel-btn, .so-back / .so-head / .so-panel, #toast-container, #top-bar.hb-bar, #main-scroll, .page-hero, .page-head .band-x,
 * .guide-steps, .pb11-lock, .pb11-foot, .btn / .btn-p / .btn-s; the sign-in page .lg-btn) were moved here from emis-tokens.css UNCHANGED,
 * in the same relative order. A rule whose :is() list mixes a legacy selector with a shared one was moved whole: splitting it would change
 * its specificity (an :is() takes the specificity of its most specific argument), so the shared part travels with it until the module
 * moves to the shared classes and its selector can be dropped here.
 * Load right after emis-tokens.css (emis-shell.js mounts it there; a page that links emis-tokens.css links this file on the next line):
 * then every moved rule keeps its place in the cascade against every other file, and no rule left later in emis-tokens.css ties with a
 * moved rule in specificity on the same element and property (checked for CR-723), so no computed value changes.
 * Every rule still waits for an explicit builder choice, so with no choice nothing changes. Presentation only. */

/* GOV-R333-A: moved unchanged from emis-tokens.css (phase one of the theme builder: the buttons; names #modal-confirm-btn, #modal-cancel-btn, .lg-btn, .btn / .btn-p / .btn-s) */
/* buttons: style of the primary button, and the shape, height and weight of every button */
html[data-btn="solid"] :is(.es-btn.es-primary, .btn-p, .etb-b1, #modal-confirm-btn.bg-indigo-600, .lg-btn.pri, .es-b-pri) { background: rgb(var(--brand-600)); border-color: rgb(var(--brand-600)); color: #fff; box-shadow: none; }
html[data-btn="gradient"] :is(.es-btn.es-primary, .btn-p, .etb-b1, #modal-confirm-btn.bg-indigo-600, .lg-btn.pri, .es-b-pri) { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: 0 6px 14px -8px rgb(var(--brand-600) / .8); }
html[data-btn="outline"] :is(.es-btn.es-primary, .btn-p, .etb-b1, #modal-confirm-btn.bg-indigo-600, .lg-btn.pri, .es-b-pri) { background: transparent; border: 1.5px solid rgb(var(--brand-600)); color: rgb(var(--brand-700)); }
html[data-btn="soft"] :is(.es-btn.es-primary, .btn-p, .etb-b1, #modal-confirm-btn.bg-indigo-600, .lg-btn.pri, .es-b-pri) { background: rgb(var(--brand-100)); border-color: transparent; color: rgb(var(--brand-800)); }
html.dark[data-btn="outline"] :is(.es-btn.es-primary, .btn-p, .etb-b1, #modal-confirm-btn.bg-indigo-600, .lg-btn.pri, .es-b-pri) { color: rgb(var(--brand-300)); border-color: rgb(var(--brand-400)); }
html.dark[data-btn="soft"] :is(.es-btn.es-primary, .btn-p, .etb-b1, #modal-confirm-btn.bg-indigo-600, .lg-btn.pri, .es-b-pri) { background: rgb(var(--brand-600) / .22); color: rgb(var(--brand-200)); }
html[data-btn] :is(.es-btn.es-primary, .btn-p, .etb-b1, #modal-confirm-btn.bg-indigo-600, .lg-btn.pri, .es-b-pri):hover { filter: brightness(.94); }
html[data-btn-shape="sharp"] :is(.es-btn, .btn, .etb-btns button, .etb-form button, #modal-confirm-btn, #modal-cancel-btn, .lg-btn, .es-b) { border-radius: 4px; }
html[data-btn-shape="rounded"] :is(.es-btn, .btn, .etb-btns button, .etb-form button, #modal-confirm-btn, #modal-cancel-btn, .lg-btn, .es-b) { border-radius: var(--r-ctl); }
html[data-btn-shape="pill"] :is(.es-btn, .btn, .etb-btns button, .etb-form button, #modal-confirm-btn, #modal-cancel-btn, .lg-btn, .es-b) { border-radius: 999px; }
html[data-btn-size="32"] :is(.es-btn, .btn, .etb-btns button, .etb-form button, #modal-confirm-btn, #modal-cancel-btn, .lg-btn, .es-b) { height: 32px; min-height: 32px; padding-block: 0; padding-inline: 12px; }
html[data-btn-size="36"] :is(.es-btn, .btn, .etb-btns button, .etb-form button, #modal-confirm-btn, #modal-cancel-btn, .lg-btn, .es-b) { height: 36px; min-height: 36px; padding-block: 0; padding-inline: 14px; }
html[data-btn-size="40"] :is(.es-btn, .btn, .etb-btns button, .etb-form button, #modal-confirm-btn, #modal-cancel-btn, .lg-btn, .es-b) { height: 40px; min-height: 40px; padding-block: 0; padding-inline: 16px; }
html[data-btn-weight="500"] :is(.es-btn, .btn, .etb-btns button, .etb-form button, #modal-confirm-btn, #modal-cancel-btn, .lg-btn, .es-b) { font-weight: 500; }
html[data-btn-weight="700"] :is(.es-btn, .btn, .etb-btns button, .etb-form button, #modal-confirm-btn, #modal-cancel-btn, .lg-btn, .es-b) { font-weight: 700; }
/* buttons under the pointer (owner 2026-11-18: «اضف التحكم فى الزراير شكل حركة الماوس على الزرار»): what a button does when the pointer is on it.
 * .etb-hov is the button the theme builder hovers by itself while this control is pointed at. A disabled button never moves. */
html[data-btn-hover] :is(.es-btn, .btn, .etb-btns button, .etb-form button, #modal-confirm-btn, #modal-cancel-btn, .lg-btn, .es-b):not(:disabled) { transition: transform .16s ease, box-shadow .16s ease, filter .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease; }
html[data-btn-hover="darken"] :is(.es-btn, .btn, .etb-btns button, .etb-form button, #modal-confirm-btn, #modal-cancel-btn, .lg-btn, .es-b):not(:disabled):is(:hover, .etb-hov) { filter: brightness(.9); }
html[data-btn-hover="lift"] :is(.es-btn, .btn, .etb-btns button, .etb-form button, #modal-confirm-btn, #modal-cancel-btn, .lg-btn, .es-b):not(:disabled):is(:hover, .etb-hov) { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgb(var(--brand-700) / .55); }
html[data-btn-hover="glow"] :is(.es-btn, .btn, .etb-btns button, .etb-form button, #modal-confirm-btn, #modal-cancel-btn, .lg-btn, .es-b):not(:disabled):is(:hover, .etb-hov) { box-shadow: 0 0 0 4px rgb(var(--brand-500) / .24); }
html[data-btn-hover="grow"] :is(.es-btn, .btn, .etb-btns button, .etb-form button, #modal-confirm-btn, #modal-cancel-btn, .lg-btn, .es-b):not(:disabled):is(:hover, .etb-hov) { transform: scale(1.04); }
html[data-btn-hover="fill"] :is(.es-btn:not(.es-primary):not(.es-danger), .btn-s, .etb-btns button:not(.etb-b1), .etb-form button:not(.etb-b1), #modal-cancel-btn, .lg-btn:not(.pri), .es-b-sec):not(:disabled):is(:hover, .etb-hov) { background: rgb(var(--brand-50)); border-color: rgb(var(--brand-400)); color: rgb(var(--brand-800)); }
html.dark[data-btn-hover="fill"] :is(.es-btn:not(.es-primary):not(.es-danger), .btn-s, .etb-btns button:not(.etb-b1), .etb-form button:not(.etb-b1), #modal-cancel-btn, .lg-btn:not(.pri), .es-b-sec):not(:disabled):is(:hover, .etb-hov) { background: rgb(var(--brand-600) / .18); border-color: rgb(var(--brand-400)); color: rgb(var(--brand-200)); }
html[data-btn-hover="fill"] :is(.es-btn.es-primary, .btn-p, .etb-b1, #modal-confirm-btn, .lg-btn.pri, .es-b-pri):not(:disabled):is(:hover, .etb-hov) { filter: brightness(.92); }
html[data-btn-hover="shine"] :is(.es-btn, .btn, .etb-btns button, .etb-form button, #modal-confirm-btn, #modal-cancel-btn, .lg-btn, .es-b):not(:disabled) { position: relative; overflow: hidden; }
html[data-btn-hover="shine"] :is(.es-btn, .btn, .etb-btns button, .etb-form button, #modal-confirm-btn, #modal-cancel-btn, .lg-btn, .es-b):not(:disabled)::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .38) 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s ease; }
html[data-btn-hover="shine"] :is(.es-btn, .btn, .etb-btns button, .etb-form button, #modal-confirm-btn, #modal-cancel-btn, .lg-btn, .es-b):not(:disabled):is(:hover, .etb-hov)::after { transform: translateX(120%); }
html[data-btn-hover="still"] :is(.es-btn, .btn, .etb-btns button, .etb-form button, #modal-confirm-btn, #modal-cancel-btn, .lg-btn, .es-b):is(:hover, .etb-hov) { transform: none !important; filter: none !important; }
@media (prefers-reduced-motion: reduce) { html[data-btn-hover] :is(.es-btn, .btn, .lg-btn, #modal-confirm-btn, #modal-cancel-btn):is(:hover, .etb-hov) { transform: none !important; } }
html[data-es-motion="reduce"][data-btn-hover] :is(.es-btn, .btn, .lg-btn, #modal-confirm-btn, #modal-cancel-btn):is(:hover, .etb-hov) { transform: none !important; }

/* GOV-R333-A: moved unchanged from emis-tokens.css (phase one, item 1: the top bar and the chips of the page band; names #top-bar.hb-bar, .page-hero) */
/* the top bar takes the theme's gradient (the page band's), such as Royal emerald #064E3B to #0F172A */
html[data-bar-look="grad"] :is(#es-bar, #top-bar.hb-bar, .etb-ptop) { background: var(--grad-brand) !important; }
/* the chips in the page band as glass capsules: spaced, never overlapping; on a calm (light) band they turn lightly tinted, since glass on white disappears */
html[data-band-chips="glass"] :is(.es-band, .page-hero, .etb-band) :is(.chip, .es-scr-no, .scr-no, .etb-chip, .badge) { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0; margin-inline-end: 6px; padding: 3px 11px; border-radius: 999px; white-space: nowrap;
  background: rgb(255 255 255 / .1) !important; color: #fff !important; border: 1px solid rgb(255 255 255 / .28) !important; -webkit-backdrop-filter: blur(8px) saturate(1.2); backdrop-filter: blur(8px) saturate(1.2); box-shadow: inset 0 1px 0 rgb(255 255 255 / .15); }
html[data-band-chips="glass"][data-head="calm"] :is(.es-band, .page-hero, .etb-band) :is(.chip, .es-scr-no, .scr-no, .etb-chip, .badge),
html[data-band-chips="glass"] body.es-calm :is(.es-band, .page-hero) :is(.chip, .es-scr-no, .scr-no, .badge) { background: rgb(var(--brand-50)) !important; color: rgb(var(--brand-800)) !important; border-color: rgb(var(--brand-200)) !important; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }

/* GOV-R333-A: moved unchanged from emis-tokens.css (phase one, item 1: the stepper; names .guide-steps) */
/* the stepper (.guide-steps of the modules, .es-steps of the shared component): circle size, the current step, icons and stage labels */
html[data-step-size="28"] :is(.guide-steps, .es-steps) { --step-d: 28px; }
html[data-step-size="32"] :is(.guide-steps, .es-steps) { --step-d: 32px; }
html[data-step-size="36"] :is(.guide-steps, .es-steps) { --step-d: 36px; }
html[data-step-size] :is(.guide-steps, .es-steps) .n { width: var(--step-d); height: var(--step-d); font-size: calc(var(--step-d) * .38); }
.es-steps:has(.tag), html[data-step-tags="show"] .guide-steps { --step-tag: 20px; }   /* room for the stage label: the shared stepper draws it, Payroll only when the theme shows it */
html[data-step-tags="hide"] :is(.guide-steps, .es-steps) { --step-tag: 0px; }
html[data-step-tags="hide"] :is(.guide-steps, .es-steps) .tag { display: none; }
html:is([data-step-size], [data-step-tags="show"]) :is(.guide-steps, .es-steps) li::before, html:is([data-step-size], [data-step-tags="show"]) :is(.guide-steps, .es-steps) li::after { top: calc(var(--step-tag, 0px) + var(--step-d, 28px) / 2 - 1px); }
html[data-step-icons="hide"] :is(.guide-steps, .es-steps) .ic { display: none; }
html[data-step-now="glow"] :is(.guide-steps, .es-steps) li[aria-current="step"] .n { background: rgb(var(--brand-600)); border-color: rgb(var(--brand-600)); color: #fff; box-shadow: 0 0 0 5px rgb(var(--brand-500) / .2), 0 8px 18px -6px rgb(var(--brand-600) / .6); }
html[data-step-now="solid"] :is(.guide-steps, .es-steps) li[aria-current="step"] .n { background: rgb(var(--brand-600)); border-color: rgb(var(--brand-600)); color: #fff; box-shadow: none; }
html[data-step-now] :is(.guide-steps, .es-steps) li[aria-current="step"] .t { font-weight: 700; color: rgb(var(--ink)); }
html[data-step-now="underline"] :is(.guide-steps, .es-steps) li[aria-current="step"] .t { color: rgb(var(--brand-700)); text-decoration: underline 2px rgb(var(--brand-500)); text-underline-offset: 4px; }
html[data-step-now] :is(.guide-steps, .es-steps) li[aria-current="step"] .tag { color: rgb(var(--brand-700)); font-weight: 700; }

/* GOV-R333-A: moved unchanged from emis-tokens.css (the stepper, all its controls; names .guide-steps) */
/* ---- the stepper, all its controls (owner 2026-11-18: «فصل التحكم في شريط الخطوات في تبويب لوحده وإضافة كل خيار التحكم فيه»). They act on
 * .guide-steps (Payroll: li.done / li.now / li[aria-current="step"], .n, .t, connectors li::before / li::after) and the shared .es-steps. */
html[data-step-size="44"] :is(.guide-steps, .es-steps) { --step-d: 44px; }
/* the shape of the circle */
html[data-step-shape="circle"] :is(.guide-steps, .es-steps) .n { border-radius: 50%; }
html[data-step-shape="rounded"] :is(.guide-steps, .es-steps) .n { border-radius: 10px; }
html[data-step-shape="square"] :is(.guide-steps, .es-steps) .n { border-radius: 4px; }
/* the completed steps */
html[data-step-done="filled"] :is(.guide-steps, .es-steps) li.done .n { background: rgb(var(--brand-600)); border-color: rgb(var(--brand-600)); color: #fff; }
html[data-step-done="soft"] :is(.guide-steps, .es-steps) li.done .n { background: rgb(var(--brand-100)); border-color: rgb(var(--brand-300)); color: rgb(var(--brand-700)); }
html.dark[data-step-done="soft"] :is(.guide-steps, .es-steps) li.done .n { background: rgb(var(--brand-600) / .2); color: rgb(var(--brand-200)); }
html[data-step-done="outline"] :is(.guide-steps, .es-steps) li.done .n { background: rgb(var(--surface)); border-color: rgb(var(--brand-500)); color: rgb(var(--brand-600)); }
/* the upcoming steps (neither done nor current) */
html[data-step-next="faded"] :is(.guide-steps, .es-steps) li:not(.done):not(.now):not([aria-current="step"]) { opacity: .5; }
html[data-step-next="dashed"] :is(.guide-steps, .es-steps) li:not(.done):not(.now):not([aria-current="step"]) .n { border-style: dashed; }
/* the current step: a pulsing ring (on top of glow/solid/underline of the earlier rules) */
html[data-step-now="pulse"] :is(.guide-steps, .es-steps) li[aria-current="step"] .n { background: rgb(var(--brand-600)); border-color: rgb(var(--brand-600)); color: #fff; animation: step-ring 1.8s ease-out infinite; }
@keyframes step-ring { 0% { box-shadow: 0 0 0 0 rgb(var(--brand-500) / .5); } 70%, 100% { box-shadow: 0 0 0 10px rgb(var(--brand-500) / 0); } }
html[data-es-motion="reduce"] :is(.guide-steps, .es-steps) li[aria-current="step"] .n { animation: none; }
html[data-step-now="pulse"] :is(.guide-steps, .es-steps) li[aria-current="step"] .t { font-weight: 700; color: rgb(var(--ink)); }
/* the connecting line */
html[data-step-line="thin"] :is(.guide-steps, .es-steps) li::before, html[data-step-line="thin"] :is(.guide-steps, .es-steps) li::after { height: 1px; }
html[data-step-line="thick"] :is(.guide-steps, .es-steps) li::before, html[data-step-line="thick"] :is(.guide-steps, .es-steps) li::after { height: 4px; margin-top: -1px; border-radius: 4px; }
html[data-step-line="dashed"] :is(.guide-steps, .es-steps) li::before, html[data-step-line="dashed"] :is(.guide-steps, .es-steps) li::after { height: 0; background: none !important; border-top: 2px dashed rgb(var(--border-strong)); }
html[data-step-line="none"] :is(.guide-steps, .es-steps) li::before, html[data-step-line="none"] :is(.guide-steps, .es-steps) li::after { display: none; }
/* the line of what is done takes the theme colour (or its gradient) up to the current step */
html[data-step-line-done="brand"] :is(.guide-steps, .es-steps) li.done::before, html[data-step-line-done="brand"] :is(.guide-steps, .es-steps) li.done::after, html[data-step-line-done="brand"] :is(.guide-steps, .es-steps) li:is(.now, [aria-current="step"])::before { background: rgb(var(--brand-500)); border-top-color: rgb(var(--brand-500)); }
html[data-step-line-done="grad"] :is(.guide-steps, .es-steps) li.done::before, html[data-step-line-done="grad"] :is(.guide-steps, .es-steps) li.done::after, html[data-step-line-done="grad"] :is(.guide-steps, .es-steps) li:is(.now, [aria-current="step"])::before { background: var(--grad-brand); border-top-color: rgb(var(--brand-500)); }
/* the title of a step */
html[data-step-title="small"] :is(.guide-steps, .es-steps) .t { font-size: 10.5px; }
html[data-step-title="bold"] :is(.guide-steps, .es-steps) .t { font-weight: 700; color: rgb(var(--ink-2)); }
html[data-step-title="hidden"] :is(.guide-steps, .es-steps) .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the stage label above a step */
html[data-step-tag-style="chip"] :is(.guide-steps, .es-steps) .tag { display: inline-block; height: auto; padding: 1px 8px; border-radius: 999px; background: rgb(var(--brand-50)); color: rgb(var(--brand-700)); font-size: 10px; font-weight: 700; }
html.dark[data-step-tag-style="chip"] :is(.guide-steps, .es-steps) .tag { background: rgb(var(--brand-600) / .2); color: rgb(var(--brand-200)); }
html[data-step-tag-style="text"] :is(.guide-steps, .es-steps) .tag { background: none; padding: 0; font-weight: 500; color: rgb(var(--ink-faint)); }
/* the step icon: a badge on the circle, or in place of the number (the check of a done step gives way to it) */
html:is([data-step-icons="show"], [data-step-icon-mode="badge"]) :is(.guide-steps, .es-steps) .ic { position: absolute; bottom: -5px; inset-inline-end: -7px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: rgb(var(--surface)); color: rgb(var(--brand-700)); font-size: 8.5px; box-shadow: 0 0 0 1.5px rgb(var(--border)); }
html[data-step-icon-mode="inside"] :is(.guide-steps, .es-steps) .n { font-size: 0; }
html[data-step-icon-mode="inside"] :is(.guide-steps, .es-steps) .n > i { display: none; }
html[data-step-icon-mode="inside"] :is(.guide-steps, .es-steps) .n .ic { position: static; display: grid; width: auto; height: auto; background: none; box-shadow: none; color: inherit; font-size: calc(var(--step-d, 28px) * .4); }
html[data-step-icon-mode="inside"] :is(.guide-steps, .es-steps) .n .ic i { display: inline-block; }
html[data-step-tags="show"] :is(.guide-steps, .es-steps) .tag { display: block; height: 16px; margin-bottom: 4px; font-size: 10.5px; font-weight: 500; color: rgb(var(--ink-faint)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* GOV-R333-A: moved unchanged from emis-tokens.css (phase two: pop-up windows, the drawer and the notifications; names #modal-overlay, #modal-container > div, .so-back / .so-head / .so-panel, #toast-container) */
/* -- pop-up windows: the backdrop */
html[data-pop-back="light"] :is(#modal-overlay, .es-mb, .so-back, .etb-demo-back) { background: rgb(15 23 42 / .22) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-pop-back="dark"] :is(#modal-overlay, .es-mb, .so-back, .etb-demo-back) { background: rgb(2 6 23 / .66) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-pop-back="blur"] :is(#modal-overlay, .es-mb, .so-back, .etb-demo-back) { background: rgb(15 23 42 / .3) !important; -webkit-backdrop-filter: blur(6px) saturate(1.1); backdrop-filter: blur(6px) saturate(1.1); }
html[data-pop-back="brand"] :is(#modal-overlay, .es-mb, .so-back, .etb-demo-back) { background: rgb(var(--brand-950) / .55) !important; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
/* -- the window: corners, shadow, width, entrance (the drawer keeps flat corners on its edge side) */
html[data-pop-shape="sharp"] :is(#modal-container > div:not(.h-full), .es-modal) { border-radius: 6px !important; }
html[data-pop-shape="rounded"] :is(#modal-container > div:not(.h-full), .es-modal) { border-radius: 14px !important; }
html[data-pop-shape="large"] :is(#modal-container > div:not(.h-full), .es-modal) { border-radius: 24px !important; }
html[data-pop-shadow="soft"] :is(#modal-container > div, .es-modal, .es-drawer, .so-panel) { box-shadow: 0 18px 40px -18px rgb(15 23 42 / .35) !important; }
html[data-pop-shadow="deep"] :is(#modal-container > div, .es-modal, .es-drawer, .so-panel) { box-shadow: 0 40px 80px -24px rgb(2 6 23 / .6) !important; }
html[data-pop-shadow="outline"] :is(#modal-container > div, .es-modal, .es-drawer, .so-panel) { box-shadow: none !important; border: 1px solid rgb(var(--border-strong)) !important; }
html[data-pop-width="narrow"] :is(#modal-container > div:not(.h-full), .es-modal) { max-width: 420px !important; }
html[data-pop-width="medium"] :is(#modal-container > div:not(.h-full), .es-modal) { max-width: 640px !important; }
html[data-pop-width="wide"] :is(#modal-container > div:not(.h-full), .es-modal) { max-width: 900px !important; }
html[data-pop-anim="fade"] :is(#modal-container > div, .es-modal, .es-drawer, .so-panel) { animation: pop-fade .2s ease-out !important; }
html[data-pop-anim="slide"] :is(#modal-container > div, .es-modal) { animation: pop-slide .26s cubic-bezier(.22, 1, .36, 1) !important; }
html[data-pop-anim="zoom"] :is(#modal-container > div, .es-modal) { animation: pop-zoom .22s cubic-bezier(.22, 1, .36, 1) !important; }
html[data-pop-anim="none"] :is(#modal-container > div, .es-modal, .es-drawer, .so-panel) { animation: none !important; transition: none !important; }
@keyframes pop-fade { from { opacity: 0; } }
@keyframes pop-slide { from { opacity: 0; transform: translateY(18px); } }
@keyframes pop-zoom { from { opacity: 0; transform: scale(.94); } }
html[data-es-motion="reduce"] :is(#modal-container > div, .es-modal, .es-drawer, .so-panel) { animation: none !important; }
/* -- the window header: plain, tinted, or the theme gradient (white text) */
html[data-pop-head="plain"] :is(#modal-container > div > div:first-child, .es-m-h, .so-head) { background: rgb(var(--surface)) !important; }
html[data-pop-head="tint"] :is(#modal-container > div > div:first-child, .es-m-h, .so-head) { background: rgb(var(--brand-50)) !important; border-bottom-color: rgb(var(--brand-200)) !important; }
html.dark[data-pop-head="tint"] :is(#modal-container > div > div:first-child, .es-m-h, .so-head) { background: rgb(var(--brand-600) / .15) !important; }
html[data-pop-head="grad"] :is(#modal-container > div > div:first-child, .es-m-h, .so-head) { background: var(--grad-brand) !important; border-bottom-color: transparent !important; color: #fff; }
html[data-pop-head="grad"] :is(#modal-container > div > div:first-child, .es-m-h, .so-head) :is(h1, h2, h3, h4, b, p, span, button, i) { color: #fff !important; }
/* -- the drawer (a window that slides from the side): its side and width */
html[data-drawer-side="start"] .es-drawer-w { justify-content: flex-start !important; }
html[data-drawer-side="start"] #modal-container > div.h-full { margin-inline-start: 0 !important; margin-inline-end: auto !important; border-radius: 0 !important; border-start-end-radius: 16px !important; border-end-end-radius: 16px !important; }
html[data-drawer-side="end"] .so-panel { inset-inline-end: 0 !important; inset-inline-start: auto !important; }
html[data-drawer-side="start"] .so-panel { inset-inline-start: 0 !important; inset-inline-end: auto !important; }
html[data-drawer-side="end"] #modal-container > div.h-full { margin-inline-start: auto !important; margin-inline-end: 0 !important; }
html[data-drawer-w="420"] :is(.es-drawer, .so-panel, #modal-container > div.h-full) { width: min(420px, 100vw) !important; max-width: none !important; }
html[data-drawer-w="560"] :is(.es-drawer, .so-panel, #modal-container > div.h-full) { width: min(560px, 100vw) !important; max-width: none !important; }
html[data-drawer-w="720"] :is(.es-drawer, .so-panel, #modal-container > div.h-full) { width: min(720px, 100vw) !important; max-width: none !important; }
/* -- notifications: their place and shape; their colours keep their meanings (success, error, warning) */
html[data-toast-pos="top-end"] :is(#toast-container, #es-toasts) { top: 18px !important; bottom: auto !important; inset-inline-start: auto !important; inset-inline-end: 18px !important; transform: none !important; }
html[data-toast-pos="top-center"] :is(#toast-container, #es-toasts) { top: 18px !important; bottom: auto !important; inset-inline-start: 50% !important; inset-inline-end: auto !important; transform: translateX(-50%) !important; }
html[dir="rtl"][data-toast-pos="top-center"] :is(#toast-container, #es-toasts) { transform: translateX(50%) !important; }
html[data-toast-pos="bottom-center"] :is(#toast-container, #es-toasts) { bottom: 18px !important; top: auto !important; inset-inline-start: 50% !important; inset-inline-end: auto !important; transform: translateX(-50%) !important; }
html[dir="rtl"][data-toast-pos="bottom-center"] :is(#toast-container, #es-toasts) { transform: translateX(50%) !important; }
html[data-toast-pos="bottom-start"] :is(#toast-container, #es-toasts) { bottom: 18px !important; top: auto !important; inset-inline-start: 18px !important; inset-inline-end: auto !important; transform: none !important; }
html[data-toast-shape="pill"] :is(#toast-container > *, .es-toast, .est-toast, .etb-demo-toast) { border-radius: 999px !important; padding-inline: 18px !important; }
html[data-toast-shape="sharp"] :is(#toast-container > *, .es-toast, .est-toast, .etb-demo-toast) { border-radius: 4px !important; }
html[data-toast-shape="bar"] :is(#toast-container > *, .es-toast, .est-toast, .etb-demo-toast) { border-radius: 10px !important; border-inline-start: 4px solid rgb(255 255 255 / .55) !important; }

/* GOV-R333-A: moved unchanged from emis-tokens.css (phase two, secondary colours: the canvas and the tinted dark mode on the page scroller and the windows; names #main-scroll, #modal-container > div) */
html[data-canvas]:not(.dark) body, html[data-canvas]:not(.dark) :is(#main-scroll, #es-main, .etb-app) { background-color: rgb(var(--canvas)) !important; }
html.dark[data-dark-tint="tinted"] body, html.dark[data-dark-tint="tinted"] :is(#main-scroll, #es-main, .etb-app) { background-image: linear-gradient(rgb(var(--brand-500) / .07), rgb(var(--brand-500) / .07)) !important; }
html.dark[data-dark-tint="tinted"] :is(.card, .es-card, .es-tw-card, .kpi, #modal-container > div, .es-modal, .es-drawer) { background-image: linear-gradient(rgb(var(--brand-400) / .06), rgb(var(--brand-400) / .06)) !important; }

/* GOV-R333-A: moved unchanged from emis-tokens.css (the close button of the page band; names .page-hero .page-head .band-x) */
/* ---- the close button of the page band (owner 2026-11-18: «خيار للتحكم في ستايل زرار إغلاق الموجود في شريط الصفحة»): the shared shell's
 * .es-band-x and Payroll's .page-hero .page-head .band-x; style, shape, size and hover. No attribute = as the module draws it. */
html[data-band-x="glass"] :is(.es-band-x, .page-hero .page-head .band-x, .etb-band .es-band-x) { background: rgb(255 255 255 / .14) !important; color: #fff !important; border: 1px solid rgb(255 255 255 / .3) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html[data-band-x="solid"] :is(.es-band-x, .page-hero .page-head .band-x, .etb-band .es-band-x) { background: #fff !important; color: rgb(var(--brand-700)) !important; border: 1px solid #fff !important; box-shadow: 0 4px 10px -4px rgb(15 23 42 / .35); }
html[data-band-x="outline"] :is(.es-band-x, .page-hero .page-head .band-x, .etb-band .es-band-x) { background: transparent !important; color: #fff !important; border: 1.5px solid rgb(255 255 255 / .75) !important; }
html[data-band-x="ghost"] :is(.es-band-x, .page-hero .page-head .band-x, .etb-band .es-band-x) { background: transparent !important; color: rgb(255 255 255 / .85) !important; border: 1px solid transparent !important; }
html[data-band-x="ghost"] :is(.es-band-x, .page-hero .page-head .band-x, .etb-band .es-band-x):hover { background: rgb(255 255 255 / .18) !important; color: #fff !important; }
/* on a calm (light) band the button takes ink and the theme colour instead of white */
:is(html[data-head="calm"], html:has(body.r-calm), html:has(body.es-calm))[data-band-x] :is(.es-band-x, .page-hero .page-head .band-x, .etb-band .es-band-x) { color: rgb(var(--ink-2)) !important; border-color: rgb(var(--border-strong)) !important; background: rgb(var(--surface)) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
:is(html[data-head="calm"], html:has(body.r-calm), html:has(body.es-calm))[data-band-x="solid"] :is(.es-band-x, .page-hero .page-head .band-x, .etb-band .es-band-x) { background: rgb(var(--brand-600)) !important; border-color: rgb(var(--brand-600)) !important; color: #fff !important; }
:is(html[data-head="calm"], html:has(body.r-calm), html:has(body.es-calm))[data-band-x="ghost"] :is(.es-band-x, .page-hero .page-head .band-x, .etb-band .es-band-x) { background: transparent !important; border-color: transparent !important; }
/* the shape; «with its word» shows the word Close beside the ×, in the page language */
html[data-band-x-shape="circle"] :is(.es-band-x, .page-hero .page-head .band-x, .etb-band .es-band-x) { border-radius: 50% !important; }
html[data-band-x-shape="rounded"] :is(.es-band-x, .page-hero .page-head .band-x, .etb-band .es-band-x) { border-radius: 8px !important; }
html[data-band-x-shape="labeled"] :is(.es-band-x, .page-hero .page-head .band-x, .etb-band .es-band-x) { width: auto !important; padding-inline: 10px 12px !important; gap: 6px; border-radius: 999px !important; font-size: 12px !important; font-weight: 700; }
html[data-band-x-shape="labeled"] :is(.es-band-x, .page-hero .page-head .band-x, .etb-band .es-band-x)::after { content: 'إغلاق'; }
html[lang="en"][data-band-x-shape="labeled"] :is(.es-band-x, .page-hero .page-head .band-x, .etb-band .es-band-x)::after { content: 'Close'; }
/* the size */
html[data-band-x-size="24"] :is(.es-band-x, .page-hero .page-head .band-x, .etb-band .es-band-x) { height: 24px !important; min-width: 24px; font-size: 11px !important; }
html[data-band-x-size="24"]:not([data-band-x-shape="labeled"]) :is(.es-band-x, .page-hero .page-head .band-x, .etb-band .es-band-x) { width: 24px !important; }
html[data-band-x-size="28"] :is(.es-band-x, .page-hero .page-head .band-x, .etb-band .es-band-x) { height: 28px !important; min-width: 28px; font-size: 12px !important; }
html[data-band-x-size="28"]:not([data-band-x-shape="labeled"]) :is(.es-band-x, .page-hero .page-head .band-x, .etb-band .es-band-x) { width: 28px !important; }
html[data-band-x-size="34"] :is(.es-band-x, .page-hero .page-head .band-x, .etb-band .es-band-x) { height: 34px !important; min-width: 34px; font-size: 14px !important; }
html[data-band-x-size="34"]:not([data-band-x-shape="labeled"]) :is(.es-band-x, .page-hero .page-head .band-x, .etb-band .es-band-x) { width: 34px !important; }
/* the movement on hover */
html[data-band-x-hover="rotate"] :is(.es-band-x, .page-hero .page-head .band-x, .etb-band .es-band-x):is(:hover, .etb-hov) { transform: rotate(90deg) !important; }
html[data-band-x-hover="grow"] :is(.es-band-x, .page-hero .page-head .band-x, .etb-band .es-band-x):is(:hover, .etb-hov) { transform: scale(1.12) !important; }
html[data-band-x-hover="none"] :is(.es-band-x, .page-hero .page-head .band-x, .etb-band .es-band-x):is(:hover, .etb-hov) { transform: none !important; }
html[data-es-motion="reduce"] :is(.es-band-x, .page-hero .page-head .band-x) { transform: none !important; }

/* GOV-R333-A: moved unchanged from emis-tokens.css (the stepper, more, and the action bar under a step; names .guide-steps, .pb11-lock, .pb11-foot) */
/* the stepper, more (owner 2026-11-18, «Theme Builder User Experience»); the order, gates and states of the steps are the engine's */
html[data-step-dir="vertical"] :is(.guide-steps, .es-steps) { flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 14px; }
html[data-step-dir="vertical"] :is(.guide-steps, .es-steps) li { flex: none; text-align: start; }
html[data-step-dir="vertical"] :is(.guide-steps, .es-steps) li button { display: flex; align-items: center; gap: 10px; }
html[data-step-dir="vertical"] :is(.guide-steps, .es-steps) li .t { margin-top: 0; }
html[data-step-dir="vertical"] :is(.guide-steps, .es-steps) li::before { display: none; }
html[data-step-dir="vertical"] :is(.guide-steps, .es-steps) li::after { display: block; top: 30px; bottom: -6px; height: auto; width: 2px; inset-inline-start: 13px; inset-inline-end: auto; }
html[data-step-dir="vertical"] :is(.guide-steps, .es-steps) li:last-child::after { display: none; }
html[data-step-gap="tight"] :is(.guide-steps, .es-steps) { padding: 8px 4px 6px; }
html[data-step-gap="tight"] :is(.guide-steps, .es-steps) .t { margin-top: 3px; }
html[data-step-gap="roomy"] :is(.guide-steps, .es-steps) { padding: 22px 16px 16px; }
html[data-step-gap="roomy"] :is(.guide-steps, .es-steps) .t { margin-top: 9px; }
html[data-step-glow="none"] :is(.guide-steps, .es-steps) li[aria-current="step"] .n { box-shadow: none; }
html[data-step-glow="soft"] :is(.guide-steps, .es-steps) li[aria-current="step"] .n { box-shadow: 0 0 0 3px rgb(var(--brand-100)); }
html[data-step-glow="strong"] :is(.guide-steps, .es-steps) li[aria-current="step"] .n { box-shadow: 0 0 0 6px rgb(var(--brand-200) / .85), 0 0 18px rgb(var(--brand-500) / .45); }
html[data-step-view="ring"] :is(.guide-steps, .es-steps) li.view:not(.now):not(.warn) .n { background: rgb(var(--surface)); border-color: rgb(var(--brand-600)); color: rgb(var(--brand-700)); box-shadow: 0 0 0 3px rgb(var(--brand-200)); }
html[data-step-view="tint"] :is(.guide-steps, .es-steps) li.view .t { text-decoration: none; display: inline-block; padding: 1px 8px; border-radius: 999px; background: rgb(var(--brand-50)); color: rgb(var(--brand-800)); }
html.dark[data-step-view="tint"] :is(.guide-steps, .es-steps) li.view .t { background: rgb(var(--brand-600) / .2); color: rgb(var(--brand-100)); }
html[data-step-warn="ring"] :is(.guide-steps, .es-steps) :is(li.warn, li.stop) .n { background: rgb(var(--surface)); color: inherit; border-width: 3px; border-color: currentColor; }
html[data-step-lock="icon"] :is(.guide-steps, .es-steps) li.pb11-lock .n::after { content: '\f023'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; inset-inline-end: -5px; bottom: -4px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: rgb(var(--surface)); color: rgb(var(--ink-muted)); font-size: 8px; box-shadow: 0 0 0 1px rgb(var(--border)); }
/* the action bar under a step (Payroll .pb11-foot, the shared .wiz-foot): its look only; «Next» stays the step action (PAY-R1221-A) */
html[data-foot-bar="tint"] :is(.pb11-foot, .wiz-foot) { background: rgb(var(--brand-50) / .7); border-radius: var(--r-card, 12px); padding: 10px 12px; }
html.dark[data-foot-bar="tint"] :is(.pb11-foot, .wiz-foot) { background: rgb(var(--brand-600) / .12); }
html[data-foot-bar="line"] :is(.pb11-foot, .wiz-foot) { border-top: 2px solid rgb(var(--brand-200)); padding-top: 12px; }
html[data-foot-bar="sticky"] :is(.pb11-foot, .wiz-foot) { position: sticky; bottom: 0; z-index: 5; background: rgb(var(--surface) / .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 -8px 20px -14px rgb(var(--ink) / .4); padding: 10px 12px; border-radius: var(--r-card, 12px) var(--r-card, 12px) 0 0; }
html[data-foot-why="chip"] :is(.pb11-foot, .wiz-foot) .why { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgb(var(--surface-2)); color: rgb(var(--ink-2)); border: 1px solid rgb(var(--border)); }
