/* Controlled upper app bar */
.topbar{
  min-width:0;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:0 20px;
  background:#fff;
  border-bottom:1px solid #e2e7eb;
  box-shadow:none;
}

.top-left-tools{
  min-width:0;
  display:flex;
  align-items:center;
  gap:10px;
}

.workspace-crumb{
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
  color:#6b7782;
}

.topbar .workspace-crumb strong{
  max-width:220px;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#203449;
  font-size:11px;
  font-weight:820;
}

.topbar .workspace-crumb b{
  max-width:260px;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#22384e;
  font-size:11px;
  font-weight:760;
}

.workspace-crumb-separator{
  color:#a4afb8!important;
}

.top-auth{
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
}

.top-status{
  height:32px;
  display:inline-flex;
  align-items:center;
  gap:4px;
  border:1px solid #e7d9aa;
  border-radius:999px;
  padding:0 10px;
  background:#fbf6e7;
  color:#6a5720;
  font-size:9px;
  font-weight:820;
  white-space:nowrap;
}

button.top-status:hover{
  background:#f8f0d8;
}

.top-company-switcher{
  height:32px;
  max-width:170px;
  border:1px solid transparent;
  border-radius:8px;
  background:#f6f8fa;
  color:#314459;
  padding:0 28px 0 9px;
  font-size:9px;
  font-weight:730;
}

.top-company-switcher:hover{
  border-color:#dce3e9;
}

.top-icon{
  position:relative;
  width:32px;
  min-width:32px;
  height:32px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#516276;
}

.top-icon:hover{
  background:#f1f4f7;
  color:#1f3c58;
}

.mobile-nav-toggle{
  display:none!important;
  font-size:17px;
}

.top-notifications svg{
  width:17px;
  height:17px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.8;
}

.top-notifications em{
  position:absolute;
  top:1px;
  right:0;
  min-width:15px;
  height:15px;
  padding:0 3px;
  border:2px solid #fff;
  border-radius:999px;
  background:#b94b43;
  color:#fff;
  display:grid;
  place-items:center;
  font-size:6px;
  font-style:normal;
  font-weight:900;
  line-height:1;
}

.top-profile{
  position:relative;
}

.top-profile-trigger{
  min-width:0;
  height:34px;
  display:flex;
  align-items:center;
  gap:8px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:#273a4d;
  padding:3px 6px 3px 3px;
}

.top-profile-trigger:hover,
.top-profile.open .top-profile-trigger{
  background:#f2f5f7;
}

.top-profile-avatar{
  width:28px;
  height:28px;
  min-width:28px;
  border-radius:8px;
  background:#17324f;
  color:#fff!important;
  display:grid;
  place-items:center;
  font-size:8px;
  font-weight:900;
  letter-spacing:.03em;
}

.top-profile-copy{
  min-width:0;
  display:grid;
  text-align:left;
  line-height:1.1;
}

.topbar .top-profile-copy b{
  max-width:145px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#22374d;
  font-size:10px;
}

.topbar .top-profile-copy small{
  max-width:145px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#84909a;
  font-size:7.5px;
  margin-top:2px;
}

.top-profile-chevron{
  color:#85919b!important;
  font-size:11px;
}

.top-profile-menu{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  z-index:90;
  width:242px;
  padding:8px;
  border:1px solid #dde4e9;
  border-radius:11px;
  background:#fff;
  box-shadow:0 18px 42px rgba(22,48,73,.16);
}

.top-profile-menu[hidden]{
  display:none;
}

.profile-menu-identity{
  display:grid;
  gap:3px;
  padding:8px 9px 10px;
  margin-bottom:4px;
  border-bottom:1px solid #edf1f4;
}

.topbar .profile-menu-identity b{
  color:#24384d;
  font-size:11px;
}

.topbar .profile-menu-identity small{
  color:#7b8894;
  font-size:8.5px;
  overflow:hidden;
  text-overflow:ellipsis;
}

.topbar .profile-menu-identity span{
  width:max-content;
  margin-top:3px;
  padding:3px 6px;
  border-radius:999px;
  background:#eef3f6;
  color:#516579;
  font-size:7.5px;
  font-weight:800;
}

.profile-menu-language{
  display:grid;
  gap:5px;
  padding:8px 9px;
}

.profile-menu-language>span{
  color:#70808f!important;
  font-size:7.5px;
  font-weight:850;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.profile-menu-language select{
  width:100%;
  height:32px;
  border:1px solid #dce3e8;
  border-radius:7px;
  background:#fff;
  color:#2d4053;
  padding:0 28px 0 8px;
  font-size:9px;
  font-weight:700;
}

.profile-menu-item{
  width:100%;
  min-height:34px;
  display:flex;
  align-items:center;
  gap:9px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#34475a;
  padding:7px 9px;
  text-align:left;
  font-size:9.5px;
  font-weight:700;
}

.profile-menu-item:hover{
  background:#f3f6f8;
}

.profile-menu-item>span:first-child{
  width:18px;
  color:#718292;
  text-align:center;
}

.profile-menu-item.danger{
  color:#8b3e39;
}

.profile-menu-divider{
  height:1px;
  background:#edf1f4;
  margin:5px 0;
}

@media(max-width:900px){
  .top-profile-copy,
  .top-profile-chevron{
    display:none;
  }

  .top-profile-trigger{
    width:34px;
    padding:3px;
    justify-content:center;
  }

  .top-company-switcher{
    max-width:125px;
  }
}

@media(max-width:750px){
  .mobile-nav-toggle{
    display:grid!important;
  }

  .topbar{
    padding-left:12px;
    padding-right:12px;
  }

  .topbar{
    height:56px;
    gap:7px;
    padding-left:9px;
    padding-right:9px;
  }

  .workspace-crumb{
    gap:5px;
  }

  .topbar .workspace-crumb strong{
    max-width:88px;
  }

  .topbar .workspace-crumb b{
    max-width:112px;
  }

  .top-auth{
    gap:3px;
  }

  .top-company-switcher{
    max-width:100px;
  }

  .top-profile-menu{
    position:fixed;
    top:62px;
    right:9px;
    width:min(260px,calc(100vw - 18px));
  }
}

@media(max-width:480px){
  .topbar .workspace-crumb strong,
  .workspace-crumb-separator,
  .top-trial-status{
    display:none;
  }

  .topbar .workspace-crumb b{
    max-width:92px;
  }

  .top-status{
    gap:0;
    padding-left:8px;
    padding-right:8px;
  }

  .top-company-switcher{
    display:none;
  }
}
