/* =========================================================
   Navexa Sidebar — RTL / right-side navigation
   ========================================================= */

:root {
  --nx-sidebar-collapsed: 72px;
  --nx-sidebar-expanded: 278px;
  --nx-collapsed: var(--nx-sidebar-collapsed);
  --nx-sidebar-bg-top: #2639aa;
  --nx-sidebar-bg-mid: #2149b2;
  --nx-sidebar-bg-bottom: #15378d;
  --nx-sidebar-text: #f8fafc;
  --nx-sidebar-muted: rgba(255, 255, 255, .64);
  --nx-sidebar-border: rgba(255, 255, 255, .12);
  --nx-sidebar-hover: rgba(255, 255, 255, .10);
  --nx-sidebar-active: rgba(255, 255, 255, .16);
  --nx-sidebar-shadow: -14px 0 38px rgba(15, 23, 42, .22);
}

html,
body {
  overflow-x: hidden;
}

/* Backdrop is used only by the mobile off-canvas menu. */
.nx-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1035;
  background: rgba(15, 23, 42, .48);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.nx-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* Compact rail opener used on phones and tablets. */
.nx-sidebar-mobile-trigger {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 16px;
  color: #1d4ed8;
  background: rgba(255, 255, 255, .96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), 0 10px 22px rgba(5, 15, 62, .20);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.nx-sidebar-mobile-trigger:hover,
.nx-sidebar-mobile-trigger:focus-visible {
  outline: 0;
  background: #fff;
  box-shadow: 0 0 0 .22rem rgba(255, 255, 255, .14), 0 12px 26px rgba(5, 15, 62, .24);
}

.nx-sidebar-mobile-trigger:active {
  transform: scale(.96);
}

.nx-sidebar-mobile-trigger img {
  width: 31px;
  height: 31px;
  border-radius: 10px;
}

.nx-sidebar-mobile-trigger__menu {
  position: absolute;
  left: -3px;
  bottom: -3px;
  width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 5px 12px rgba(15, 23, 42, .24);
  font-size: 12px;
  line-height: 1;
}

/* Explicit physical positioning is intentional. In RTL, inline-end is left. */
.nx-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 1040;
  width: var(--nx-sidebar-collapsed);
  display: flex;
  flex-direction: column;
  direction: rtl;
  color: var(--nx-sidebar-text);
  background:
    radial-gradient(circle at 55% -5%, rgba(255, 255, 255, .17), transparent 31%),
    linear-gradient(180deg, var(--nx-sidebar-bg-top) 0%, var(--nx-sidebar-bg-mid) 47%, var(--nx-sidebar-bg-bottom) 100%);
  border-left: 1px solid rgba(255, 255, 255, .09);
  border-right: 0;
  box-shadow: var(--nx-sidebar-shadow);
  transition: width .24s cubic-bezier(.2, .75, .25, 1), transform .24s cubic-bezier(.2, .75, .25, 1);
  overflow: hidden;
  isolation: isolate;
}

.nx-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    radial-gradient(circle at 100% 30%, rgba(96, 165, 250, .14), transparent 28%);
  background-size: 100% 34px, auto;
  pointer-events: none;
}

.nx-sidebar.nx-expanded {
  width: var(--nx-sidebar-expanded);
}

/* Header and real Navexa logo */
.nx-sidebar__head {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 52px;
  align-items: center;
  gap: 5px;
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--nx-sidebar-border);
  flex: 0 0 auto;
}

.nx-sidebar-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.nx-sidebar-brand:hover,
.nx-sidebar-brand:focus-visible {
  color: #fff;
  outline: none;
}

.nx-sidebar-brand__logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 15px;
  background: rgba(255, 255, 255, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 24px rgba(5, 15, 62, .18);
}

.nx-sidebar-brand__logo img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: contain;
}

.nx-sidebar-brand__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
  opacity: 0;
  transform: translateX(8px);
  pointer-events: none;
  transition: opacity .16s ease, transform .18s ease;
}

.nx-sidebar.nx-expanded .nx-sidebar__head {
  min-height: 108px;
  grid-template-rows: 50px 36px;
}

.nx-sidebar-brand__copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.2px;
}

.nx-sidebar-brand__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, .61);
  font-size: 9.5px;
  font-weight: 650;
}

.nx-sidebar.nx-expanded .nx-sidebar-brand__copy {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.nx-sidebar__toggle {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px) scale(.94);
  transition: background .18s ease, transform .18s ease, border-color .18s ease, opacity .15s ease, visibility .15s ease;
}

.nx-sidebar.nx-expanded .nx-sidebar__toggle {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.nx-sidebar__toggle:hover,
.nx-sidebar__toggle:focus-visible {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .16);
  outline: none;
}

.nx-sidebar__toggle:active {
  transform: translateY(0) scale(.96);
}

.nx-sidebar__toggle .bi {
  font-size: 19px;
  line-height: 1;
}

.nx-sidebar.nx-pinned .nx-sidebar__toggle {
  color: #fff1aa;
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 240, 170, .24);
}

/* Collapsed desktop header keeps only the Navexa logo visible. */
.nx-sidebar:not(.nx-expanded) .nx-sidebar-brand__copy {
  display: none;
}

/* Navigation */
.nx-sidebar .nx-nav {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 9px 7px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .23) transparent;
  overscroll-behavior: contain;
}

.nx-sidebar .nx-nav::-webkit-scrollbar {
  width: 5px;
}

.nx-sidebar .nx-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, .23);
}

.nx-sidebar .nx-nav-section {
  position: relative;
  margin: 0 0 8px;
  padding: 0 0 8px;
}

.nx-sidebar .nx-nav-section:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
}

.nx-sidebar .nx-nav-section__title {
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 13px 5px;
  color: var(--nx-sidebar-muted);
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .16s ease, transform .18s ease;
}

.nx-sidebar.nx-expanded .nx-nav-section__title {
  opacity: 1;
  transform: translateY(0);
}

.nx-sidebar:not(.nx-expanded) .nx-nav-section__title {
  height: 8px;
  padding: 0;
}

.nx-sidebar:not(.nx-expanded) .nx-nav-section__title > * {
  display: none;
}

.nx-sidebar .nx-nav-section__title--parallel {
  color: #ffe5a0;
}

.nx-sidebar .nx-nav-section--parallel {
  margin-inline: 1px;
  padding: 5px 3px 11px;
  border: 1px solid rgba(245, 176, 65, .22);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 176, 65, .13), transparent 45%),
    linear-gradient(180deg, rgba(245, 176, 65, .08), rgba(255, 255, 255, .025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.nx-sidebar:not(.nx-expanded) .nx-nav-section--parallel {
  padding-inline: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.nx-sidebar .nx-item {
  position: relative;
  width: 100%;
  min-height: 47px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 3px 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #fff;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-align: right;
  white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.nx-sidebar .nx-item:hover,
.nx-sidebar .nx-item:focus-visible {
  color: #fff;
  background: var(--nx-sidebar-hover);
  border-color: rgba(255, 255, 255, .08);
  outline: none;
}

.nx-sidebar.nx-expanded .nx-item:hover {
  transform: translateX(-2px);
}

.nx-sidebar .nx-item.active {
  color: #fff;
  background: var(--nx-sidebar-active);
  border-color: rgba(255, 255, 255, .19);
  box-shadow: inset -3px 0 0 #ffe082, 0 8px 20px rgba(15, 23, 42, .12);
}

.nx-sidebar .nx-item__icon {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, .075);
  transition: background .16s ease, transform .16s ease;
}

.nx-sidebar .nx-item:hover .nx-item__icon,
.nx-sidebar .nx-item.active .nx-item__icon {
  background: rgba(255, 255, 255, .14);
}

.nx-sidebar .nx-ic {
  font-size: 21px;
  line-height: 1;
}

.nx-sidebar .nx-item.active .nx-ic {
  color: #ffe082;
}

.nx-sidebar .nx-label {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity .15s ease, transform .18s ease;
}

.nx-sidebar.nx-expanded .nx-label {
  opacity: 1;
  transform: translateX(0);
}

.nx-sidebar:not(.nx-expanded) .nx-item {
  justify-content: center;
  padding-inline: 6px;
}

.nx-sidebar:not(.nx-expanded) .nx-label,
.nx-sidebar:not(.nx-expanded) .nx-chv,
.nx-sidebar:not(.nx-expanded) .nx-item__tag,
.nx-sidebar:not(.nx-expanded) .nx-market-dot {
  display: none;
}

.nx-sidebar:not(.nx-expanded) .nx-nav-badge {
  position: absolute;
  top: 3px;
  right: 4px;
  left: auto;
}

.nx-sidebar .nx-group-toggle {
  appearance: none;
}

.nx-sidebar .nx-chv {
  flex: 0 0 auto;
  margin-right: auto;
  font-size: 13px;
  opacity: .72;
  transition: transform .2s ease;
}

.nx-sidebar .nx-nav-group.open > .nx-group-toggle .nx-chv {
  transform: rotate(-90deg);
}

.nx-sidebar .nx-submenu {
  max-height: 0;
  margin: 0 4px;
  padding-right: 10px;
  padding-left: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height .26s ease, opacity .18s ease, margin .2s ease, visibility .18s ease;
}

.nx-sidebar .nx-nav-group.open > .nx-submenu {
  max-height: 380px;
  margin-block: 2px 7px;
  opacity: 1;
  visibility: visible;
}

.nx-sidebar .nx-subitem {
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0;
  padding: 8px 12px;
  border-radius: 11px;
  color: rgba(255, 255, 255, .84);
  background: rgba(7, 20, 78, .13);
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}

.nx-sidebar .nx-subitem .bi {
  width: 20px;
  flex: 0 0 20px;
  text-align: center;
  font-size: 15px;
}

.nx-sidebar .nx-subitem:hover,
.nx-sidebar .nx-subitem:focus-visible,
.nx-sidebar .nx-subitem.active {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  outline: none;
}

.nx-sidebar .nx-subitem.active {
  box-shadow: inset -2px 0 0 #ffe082;
}

.nx-sidebar .nx-sub-badge,
.nx-sidebar .nx-nav-badge {
  margin-right: auto;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .18);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.nx-sidebar .nx-nav-badge--staff {
  color: #7c3aed;
}

.nx-sidebar .nx-item__tag {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid rgba(245, 176, 65, .25);
  border-radius: 999px;
  color: #fff2b2;
  background: rgba(245, 176, 65, .16);
  font-size: 9px;
  font-weight: 900;
}

.nx-sidebar .nx-item--featured .nx-item__icon {
  color: #ffe082;
}

/* Parallel markets deserve stronger visual hierarchy. */
.nx-sidebar .nx-item--market {
  overflow: hidden;
}

.nx-sidebar .nx-item--market::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 0;
  bottom: 7px;
  width: 3px;
  border-radius: 999px 0 0 999px;
}

.nx-sidebar .nx-item--gold {
  background: linear-gradient(90deg, rgba(245, 176, 65, .045), rgba(245, 176, 65, .14));
  border-color: rgba(245, 176, 65, .16);
}

.nx-sidebar .nx-item--gold::before,
.nx-sidebar .nx-item--gold .nx-market-dot {
  background: #f5b041;
}

.nx-sidebar .nx-item--gold .nx-item__icon,
.nx-sidebar .nx-item--gold .nx-ic {
  color: #ffd67a;
}

.nx-sidebar .nx-item--silver {
  background: linear-gradient(90deg, rgba(203, 213, 225, .035), rgba(203, 213, 225, .12));
  border-color: rgba(203, 213, 225, .14);
}

.nx-sidebar .nx-item--silver::before,
.nx-sidebar .nx-item--silver .nx-market-dot {
  background: #cbd5e1;
}

.nx-sidebar .nx-item--silver .nx-item__icon,
.nx-sidebar .nx-item--silver .nx-ic {
  color: #e2e8f0;
}

.nx-sidebar .nx-market-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .06);
}

.nx-sidebar .nx-item--support {
  background: linear-gradient(90deg, rgba(16, 185, 129, .06), rgba(16, 185, 129, .15));
  border-color: rgba(110, 231, 183, .16);
}

.nx-sidebar .nx-item--support .nx-item__icon,
.nx-sidebar .nx-item--support .nx-ic {
  color: #a7f3d0;
}

.nx-sidebar .nx-item--staff {
  background: rgba(124, 58, 237, .12);
  border-color: rgba(196, 181, 253, .14);
}

.nx-sidebar__footer {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 10px 9px;
  border-top: 1px solid var(--nx-sidebar-border);
}

.nx-sidebar__hint {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .50);
  font-size: 9.5px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .16s ease;
}

.nx-sidebar.nx-expanded .nx-sidebar__hint {
  opacity: 1;
}

.nx-sidebar:not(.nx-expanded) .nx-sidebar__footer {
  display: none;
}

.nx-sidebar-tooltip {
  position: fixed;
  z-index: 1100;
  max-width: 220px;
  padding: 9px 12px;
  border: 1px solid rgba(148, 163, 184, .20);
  border-radius: 11px;
  color: #f8fafc;
  background: rgba(15, 23, 42, .97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 36px rgba(2, 6, 23, .30), inset 0 1px 0 rgba(255, 255, 255, .05);
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.55;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%) translateX(7px) scale(.98);
  transform-origin: right center;
  transition: opacity .14s ease, transform .16s ease;
}

.nx-sidebar-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  width: 11px;
  height: 11px;
  border-top: 1px solid rgba(148, 163, 184, .20);
  border-right: 1px solid rgba(148, 163, 184, .20);
  background: rgba(15, 23, 42, .97);
  transform: translateY(-50%) rotate(45deg);
}

.nx-sidebar-tooltip.is-visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
}

.nx-sidebar-tooltip[data-variant="control"] {
  border-color: rgba(96, 165, 250, .28);
  background: linear-gradient(135deg, rgba(15, 23, 42, .98), rgba(30, 58, 138, .97));
}

.nx-sidebar-tooltip[data-variant="control"]::after {
  border-color: rgba(96, 165, 250, .28);
  background: rgba(24, 48, 112, .98);
}

.nx-sidebar-tooltip[hidden] {
  display: none !important;
}

/* Desktop layout: reserve the collapsed rail on the RIGHT. */
.main-content {
  min-height: 10vh;
  margin-right: var(--nx-sidebar-collapsed) !important;
  margin-left: 0 !important;
  transition: margin-right .24s cubic-bezier(.2, .75, .25, 1);
}

.nx-navbar {
  padding-right: calc(var(--nx-sidebar-collapsed) + .6rem) !important;
  padding-left: 1rem !important;
  transition: padding-right .24s cubic-bezier(.2, .75, .25, 1);
}

@media (min-width: 1200px) {
  body.nx-sidebar-pinned-open .main-content {
    margin-right: var(--nx-sidebar-expanded) !important;
  }

  body.nx-sidebar-pinned-open .nx-navbar {
    padding-right: calc(var(--nx-sidebar-expanded) + .6rem) !important;
  }
}


/* Phones and tablets: a visible compact rail expands into an off-canvas panel. */
@media (max-width: 1199.98px) {
  :root {
    --nx-sidebar-collapsed: 62px;
    --nx-sidebar-expanded: min(88vw, 310px);
    --nx-collapsed: 62px;
  }

  body.nx-sidebar-mobile-open {
    overflow: hidden;
  }

  .nx-sidebar {
    width: var(--nx-sidebar-collapsed);
    transform: translateX(0);
    box-shadow: -8px 0 24px rgba(15, 23, 42, .18);
  }

  .nx-sidebar.nx-expanded {
    width: var(--nx-sidebar-expanded);
    transform: translateX(0);
    box-shadow: -14px 0 38px rgba(15, 23, 42, .34);
  }

  .nx-sidebar__head,
  .nx-sidebar:not(.nx-expanded) .nx-sidebar__head {
    min-height: 72px;
    grid-template-columns: 1fr;
    grid-template-rows: 52px;
    align-items: center;
    justify-items: center;
    gap: 0;
    padding: 10px 7px;
  }

  .nx-sidebar.nx-expanded .nx-sidebar__head {
    min-height: 68px;
    grid-template-columns: minmax(0, 1fr) 42px;
    grid-template-rows: 1fr;
    justify-items: stretch;
    gap: 8px;
    padding: 9px 10px;
  }

  .nx-sidebar-mobile-trigger,
  .nx-sidebar:not(.nx-expanded) .nx-sidebar-mobile-trigger {
    display: inline-flex;
  }

  .nx-sidebar.nx-expanded .nx-sidebar-mobile-trigger {
    display: none;
  }

  .nx-sidebar:not(.nx-expanded) .nx-sidebar-brand {
    display: none;
  }

  .nx-sidebar.nx-expanded .nx-sidebar-brand {
    display: flex;
  }

  .nx-sidebar-brand__copy,
  .nx-sidebar.nx-expanded .nx-sidebar-brand__copy {
    display: flex;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .nx-sidebar__toggle,
  .nx-sidebar:not(.nx-expanded) .nx-sidebar__toggle {
    width: 40px;
    height: 40px;
    justify-self: stretch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nx-sidebar.nx-expanded .nx-sidebar__toggle {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nx-sidebar__toggle .bi::before {
    content: "\F659"; /* bi-x-lg */
  }

  .nx-sidebar .nx-nav {
    padding: 8px 6px 16px;
    scrollbar-width: none;
  }

  .nx-sidebar .nx-nav::-webkit-scrollbar {
    display: none;
  }

  .nx-sidebar .nx-item {
    min-height: 47px;
  }

  .nx-sidebar.nx-expanded .nx-item:hover {
    transform: none;
  }

  .nx-sidebar-tooltip {
    display: none !important;
  }

  .main-content {
    width: auto !important;
    max-width: none !important;
    margin-right: var(--nx-sidebar-collapsed) !important;
    margin-left: 0 !important;
  }

  .nx-navbar {
    padding-right: calc(var(--nx-sidebar-collapsed) + .45rem) !important;
    padding-left: .65rem !important;
  }
}

@media (max-width: 575.98px) {
  :root {
    --nx-sidebar-collapsed: 58px;
    --nx-sidebar-expanded: min(91vw, 310px);
    --nx-collapsed: 58px;
  }

  .nx-nav-section__title {
    font-size: 10px;
  }

  .nx-sidebar .nx-item {
    font-size: 12.5px;
  }

  .nx-sidebar-brand__copy small {
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-sidebar,
  .nx-sidebar-brand__copy,
  .nx-sidebar .nx-label,
  .nx-sidebar .nx-submenu,
  .nx-sidebar .nx-item,
  .nx-sidebar .nx-chv,
  .nx-backdrop,
  .main-content,
  .nx-navbar,
  .nx-sidebar-tooltip,
  .nx-sidebar-mobile-trigger {
    transition: none !important;
  }
}
