/* Shipping / billing sidebar polish */
.nav-group-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.nav-group-ico {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.55rem;
  display: inline-grid;
  place-items: center;
  font-size: 0.82rem;
  flex: 0 0 auto;
  background: rgba(15, 23, 42, 0.06);
  color: inherit;
}

[data-bs-theme='dark'] .nav-group-ico {
  background: rgba(255, 255, 255, 0.08);
}

.nav-group-toggle {
  font-size: 0.72rem !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  padding: 0.5rem 0.55rem !important;
}

.nav-group--shipping > .nav-group-toggle .nav-group-ico {
  background: rgba(13, 148, 136, 0.14);
  color: #0f766e;
}

.nav-group--partners > .nav-group-toggle .nav-group-ico {
  background: rgba(14, 165, 233, 0.14);
  color: #0284c7;
}

.nav-group--wallets > .nav-group-toggle .nav-group-ico {
  background: rgba(124, 58, 237, 0.14);
  color: #6d28d9;
}

.nav-group--billing > .nav-group-toggle .nav-group-ico {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.nav-group--admin > .nav-group-toggle .nav-group-ico {
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
}

.nav-group.is-open.nav-group--shipping > .nav-group-toggle {
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.12), transparent);
  color: #0f766e;
}

.nav-group.is-open.nav-group--partners > .nav-group-toggle {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.12), transparent);
  color: #0284c7;
}

.nav-group.is-open.nav-group--wallets > .nav-group-toggle {
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.12), transparent);
  color: #6d28d9;
}

.nav-group.is-open.nav-group--billing > .nav-group-toggle {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.1), transparent);
  color: #1d4ed8;
}

.nav-group.is-open > .nav-group-body {
  max-height: 1400px !important;
}

.nav-primary {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.15rem 0 0.35rem;
}

.nav-entry.has-children {
  margin-bottom: 0.15rem;
}

.nav-children {
  display: none;
  margin: 0.15rem 0 0.25rem;
  padding: 0.15rem 0 0.1rem 0.55rem;
  border-inline-start: 2px solid rgba(14, 165, 233, 0.28);
  margin-inline-start: 0.85rem;
}

.nav-group--shipping .nav-children {
  border-inline-start-color: rgba(13, 148, 136, 0.22);
}

.nav-entry.is-open > .nav-children,
.nav-group.is-open .nav-entry.has-children > .nav-children {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.nav-children .nav-link {
  font-size: 0.78rem !important;
  padding: 0.32rem 0.45rem !important;
  opacity: 0.92;
}

.nav-children .nav-ico {
  width: 1.3rem !important;
  height: 1.3rem !important;
  font-size: 0.72rem;
  border-radius: 0.4rem !important;
}

.nav-sub {
  margin: 0.35rem 0 0.2rem;
  padding: 0.35rem 0.3rem 0.25rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.35);
}

[data-bs-theme='dark'] .nav-sub {
  background: rgba(255, 255, 255, 0.03);
}

.nav-sub.is-active {
  background: rgba(13, 148, 136, 0.08);
  box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.12);
}

.nav-group--billing .nav-sub.is-active {
  background: rgba(37, 99, 235, 0.08);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.nav-sub-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.4rem 0.35rem;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nx-text-muted);
}

.nav-sub-label .bi {
  font-size: 0.72rem;
  opacity: 0.85;
}

.nx-nav .nav-link {
  position: relative;
  font-size: 0.84rem;
  padding: 0.42rem 0.5rem !important;
}

.nx-nav .nav-link .nav-ico {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.5rem;
  display: inline-grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.05);
  flex: 0 0 auto;
}

[data-bs-theme='dark'] .nx-nav .nav-link .nav-ico {
  background: rgba(255, 255, 255, 0.06);
}

.nx-nav .nav-link.active {
  background: rgba(13, 148, 136, 0.14) !important;
  color: #0f766e !important;
  font-weight: 700;
}

.nx-nav .nav-link.active .nav-ico {
  background: rgba(13, 148, 136, 0.2);
  color: #0f766e;
}

.nav-active-dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 999px;
  margin-inline-start: auto;
  background: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}

.nav-tone-teal .nav-ico { color: #0f766e; background: rgba(13, 148, 136, 0.12); }
.nav-tone-amber .nav-ico { color: #b45309; background: rgba(245, 158, 11, 0.14); }
.nav-tone-violet .nav-ico { color: #6d28d9; background: rgba(124, 58, 237, 0.12); }
.nav-tone-blue .nav-ico { color: #1d4ed8; background: rgba(37, 99, 235, 0.12); }
.nav-tone-rose .nav-ico { color: #be123c; background: rgba(244, 63, 94, 0.12); }
.nav-tone-slate .nav-ico { color: #475569; background: rgba(100, 116, 139, 0.14); }

.nx-sidebar.is-collapsed .nav-group-heading .nav-group-label,
.nx-sidebar.is-collapsed .nav-sub-label,
.nx-sidebar.is-collapsed .nav-active-dot,
.nx-sidebar.is-collapsed .nav-children {
  display: none !important;
}

.nx-sidebar.is-collapsed .nav-sub,
.nx-sidebar.is-collapsed .nav-primary {
  background: transparent;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.nx-sidebar.is-collapsed .nav-group-ico {
  width: 1.7rem;
  height: 1.7rem;
}
