site-top-nav {
  display: block;
}

.app-navbar {
  height: 40px;
  padding: 0;
}

.top-nav {
  position: relative;
  z-index: 50;
  height: 40px;
  display: flex;
  align-items: stretch;
  background: #212529;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.top-nav.fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
}

.top-nav a {
  color: inherit;
  text-decoration: none;
}

.top-nav__brand {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.top-nav__icon-button {
  width: 40px;
  height: 40px;
  display: none;
  place-items: center;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.top-nav__icon-button span {
  width: 16px;
  height: 2px;
  grid-column: 1;
  grid-row: 1;
  background: currentColor;
}

.top-nav__icon-button span:nth-child(1) {
  transform: translateY(-5px);
}

.top-nav__icon-button span:nth-child(3) {
  transform: translateY(5px);
}

.top-nav__menu {
  display: flex;
  align-items: stretch;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-nav__item {
  position: relative;
  display: flex;
  align-items: stretch;
}

.top-nav__button {
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0 18px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.top-nav__button i,
.top-nav__link i {
  width: 16px;
  flex: 0 0 16px;
  text-align: center;
}

.top-nav__button::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.top-nav__item:hover .top-nav__button,
.top-nav__item:focus-within .top-nav__button,
.top-nav__item.is-active .top-nav__button {
  background: rgba(255, 255, 255, 0.08);
}

.top-nav__dropdown {
  position: absolute;
  top: 40px;
  left: 0;
  display: none;
  min-width: 180px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  border: 1px solid #dfe3eb;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
}

.top-nav__dropdown--right {
  right: 0;
  left: auto;
}

.top-nav__item:hover .top-nav__dropdown,
.top-nav__item:focus-within .top-nav__dropdown {
  display: block;
}

.top-nav__link {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  color: #303640;
  white-space: nowrap;
}

.top-nav__link:hover,
.top-nav__link.is-active {
  background: #ecf5ff;
  color: #409eff;
}

.top-nav__spacer {
  flex: 1 1 auto;
}

.top-nav__user-menu {
  flex: 0 0 auto;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.top-nav__user-button {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-nav__user-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-nav__user-dropdown {
  min-width: 220px;
}

.top-nav__divider {
  padding: 0 12px;
  pointer-events: none;
}

.top-nav__divider .el-divider {
  margin: 8px 0 6px;
  border-color: #dfe3eb;
}

.top-nav__divider .el-divider__text {
  color: #909399;
  font-size: 12px;
  background: #fff;
}

body.has-top-nav .grid-shell {
  min-height: calc(100vh - 40px);
}

body.has-top-nav .site-breadcrumb + .grid-shell {
  min-height: calc(100vh - 80px);
}

.site-breadcrumb {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 12px;
  border-bottom: 1px solid #dfe3eb;
  background: #fff;
  color: #409eff;
  font-size: 15px;
}

.site-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #409eff;
  text-decoration: none;
}

.site-breadcrumb span:last-child {
  color: #409eff;
}

@media (max-width: 640px) {
  .top-nav {
    height: auto;
    min-height: 40px;
    flex-wrap: wrap;
  }

  .top-nav__brand {
    height: 40px;
  }

  .top-nav__menu {
    flex: 1 1 100%;
    overflow-x: auto;
  }

  .top-nav__button {
    padding: 0 14px;
  }

  .top-nav__icon-button {
    display: grid;
  }
}
