/* Navegação compacta do Compras. Mantém rótulos claros sem transformar o menu em documentação. */
:root {
  --sidebar-width: 216px;
}

.workspace-shell-v2 .sidebar {
  background:
    radial-gradient(circle at 12% 0%, rgb(72 126 112 / 13%), transparent 27%),
    #15211e;
  box-shadow: 10px 0 34px rgb(6 18 15 / 8%);
}

.workspace-brand-row {
  display: flex;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid var(--sidebar-line);
}

.workspace-shell-v2 .brand-lockup {
  gap: 10px;
  min-height: 67px;
  border: 0;
  padding: 11px 14px;
}

.workspace-shell-v2 .brand-mark {
  width: 46px;
  min-width: 46px;
  height: 34px;
  border-radius: 7px;
}

.workspace-shell-v2 .brand-mark img {
  width: 39px;
}

.workspace-shell-v2 .brand-lockup > span:last-child {
  display: flex;
  flex-direction: column;
}

.workspace-shell-v2 .brand-lockup small {
  order: 0;
  margin: 0 0 1px;
  color: #92a39e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
}

.workspace-shell-v2 .brand-lockup strong {
  order: 1;
  color: #fff;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -.02em;
}

.workspace-nav-close {
  display: none;
  width: 36px;
  height: 36px;
  margin-right: 10px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 9px;
  background: rgb(255 255 255 / 4%);
  color: #fff;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
}

.workspace-shell-v2 .topnav {
  padding: 12px 10px 16px;
}

.workspace-shell-v2 .nav-group + .nav-group {
  margin-top: 14px;
  padding-top: 12px;
}

.workspace-shell-v2 .nav-group .sidebar-label {
  margin: 0 11px 8px;
  color: #73847f;
  font-size: 8px;
  letter-spacing: .16em;
}

.workspace-shell-v2 .topnav .nav-group button {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  min-height: 44px;
  margin-bottom: 3px;
  border-radius: 10px;
  padding: 5px 9px;
}

.workspace-shell-v2 .topnav .nav-group button::before {
  top: 12px;
  bottom: 12px;
  left: -1px;
  width: 3px;
  border-radius: 0 6px 6px 0;
}

.workspace-shell-v2 .nav-icon {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #8fa09b;
}

.workspace-shell-v2 .nav-copy strong {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.005em;
}

.workspace-shell-v2 .topnav button:hover {
  background: rgb(255 255 255 / 5%);
  color: #fff;
}

.workspace-shell-v2 .topnav button.active {
  border-color: rgb(255 255 255 / 8%);
  background: linear-gradient(100deg, rgb(255 255 255 / 11%), rgb(255 255 255 / 6%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
  color: #fff;
}

.workspace-shell-v2 .topnav button.active .nav-icon {
  border: 0;
  background: #f18442;
  color: #17211f;
}

.workspace-shell-v2 .sidebar-foot {
  padding: 9px 12px 12px;
  background: rgb(0 0 0 / 11%);
}

.workspace-shell-v2 .user-chip {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
}

.workspace-shell-v2 .user-avatar {
  width: 32px;
  height: 32px;
  border-color: rgb(255 255 255 / 9%);
  background: rgb(255 255 255 / 7%);
}

.workspace-shell-v2 .user-chip strong { font-size: 12px; }
.workspace-shell-v2 .user-chip small { margin-top: 1px; font-size: 9px; }

.workspace-shell-v2 .topbar {
  min-height: 58px;
  padding-inline: clamp(18px, 2.5vw, 34px);
}

.workspace-shell-v2 .topbar-context {
  gap: 9px;
}

.workspace-shell-v2 .topbar-context .workspace-context-app {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.workspace-shell-v2 .topbar-context .workspace-context-app::before { display: none; }

.workspace-shell-v2 .topbar-context strong {
  color: var(--ink-strong);
  font-size: 14px;
}

.workspace-shell-v2 .topbar-context strong::before {
  content: "/";
  margin-right: 9px;
  color: var(--line-strong);
  font-weight: 400;
}

.workspace-shell-v2 .top-actions .button,
.workspace-shell-v2 .top-actions .theme-toggle {
  min-height: 34px;
  border-radius: 9px;
  padding-inline: 11px;
  font-size: 11px;
}

.workspace-shell-v2 .content {
  padding-top: 26px;
}

@media (max-width: 1080px) and (min-width: 761px) {
  :root { --sidebar-width: 202px; }
}

@media (max-width: 760px) {
  :root { --sidebar-width: min(86vw, 282px); }

  .workspace-nav-close {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
  }

  .workspace-shell-v2 .topnav {
    padding-top: 10px;
  }

  .workspace-shell-v2 .nav-copy small { display: none; }

  .workspace-shell-v2 .topbar {
    min-height: 56px;
    padding-inline: 12px;
  }

  .workspace-shell-v2 .topbar-context .workspace-context-app { display: none; }
  .workspace-shell-v2 .topbar-context strong::before { display: none; }
  .workspace-shell-v2 .top-actions .theme-toggle { display: none; }
  .workspace-shell-v2 .top-actions .button { padding-inline: 9px; }
  .workspace-shell-v2 .content { padding-top: 16px; }
}

@media (max-width: 430px) {
  .workspace-shell-v2 .top-actions [data-route="portal-home"] { display: none; }
}
