/* App shell redesign (C-112420) - the frame around every Site.Master / ComSys.Master page: sidebar,
   top bar, profile menu. Spec: docs/superpowers/specs/2026-09-24-dashboard-and-app-shell-redesign-design.md
   Every rule is scoped under "html body.ess-shell": Styles/style_ltr.css and style_rtl.css are
   injected at the END of <head> by Base/PageBaseClass.cs and carry the old sidebar geometry
   ("body.hide-sidebar #menu" etc., specificity 1-1-1), so the extra "html" + ".ess-shell" is what lets
   these rules win regardless of load order. Logical properties throughout so the same rules mirror
   under <html dir="rtl">.
   Found by Task 4's regression sweep: ComSys/CSInbox.aspx embeds its own leftover, largely-dead copy
   of the sidebar markup (its own "aside#menu" > "#navigation" > ... > "#wrapper", nested one level
   deeper under a "#mainDiv" the page adds) inside its own content, duplicating the id="menu"/id="wrapper"
   the real shell also uses. The real sidebar/wrapper are always a DIRECT child of "#dvPageProgress";
   CSInbox's copy is not - every sidebar/wrapper rule below is anchored with "#dvPageProgress > " so it
   never leaks into that duplicate (seen live as CSInbox's own message-search box getting the sidebar's
   position/margin and clipping its "Search Message" label). */
html body.ess-shell {
    --shell-header-h: 60px;
    --shell-side-w: 248px;
    --shell-rail-w: 64px;
    --shell-accent: var(--ess-border-color-accent, #1ab394);
    --shell-accent-dark: #0f7d68;   /* C-112420: was #148f77 (4.0:1 as text) */
    --shell-accent-soft: #e8f7f3;
    --shell-line: #e6e9ec;
    --shell-text: #2f3b45;
    --shell-muted: #636f78;   /* C-112420: was #8a96a0 (3.0:1) */
    --shell-bg: #f4f6f8;
}

/* ---- Sidebar geometry ---- */
html body.ess-shell #dvPageProgress > #menu {
    width: var(--shell-side-w);
    top: var(--shell-header-h);
    margin: 0;
    background: #fff;
    border-inline-end: 1px solid var(--shell-line);
    transition: width .2s ease, transform .2s ease;
}
/* #menu is position:absolute (top/bottom from styles.css); without a positioned ancestor its bottom:0 resolves against the first viewport, not the document. */
html body.ess-shell.ess-has-sidebar #dvPageProgress { position: relative; }
html body.ess-shell #dvPageProgress > #wrapper {
    margin: 0;
    margin-inline-start: var(--shell-side-w);
    border: 0;
    background: var(--shell-bg);
}

/* ---- Profile row (replaces the 155px photo block) ---- */
html body.ess-shell .ess-profile-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 12px;
    text-align: start;
    border-bottom: 1px solid var(--shell-line);
}
html body.ess-shell .ess-profile-row .dropdown > a { display: block; line-height: 0; }
html body.ess-shell .ess-profile-row #imgEmployeeMainPic {
    width: 40px !important;
    height: 40px !important;
    margin: 0;
    border: 0;
    object-fit: cover;
}
html body.ess-shell .ess-profile-text { min-width: 0; line-height: 1.35; }
/* #lblName2 carries a sitewide legacy rule (Styles/styles.css: "#lblName2 { display: none; }",
   written for the old mobile-only title label that shared this control) which, being an ID
   selector, otherwise wins over ".ess-profile-name" regardless of load order - repeating the ID
   here (still scoped under html body.ess-shell) restores enough specificity to show the sidebar's
   own name line on desktop. Found by Task 4's regression sweep: the name was silently display:none
   sitewide even though role/department (no such legacy rule) rendered fine. */
html body.ess-shell #lblName2.ess-profile-name {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--shell-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Name, position and department each on their own line. */
html body.ess-shell .ess-profile-role,
html body.ess-shell .ess-profile-dept { display: block; font-size: 11px; font-weight: 400; line-height: 1.35; color: var(--shell-muted); }
html body.ess-shell .ess-profile-role { color: #5b6770; }

/* ---- Menu search ---- (see the file-level comment above re: #dvPageProgress > #menu) */
html body.ess-shell #dvPageProgress > #menu .search-menu { position: relative; margin: 10px 12px 6px; padding: 0; background: transparent; }
html body.ess-shell #dvPageProgress > #menu .search-menu #txtSearchMenu {
    float: none;
    width: 100%;
    height: 34px;
    border: 1px solid var(--shell-line);
    border-radius: 8px;
    padding-inline: 32px 10px;
    font-size: 12.5px;
    background: #fff;
}
html body.ess-shell #dvPageProgress > #menu .search-menu .fa-search {
    position: absolute;
    inset-inline-start: 11px;
    top: 10px;
    margin: 0;
    color: var(--shell-muted);
}

/* ---- Menu items (markup from Menus.ascx.cs unchanged) ---- */
html body.ess-shell #side-menu { padding: 4px 0 16px; }
html body.ess-shell #side-menu > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1px 10px;
    padding: 9px 12px;
    border-radius: 8px;
    border-inline-start: 0;
    color: #45525c;
    font-weight: 500;
    background: transparent;
}
html body.ess-shell #side-menu > li > a:hover { background: var(--shell-bg); }
html body.ess-shell #side-menu li > a > .fa,
html body.ess-shell #side-menu li > a > span.fa { margin: 0; float: none; color: var(--shell-muted); }
html body.ess-shell #side-menu > li.active > a { font-weight: 600; color: var(--shell-text); }
html body.ess-shell #side-menu > li.ess-current > a {
    background: var(--shell-accent-soft);
    color: var(--shell-accent-dark);
}
html body.ess-shell #side-menu > li.ess-current > a > .fa { color: var(--shell-accent); }
html body.ess-shell #side-menu .nav-second-level {
    margin-block: 2px 6px;
    margin-inline: 32px 10px;
    padding: 0;
    border-inline-start: 2px solid #eef1f3;
    background: transparent;
}
html body.ess-shell #side-menu .nav-second-level > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    font-size: 12.5px;
    color: #636f78;
    border-radius: 0 8px 8px 0;
    background: transparent;
}
html[dir="rtl"] body.ess-shell #side-menu .nav-second-level > li > a { border-radius: 8px 0 0 8px; }
html body.ess-shell #side-menu .nav-second-level > li > a:hover { background: var(--shell-bg); }
html body.ess-shell #side-menu .nav-second-level > li.ess-current > a {
    color: var(--shell-accent-dark);
    font-weight: 600;
    background: var(--shell-accent-soft);
    box-shadow: inset 2px 0 0 var(--shell-accent);
    margin-inline-start: -2px;
}
html[dir="rtl"] body.ess-shell #side-menu .nav-second-level > li.ess-current > a { box-shadow: inset -2px 0 0 var(--shell-accent); }

/* ---- Desktop collapsed rail (Homer's body.hide-sidebar, >= 769px only) ---- */
html body.ess-shell.hide-sidebar:not(.page-small) #dvPageProgress > #menu { width: var(--shell-rail-w); }
html body.ess-shell.hide-sidebar:not(.page-small) #dvPageProgress > #wrapper { margin-inline-start: var(--shell-rail-w); }
html body.ess-shell.hide-sidebar:not(.page-small) .ess-profile-text,
html body.ess-shell.hide-sidebar:not(.page-small) #dvPageProgress > #menu .search-menu,
html body.ess-shell.hide-sidebar:not(.page-small) #side-menu .nav-label,
html body.ess-shell.hide-sidebar:not(.page-small) #side-menu .arrow,
html body.ess-shell.hide-sidebar:not(.page-small) #side-menu .nav-second-level { display: none !important; }
html body.ess-shell.hide-sidebar:not(.page-small) .ess-profile-row { justify-content: center; padding-inline: 0; }
html body.ess-shell.hide-sidebar:not(.page-small) #side-menu > li > a { justify-content: center; padding-inline: 0; margin-inline: 12px; }
/* C-112420 (2026-10-06): one centre line for every icon in the collapsed menu - items without a sub-menu carry an extra empty
   icon slot (span.fa.text-float-right) that stayed visible and pushed their icon ~14px off centre; every icon gets the same width */
html body.ess-shell.hide-sidebar:not(.page-small) #side-menu > li > a > .text-float-right { display: none !important; }
html body.ess-shell.hide-sidebar:not(.page-small) #side-menu > li > a > .fa:first-child { width: 20px; margin: 0; text-align: center; }

/* ---- Phones (< 769px, Homer's body.page-small): off-canvas drawer ---- */
html body.ess-shell.page-small #dvPageProgress > #menu {
    position: fixed;
    top: var(--shell-header-h);
    bottom: 0;
    inset-inline-start: 0;
    width: 280px;
    max-width: 85vw;
    overflow-y: auto;
    transform: translateX(-100%);
    z-index: 1040;
}
html[dir="rtl"] body.ess-shell.page-small #dvPageProgress > #menu { transform: translateX(100%); }
html body.ess-shell.page-small.show-sidebar #dvPageProgress > #menu { transform: none; box-shadow: 0 0 16px rgba(0, 0, 0, .18); }
html body.ess-shell.page-small #dvPageProgress > #wrapper,
html body.ess-shell.page-small.show-sidebar #dvPageProgress > #wrapper { margin-inline-start: 0; }
.ess-shell-backdrop { display: none; }
html body.ess-shell.page-small.show-sidebar .ess-shell-backdrop {
    display: block;
    position: fixed;
    inset: var(--shell-header-h) 0 0 0;
    background: rgba(20, 30, 40, .45);
    z-index: 1039;
}

/* ---- Top bar (both masters) ----
   <nav> becomes display:contents so its children (burger, legacy row, right-hand icons) and #logo
   are all flex items of #header and can be ordered: burger, logo, spacer, icons. */
html body.ess-shell #header {
    display: flex;
    align-items: center;
    gap: 8px;
    height: var(--shell-header-h);
    padding-inline: 8px 14px;
    background: #fff;
    filter: none;
    border-bottom: 1px solid var(--shell-line);
}
html body.ess-shell #header > nav { display: contents; }
html body.ess-shell #header .hide-menu {
    order: 1;
    float: none;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    color: #5b6770;
    font-size: 18px;
    cursor: pointer;
}
html body.ess-shell #header .hide-menu:hover { background: #f1f4f6; }
html body.ess-shell #logo {
    order: 2;
    float: none;
    display: flex !important;
    align-items: center;
    width: auto;
    height: 100%;
    padding: 0;
    background: transparent;
}
html body.ess-shell #logo img { max-height: 40px !important; max-width: min(40vw, 200px); object-fit: contain; padding: 0 !important; }
html body.ess-shell #header .header-legacy-row {
    order: 3;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
}
html body.ess-shell #header .title,
html body.ess-shell #header .mobile-menu { display: none !important; }
html body.ess-shell #header .small-logo { display: none; margin: 0; }
html body.ess-shell #header .navbar-right {
    order: 4;
    display: flex !important;
    align-items: center;
    float: none !important;
    margin: 0;
    /* Pushes bell + profile to the far end: right in English, left in Arabic. !important because an
       older right-to-left rule zeroes this margin, which left the icons next to the logo in Arabic. */
    margin-inline-start: auto !important;
}
html body.ess-shell #header .navbar-right > ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    float: none;
    margin: 0;
}
/* The <li>s are 56px tall (theme navbar rules); centre the bell / profile buttons in them so they line up
   with the logo and the menu button (all vertically centred in the 60px bar). */
html body.ess-shell #header .navbar-right > ul > li { float: none; display: flex; align-items: center; }
/* Old header logout icon: Logout now lives in the profile menu (#btnBigLogout in both masters); this hides the redundant top-bar icon without touching the control. */
html body.ess-shell #header .navbar-right li.ess-legacy-logout { display: none !important; }

/* Notification bell */
html body.ess-shell #header .nav-icon-btn > a {
    position: relative;
    display: grid !important;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border-radius: 8px;
}
html body.ess-shell #header .nav-icon-btn > a:hover { background: #f1f4f6; }
html body.ess-shell #header .nav-icon-btn .nav-icon { margin: 0 !important; font-size: 18px !important; color: #5b6770; }
html body.ess-shell #header .nav-icon-btn .label,
html body.ess-shell #header .nav-icon-btn .labelTop {
    position: absolute;
    top: 3px;
    inset-inline-end: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    font-size: 10px;
    line-height: 16px;
    background: #ed5565;
    color: #fff;
}

/* Avatar button */
html body.ess-shell #header #ddl > a.dropdown-toggle {
    display: flex !important;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 3px !important;
    padding-inline-end: 12px !important;
    border: 1px solid var(--shell-line);
    border-radius: 22px;
}
html body.ess-shell #header #ddl > a.dropdown-toggle::after { display: none; }
html body.ess-shell #imageEmpPicTop { width: 32px !important; height: 32px !important; margin: 0 !important; object-fit: cover; }
html body.ess-shell #lblEmployeeId { display: inline !important; font-size: 12.5px; font-weight: 600; color: var(--shell-text); }
html body.ess-shell #ddl > .dropdown-menu { max-width: calc(100vw - 16px); overflow-x: auto; }

@media (max-width: 768px) {
    html body.ess-shell #logo { display: none !important; }
    html body.ess-shell #header .small-logo { display: block !important; }
    html body.ess-shell #header .small-logo img { max-height: 34px !important; }
    html body.ess-shell #lblEmployeeId { display: none !important; }
    html body.ess-shell #header #ddl > a.dropdown-toggle { padding: 3px !important; border: 0; }
    /* ComSys dropdown positioning: escape Popper's inline positioning to fit menu in viewport on phones (mirrors in RTL). */
    html body.ess-shell #ddl > .dropdown-menu:not(.ess-profile-menu) {
        position: fixed !important;
        inset-inline: 8px !important;
        inset-block-start: calc(var(--shell-header-h) + 4px) !important;
        transform: none !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: calc(100vw - 16px) !important;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    /* ComSys dropdown content: wrap/stack button columns on phones to fit constrained width. */
    html body.ess-shell #ddl > .dropdown-menu:not(.ess-profile-menu) .row {
        flex-wrap: wrap;
    }
    html body.ess-shell #ddl > .dropdown-menu:not(.ess-profile-menu) [class*="col-"] {
        flex: 1 1 45%;
        max-width: none !important;
    }
}

/* ---- Header buttons: soft active state while their popup is open ---- */
html body.ess-shell #header .nav-icon-btn > a[aria-expanded="true"] { background: var(--shell-accent-soft); }
html body.ess-shell #header .nav-icon-btn > a[aria-expanded="true"] .nav-icon { color: var(--shell-accent-dark); }
html body.ess-shell #header #ddl > a.dropdown-toggle[aria-expanded="true"] {
    border-color: var(--shell-accent);
    box-shadow: 0 0 0 3px rgba(26, 179, 148, .12);
}

/* Shared popup surface (profile menu + notifications) */
html body.ess-shell .ess-profile-menu,
html body.ess-shell .ess-notif-menu {
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(20, 30, 40, .16), 0 0 0 1px rgba(20, 30, 40, .04);
    text-align: start;
    margin-top: 6px !important;
}
/* Arabic: style_rtl.css pins every .dropdown-menu with "right:0 !important; left:unset !important", which beats the
   position Bootstrap/Popper writes (left:0 + a translate that keeps the popup on screen). The bell and profile buttons
   sit at the LEFT edge in Arabic, so that rule pushed both popups off the left side of the screen (half cut).
   Give these two popups back Popper's own placement. */
html[dir="rtl"] body.ess-shell .ess-profile-menu,
html[dir="rtl"] body.ess-shell .ess-notif-menu {
    left: 0 !important;
    right: auto !important;
}
/* Forward arrows ("See all →", "Review now →") point the reading direction: flipped in Arabic. */
.ess-dir-arrow { display: inline-block; }
html[dir="rtl"] .ess-dir-arrow { transform: scaleX(-1); }
.ess-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---- Profile menu (Site.Master #ddl content) ----
   overflow stays visible so the Language / Time zone lists (chosen) can open outside the popup
   instead of being clipped; the header rounds its own top corners. */
html body.ess-shell #ddl > .ess-profile-menu {
    width: 320px;
    max-width: calc(100vw - 16px);
    overflow: visible !important;
}
html body.ess-shell .ess-pm-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(135deg, var(--shell-accent-soft), #f4fbf9);
}
html body.ess-shell .ess-pm-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
    box-shadow: 0 0 0 2px #fff;
}
html body.ess-shell .ess-pm-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
html body.ess-shell .ess-pm-name { font-weight: 700; font-size: 14.5px; color: var(--shell-text); }
html body.ess-shell .ess-pm-role { font-size: 12px; color: #5b6770; }
html body.ess-shell .ess-pm-dept { font-size: 11.5px; color: var(--shell-muted); }
html body.ess-shell .ess-pm-info { display: grid; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--shell-line); }
html body.ess-shell .ess-pm-row { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 12.5px; color: #45525c; }
html body.ess-shell .ess-pm-row[hidden] { display: none; }
html body.ess-shell .ess-pm-row > .fa { width: 16px; text-align: center; font-size: 13px; color: #636f78; flex: none; }
html body.ess-shell .ess-pm-k { color: var(--shell-muted); font-size: 11.5px; white-space: nowrap; }
html body.ess-shell .ess-pm-v { margin: 0; margin-inline-start: auto; font-weight: 500; color: var(--shell-text); text-align: end; min-width: 0; overflow-wrap: anywhere; }
html body.ess-shell .ess-pm-settings { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 10px 16px 14px; border-bottom: 1px solid var(--shell-line); }   /* C-112380: minmax(0, 1fr) - the auto column grew to the longest time zone name ("(UTC-12:00) International Date Line West") and pushed Language / Time Zone 40px past the panel's right edge */
html body.ess-shell .ess-pm-label { display: block; margin: 6px 0 2px; font-size: 11px; font-weight: 600; color: var(--shell-muted); }
html body.ess-shell .ess-pm-settings .chosen-container { width: 100% !important; }
html body.ess-shell .ess-pm-settings .chosen-container .chosen-single {
    height: 34px;
    line-height: 32px;
    border: 1px solid #dfe4e8;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}
html body.ess-shell .ess-pm-settings .chosen-container .chosen-drop {
    z-index: 1060;
    top: 100% !important;          /* an older rule pulls the list up over the field (-25px) */
    border: 0;
    border-radius: 10px;
    margin-top: 4px !important;
    box-shadow: 0 10px 24px rgba(20, 30, 40, .18);
}
/* chosen parks CLOSED lists ~9000px off-screen (left:-9999px / RTL equivalent). With the popup's overflow
   visible, in Arabic that off-screen box extends the page to the left (seen: page 10,410px wide, a huge
   horizontal scroll, blank rendering). Hide closed lists outright instead, and pin an open one under its field. */
html body.ess-shell .ess-pm-settings .chosen-container:not(.chosen-with-drop) .chosen-drop { display: none !important; }
html body.ess-shell .ess-pm-settings .chosen-container.chosen-with-drop .chosen-drop { inset-inline-start: 0 !important; inset-inline-end: auto !important; width: 100% !important; box-sizing: border-box; }
html body.ess-shell .ess-pm-settings .chosen-results li.highlighted { background: var(--shell-accent-soft); background-image: none; color: var(--shell-accent-dark); }
html body.ess-shell .ess-pm-settings .chosen-results li.result-selected { font-weight: 600; }
html body.ess-shell .ess-pm-tz { display: flex; align-items: center; gap: 8px; }
html body.ess-shell .ess-pm-tz > .chosen-container,
html body.ess-shell .ess-pm-tz > select,
html body.ess-shell .ess-pm-tz > .ess-sp { flex: 1 1 auto; min-width: 0; }   /* C-112380: .ess-sp = the standard dropdown that now wraps the select - it must shrink beside the lock button */
/* C-112951 (QA round 2, #2): the open Language / Time Zone lists are exactly as wide as the panel's column (was at least 300px from the
   box's start edge - 4px from the panel edge, past it with a wider scrollbar or zoom). The Time Zone list spans its whole row (box + lock). */
html body.ess-shell .ess-pm-settings .ess-sp .pv-panel { width: 100%; max-width: none; }
html body.ess-shell .ess-pm-tz { position: relative; }
html body.ess-shell .ess-pm-tz > .ess-sp { position: static; }
/* Time zone lock / unlock: a small square button (the page toggles display:none between the two) */
html body.ess-shell .ess-pm-tz > #btnLock,
html body.ess-shell .ess-pm-tz > #btnUnLock {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 38px;    /* C-112380: same height as the Time Zone dropdown beside it (was 34px) */
    height: 38px;
    margin: 0 !important;   /* C-112380: a global link style gave it a 7px bottom margin - it sat higher than the dropdown */
    align-self: center;
    border: 1px solid #dfe4e8;
    border-radius: 8px;
    color: #5b6770;
}
html body.ess-shell .ess-pm-tz > #btnLock:hover,
html body.ess-shell .ess-pm-tz > #btnUnLock:hover { background: var(--shell-bg); }
html body.ess-shell .ess-pm-tz .fa { font-size: 14px !important; color: inherit; }
html body.ess-shell .ess-pm-actions { display: flex; flex-direction: column; padding: 6px; }
html body.ess-shell .ess-pm-actions > a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--shell-text);
    font-size: 13px;
    text-decoration: none;
}
html body.ess-shell .ess-pm-actions > a:hover { background: var(--shell-bg); }
/* styles.css has ".bigmenu a i { font-size: 40px }" - the profile menu keeps the .bigmenu class */
html body.ess-shell .ess-pm-actions > a > .fa { width: 18px; text-align: center; font-size: 15px !important; color: var(--shell-muted); }
html body.ess-shell .ess-pm-actions > a > img { width: 18px; height: 18px; object-fit: contain; opacity: .75; }
html body.ess-shell .ess-pm-actions > a.ess-pm-logout {
    margin-top: 4px;
    border-top: 1px solid var(--shell-line);
    border-radius: 0 0 8px 8px;
    color: #d9534f;
}
html body.ess-shell .ess-pm-actions > a.ess-pm-logout > .fa { color: #d9534f; }

/* ---- Notifications popup (Site.Master bell) ---- */
html body.ess-shell .ess-notif-menu { width: 370px; max-width: calc(100vw - 16px); overflow: hidden; list-style: none; }
/* .hdropdown.notification li in styles.css pads and greys every <li>; this outranks it. */
html body.ess-shell .ess-notif-menu.hdropdown > li { float: none; width: auto; padding: 0; margin: 0; background: transparent; list-style: none; }
html body.ess-shell .ess-np-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px !important; }
html body.ess-shell .ess-np-title { font-size: 15px; font-weight: 700; color: var(--shell-text); }
html body.ess-shell .ess-np-pill {
    min-width: 22px;
    padding: 1px 8px;
    border-radius: 10px;
    background: var(--shell-accent-soft);
    color: var(--shell-accent-dark);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}
html body.ess-shell .ess-np-link {
    margin-inline-start: auto;
    color: var(--shell-accent-dark) !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
html body.ess-shell .ess-np-link span,
html body.ess-shell .ess-np-danger span { color: inherit !important; font-weight: inherit; }
html body.ess-shell .ess-np-link strong,
html body.ess-shell .ess-np-danger strong { font-weight: inherit; }
html body.ess-shell .ess-np-tabs { display: flex; gap: 16px; padding: 0 16px !important; border-bottom: 1px solid #eef1f3; }
html body.ess-shell .ess-np-tabs > a {
    padding: 0 0 8px;
    border-bottom: 2px solid transparent;
    color: var(--shell-muted);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}
html body.ess-shell .ess-np-tabs > a.on { color: var(--shell-accent-dark); border-bottom-color: var(--shell-accent); }
html body.ess-shell .ess-np-list { max-height: 340px; overflow-y: auto; }
html body.ess-shell .ess-np-item {
    position: relative;
    display: flex;
    gap: 11px;
    padding: 11px 16px;
    border-bottom: 1px solid #f2f4f6;
    cursor: pointer;
}
html body.ess-shell .ess-np-item:hover { background: #f8fafb; }
html body.ess-shell .ess-np-item.is-unread { background: #f6fbfa; }
html body.ess-shell .ess-np-item.is-unread::before {
    content: "";
    position: absolute;
    inset-inline-start: 6px;
    top: 21px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--shell-accent);
}
html body.ess-shell .ess-np-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--shell-accent-soft);
    color: var(--shell-accent);
    font-size: 14px;
}
html body.ess-shell .ess-np-text { flex: 1; min-width: 0; }
html body.ess-shell .ess-np-msg { font-size: 12.5px; line-height: 1.4; color: var(--shell-text); overflow-wrap: anywhere; }
html body.ess-shell .ess-np-msg p { margin: 0; }
html body.ess-shell .ess-np-item.is-unread .ess-np-msg { font-weight: 600; }
html body.ess-shell .ess-np-date { margin-top: 3px; font-size: 11px; color: #636f78; }
html body.ess-shell .ess-np-actions { display: flex; gap: 2px; align-self: flex-start; opacity: 0; transition: opacity .12s ease; }
html body.ess-shell .ess-np-item:hover .ess-np-actions,
html body.ess-shell .ess-np-item:focus-within .ess-np-actions { opacity: 1; }
@media (hover: none) { html body.ess-shell .ess-np-actions { opacity: 1; } }
html body.ess-shell .ess-np-actions > a {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    color: var(--shell-muted);
    font-size: 12px;
}
html body.ess-shell .ess-np-actions > a:hover { background: #eef1f3; color: var(--shell-text); }
html body.ess-shell .ess-np-empty { padding: 30px 16px; text-align: center; color: #636f78; font-size: 12.5px; }
html body.ess-shell .ess-np-empty .fa { display: block; margin-bottom: 8px; font-size: 26px; color: #c7d0d6; }
html body.ess-shell .ess-np-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px !important;
    border-top: 1px solid #eef1f3;
}
html body.ess-shell .ess-np-foot .ess-np-link { margin-inline-start: 0; }
html body.ess-shell .ess-np-danger { color: #d9534f !important; font-size: 12px; font-weight: 600; text-decoration: none; cursor: pointer; }

/* ---- C-112420 (2026-10-03): side menu round 2 (Scripts/ess-menu.js) - the menu markup from Menus.ascx.cs is unchanged ---- */
/* search box: fits the menu, Ctrl K hint, clear button */
html body.ess-shell #dvPageProgress > #menu .search-menu { box-sizing: border-box; width: auto; max-width: calc(100% - 24px); }
html body.ess-shell #dvPageProgress > #menu .search-menu #txtSearchMenu { box-sizing: border-box; display: block; height: 36px; padding-inline: 32px 56px; border-color: #dfe4e8; border-radius: 9px; background: #f6f8f9; color: var(--shell-text); }
html body.ess-shell #dvPageProgress > #menu .search-menu #txtSearchMenu:focus { border-color: var(--shell-accent); background: #fff; box-shadow: 0 0 0 3px rgba(26, 179, 148, .15); outline: 0; }
html body.ess-shell #dvPageProgress > #menu .search-menu .fa-search { top: 11px; }
html body.ess-shell .ess-mn-kbd { position: absolute; inset-inline-end: 8px; top: 8px; padding: 1px 6px; border: 1px solid #dfe4e8; border-bottom-width: 2px; border-radius: 5px; background: #fff; color: var(--shell-muted); font-family: inherit; font-size: 10.5px; font-weight: 600; line-height: 1.5; box-shadow: none; pointer-events: none; }
html body.ess-shell .ess-mn-clear { display: none; position: absolute; inset-inline-end: 6px; top: 6px; width: 24px; height: 24px; padding: 0; border: 0; background: none; color: var(--shell-muted); cursor: pointer; }
html body.ess-shell .search-menu.has-q .ess-mn-kbd { display: none; }
html body.ess-shell .search-menu.has-q .ess-mn-clear { display: block; }
/* search results replace the menu while they show */
html body.ess-shell.ess-mn-searching #side-menu { display: none !important; }
html body.ess-shell #search-side-menu:not(.is-on) { display: none !important; }
html body.ess-shell #search-side-menu.is-on { padding: 2px 8px 0; margin: 0; }
html body.ess-shell #search-side-menu > li { padding: 0; background: none; color: inherit; }
html body.ess-shell #search-side-menu > li:hover { background: none; }
html body.ess-shell #search-side-menu .ess-mn-gh { display: flex !important; justify-content: space-between; margin: 8px 10px 2px; color: var(--shell-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; width: auto !important; }
html body.ess-shell #search-side-menu a.ess-mn-r { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 7px 10px; border-radius: 9px; color: var(--shell-text); font-size: 13px; line-height: 1.3; text-decoration: none; }
html body.ess-shell #search-side-menu a.ess-mn-r > .fa { width: 18px; flex: none; text-align: center; color: var(--shell-muted); }
html body.ess-shell #search-side-menu a.ess-mn-r > span { flex: 1; min-width: 0; }
html body.ess-shell #search-side-menu a.ess-mn-r small { display: block; color: var(--shell-muted); font-size: 11px; }
html body.ess-shell #search-side-menu a.ess-mn-r:hover { background: var(--shell-bg); }
html body.ess-shell #search-side-menu a.ess-mn-r.is-kb { background: #f0f3f5; box-shadow: inset 0 0 0 1px #c9d2d8; }
html body.ess-shell #search-side-menu mark { padding: 0 1px; border-radius: 2px; background: #fff1bf; color: inherit; }
html body.ess-shell #search-side-menu .ess-mn-empty { padding: 22px 12px !important; color: var(--shell-muted) !important; font-size: 12.5px; text-align: center; }
html body.ess-shell #search-side-menu .ess-mn-empty .fa { display: block; margin-bottom: 6px; color: #9aa5ae; font-size: 20px; }
html body.ess-shell #search-side-menu .ess-mn-kh { display: flex !important; justify-content: center; gap: 10px; margin: 8px -8px 0; padding: 8px !important; border-top: 1px solid #eef1f3; color: var(--shell-muted) !important; font-size: 10.5px; width: auto !important; }
html body.ess-shell #search-side-menu .ess-mn-kh kbd { padding: 0 5px; border: 1px solid #dfe4e8; border-radius: 4px; background: #fff; color: var(--shell-muted); font-family: inherit; font-size: 10px; font-weight: 600; line-height: 1.6; box-shadow: none; }
@media (pointer: coarse) { html body.ess-shell #search-side-menu .ess-mn-kh { display: none !important; } }
/* chevron: points to the side when closed, down when open (was an angle that still pointed left when open) */
html body.ess-shell #side-menu .fa.arrow { margin-inline-start: auto; float: none; color: #8a959d; font-size: 10px; transform: none; transition: transform .15s ease; }
html body.ess-shell #side-menu .fa.arrow:before,
html body.ess-shell #side-menu .active > a > .fa.arrow:before { content: "\f054"; }
html[dir="rtl"] body.ess-shell #side-menu .fa.arrow:before,
html[dir="rtl"] body.ess-shell #side-menu .active > a > .fa.arrow:before { content: "\f053"; }
html body.ess-shell #side-menu > li.active > a > .fa.arrow,
html body.ess-shell #side-menu > li > a[aria-expanded="true"] > .fa.arrow { transform: rotate(90deg); }
html[dir="rtl"] body.ess-shell #side-menu > li.active > a > .fa.arrow,
html[dir="rtl"] body.ess-shell #side-menu > li > a[aria-expanded="true"] > .fa.arrow { transform: rotate(-90deg); }
/* the group of the current page: teal icon */
html body.ess-shell #side-menu > li.ess-cur-grp > a > .fa:first-child { color: var(--shell-accent-dark); }
/* sub-pages: no small icons, the line shows the group; readable grey (was #6c7a86, 4.4:1) */
html body.ess-shell #side-menu .nav-second-level { margin-inline: 28px 10px; border-inline-start: 1px solid #e3e7ea; }
html body.ess-shell #side-menu .nav-second-level > li > a > .fa,
html body.ess-shell #side-menu .nav-second-level > li > a > span.fa,
html body.ess-shell #side-menu .nav-second-level > li > a > span:first-child:empty { display: none; }
html body.ess-shell #side-menu .nav-second-level > li > a { margin-inline-start: 6px; padding: 7px 10px; color: #45525c; line-height: 1.3; }
html body.ess-shell #side-menu .nav-second-level > li.ess-current > a { margin-inline-start: 6px; box-shadow: inset 3px 0 0 #11806b; }
html[dir="rtl"] body.ess-shell #side-menu .nav-second-level > li.ess-current > a { box-shadow: inset -3px 0 0 #11806b; }
html body.ess-shell #side-menu > li > a { line-height: 1.3; }
/* "new" tag (was images/new-icon.gif) */
html body.ess-shell .ess-mn-new { display: inline-block; flex: none; margin-inline-start: 6px; padding: 1px 6px; border-radius: 9px; background: #fff4dc; color: #8a5a00; font-size: 9.5px; font-weight: 800; letter-spacing: .03em; line-height: 1.4; text-transform: uppercase; vertical-align: middle; }
/* collapsed rail: search icon; a group's pages pop out beside it */
html body.ess-shell .ess-mn-railsearch { display: none; }
html body.ess-shell.hide-sidebar:not(.page-small) .ess-mn-railsearch { display: grid; place-items: center; width: 40px; height: 36px; margin: 8px auto 2px; border: 1px solid var(--shell-line); border-radius: 9px; background: #fff; color: var(--shell-muted); cursor: pointer; }
html body.ess-shell.hide-sidebar:not(.page-small) .ess-mn-railsearch:hover { border-color: var(--shell-accent); color: var(--shell-accent-dark); }
html body.ess-shell.hide-sidebar:not(.page-small) #side-menu > li.ess-cur-grp > a { background: var(--shell-accent-soft); position: relative; }
html body.ess-shell.hide-sidebar:not(.page-small) #side-menu > li.ess-cur-grp > a:after { content: ""; position: absolute; inset-inline-end: 5px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: #11806b; }
.ess-mn-fly { position: fixed; z-index: 1060; width: 250px; max-height: calc(100vh - 16px); overflow-y: auto; padding: 8px; border: 1px solid #e3e7ea; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .14); text-align: start; }
.ess-mn-fly[hidden] { display: none; }
.ess-mn-fly h5 { display: flex; align-items: center; gap: 8px; margin: 4px 10px 6px; color: #2f3b45; font-size: 12.5px; font-weight: 700; }
.ess-mn-fly h5 .fa { color: #0f7d68; }
.ess-mn-fly a { display: block; padding: 7px 10px; border-radius: 9px; color: #45525c; font-size: 12.5px; line-height: 1.3; text-decoration: none; }
.ess-mn-fly a:hover, .ess-mn-fly a:focus { background: #f4f6f8; color: #2f3b45; outline: 0; }
.ess-mn-fly a:focus-visible { box-shadow: inset 0 0 0 2px #1ab394; }
.ess-mn-fly a.is-cur { background: #e8f7f3; color: #0f7d68; font-weight: 600; }
/* phone drawer: close button */
html body.ess-shell .ess-mn-x { display: none; }
html body.ess-shell.page-small .ess-mn-x { display: grid; place-items: center; flex: none; width: 32px; height: 32px; margin-inline-start: auto; padding: 0; border: 1px solid var(--shell-line); border-radius: 8px; background: #fff; color: var(--shell-muted); }
html body.ess-shell.page-small .ess-mn-kbd { display: none; }   /* phones: no keyboard hint */
@media (pointer: coarse) { html body.ess-shell .ess-mn-kbd { display: none; } }

/* C-112420 (2026-10-03): camera badge on the sidebar profile photo (Change picture) */
html body.ess-shell .ess-profile-row .dropdown > a { position: relative; display: inline-block; }
html body.ess-shell .ess-pic-cam { position: absolute; inset-inline-end: -3px; bottom: -3px; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #dfe4e8; border-radius: 50%; background: #fff; color: #636f78; font-size: 9px; line-height: 1; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); pointer-events: none; }
html body.ess-shell .ess-profile-row .dropdown > a:hover .ess-pic-cam { border-color: #1ab394; color: #0f7d68; }

/* ---- C-112420 (2026-10-03): header bar + footer round 2 ---- */
/* header: the icons on the right (C-112380: the "Search pages" button that sat in the middle is removed) */
html body.ess-shell #header .header-legacy-row > .navbar-right { margin-inline-start: auto !important; }
/* the logo: no stray line under it (an old #logo border-bottom sat on top of the header line) */
html body.ess-shell #logo, html body.ess-shell #logo > span { border: 0 !important; box-shadow: none !important; }
/* bell: unread count as a red badge (#c9302c: white text 5.3:1; was #ed5565, 3.3:1) */
html body.ess-shell #header .nav-icon-btn .label,
html body.ess-shell #header .nav-icon-btn .labelTop { background: #c9302c; border: 2px solid #fff; min-width: 18px; height: 18px; line-height: 14px; font-weight: 700; top: 2px; }
/* profile chip: first name with the login under it, and a chevron */
html body.ess-shell .ess-chip-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; text-align: start; }
html body.ess-shell .ess-chip-first { max-width: 140px; overflow: hidden; color: var(--shell-text); font-size: 12.5px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
html body.ess-shell .ess-chip-first:empty { display: none; }
html body.ess-shell .ess-chip-first:not(:empty) + #lblEmployeeId { color: var(--shell-muted); font-size: 10.5px !important; font-weight: 400; }
html body.ess-shell .ess-chip-cv { color: #8a959d; font-size: 9px; }
/* footer: white bar, same texts and links, Back to top */
html body.ess-shell footer.ess-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; min-height: 52px; padding: 10px 20px; border-top: 1px solid var(--shell-line); background: #fff; filter: none; color: var(--shell-muted); font-size: 12px; font-weight: 400; }
html body.ess-shell .ess-foot-l { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
html body.ess-shell .ess-foot-dot { color: #c3cad0; }
html body.ess-shell .ess-foot a#linkAbout, html body.ess-shell .ess-foot #SDAbout { color: var(--shell-accent-dark); font-weight: 600; text-decoration: none; float: none; }
html body.ess-shell .ess-foot a#linkAbout:hover #SDAbout { text-decoration: underline; }
html body.ess-shell .ess-foot-pw { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; color: var(--shell-muted); text-decoration: none; }
html body.ess-shell .ess-foot-pw img { height: 22px; width: auto; }
html body.ess-shell .ess-totop { position: fixed; z-index: 1030; inset-inline-end: 18px; bottom: 72px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #dfe4e8; border-radius: 50%; background: #fff; color: var(--shell-accent-dark); box-shadow: 0 4px 12px rgba(0, 0, 0, .12); cursor: pointer; }
html body.ess-shell .ess-totop[hidden] { display: none; }
html body.ess-shell .ess-totop:hover { border-color: var(--shell-accent); }
@media print { html body.ess-shell .ess-totop { display: none !important; } }
/* phones: the whole logo (scaled), footer in two centred lines */
@media (max-width: 768px) {
    html body.ess-shell #logo { display: flex !important; }
    html body.ess-shell #logo img { max-height: 30px !important; max-width: 118px !important; }
    html body.ess-shell #header .small-logo { display: none !important; }
    html body.ess-shell .ess-chip-who, html body.ess-shell .ess-chip-cv { display: none; }
    html body.ess-shell footer.ess-foot { flex-direction: column; justify-content: center; text-align: center; }
    html body.ess-shell .ess-foot-l { justify-content: center; }
    html body.ess-shell .ess-foot-pw { margin: 0; }
}

/* C-112420 (2026-10-03): on short pages the footer stays at the bottom of the screen (layout only) */
html body.ess-shell #dvPageProgress > #wrapper { display: flex; flex-direction: column; min-height: calc(100vh - var(--shell-header-h)); }
html body.ess-shell #dvPageProgress > #wrapper > .content { flex: 1 0 auto; }
html body.ess-shell #dvPageProgress > #wrapper > footer { flex: none; }

/* ---- C-112420 (2026-10-03): bell popup + profile menu round 2 ---- */
/* bell popup */
html body.ess-shell .ess-np-pill { background: #fdecea !important; color: #b0322c !important; }
html body.ess-shell .ess-np-tc { display: inline-block; min-width: 18px; margin-inline-start: 5px; padding: 0 5px; border-radius: 9px; background: #eef1f3; color: #3f4b54; font-size: 10.5px; font-weight: 700; line-height: 16px; text-align: center; }
html body.ess-shell .ess-np-tabs > a.on .ess-np-tc { background: var(--shell-accent-soft); color: var(--shell-accent-dark); }
html body.ess-shell .ess-np-gh { padding: 8px 16px 3px; color: var(--shell-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
html body.ess-shell .ess-np-subj { margin-bottom: 1px; color: var(--shell-text); font-size: 12.5px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
html body.ess-shell .ess-np-item.is-unread .ess-np-subj + .ess-np-msg { font-weight: 400; }
html body.ess-shell .ess-np-msg { color: #3f4b54; }
html body.ess-shell .ess-np-date span[title] { cursor: help; }
html body.ess-shell .ess-np-empty b { display: block; margin-bottom: 2px; color: var(--shell-text); font-size: 13px; }
html body.ess-shell .ess-np-empty .fa { color: #9fd9cb; }
html body.ess-shell .ess-np-link.popup-action-disabled { cursor: not-allowed; }
/* profile menu: ID + username, info as tiles, enabled-looking dropdowns, hints + chevrons, current page */
html body.ess-shell .ess-pm-ids { margin-top: 2px; color: var(--shell-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
html body.ess-shell .ess-pm-ids span:empty { display: none; }
html body.ess-shell .ess-pm-info { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
html body.ess-shell .ess-pm-row { flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 9px; border-radius: 9px; background: #f6f8f9; }
html body.ess-shell .ess-pm-row > .fa { display: none; }
html body.ess-shell .ess-pm-row .ess-pm-k { font-size: 10.5px; }
html body.ess-shell .ess-pm-row .ess-pm-v { margin: 0; text-align: start; font-size: 11.5px; font-weight: 600; }
html body.ess-shell .ess-pm-row #topPanelLastLogin.ess-pm-raw { display: none; }
html body.ess-shell .ess-pm-when:empty { display: none; }
html body.ess-shell .ess-pm-when { cursor: help; }
html body.ess-shell .ess-pm-settings .chosen-container .chosen-single { border-color: #c9d2d8; color: var(--shell-text) !important; }   /* was #9d9fa2 text (2.6:1) - looked disabled */
html body.ess-shell .ess-pm-settings .chosen-container .chosen-single span { color: var(--shell-text) !important; }
html body.ess-shell .ess-pm-actions > a { gap: 10px; }
html body.ess-shell .ess-pm-actions > a > .fa:first-child { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #f3f6f8; font-size: 13px !important; }
html body.ess-shell .ess-pm-a { flex: 1; min-width: 0; line-height: 1.3; }
html body.ess-shell .ess-pm-a small { display: block; color: var(--shell-muted); font-size: 11px; }
html body.ess-shell .ess-pm-cv { width: auto !important; color: #9aa5ae !important; font-size: 10px !important; }
html[dir="rtl"] body.ess-shell .ess-pm-cv { transform: scaleX(-1); }
html body.ess-shell .ess-pm-actions > a.is-cur { background: var(--shell-accent-soft); color: var(--shell-accent-dark); font-weight: 600; }
html body.ess-shell .ess-pm-actions > a.is-cur > .fa:first-child { background: #fff; color: var(--shell-accent-dark); }
html body.ess-shell .ess-pm-actions > a.ess-pm-logout > .fa:first-child { background: #fdecea; color: #b0322c; }
html body.ess-shell .ess-pm-actions > a.ess-pm-logout { color: #b0322c; }
html body.ess-shell .ess-pm-actions > a, html body.ess-shell .ess-pm-a { text-align: start; }
/* styles.css ".bigmenu a { margin: 0 10px 7px 0 }" adds a RIGHT margin that does not flip in Arabic: the link icons sat
   10px inside the Refresh Data icon. No side margins, so every row (and its icon) lines up in both directions. */
html body.ess-shell .ess-pm-actions > a { margin-left: 0; margin-right: 0; }
/* Log out arrow points out of the reading direction: mirrored in Arabic, like the row chevrons. */
html[dir="rtl"] body.ess-shell .ess-pm-actions > a.ess-pm-logout > .fa-sign-out { transform: scaleX(-1); }
/* C-112420 (2026-10-06): "Refresh Data" - first row of the profile menu (Scripts/ess-cache.js). Same row as the links
   below it, with a teal icon tile; separated from them by a line. While resting (once per BrowserCache.RefreshRestSeconds)
   the icon greys and a ring shows the time left; the row's second line says why. */
html body.ess-shell .ess-pm-actions > button.ess-pm-refresh {
    display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 4px; padding: 9px 10px 11px;
    border: 0; border-bottom: 1px solid var(--shell-line); border-radius: 8px 8px 0 0; background: none;
    color: var(--shell-text); font: inherit; font-size: 13px; text-align: start; cursor: pointer;
}
html body.ess-shell .ess-pm-actions > button.ess-pm-refresh[hidden] { display: none; }
html body.ess-shell .ess-pm-actions > button.ess-pm-refresh:hover { background: var(--shell-bg); }
html body.ess-shell .ess-pm-actions > button.ess-pm-refresh:focus-visible { outline: 2px solid var(--shell-accent); outline-offset: 1px; }
html body.ess-shell .ess-pmr-ic { position: relative; display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--shell-accent-soft); color: var(--shell-accent-dark); }
html body.ess-shell .ess-pmr-ic > .fa { width: auto; font-size: 13px !important; color: inherit; }
html body.ess-shell .ess-pmr-ring { position: absolute; inset: 0; display: none; }
html body.ess-shell .ess-pm-refresh.is-busy .ess-pmr-ic > .fa { animation: essPmrSpin .9s linear infinite; }
html body.ess-shell .ess-pm-refresh.is-rest { cursor: not-allowed; }
html body.ess-shell .ess-pm-refresh.is-rest .ess-pmr-ic { background: #fff; color: #9aa5ad; }
html body.ess-shell .ess-pm-refresh.is-rest .ess-pmr-ring { display: block; }
html body.ess-shell .ess-pm-refresh.is-rest .ess-pmr-t { color: #5b6770; }
@keyframes essPmrSpin { to { transform: rotate(360deg); } }
/* C-112420 (2026-10-03): profile menu - the email on its own full-width row, one line (tooltip + copy button); last login and phone side by side */
html body.ess-shell .ess-pm-row[data-ess-hide-if-empty="topPanelEmail"] { grid-column: 1 / -1; order: 3; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 6px; align-items: center; }
html body.ess-shell .ess-pm-row[data-ess-hide-if-empty="topPanelEmail"][hidden] { display: none; }
html body.ess-shell .ess-pm-row[data-ess-hide-if-empty="topPanelEmail"] .ess-pm-k { grid-column: 1 / -1; }
html body.ess-shell #topPanelEmail { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; overflow-wrap: normal; }
html body.ess-shell .ess-pm-copy { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid #dfe4e8; border-radius: 7px; background: #fff; color: #636f78; font-size: 11px; cursor: pointer; }
html body.ess-shell .ess-pm-copy:hover, html body.ess-shell .ess-pm-copy:focus-visible { border-color: #1ab394; color: #0f7d68; outline: none; }
html body.ess-shell .ess-pm-copy.is-ok { border-color: #1ab394; color: #0f7d68; }

/* ---- C-112420 (2026-10-04): "Change picture" menu under the sidebar photo + the "Change display picture" window (new design) ---- */
html body.ess-shell .ess-profile-row .dropdown-menu.ess-pic-menu { min-width: 210px; margin-top: 6px; padding: 6px; border: 1px solid #e3e7ea; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .14); }
html body.ess-shell .ess-pic-menu li a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: #26323b; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
html body.ess-shell .ess-pic-menu li a:hover, html body.ess-shell .ess-pic-menu li a:focus-visible { background: #f2fbf8; color: #0f7d68; outline: none; }
html body.ess-shell .ess-pic-menu-ic { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: #e8f7f3; color: #0f7d68; font-size: 13px; }
#modalChangePicture .ess-picdlg { max-width: 720px; }
#modalChangePicture .ess-picdlg .modal-content { overflow: hidden; border: 0; border-radius: 16px; box-shadow: 0 18px 44px rgba(0, 0, 0, .28); color: #26323b; }
#modalChangePicture .ess-picdlg-h { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #eef1f3; }
#modalChangePicture .ess-picdlg-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: #e8f7f3; color: #0f7d68; font-size: 16px; }
#modalChangePicture .ess-picdlg-t { flex: 1; min-width: 0; }
#modalChangePicture .ess-picdlg-t h3 { margin: 0; font-size: 16px; font-weight: 700; }
#modalChangePicture .ess-picdlg-t p { margin: 2px 0 0; color: #636f78; font-size: 12.5px; }
#modalChangePicture .ess-picdlg-x { display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #f2f4f6; color: #5b6770; font-size: 20px; line-height: 1; }
#modalChangePicture .ess-picdlg-x:hover, #modalChangePicture .ess-picdlg-x:focus-visible { background: #e3e7ea; color: #26323b; outline: none; }
#modalChangePicture .ess-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#modalChangePicture .ess-picdlg-b { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 18px; padding: 18px; }
#modalChangePicture .ess-picdlg-crop { display: flex; flex-direction: column; align-items: center; min-width: 0; }
#modalChangePicture .ess-picdlg-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
#modalChangePicture .ess-picdlg-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 300px; margin: 0; padding: 20px; border: 2px dashed #cfd6db; border-radius: 14px; background: #fbfcfd; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
#modalChangePicture .ess-picdlg-drop:hover, #modalChangePicture .ess-picdlg-file:focus-visible + .ess-picdlg-drop { border-color: #1ab394; background: #f2fbf8; }
#modalChangePicture .ess-picdlg-dic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 50%; background: #e8f7f3; color: #0f7d68; font-size: 22px; }
#modalChangePicture .ess-picdlg-drop b { color: #0f7d68; font-size: 14px; }
#modalChangePicture .ess-picdlg-drop small { color: #636f78; font-size: 12px; }
#modalChangePicture .ess-picdlg-host { border-radius: 14px; background: #f4f6f8; }
#modalChangePicture .ess-picdlg-other { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 6px 10px; border-radius: 8px; color: #0f7d68; font-size: 12.5px; font-weight: 600; cursor: pointer; }
#modalChangePicture .ess-picdlg-other:hover { background: #f2fbf8; }
#modalChangePicture .ess-picdlg-pv { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; border-radius: 14px; background: #f7f9fa; text-align: center; align-self: start; }
#modalChangePicture .ess-picdlg-pvl { color: #636f78; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
#modalChangePicture .ess-picdlg-circle { width: 120px; height: 120px; overflow: hidden; border: 3px solid #fff; border-radius: 50%; background: #e3e7ea; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
#modalChangePicture .ess-picdlg-circle img { display: block; width: 100%; height: 100%; object-fit: cover; }
#modalChangePicture .ess-picdlg-pv small { color: #636f78; font-size: 12px; }
#modalChangePicture .ess-picdlg-pv small.is-new { color: #0f7d68; font-weight: 600; }
#modalChangePicture .ess-picdlg-f { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid #eef1f3; }
#modalChangePicture .ess-picdlg-why { margin-inline-end: auto; color: #636f78; font-size: 12px; }
#modalChangePicture .ess-picdlg-f .btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 10px; font-weight: 600; }
#modalChangePicture .ess-picdlg-save[disabled] { opacity: .55; cursor: not-allowed; }
@media (max-width: 640px) {
    #modalChangePicture .ess-picdlg-b { grid-template-columns: 1fr; }
    #modalChangePicture .ess-picdlg-drop { min-height: 200px; }
}

/* ---- C-112420 (2026-10-04): the standard dropdown over an existing <select> for non-Alpine use (Scripts/ess-selpick.js), moved here from
   ess-page.css because the header language / time zone lists use it on every page. The select (and its chosen box) stays, hidden. ---- */
select.ess-sp-hid, select.ess-sp-hid + .chosen-container { display: none !important; }
.ess-sp { position: relative; }
.ess-sp .pv-trig { display: flex; align-items: center; gap: 8px; width: 100%; height: 38px; padding: 0 12px; border: 1px solid #dfe4e8; border-radius: 10px; background: #fff; color: #2f3b45; font-size: 13px; text-align: start; }
.ess-sp .pv-trig:hover:not([disabled]), .ess-sp .pv-trig:focus-visible, .ess-sp .pv-trig.is-open { border-color: #1ab394; box-shadow: 0 0 0 3px rgba(26, 179, 148, .12); outline: none; }
.ess-sp .pv-trig[disabled] { background: #f6f8f9; color: #636f78; cursor: not-allowed; }
.ess-sp .pv-trig.is-empty .pv-trig-t { color: #636f78; }
.ess-sp .pv-trig-t { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ess-sp .pv-trig-dd { color: #636f78; font-size: 16px; transition: transform .15s; }
.ess-sp .pv-trig.is-open .pv-trig-dd { transform: rotate(180deg); }
.ess-sp .pv-panel { position: absolute; z-index: 1060; top: calc(100% + 6px); inset-inline-start: 0; width: max(100%, 300px); max-width: calc(100vw - 32px); border-radius: 14px; background: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); overflow: hidden; font-size: 13px; }
.ess-sp .pv-panel.is-up { top: auto; bottom: calc(100% + 6px); }   /* (2026-10-04) opens upward near the page bottom (ess-selpick.js place) */
.ess-sp .pv-panel[hidden] { display: none; }
.ess-sp .pv-ps { display: flex; align-items: center; gap: 8px; margin: 10px; padding: 0 10px; height: 38px; border: 1px solid #dfe4e8; border-radius: 10px; color: #636f78; }
.ess-sp .pv-ps:focus-within { border-color: #1ab394; }
.ess-sp .pv-ps input { flex: 1; min-width: 0; height: 36px; border: 0; outline: none; background: none; color: #2f3b45; font-size: 13px; }
.ess-sp .pv-plist { max-height: 340px; overflow-y: auto; padding: 4px 0 6px; outline: none; }
.ess-sp .pv-ph { padding: 8px 14px 4px; color: #636f78; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ess-sp .pv-opt { display: flex; align-items: center; gap: 10px; padding: 8px 14px; cursor: pointer; }
.ess-sp .pv-opt.is-hl, .ess-sp .pv-opt:hover { background: #eef7f4; }
.ess-sp .pv-oi { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: #f2f4f6; color: #5b6770; font-size: 13px; }
.ess-sp .pv-opt.is-sel .pv-oi { background: #e8f7f3; color: #0f7d68; }
.ess-sp .pv-ot { flex: 1; min-width: 0; }
.ess-sp .pv-ot b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.ess-sp .pv-ot small { display: block; color: #636f78; font-size: 11.5px; }   /* (2026-10-05) optional second line / code / badge (ess-selpick.js fmt) */
.ess-sp .pv-oc { font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
.ess-sp .pv-bdg { flex: none; padding: 1px 7px; border-radius: 7px; background: #eaf2fb; color: #2c6aa8; font-size: 10.5px; font-weight: 700; }
.ess-sp .pv-ck { flex: none; color: #1ab394; }
.ess-sp .pv-pnone { padding: 14px; color: #636f78; font-size: 12.5px; text-align: center; }
.ess-sp .pv-pf { display: flex; flex-wrap: wrap; gap: 12px; padding: 8px 14px; border-top: 1px solid #f2f4f6; background: #fbfcfd; color: #636f78; font-size: 11px; }
.ess-sp .pv-pf kbd { margin-inline-end: 2px; padding: 0 5px; border: 1px solid #dfe4e8; border-radius: 4px; background: #fff; color: #5b6770; font-family: inherit; font-size: 10.5px; box-shadow: none; }
.ess-sp .pv-trig.is-req { border-color: #e2a6a3; }

/* ---- C-112420 (2026-10-04): the standard calendar look on EVERY date box (bootstrap-datepicker / smartDate popup) - Site.Master and
   ComSys.Master give <body> the ess-dp-std class; the same rules as before (moved here from ess-page.css; ess-tom.css keeps its copy + page extras) ---- */
.ess-dp-std .datepicker.dropdown-menu { padding: 10px; border: 0; border-radius: 14px; box-shadow: 0 14px 36px rgba(0, 0, 0, .2); font-size: 12.5px; }
.ess-dp-std .datepicker table tr td, .ess-dp-std .datepicker table tr th { width: 34px; height: 32px; border-radius: 50%; }
.ess-dp-std .datepicker table tr th.datepicker-switch, .ess-dp-std .datepicker table tr th.prev, .ess-dp-std .datepicker table tr th.next { border-radius: 8px; font-weight: 700; }
.ess-dp-std .datepicker table tr th.dow { color: #636f78; font-size: 11px; font-weight: 600; }
.ess-dp-std .datepicker table tr td.day:hover, .ess-dp-std .datepicker table tr td span:hover { background: #eef7f4; }
.ess-dp-std .datepicker table tr td.today, .ess-dp-std .datepicker table tr td.today:hover { background: none !important; box-shadow: inset 0 0 0 2px #1ab394; color: inherit; }
.ess-dp-std .datepicker table tr td.active, .ess-dp-std .datepicker table tr td.active:hover, .ess-dp-std .datepicker table tr td.active.today, .ess-dp-std .datepicker table tr td span.active { background: var(--ep-accent-strong-dark, #0d6b59) !important; background-image: none !important; box-shadow: none; color: #fff !important; text-shadow: none; }
.ess-dp-std .datepicker table tr td.disabled, .ess-dp-std .datepicker table tr td.disabled:hover { background: none; color: #c3cad0; text-decoration: line-through; }
.ess-dp-std .datepicker table tr td.old, .ess-dp-std .datepicker table tr td.new { color: #c3cad0; }
.ess-dp-std .datepicker table tr td span { border-radius: 10px; }
.ess-dp-std .datepicker table tr td.ess-today:not(.active) { box-shadow: inset 0 0 0 2px #1ab394; }
.ess-dp-std .datepicker .ess-dp-title { display: block; margin: 0; padding: 2px 4px 8px; font-size: 13.5px; font-weight: 700; color: #26323b; }
.ess-dp-std .datepicker .ess-dp-hj { display: block; margin: 8px 0 0; padding: 8px 10px; border-radius: 9px; background: #f7f9fa; color: #5b6770; font-size: 11.5px; }
.ess-dp-std .datepicker .ess-dp-hj a { color: #2c6aa8; text-decoration: underline; }
.ess-dp-std .datepicker .ess-dp-legend { display: flex; margin: 6px 0 0; gap: 12px; padding: 8px 4px 0; border-top: 1px solid #f2f4f6; color: #636f78; font-size: 11px; }
.ess-dp-std .datepicker .ess-dp-legend i { display: inline-block; width: 10px; height: 10px; margin-inline-end: 4px; border-radius: 50%; vertical-align: -1px; }
.ess-dp-std .datepicker .ess-dp-legend i.is-today { box-shadow: inset 0 0 0 2px #1ab394; }
.ess-dp-std .datepicker .ess-dp-legend i.is-sel { background: #1ab394; }

/* C-112420 (2026-10-06): the standard message window drawn by Scripts/ess-leave.js (root .ess-lv-shared). Both masters load that
   script, but its look lived only in ess-page.css / ess-tom.css, so pages without them (e.g. the dashboard) showed it unstyled.
   Same values as those files, scoped to the shared window; plus the info tone and the "What you can do" box. */
.ess-lv-shared.ess-ov { position: fixed; inset: 0; z-index: 1090; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 30, 38, .45); }
.ess-lv-shared .ess-ov-dlg { width: 100%; max-height: calc(100vh - 32px); overflow: auto; background: #fff; box-shadow: 0 18px 44px rgba(0, 0, 0, .28); color: #26323b; }
.ess-lv-shared .ess-lv { max-width: 460px; border-radius: 16px; }
.ess-lv-shared .ess-lv-h { padding: 24px 24px 4px; text-align: center; }
.ess-lv-shared .ess-lv-ic { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: #fff4dc; color: #b7791f; font-size: 22px; }
.ess-lv-shared .ess-lv-ic.is-info { background: #e7f0fb; color: #2c5a8c; }
.ess-lv-shared .ess-lv-h h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.ess-lv-shared .ess-lv-h p { margin: 0; color: #636f78; font-size: 12.5px; line-height: 1.5; }
.ess-lv-shared .ess-lv-list { margin: 14px 24px 4px; border: 1px solid #eef1f3; border-radius: 12px; overflow: hidden; }
.ess-lv-shared .ess-lv-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #f2f4f6; font-size: 13px; }
.ess-lv-shared .ess-lv-row:last-child { border-bottom: 0; }
.ess-lv-shared .ess-lv-ri { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: #f2f4f6; color: #5b6770; }
.ess-lv-shared .ess-lv-row small { flex: none; width: 84px; color: #636f78; font-size: 12px; }
.ess-lv-shared .ess-lv-row b { min-width: 0; font-weight: 600; overflow-wrap: anywhere; unicode-bidi: plaintext; }
.ess-lv-shared .ess-lv-steps { margin: 12px 24px 0; padding: 12px 14px; border-radius: 12px; background: #f5f7f9; color: #2f3b45; font-size: 12.5px; line-height: 1.55; text-align: start; }
.ess-lv-shared .ess-lv-steps > b { display: block; margin-bottom: 4px; }
.ess-lv-shared .ess-lv-steps ol { margin: 0; padding-inline-start: 18px; }
.ess-lv-shared .ess-lv-f { display: flex; align-items: center; gap: 8px; padding: 16px 24px 22px; }
.ess-lv-shared .ess-lv-go { padding: 8px 2px; border: 0; background: none; color: #b0322c; font-size: 13px; font-weight: 600; }
.ess-lv-shared .ess-lv-stay { height: 38px; padding: 0 18px; border-radius: 10px; font-weight: 600; }
.ess-lv-shared .ess-lv-f .ess-lv-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid #d5dbe0; border-radius: 10px; background: #fff; color: #2f3b45; font-weight: 600; }
.ess-lv-shared .ess-lv-f .ess-lv-btn.is-done { border-color: #9fd4c6; color: #0f7d68; }

/* C-112420 (2026-10-06): month / year / decade views of the standard calendar - the day-cell rule above (34x32px round cells) also
   hit the one wide cell that holds the 12 months (or years), crushing them into a 34px column (Monthly Timesheet Approval's Payroll
   Month, and the year view of every date calendar). Their own size here: a full-width grid, four per row, rounded tiles. */
/* C-112420 (2026-10-08): 238px = the day grid (7 x 34px), so the calendar no longer jumps in size when the month / year view opens (was 252px);
   in Arabic the month / year tiles run right to left like the days (they floated left). */
.ess-dp-std .datepicker .datepicker-months table, .ess-dp-std .datepicker .datepicker-years table, .ess-dp-std .datepicker .datepicker-decades table, .ess-dp-std .datepicker .datepicker-centuries table { width: 238px; }
[dir=rtl] .ess-dp-std .datepicker .datepicker-months table tr td span, [dir=rtl] .ess-dp-std .datepicker .datepicker-years table tr td span, [dir=rtl] .ess-dp-std .datepicker .datepicker-decades table tr td span, [dir=rtl] .ess-dp-std .datepicker .datepicker-centuries table tr td span { float: right; }
.ess-dp-std .datepicker .datepicker-months table tr td, .ess-dp-std .datepicker .datepicker-years table tr td, .ess-dp-std .datepicker .datepicker-decades table tr td, .ess-dp-std .datepicker .datepicker-centuries table tr td { width: auto; height: auto; padding: 4px 0 0; border-radius: 0; background: none; box-shadow: none; }
.ess-dp-std .datepicker .datepicker-months table tr td span, .ess-dp-std .datepicker .datepicker-years table tr td span, .ess-dp-std .datepicker .datepicker-decades table tr td span, .ess-dp-std .datepicker .datepicker-centuries table tr td span { display: block; float: left; width: 23%; height: 44px; margin: 1%; line-height: 44px; border-radius: 10px; font-size: 13px; font-weight: 600; text-align: center; }
.ess-dp-std .datepicker .datepicker-months table tr td span.focused, .ess-dp-std .datepicker .datepicker-years table tr td span.focused { box-shadow: inset 0 0 0 2px #1ab394; background: none; }
