/* TrainCrest One — app shell: left sidebar on every page (added by shell.js once signed in). */
:root {
  --tcx-w: 236px;
  --tcx-ink: #1D2433; --tcx-text: #344054; --tcx-muted: #667085; --tcx-faint: #98A2B3;
  --tcx-line: #E7EAEE; --tcx-side: #FAFBFC; --tcx-hover: #F0F2F5;
  --tcx-accent: #0679AD; --tcx-brand: #069EDB;
}
body.tcx { padding-left: var(--tcx-w); }
.tcx-side {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--tcx-w); z-index: 8;
  background: var(--tcx-side); border-right: 1px solid var(--tcx-line);
  display: flex; flex-direction: column;
  font-family: 'IBM Plex Sans', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.tcx-logo { display: flex; align-items: center; padding: 20px 20px 18px; text-decoration: none; }
.tcx-logo img { height: 26px; display: block; }
.tcx-nav { flex: 1; overflow-y: auto; padding: 4px 12px 16px; }
.tcx-sec { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--tcx-faint); margin: 18px 10px 6px; }
.tcx-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 1px 0; border-radius: 6px;
  color: var(--tcx-text); text-decoration: none; font-size: 13.5px; font-weight: 500; line-height: 1.3;
  border: 1px solid transparent;
}
.tcx-item svg { width: 16px; height: 16px; flex: none; color: var(--tcx-faint); }
.tcx-item:hover { background: var(--tcx-hover); color: var(--tcx-ink); }
.tcx-item:hover svg { color: var(--tcx-muted); }
.tcx-item.on { background: #fff; border-color: var(--tcx-line); color: var(--tcx-ink); box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.tcx-item.on svg { color: var(--tcx-brand); }
.tcx-item .tcx-ext { margin-left: auto; width: 12px; height: 12px; color: var(--tcx-faint); }
.tcx-item:focus-visible, .tcx-me:focus-visible, .tcx-menu button:focus-visible, .tcx-burger:focus-visible { outline: 2px solid var(--tcx-accent); outline-offset: 1px; }

.tcx-user { position: relative; border-top: 1px solid var(--tcx-line); padding: 10px 12px; }
.tcx-me {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 6px;
  background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: var(--tcx-ink);
}
.tcx-me:hover { background: var(--tcx-hover); }
.tcx-av {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: #E9F4FA; color: #055E87; font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
}
.tcx-me b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcx-me small { display: block; font-size: 12px; color: var(--tcx-muted); }
.tcx-me .tcx-who { min-width: 0; flex: 1; }
.tcx-me svg { width: 14px; height: 14px; color: var(--tcx-faint); flex: none; }
.tcx-menu {
  position: absolute; left: 12px; right: 12px; bottom: calc(100% - 4px); background: #fff;
  border: 1px solid var(--tcx-line); border-radius: 8px; padding: 4px;
  box-shadow: 0 12px 32px -8px rgba(16,24,40,.18);
}
.tcx-menu button {
  display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 5px;
  font: inherit; font-size: 13px; color: var(--tcx-text); cursor: pointer;
}
.tcx-menu button:hover { background: var(--tcx-hover); color: var(--tcx-ink); }
.tcx-menu hr { border: 0; border-top: 1px solid var(--tcx-line); margin: 4px 0; }

/* phone / small tablet: slim top bar, sidebar slides in */
.tcx-top, .tcx-scrim { display: none; }
@media (max-width: 900px) {
  body.tcx { padding-left: 0; padding-top: 52px; }
  .tcx-top {
    display: flex; align-items: center; gap: 12px; position: fixed; top: 0; left: 0; right: 0; height: 52px; z-index: 30;
    background: #fff; border-bottom: 1px solid var(--tcx-line); padding: 0 12px;
  }
  .tcx-top img { height: 22px; display: block; }
  .tcx-burger { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--tcx-line); border-radius: 6px; background: #fff; cursor: pointer; color: var(--tcx-text); }
  .tcx-burger svg { width: 18px; height: 18px; }
  .tcx-side { transform: translateX(-100%); transition: transform .18s ease; z-index: 70; box-shadow: none; width: min(280px, 84vw); }
  body.tcx-open .tcx-side { transform: none; box-shadow: 0 0 40px rgba(16,24,40,.18); }
  body.tcx-open .tcx-scrim { display: block; position: fixed; inset: 0; z-index: 69; background: rgba(16,24,40,.28); }
  /* page headers that stick to the top sit under the top bar */
  body.tcx header.app, body.tcx header.top { top: 52px; }
}
@media (prefers-reduced-motion: reduce) { .tcx-side { transition: none; } }
@media print { .tcx-side, .tcx-top, .tcx-scrim { display: none !important; } body.tcx { padding: 0 !important; } }

/* ---- page headers: the sidebar now carries the logo, navigation and account ---- */
body.tcx header.app .wordmark,
body.tcx header.app nav > a:not(#nav-audit),
body.tcx header.app .who,
body.tcx #btn-changepw, body.tcx #btn-signout { display: none; }
.tcx-ptitle { font-size: 15px; font-weight: 600; color: var(--tcx-ink); letter-spacing: -.005em; white-space: nowrap; }
body.tcx.tcx-home header.app { display: none; }
body.tcx header.top > #who, body.tcx header.top > .who { display: none; }
