html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Permission-filtered navigation should not leave empty section headings. */
.erp-navigation-menu details:not(:has(a)) { display: none; }

@media screen and (max-width: 991.98px) {
  .erp-app .erp-navigation {
    display: none;
    max-inline-size: calc(100% - 3rem);
    overscroll-behavior: contain;
  }

  .erp-app.nav-open .erp-navigation { display: block; }
  body:has(.erp-app.nav-open) { overflow: hidden; }

  .erp-top-banner > div,
  .erp-brand,
  .erp-brand-copy,
  .erp-tenant-context,
  .erp-current-branch { min-inline-size: 0; }

  .erp-navigation-toggle,
  .erp-brand-mark { flex-shrink: 0; }

  .erp-current-branch strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media screen and (max-width: 575.98px) {
  body.erp-list-body .erp-app { --erp-top-banner-height: 7rem; }

  body.erp-list-body .erp-app .erp-top-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: .25rem;
    padding: .375rem .75rem;
  }

  .erp-top-banner .erp-tenant-name { max-inline-size: none; }
  .erp-list-body .erp-banner-actions .erp-user-menu { margin-inline-start: auto; }
}

.takalef-wordmark {
  font-family: Dubai, Tahoma, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.25;
  color: #193452;
}

.erp-brand-mark { width: 2.4rem; height: 2.4rem; object-fit: contain; }

.erp-navigation-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
}

.erp-navigation-header strong { min-width: 0; overflow-wrap: anywhere; }
.erp-tenant-name {
  max-inline-size: min(22vw, 14rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.erp-company-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #dbe8ef;
  color: #102f43;
  font-size: 1.35rem;
  font-weight: 700;
}

.erp-company-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 2px;
  border-radius: .45rem;
  object-fit: contain;
  background: #fff;
}
