.nav-primary,
.nav-menu {
  display: grid;
  gap: 4px;
}

.brand img {
  display: block;
  width: 148px;
  height: 62px;
  object-fit: contain;
}

.brand > small {
  display: block;
  color: #cfe8fb;
  font-size: 10px;
  text-align: center;
}

.nav-secondary {
  margin-top: 5px;
}

.nav-group {
  padding: 11px 13px;
  border: 0;
  border-radius: 9px;
  color: #c6dcf1;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.nav-group:hover,
.nav-group.active {
  color: #fff;
  background: rgba(255,255,255,.13);
}

.nav-group span,
.settings-nav span {
  margin-right: 5px;
  font-size: 14px;
}

.geotab-hosted .shell {
  display: block;
  min-height: 100vh;
  overflow: visible;
  overflow-anchor: none;
}

.geotab-hosted .sidebar {
  position: sticky;
  top: 0;
  z-index: 100;
  right: auto;
  bottom: auto;
  left: auto;
  display: grid;
  grid-template-columns: 118px max-content minmax(0, 1fr);
  grid-template-rows: minmax(40px, auto) minmax(36px, auto);
  align-items: center;
  gap: 4px 12px;
  width: 100%;
  height: auto;
  min-height: 88px;
  max-height: none;
  margin-top: var(--hosted-navigation-offset, 0px);
  padding: 10px 18px;
  overflow: visible;
  background: linear-gradient(105deg, #49b5f2 0%, #167fcf 38%, #07549d 68%, #052f68 100%);
  box-shadow: 0 5px 18px rgba(5, 43, 87, .24);
  transform: translateZ(0);
}

.geotab-hosted main {
  padding-top: 0;
}

.geotab-hosted .brand {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  display: grid;
  place-items: center;
  width: 118px;
  height: 76px;
  padding: 4px 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 3px 10px rgba(5,43,87,.16);
}

.geotab-hosted .brand img {
  width: 106px;
  height: 66px;
  object-fit: contain;
  filter: none;
}

.geotab-hosted .brand small,
.geotab-hosted .safe-note {
  display: none;
}

.geotab-hosted .environment {
  grid-column: 2;
  grid-row: 1 / 3;
  margin: 0;
  padding: 7px 9px;
  color: #075238;
  border-color: rgba(255,255,255,.65);
  background: rgba(241,255,248,.92);
  box-shadow: 0 2px 8px rgba(5,43,87,.12);
}

.geotab-hosted .sidebar nav.nav-groups {
  grid-column: 3;
  grid-row: 1 / 3;
  display: grid;
  grid-template-rows: minmax(40px, auto) minmax(36px, auto);
  gap: 4px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.geotab-hosted .nav-primary,
.geotab-hosted .nav-secondary,
.geotab-hosted .nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: rgba(255,255,255,.35) transparent;
  scrollbar-width: thin;
}

.geotab-hosted .nav-secondary {
  padding-top: 2px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.geotab-hosted .nav-menu.hidden {
  display: none;
}

.geotab-hosted .nav,
.geotab-hosted .nav-group {
  flex: 0 0 auto;
  padding: 7px 11px;
  white-space: nowrap;
}

.geotab-hosted .nav:hover,
.geotab-hosted .nav.active,
.geotab-hosted .nav-group:hover,
.geotab-hosted .nav-group.active {
  background: rgba(255,255,255,.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}

@media (max-width: 760px) {
  .geotab-hosted .sidebar {
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: minmax(39px, auto) minmax(35px, auto);
    column-gap: 8px;
    height: auto;
    min-height: 86px;
    max-height: none;
    padding: 8px 10px;
  }

  .geotab-hosted main {
    padding-top: 0;
  }

  .geotab-hosted .brand {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 72px;
    height: 68px;
    padding: 3px;
    border-radius: 10px;
  }

  .geotab-hosted .brand img {
    width: 66px;
    height: 60px;
  }

  .geotab-hosted .sidebar nav.nav-groups {
    grid-column: 2;
    grid-row: 1 / 3;
    grid-template-rows: minmax(39px, auto) minmax(35px, auto);
  }

  .geotab-hosted .environment {
    display: none;
  }
}

@media (max-width: 440px) {
  .geotab-hosted .sidebar {
    grid-template-columns: 58px minmax(0, 1fr);
    padding-right: 7px;
    padding-left: 7px;
  }

  .geotab-hosted .brand,
  .geotab-hosted .brand img {
    width: 56px;
  }

  .geotab-hosted .nav,
  .geotab-hosted .nav-group {
    padding-right: 9px;
    padding-left: 9px;
  }
}
