/* Sidebar controls shared by the focused Sales workspace. */
.nav > .nav__workspace-switcher,
.nav > .nav__other-tools,
.nav > .nav__foot {
  flex-shrink: 0;
}

.nav__workspace-switcher {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav__workspace-switcher > small {
  display: block;
  margin: 0 8px 7px;
  color: var(--gc-nav-muted, #98a5b8);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .12em;
}
.nav__workspace-switcher summary,
.nav__other-tools > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--gc-nav-text, #e3e9f2);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.nav__workspace-switcher summary {
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .045);
}
.nav__workspace-switcher summary::-webkit-details-marker,
.nav__other-tools > summary::-webkit-details-marker {
  display: none;
}
.nav__workspace-switcher summary::marker,
.nav__other-tools > summary::marker {
  content: '';
}
.nav__workspace-current {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.nav__workspace-current > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav__workspace-current > i,
.nav__workspace-menu a > i,
.nav__other-tools > summary > i:first-child,
.nav__other-tools__group a > i {
  width: 18px;
  flex: 0 0 18px;
  text-align: center;
  color: var(--gc-nav-accent, #e6c486);
}
.nav__workspace-switcher summary > i:last-child,
.nav__other-tools > summary > i:last-child {
  flex: 0 0 12px;
  margin-left: auto;
  font-size: 9px;
  transition: transform 160ms ease;
}
.nav__workspace-switcher details[open] > summary > i:last-child,
.nav__other-tools[open] > summary > i:last-child {
  transform: rotate(180deg);
}
.nav__workspace-menu {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
}
.nav__workspace-menu a,
.nav__other-tools__group a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 35px;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--gc-nav-muted, #b4bfce);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}
.nav__workspace-menu a:hover,
.nav__other-tools__group a:hover,
.nav__other-tools > summary:hover {
  color: #fff;
  background: var(--gc-nav-hover, rgba(255, 255, 255, .07));
}
.nav__workspace-switcher summary:focus-visible,
.nav__other-tools > summary:focus-visible,
.nav__workspace-menu a:focus-visible,
.nav__other-tools__group a:focus-visible {
  outline: 2px solid var(--gc-nav-accent, var(--crm-brand-focus));
  outline-offset: 2px;
}
.nav__workspace-switcher details:not([open]) > .nav__workspace-menu,
.nav__other-tools:not([open]) > .nav__other-tools__group {
  display: none;
}
.nav__other-tools {
  margin: 12px 10px 8px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 9px;
}
.nav__other-tools__group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 6px 0 3px;
  padding: 9px 3px 3px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.nav__other-tools__group > b {
  display: block;
  margin: 0 8px 5px;
  color: var(--gc-nav-muted, #98a5b8);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav__foot {
  z-index: 3;
}

/* Match the existing collapsed desktop rail; reveal controls on expansion. */
@media (min-width: 981px) {
  .shell:not(.nav-pinned) .nav:not(:hover) > .nav__workspace-switcher,
  .shell:not(.nav-pinned) .nav:not(:hover) > .nav__other-tools {
    display: none;
  }
}
