/* Tenant logos replace the CorelyHr wordmark after sign-in, with a safe fallback. */
.brand .brand-mark {
  align-items: center;
  display: flex;
  max-width: 100%;
  min-width: 0;
}

.brand .brand-default {
  align-items: center;
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

.brand .brand-default img {
  flex: 0 0 34px;
  height: 34px;
  width: 34px;
}

.brand .company-wordmark {
  background: transparent;
  border-radius: 0;
  display: block;
  flex: 0 1 auto;
  height: 42px;
  max-height: 42px;
  max-width: 184px;
  object-fit: contain;
  object-position: left center;
  width: auto;
}

.brand .brand-mark--tenant .brand-default,
.brand .brand-mark--tenant.brand-mark--fallback .company-wordmark {
  display: none;
}

.brand .brand-mark--tenant.brand-mark--fallback .brand-default {
  display: flex;
}

@media (max-width: 700px) {
  .mobile-brand .brand-default img {
    flex-basis: 29px;
    height: 29px;
    width: 29px;
  }

  .mobile-brand .company-wordmark {
    height: 32px;
    max-height: 32px;
    max-width: 152px;
  }
}

/* Keep a long desktop navigation independently reachable without showing a rail. */
.sidebar {
  min-height: 100svh;
  overflow: hidden;
}

.sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar-scroll::-webkit-scrollbar {
  height: 0;
  width: 0;
}

.sidebar-foot {
  flex: 0 0 auto;
  margin-top: 0;
}
