.navbar-brand-wrapper {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin-left: 0.75rem;
}
@media (min-width: 768px) {
  header.navbar {
    align-items: center;
  }
  header.navbar .navbar-brand-wrapper {
    flex-shrink: 0;
  }
  header.navbar > .w-100 {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
  }
}

.navbar-brand-link {
  padding: 0.375rem 0.75rem;
  text-decoration: none;
  color: inherit;
  gap: 0.45rem;
  border-radius: 0.375rem;
  line-height: 1.5;
  height: calc(1.5em + 0.75rem + 2px);
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
}
.navbar-brand-toggle {
  background: transparent;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.375rem 0.75rem;
  cursor: pointer;
  color: #fff;
  border-radius: 0.375rem;
  line-height: 1.5;
  height: calc(1.5em + 0.75rem + 2px);
}
.navbar-brand-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}
.navbar-brand-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.15);
}
.brand-logo {
  height: 22px;
  width: auto;
  display: block;
  max-height: 22px;
}
.brand-logistics-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1;
  font-size: 14px;
}
.brand-logistics-mark i {
  font-size: 15px;
  opacity: 0.95;
}
.brand-logistics-text {
  white-space: nowrap;
}
.navbar-brand-toggle.brand-env-dev .brand-logistics-mark,
.navbar-brand-link.brand-env-dev .brand-logistics-mark {
  color: #212529;
}
@media (max-width: 767.98px) {
  .brand-logistics-mark {
    font-size: 13px;
  }
  .brand-logistics-mark i {
    font-size: 14px;
  }
}
.navbar-brand-toggle.brand-env-dev,
.navbar-brand-link.brand-env-dev {
  background: #ffc107;
  color: #212529;
}
.navbar-brand-toggle.brand-env-dev:hover,
.navbar-brand-toggle.brand-env-dev:focus {
  background: #ffc107;
  color: #212529;
  filter: brightness(0.95);
}
.navbar-brand-toggle.brand-env-local,
.navbar-brand-link.brand-env-local {
  background: #198754;
  color: #fff;
}
.navbar-brand-toggle.brand-env-local:hover,
.navbar-brand-toggle.brand-env-local:focus {
  background: #198754;
  color: #fff;
  filter: brightness(0.95);
}
.env-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 2px 5px;
  border-radius: 3px;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: middle;
}
.env-badge.env-dev {
  background: #212529;
  color: #ffc107;
}
.env-badge.env-local {
  background: #fff;
  color: #198754;
}
.env-badge.env-prod {
  background: #fff;
  color: #2c3e50;
}
.brand-chevron {
  font-size: 9px;
  color: #adb5bd;
  transition: transform 0.2s;
}
.brand-env-dev .brand-chevron {
  color: #212529;
}
.brand-env-local .brand-chevron {
  color: #fff;
}
.navbar-brand-toggle[aria-expanded='true'] .brand-chevron {
  transform: rotate(180deg);
}
@media (max-width: 767.98px) {
  .navbar-brand-wrapper {
    margin: 0.5rem 0 0.5rem 0.5rem;
  }
  .brand-logo {
    height: 20px !important;
    max-height: 20px !important;
  }
  .navbar-brand-toggle,
  .navbar-brand-link {
    padding: 0.375rem 0.75rem !important;
    gap: 0.4rem !important;
    height: calc(1.5em + 0.75rem + 2px) !important;
    line-height: 1.5 !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
  }
  .navbar-brand-toggle .env-badge,
  .navbar-brand-link .env-badge {
    display: none !important;
  }
  .brand-chevron {
    font-size: 9px !important;
  }
  .site-switcher-menu {
    min-width: 200px;
    max-width: 240px;
  }
  header.navbar .navbar-toggler {
    padding: 0.375rem 0.75rem !important;
    height: calc(1.5em + 0.75rem + 2px) !important;
    width: auto !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
    border-radius: 0.375rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
  }
  header.navbar .navbar-toggler .navbar-toggler-icon {
    width: 1.25em !important;
    height: 1.25em !important;
    background-size: contain;
  }
}
.site-switcher-menu {
  min-width: 240px;
  max-width: 280px;
  font-size: 0.875rem;
  padding: 0;
  overflow: hidden;
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  margin-top: 0.25rem;
}
.site-switcher-menu .dropdown-header {
  font-size: 0.7rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}
.site-switcher-menu .dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  line-height: 1.2;
}
.site-switcher-menu .dropdown-item.home-item {
  padding: 0.75rem 0.75rem;
  font-weight: 600;
}
.site-switcher-menu .dropdown-item.active {
  background: #0d6efd;
  color: #fff;
}
.site-switcher-menu .dropdown-item.env-item-dev,
.site-switcher-menu .dropdown-item.env-item-dev.active {
  background: #ffc107;
  color: #212529;
}
.site-switcher-menu .dropdown-item.env-item-dev:hover,
.site-switcher-menu .dropdown-item.env-item-dev:focus {
  background: #e0a800;
  color: #212529;
}
.site-switcher-menu .dropdown-item.env-item-local,
.site-switcher-menu .dropdown-item.env-item-local.active {
  background: #198754;
  color: #fff;
}
.site-switcher-menu .dropdown-item.env-item-local:hover,
.site-switcher-menu .dropdown-item.env-item-local:focus {
  background: #146c43;
  color: #fff;
}
.site-switcher-menu .row-icon-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.86rem;
  line-height: 18px;
}
.site-switcher-menu .row-icon-wrap i {
  font-size: 14px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.85;
}
.site-switcher-menu .row-icon-wrap .row-icon-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.site-switcher-menu .dropdown-item.active .row-icon-wrap i {
  opacity: 1;
}
.site-switcher-menu .row-icon-label {
  white-space: nowrap;
}
.navbar-brand-toggle.brand-env-prod,
.navbar-brand-link.brand-env-prod {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #fff;
}
.navbar-brand-toggle.brand-env-prod:hover,
.navbar-brand-toggle.brand-env-prod:focus {
  background: linear-gradient(135deg, #3a4f63 0%, #43576b 100%);
  color: #fff;
}
.brand-env-prod .brand-chevron {
  color: #cbd5e0;
}
.site-switcher-menu .dropdown-item.env-item-prod,
.site-switcher-menu .dropdown-item.env-item-prod.active {
  background: #fff;
  color: #212529;
}
.site-switcher-menu .dropdown-item.env-item-prod:hover,
.site-switcher-menu .dropdown-item.env-item-prod:focus {
  background: #f5f5f5;
  color: #000;
}

[data-bs-theme='dark'] .site-switcher-menu {
  background: #1f1f23;
  border-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme='dark'] .site-switcher-menu .dropdown-item {
  color: #e4e4e7;
}
[data-bs-theme='dark'] .site-switcher-menu .dropdown-item.home-item {
  color: #fafafa;
}
[data-bs-theme='dark'] .site-switcher-menu .dropdown-item.home-item:hover {
  background: #3f3f46;
  color: #fff;
}
[data-bs-theme='dark'] .site-switcher-menu .dropdown-divider {
  border-top-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme='dark'] .site-switcher-menu .dropdown-item.env-item-prod,
[data-bs-theme='dark'] .site-switcher-menu .dropdown-item.env-item-prod.active {
  background: #27272a;
  color: #fafafa;
}
[data-bs-theme='dark'] .site-switcher-menu .dropdown-item.env-item-prod:hover,
[data-bs-theme='dark'] .site-switcher-menu .dropdown-item.env-item-prod:focus {
  background: #3f3f46;
  color: #fff;
}
[data-bs-theme='dark'] .site-switcher-menu .dropdown-item.env-item-dev,
[data-bs-theme='dark'] .site-switcher-menu .dropdown-item.env-item-dev.active {
  background: #854d0e;
  color: #fef3c7;
}
[data-bs-theme='dark'] .site-switcher-menu .dropdown-item.env-item-dev:hover,
[data-bs-theme='dark'] .site-switcher-menu .dropdown-item.env-item-dev:focus {
  background: #a16207;
  color: #fff;
}
[data-bs-theme='dark'] .site-switcher-menu .dropdown-item.env-item-local,
[data-bs-theme='dark'] .site-switcher-menu .dropdown-item.env-item-local.active {
  background: #14532d;
  color: #dcfce7;
}
[data-bs-theme='dark'] .site-switcher-menu .dropdown-item.env-item-local:hover,
[data-bs-theme='dark'] .site-switcher-menu .dropdown-item.env-item-local:focus {
  background: #166534;
  color: #fff;
}
