

/* Compact nav */
.navbar-compact {
  min-height: 44px;
}

.navbar-compact .container-fluid.app-shell {
  padding-block: 0.08rem;
}

.navbar-compact .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  padding: 0;
  margin-right: 0.72rem;
  letter-spacing: 0;
}

.brand-logo-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.03rem;
  line-height: 1;
  font-weight: 800;
}

.mobile-brand-meta {
  display: none;
}

.mobile-brand-title,
.mobile-brand-date {
  color: #e6edf7;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.navbar-compact .navbar-nav {
  align-items: center;
}

.navbar-compact .nav-link {
  position: relative;
  min-height: 22px;
  padding: 0.22rem 0.48rem;
  border-radius: 0;
  background: transparent !important;
  color: #426084;
  font-size: 0.95rem;
  line-height: 1.1;
  font-weight: 600;
}

.navbar-compact .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #2f6ee5;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.navbar-compact .nav-link:hover,
.navbar-compact .nav-link:focus-visible {
  color: #24496f;
  background: transparent !important;
}

.navbar-compact .nav-link.active {
  color: #163860;
  font-weight: 700;
  box-shadow: none;
}

.navbar-compact .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.navbar-compact .navbar-toolbar {
  gap: 0.3rem;
  align-items: center;
}

.navbar-compact .desktop-meta {
  font-size: 0.8rem;
  color: #5c7899;
  letter-spacing: 0;
}

.account-switcher {
  position: relative;
}

.navbar-compact .btn-account-switch {
  min-width: 84px;
  max-width: 148px;
  height: 26px;
  min-height: 26px;
  max-height: 26px;
  padding: 0 0.55rem;
  border-radius: 999px;
  border: 1px solid #b8cbe3;
  background: rgba(255, 255, 255, 0.82);
  color: #3a5a80;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  line-height: 1;
  box-sizing: border-box;
  vertical-align: middle;
}

.navbar-compact .btn-account-switch:hover,
.navbar-compact .btn-account-switch:focus-visible {
  color: #234b76;
  border-color: #8eaedf;
  background: #f5f9ff;
}

.account-switcher__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-switcher__menu {
  min-width: 210px;
  padding: 0.4rem 0;
}

.account-switcher__section-label {
  padding: 0.15rem 1rem 0.35rem;
  font-size: 0.7rem;
  color: #6a829e;
  text-transform: uppercase;
}

.account-switcher__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.account-switcher__item small {
  color: #7990aa;
  text-transform: uppercase;
}

.account-switcher__item.is-active,
.account-switcher__item:disabled {
  opacity: 1;
  background: rgba(84, 131, 193, 0.08);
  color: #244c78;
}

.navbar-compact .badge {
  display: none;
}

.navbar-compact .theme-switch {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.navbar-compact .btn-theme-icon,
.navbar-compact .btn-logout-icon {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #b8cbe3;
  background: rgba(255, 255, 255, 0.82);
  color: #3a5a80;
  padding: 0;
  box-shadow: none;
}

.navbar-compact .btn-theme-icon:hover,
.navbar-compact .btn-theme-icon:focus-visible,
.navbar-compact .btn-logout-icon:hover,
.navbar-compact .btn-logout-icon:focus-visible {
  color: #234b76;
  border-color: #8eaedf;
  background: #f5f9ff;
  transform: none;
}

.navbar-compact .btn-theme-icon svg,
.navbar-compact .btn-logout-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon--moon {
  display: none;
}

html[data-theme="dark"] .theme-icon--sun {
  display: none;
}

html[data-theme="dark"] .theme-icon--moon {
  display: block;
}

html[data-theme="dark"] .navbar-compact .nav-link {
  color: #dbe8fb;
}

html[data-theme="dark"] .navbar-compact .nav-link:hover,
html[data-theme="dark"] .navbar-compact .nav-link:focus-visible {
  color: #ffffff;
}

html[data-theme="dark"] .navbar-compact .nav-link.active {
  color: #ffffff;
}

html[data-theme="dark"] .navbar-compact .nav-link::after {
  background: #7db7ff;
}

html[data-theme="dark"] .navbar-compact .desktop-meta {
  color: #c8dbf4;
}

html[data-theme="dark"] .navbar-compact .btn-account-switch {
  border-color: rgba(198, 220, 247, 0.52);
  background: rgba(255, 255, 255, 0.08);
  color: #dcecff;
}

html[data-theme="dark"] .navbar-compact .btn-account-switch:hover,
html[data-theme="dark"] .navbar-compact .btn-account-switch:focus-visible {
  border-color: rgba(216, 234, 255, 0.72);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

html[data-theme="dark"] .account-switcher__menu {
  background: #10263f;
  border-color: rgba(167, 196, 231, 0.2);
}

html[data-theme="dark"] .account-switcher__section-label,
html[data-theme="dark"] .account-switcher__item small {
  color: #98b6d8;
}

html[data-theme="dark"] .account-switcher__item {
  color: #e8f1ff;
}

html[data-theme="dark"] .account-switcher__item.is-active,
html[data-theme="dark"] .account-switcher__item:disabled {
  background: rgba(125, 183, 255, 0.18);
  color: #ffffff;
}

html[data-theme="dark"] .mobile-brand-title {
  color: #edf4ff;
}

html[data-theme="dark"] .mobile-brand-date {
  color: #9db4d4;
}

html[data-theme="dark"] .navbar-compact .btn-theme-icon,
html[data-theme="dark"] .navbar-compact .btn-logout-icon {
  border-color: rgba(198, 220, 247, 0.52);
  background: rgba(255, 255, 255, 0.08);
  color: #dcecff;
}

html[data-theme="dark"] .navbar-compact .btn-theme-icon:hover,
html[data-theme="dark"] .navbar-compact .btn-theme-icon:focus-visible,
html[data-theme="dark"] .navbar-compact .btn-logout-icon:hover,
html[data-theme="dark"] .navbar-compact .btn-logout-icon:focus-visible {
  border-color: rgba(216, 234, 255, 0.72);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

@media (max-width: 991.98px) {
  .navbar-compact {
    min-height: 40px;
  }

  .brand-name,
  .navbar-compact .navbar-collapse .navbar-nav {
    display: none;
  }

  .navbar-compact .navbar-brand {
    margin-right: auto;
    position: relative;
    z-index: 4;
  }

  .navbar-compact .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 0;
    align-items: center;
    position: relative;
    z-index: 5;
  }

  .navbar-compact .navbar-toolbar {
    position: relative;
    z-index: 6;
    pointer-events: auto;
  }

  .navbar-compact .btn-theme-icon,
  .navbar-compact .btn-logout-icon,
  .navbar-compact .btn-account-switch {
    position: relative;
    z-index: 7;
    pointer-events: auto;
    touch-action: manipulation;
  }

  .navbar-compact .btn-account-switch {
    max-width: 112px;
  }

  .mobile-brand-meta {
    display: inline-flex;
    align-items: baseline;
    gap: 0.42rem;
    margin-left: 0.08rem;
  }

  .mobile-brand-title {
    color: #163b63;
    font-size: 1rem;
    font-weight: 700;
  }

  .mobile-brand-date {
    color: #5e799a;
    font-size: 0.88rem;
    font-weight: 600;
  }

  .brand-logo-icon {
    width: 20px;
    height: 20px;
  }
}

html[data-theme="dark"] .dashboard-updated-at {
  color: #9ab4d2;
}

html[data-theme="dark"] .dashboard-action-link {
  color: #9ab8dc;
}

html[data-theme="dark"] .dashboard-action-link:hover,
html[data-theme="dark"] .dashboard-action-link:focus-visible {
  color: #c6dcf6;
}