/* =====================================================================
   eSuite — top-navigation "Shortcuts" panel
   Search · Pinned · Recent · All areas, rendered inside the navbar's navy
   dropdown (#esNav .dropdown-menu). Tokens only (--es-*); flat/calm; aqua
   accent for pinned + active. No carousel — items are plain links.

   Scoped to #esNav so nothing leaks onto other menus.
   ===================================================================== */

/* ── The panel (a wider navy dropdown) ─────────────────────────────── */
#esNav .es-navsc-menu {
    width: 320px;
    max-width: 92vw;
    max-height: 78vh;
    overflow-y: auto;
    padding: 10px;
}

/* ── Search box ────────────────────────────────────────────────────── */
#esNav .es-navsc-search {
    position: relative;
    margin-bottom: 8px;
}
#esNav .es-navsc-search > i {
    position: absolute;
    top: 50%;
    left: 11px;
    transform: translateY(-50%);
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
    pointer-events: none;
}
#esNav .es-navsc-search > input {
    width: 100%;
    height: 36px;
    padding: 0 12px 0 32px;
    font-size: 13px;
    color: #fff;
    background-color: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    outline: none;
    transition: border-color .14s ease, background-color .14s ease;
}
#esNav .es-navsc-search > input::placeholder { color: rgba(255, 255, 255, .5); }
#esNav .es-navsc-search > input:focus {
    background-color: rgba(255, 255, 255, .12);
    border-color: var(--es-aqua-500, #00AEEF);
    box-shadow: 0 0 0 2px rgba(0, 174, 239, .35);
}

/* ── Group headings ────────────────────────────────────────────────── */
#esNav .es-navsc-grouphd {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px 4px 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}
#esNav .es-navsc-grouphd > i { font-size: 11px; opacity: .85; }

/* ── Lists + rows ──────────────────────────────────────────────────── */
#esNav .es-navsc-list { list-style: none; margin: 0; padding: 0; }

/* The [hidden] attribute (search filtering) must win over the flex display below. */
#esNav .es-navsc-menu [hidden] { display: none !important; }

#esNav .es-navsc-item {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 6px;
}
#esNav .es-navsc-item > a {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 7px 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, .85) !important;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    transition: background-color .14s ease, opacity .14s ease;
}
#esNav .es-navsc-item > a > i { width: 16px; text-align: center; font-size: 14px; flex: 0 0 auto; opacity: .9; }
#esNav .es-navsc-label { overflow: hidden; text-overflow: ellipsis; }

#esNav .es-navsc-item > a:hover,
#esNav .es-navsc-item > a:focus { background-color: rgba(255, 255, 255, .12); color: #fff !important; }

/* Active/current area — aqua tint + 3px aqua left rail. */
#esNav .es-navsc-item.is-current > a {
    background-color: rgba(0, 174, 239, .16);
    color: #fff !important;
    box-shadow: inset 3px 0 0 0 var(--es-aqua-500, #00AEEF);
}

/* Empty state. */
#esNav .es-navsc-empty {
    padding: 8px 10px;
    font-size: 12px;
    font-style: italic;
    color: rgba(255, 255, 255, .5);
}

/* ── "All areas" — sections + sub-lists ────────────────────────────── */
#esNav .es-navsc-section { margin-bottom: 2px; }
#esNav .es-navsc-sectionhd {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 4px 2px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .72);
}
#esNav .es-navsc-sectionhd > i { width: 16px; text-align: center; font-size: 12px; opacity: .8; }
#esNav .es-navsc-sectionhd > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#esNav .es-navsc-sublist { padding-left: 6px; }

/* ── Pin toggle button ─────────────────────────────────────────────── */
#esNav .es-pin-toggle {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 2px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: rgba(255, 255, 255, .45);
    cursor: pointer;
    opacity: 0;
    transition: opacity .12s ease, color .12s ease, background-color .12s ease;
}
#esNav .es-navsc-item:hover .es-pin-toggle,
#esNav .es-navsc-sectionhd .es-pin-toggle,
#esNav .es-pin-toggle:focus,
#esNav .es-pin-toggle.is-pinned { opacity: 1; }
#esNav .es-pin-toggle:hover { background-color: rgba(255, 255, 255, .12); color: #fff; }
#esNav .es-pin-toggle.is-pinned { color: var(--es-aqua-500, #00AEEF); }
#esNav .es-pin-toggle:focus-visible { outline: 2px solid var(--es-aqua-500, #00AEEF); outline-offset: 1px; }

/* ── Pin grip (drag/keyboard reorder handle) ───────────────────────── */
#esNav .es-pin-grip {
    flex: 0 0 auto;
    width: 20px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, .38);
    cursor: grab;
    border-radius: 4px;
}
#esNav .es-pin-grip:hover { color: rgba(255, 255, 255, .75); }
#esNav .es-pin-grip:focus-visible { outline: 2px solid var(--es-aqua-500, #00AEEF); outline-offset: 1px; }

/* Drag states. */
#esNav .es-navsc-item.is-dragging { opacity: .5; }
#esNav .es-navsc-item.is-lifted { background-color: rgba(0, 174, 239, .14); border-radius: 6px; }
#esNav .es-navsc-item.drop-before { box-shadow: inset 0 2px 0 0 var(--es-aqua-500, #00AEEF); }
#esNav .es-navsc-item.drop-after { box-shadow: inset 0 -2px 0 0 var(--es-aqua-500, #00AEEF); }

/* Visually-hidden live region (reorder announcements). */
#esNav .es-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
