/* Universal left navigation - Views/V2/_Sidenav.cshtml. Rebuilt 21 Nov 2026 (owner: "their universal navigation looks like
   one, and ours is different").

   ONE PIECE WITH THE TOP BAR: a 64px bar in the top bar's own navy (#051c38) runs from under the logo to the bottom of the
   window - Home, Databases, Markets, Workspace, Tools, then Settings, Account and the open/close control. It is always
   there. The white list of pages (232px) sits beside it when the sidebar is open; closed, an icon of the bar opens its
   pages in a pop-out. On these pages the top bar's own home icon is hidden and the logo sits exactly above the bar.

   Width = --tcc-sn-w (bar + list, or the bar alone when html.tcc-sn-collapsed); .tcc-global-wrap.has-sidenav (v2-core.css)
   uses the same variable for its left margin. Up to 1024px the sidebar is hidden (mobile-nav.css) and opens as a drawer
   (.sn-drawer-open) - for signed-in users the header hamburger opens _MobileNav's drawer instead.
   Palette: navy #051c38, text #293348, secondary #555, muted #777, blue #337ab7 on #e9f1f8, lines #e6e6e6. Lato. */

:root { --tcc-sn-rail: 64px; --tcc-sn-list: 232px; --tcc-sn-w: calc(var(--tcc-sn-rail) + var(--tcc-sn-list)); --tcc-sn-top: 60px; --tcc-sn-navy: #051c38; }
html.tcc-sn-collapsed { --tcc-sn-w: var(--tcc-sn-rail); }

/* ── shell ──────────────────────────────────────────────────────────────────────── */
.v2-sn {
    position: fixed; top: var(--tcc-sn-top); left: 0; bottom: 0;
    width: var(--tcc-sn-w);
    display: flex; flex-direction: row; align-items: stretch;
    color: #293348; font-family: Lato, "Helvetica Neue", Arial, sans-serif; font-size: 13px; line-height: 18px;
    z-index: 100; box-sizing: border-box; overflow: visible;
}
.v2-sn *, .v2-sn *::before, .v2-sn *::after { box-sizing: border-box; }
.v2-sn a { color: inherit; text-decoration: none; }
.v2-sn a:hover, .v2-sn a:focus { text-decoration: none; }
.v2-sn button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; margin: 0; }
.v2-sn svg { display: block; }
.v2-sn .sn-group-head:focus-visible, .v2-sn .sn-item:focus-visible, .v2-sn .sn-subitem:focus-visible,
.v2-sn .sn-sub-toggle:focus-visible, .v2-sn .sn-search-clear:focus-visible, .v2-sn .sn-drawer-close:focus-visible,
.sn-user-popup .sn-up-action:focus-visible { outline: 2px solid #337ab7; outline-offset: -2px; }
.v2-sn .sn-rail-btn:focus-visible, .v2-sn .sn-rail-toggle:focus-visible { outline: 2px solid #8fb8e0; outline-offset: -2px; }

/* ── the dark bar ──────────────────────────────────────────────────────────────── */
.sn-rail {
    flex: 0 0 var(--tcc-sn-rail); width: var(--tcc-sn-rail);
    display: flex; flex-direction: column; align-items: center;
    padding: 2px 0 6px; background: var(--tcc-sn-navy); color: #b7c3d4;
    overflow-y: auto; overflow-x: hidden; scrollbar-width: none;
}
.sn-rail::-webkit-scrollbar { display: none; }
.v2-sn .sn-rail-btn {
    flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 56px; height: 54px; margin: 2px 0; padding: 0; border-radius: 8px;
    color: #b7c3d4; text-align: center; white-space: nowrap;
}
.sn-rail-btn > svg { width: 20px; height: 20px; stroke-width: 1.7; }
.sn-rail-cap { display: block; font-size: 10.5px; line-height: 12px; font-weight: 400; letter-spacing: .1px; }
.v2-sn .sn-rail-btn:hover, .v2-sn .sn-rail-btn.sn-fly-on, .v2-sn .sn-rail-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .09); color: #fff; }
.v2-sn .sn-rail-btn.is-on { background: rgba(255, 255, 255, .15); color: #fff; }
.sn-rail-btn.is-on .sn-rail-cap { font-weight: 700; }
.sn-rail-gap { flex: 1 1 auto; min-height: 8px; }
.sn-user { flex: 0 0 auto; }
.sn-user-avatar { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--tcc-sn-navy); font-size: 10.5px; font-weight: 700; letter-spacing: .3px; display: inline-flex; align-items: center; justify-content: center; }
.v2-sn .sn-user-trigger { height: 58px; }
.v2-sn .sn-rail-toggle { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 56px; height: 30px; margin-top: 2px; padding: 0; border-radius: 8px; color: #8f9db1; }
.v2-sn .sn-rail-toggle:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.sn-rail-toggle svg { width: 17px; height: 17px; transition: transform .15s; }
.tcc-sn-collapsed .sn-rail-toggle svg { transform: rotate(180deg); }

/* ── the list beside it ────────────────────────────────────────────────────────── */
.sn-panel { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; background: #fff; border-right: 1px solid #e6e6e6; }

.sn-top { flex: 0 0 auto; position: relative; padding: 10px 10px 8px; border-bottom: 1px solid #efefef; }
.sn-search { position: relative; display: flex; align-items: center; height: 32px; border: 1px solid #e0e3e8; border-radius: 6px; background: #fff; }
.sn-search:focus-within { border-color: #337ab7; }
.sn-search-ico { position: absolute; left: 9px; width: 14px; height: 14px; color: #777; pointer-events: none; }
.sn-search-input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 28px 0 30px; font: inherit; font-size: 13px; color: #293348; }
.sn-search-input::placeholder { color: #999; opacity: 1; }
.sn-search-clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; line-height: 20px; text-align: center; color: #777; font-size: 18px; border-radius: 3px; padding: 0; }
.sn-search-clear:hover { background: #f6f6f6; color: #293348; }
.sn-search-clear[hidden] { display: none; }
.sn-drawer-close { display: none; }

.sn-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 6px 0 10px; scrollbar-width: thin; scrollbar-color: #d6d6d6 transparent; }
.sn-scroll::-webkit-scrollbar { width: 6px; }
.sn-scroll::-webkit-scrollbar-thumb { background: #d6d6d6; border-radius: 3px; }
.sn-scroll::-webkit-scrollbar-track { background: transparent; }
.sn-empty { padding: 14px 16px; color: #777; font-size: 12px; }
.sn-empty[hidden] { display: none; }

/* groups: a small label that opens and closes its pages (one group open at a time) */
.sn-group { padding: 0; }
.sn-group + .sn-group { border-top: 1px solid #efefef; }
.v2-sn .sn-group-head { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 10px 0 15px; color: #777; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.sn-group-head:hover { color: #293348; background: #fafbfc; }
.sn-group.is-open > .sn-group-head { color: #293348; }
.sn-group-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sn-caret { flex: 0 0 14px; color: #999; transition: transform .15s; }
.sn-caret svg { width: 14px; height: 14px; }
.sn-group.is-open .sn-caret { transform: rotate(180deg); }
.sn-group-body { display: none; padding: 0 0 8px; }
.sn-group.is-open .sn-group-body { display: block; }

.sn-ico { flex: 0 0 16px; width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; color: #6b7686; }
.sn-ico svg { width: 16px; height: 16px; stroke-width: 1.8; }

.sn-row { display: flex; align-items: stretch; position: relative; }
.sn-row .sn-item { flex: 1 1 auto; min-width: 0; }
.sn-item { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 8px 0 12px; font-size: 13px; color: #293348; border-left: 3px solid transparent; white-space: nowrap; position: relative; }
.sn-item:hover { background: #f5f7fa; color: #293348; }
.sn-item:hover .sn-ico { color: #293348; }
.sn-item.active { background: #e9f1f8; border-left-color: #337ab7; color: #337ab7; font-weight: 700; }
.sn-item.active .sn-ico { color: #337ab7; }
.sn-item.sn-parent-on, .sn-item.sn-parent-on .sn-label { color: #337ab7; font-weight: 700; }   /* a section of this database is the current page */
.sn-item.sn-parent-on .sn-ico { color: #337ab7; }
.sn-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sn-sub-toggle { flex: 0 0 30px; display: flex; align-items: center; justify-content: center; color: #999; padding: 0; }
.sn-sub-toggle:hover { background: #f5f7fa; color: #293348; }
.sn-sub-toggle svg { width: 13px; height: 13px; transition: transform .15s; }
.sn-db.is-open .sn-sub-toggle svg { transform: rotate(180deg); }

/* the pre-filtered sections of a database, one level deeper */
.sn-sub { display: none; padding: 0 0 4px; }
.sn-db.is-open .sn-sub { display: block; }
.sn-subitem { display: block; height: 28px; line-height: 28px; padding: 0 10px 0 41px; font-size: 12.5px; color: #555; border-left: 3px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-subitem:hover { background: #f5f7fa; color: #293348; }
.sn-subitem.active { background: #e9f1f8; border-left-color: #337ab7; color: #337ab7; font-weight: 700; }

/* text filter */
.v2-sn .sn-hide { display: none !important; }
.sn-filtering .sn-item.sn-match .sn-label, .sn-filtering .sn-subitem.sn-match { color: #293348; }

/* ── closed: only the bar ──────────────────────────────────────────────────────── */
@media (min-width: 1025px) {
    .tcc-sn-collapsed .v2-sn .sn-panel { display: none; }
}

/* ── the top bar joins the dark bar (pages that have the sidebar, signed-in header with the square logo) ── */
@media (min-width: 1025px) {
    body:has(.tcc-global-wrap.has-sidenav) .main-header-flex:has(> .header-company-logo) { width: 100%; margin: 0; padding: 0 28px 0 0; column-gap: 0; }
    body:has(.tcc-global-wrap.has-sidenav) .main-header-flex:has(> .header-company-logo) > .hme-icon { display: none; }   /* Home is the first icon of the bar */
    body:has(.tcc-global-wrap.has-sidenav) .main-header-flex > .header-company-logo { flex: 0 0 var(--tcc-sn-rail); width: var(--tcc-sn-rail); display: flex; justify-content: center; }
    body:has(.tcc-global-wrap.has-sidenav) .main-header-flex > .header-company-logo ~ .header-search-flex { margin-left: 20px; }
}

/* ── account pop-up (fixed; placed by the script beside the bar) ───────────────── */
.sn-user-popup { position: fixed; width: 240px; background: #fff; border: 1px solid #e6e6e6; border-radius: 8px; box-shadow: 0 8px 28px rgba(41, 51, 72, .2); z-index: 10000; overflow: hidden; color: #293348; font-family: Lato, "Helvetica Neue", Arial, sans-serif; font-size: 13px; line-height: 18px; }
.sn-user-popup[hidden] { display: none; }
.sn-up-header { display: flex; align-items: center; gap: 10px; padding: 12px; }
.sn-up-avatar { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: #293348; color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sn-up-details { min-width: 0; display: flex; flex-direction: column; }
.sn-up-name { font-size: 13px; font-weight: 700; color: #293348; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-up-email { font-size: 12px; color: #777; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-up-divider { height: 1px; background: #e6e6e6; }
.sn-up-meta { padding: 8px 12px; font-size: 12px; color: #777; }
.sn-up-action { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 13px; color: #293348; text-decoration: none; }
.sn-up-action:hover { background: #f6f6f6; color: #293348; text-decoration: none; }
.sn-up-action svg { width: 15px; height: 15px; color: #555; }
.sn-up-logout, .sn-up-logout svg { color: #b3392f; }

/* ── pop-out of a bar icon (sidebar closed): its pages; a database opens its sections inside ── */
.sn-fly { position: fixed; z-index: 1300; min-width: 232px; max-width: 290px; max-height: calc(100vh - 16px); overflow-y: auto; box-sizing: border-box;
    background: #fff; border-radius: 8px; box-shadow: 0 8px 28px rgba(41, 51, 72, .2), 0 0 0 1px #e3e6ea; padding: 8px;
    font-family: Lato, "Helvetica Neue", Arial, sans-serif; }
.sn-fly[hidden] { display: none; }
.sn-fly-title { display: block; padding: 4px 10px 8px; font-size: 11px; line-height: 18px; font-weight: 700; color: #777; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.sn-fly-item { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 10px; border-radius: 6px; font-size: 13px; line-height: 18px; color: #293348; text-decoration: none; white-space: nowrap; }
.sn-fly-item:hover, .sn-fly-item:focus-visible { background: #f2f5f9; color: #293348; outline: 0; text-decoration: none; }
.sn-fly-item.active { background: #e9f1f8; color: #337ab7; font-weight: 700; }
.sn-fly-item .sn-ico { display: inline-flex; width: 16px; height: 16px; color: #6b7686; flex: 0 0 16px; }
.sn-fly-item .sn-ico svg { width: 16px; height: 16px; }
.sn-fly-item.active .sn-ico { color: #337ab7; }
.sn-fly-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sn-fly-row { display: flex; align-items: stretch; border-radius: 6px; }
.sn-fly-row .sn-fly-item { flex: 1 1 auto; min-width: 0; border-radius: 6px 0 0 6px; }
.sn-fly-tog { flex: 0 0 30px; display: flex; align-items: center; justify-content: center; border: 0; background: none; padding: 0; margin: 0; color: #777; cursor: pointer; border-radius: 0 6px 6px 0; }
.sn-fly-tog:hover, .sn-fly-tog:focus-visible { background: #f2f5f9; color: #293348; outline: 0; }
.sn-fly-tog svg { width: 13px; height: 13px; display: block; transition: transform .15s; }
.sn-fly-db.is-open .sn-fly-tog svg { transform: rotate(180deg); }
.sn-fly-secs { display: none; padding: 2px 0 6px; }
.sn-fly-db.is-open .sn-fly-secs { display: block; }
.sn-fly-sec { display: block; height: 28px; line-height: 28px; padding: 0 10px 0 36px; border-radius: 6px; font-size: 12.5px; color: #555; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sn-fly-sec:hover, .sn-fly-sec:focus-visible { background: #f2f5f9; color: #293348; outline: 0; text-decoration: none; }
.sn-fly-sec.active { background: #e9f1f8; color: #337ab7; font-weight: 700; }
.sn-fly-db .sn-fly-item.active { background: transparent; }            /* the section line carries the mark; the name is only tinted */
@media (max-width: 1024px) { .sn-fly { display: none !important; } }

/* ── phones / tablets: off-canvas drawer (the list only; the dark bar is a desktop thing) ── */
.tcc-sn-overlay, .tcc-sn-mbtn { display: none; }
@media (max-width: 1024px) {
    /* mobile-nav.css hides .v2-sn at these widths; the drawer class brings it back from the left */
    .v2-sn.sn-drawer-open { display: flex !important; top: 0; bottom: 0; width: min(86vw, 300px); z-index: 3001; box-shadow: 12px 0 32px rgba(15, 23, 42, .2); }
    .v2-sn.sn-drawer-open .sn-rail { display: none; }
    .v2-sn.sn-drawer-open .sn-top { padding-right: 46px; }
    .v2-sn.sn-drawer-open .sn-drawer-close { display: block; position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; padding: 0; font-size: 26px; line-height: 32px; text-align: center; color: #555; border-radius: 4px; }
    .v2-sn.sn-drawer-open .sn-drawer-close:hover { background: #f6f6f6; color: #293348; }
    .v2-sn.sn-drawer-open .sn-group-head { height: 42px; }
    .v2-sn.sn-drawer-open .sn-item { height: 38px; }
    .v2-sn.sn-drawer-open .sn-subitem { height: 34px; line-height: 34px; }
    .v2-sn.sn-drawer-open .sn-sub-toggle { flex-basis: 40px; }
    .tcc-sn-overlay { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 3000; opacity: 0; transition: opacity .2s; }
    .tcc-sn-overlay[hidden] { display: none; }
    .tcc-sn-overlay.is-open { opacity: 1; }
    body.tcc-sn-lock { overflow: hidden; }
    .tcc-sn-mbtn { display: flex; align-items: center; justify-content: center; position: fixed; left: 12px; bottom: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #293348; color: #fff; box-shadow: 0 4px 12px rgba(41, 51, 72, .3); z-index: 2500; cursor: pointer; padding: 0; }
    .tcc-sn-mbtn[hidden] { display: none; }
    .tcc-sn-mbtn svg { width: 20px; height: 20px; }
}
