.inv-mobile-menu-btn,
.inv-sidebar-backdrop,
.inv-mobile-close {
  display: none;
}

.inv-sidebar {
  width: 280px;
  min-width: 280px;
  min-height: calc(100vh - 58px);
  background: #4a5b81;
  color: #e2e8f0;
  padding: 14px 12px;
  border-inline-end: 0;
  flex-shrink: 0;
  transition: width .2s ease, min-width .2s ease, transform .22s ease;
}

.inv-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: 12px;
}

.inv-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.inv-brand-copy {
  min-width: 0;
}

.inv-brand-title {
  font-weight: 900;
  font-size: 18px;
  line-height: 1.25;
}

.inv-brand-sub {
  font-size: 12px;
  opacity: .72;
  margin-top: 2px;
}

.inv-group {
  margin-top: 12px;
}

.inv-group-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, .03);
  color: #f8fbfd;
  text-align: start;
}

.inv-group-header:hover {
  background: rgba(255, 255, 255, .06);
}

.inv-group-header i {
  transition: transform .18s ease;
}

.inv-group-body {
  display: none;
  flex-direction: column;
  padding: 8px 0 0 6px;
}

html[dir="rtl"] .inv-group-body {
  padding: 8px 6px 0 0;
}

.inv-group.open .inv-group-body {
  display: flex;
}

.inv-group.open .inv-group-header i {
  transform: rotate(180deg);
}

.inv-link {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 9px 10px;
  margin: 4px 0;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #cbd5e1;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.inv-link:hover,
.inv-link.active {
  background: rgba(59, 130, 246, .18);
  border-color: rgba(59, 130, 246, .35);
  color: #fff;
}

.inv-link i {
  width: 18px;
  flex: 0 0 18px;
  text-align: center;
}

.inv-side-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.inv-collapse-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  color: #e2e8f0;
}

.inv-sidebar.collapsed {
  width: 86px;
  min-width: 86px;
}

.inv-sidebar.collapsed .inv-brand {
  justify-content: center;
}

.inv-sidebar.collapsed .inv-brand-copy,
.inv-sidebar.collapsed .inv-group-header span,
.inv-sidebar.collapsed .inv-link span,
.inv-sidebar.collapsed .inv-collapse-btn span {
  display: none;
}

.inv-sidebar.collapsed .inv-group-header,
.inv-sidebar.collapsed .inv-link {
  justify-content: center;
}

.inv-sidebar.collapsed .inv-group-body {
  padding-inline: 0;
}

@media (max-width: 1024px) {
  .inv-mobile-menu-btn {
    position: sticky;
    top: 8px;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin: 10px 10px 0;
    padding: 8px 12px;
    border: 1px solid rgba(74, 91, 129, .18);
    border-radius: 12px;
    background: #4a5b81;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(30, 45, 70, .16);
  }

  .inv-mobile-close {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-inline-start: auto;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
  }

  .inv-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1045;
    display: none;
    background: rgba(15, 23, 42, .46);
  }

  body.inv-sidebar-open .inv-sidebar-backdrop {
    display: block;
  }

  .inv-sidebar,
  .inv-sidebar.collapsed {
    position: fixed !important;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    z-index: 1050;
    width: min(86vw, 320px) !important;
    min-width: 0 !important;
    min-height: 100vh !important;
    overflow-y: auto;
    transform: translateX(-105%);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .28);
  }

  html[dir="rtl"] .inv-sidebar,
  html[dir="rtl"] .inv-sidebar.collapsed {
    transform: translateX(105%);
  }

  body.inv-sidebar-open .inv-sidebar,
  body.inv-sidebar-open .inv-sidebar.collapsed {
    transform: translateX(0);
  }

  .inv-sidebar .inv-brand {
    justify-content: flex-start;
  }

  html[dir="rtl"] .inv-sidebar .inv-brand {
    justify-content: flex-start;
  }

  .inv-sidebar .inv-brand-copy,
  .inv-sidebar .inv-group-header span,
  .inv-sidebar .inv-link span,
  .inv-sidebar .inv-collapse-btn span {
    display: block;
  }

  .inv-sidebar .inv-group-header,
  .inv-sidebar .inv-link {
    justify-content: space-between;
  }

  .inv-sidebar .inv-link {
    justify-content: flex-start;
  }

  .inv-side-footer {
    display: none;
  }
}

@media (max-width: 420px) {
  .inv-mobile-menu-btn {
    width: calc(100% - 20px);
    justify-content: center;
  }
}
