html,
body {
  height: 100%;
}

body.has-common-header {
  --common-header-height: 50px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior-y: none;
}

body.has-common-header.common-header-hidden {
  --common-header-height: 0px;
}

#redoc-container {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

body.has-common-header #redoc-container .menu-content {
  height: calc(100vh - var(--common-header-height)) !important;
}

body.has-common-header.common-header-hidden .headerContainer {
  display: none;
}

.headerContainer {
  height: var(--common-header-height);
  flex: 0 0 var(--common-header-height);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background-color: #fff;
  box-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.16);
  z-index: 50;

  .titleText {
    font-size: 16px;
    font-weight: 600;
    color: #333;
  }

  .langContainer {
    position: relative;
  }
  .langContainer .dropdown-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    border-radius: 2px;
    min-width: 96px;
    padding: 5px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13), 0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 1;
    color: #737373;
    right: 0;
    top: 24px;
  }
  .langContainer .dropdown-menu .langOption {
    display: block;
    width: 100%;
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 12px;
    text-align: left;
  }
  .langContainer .dropdown-menu .langOption:hover {
    background-color: #2d8eed;
    color: #fff;
  }
  .langContainer.active .dropdown-menu {
    display: block;
  }

  .langDropdown {
    display: flex;
    align-items: center;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    .langIcon,
    .arrowIcon {
      width: 14px;
      height: 14px;
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center center;
    }
  }
  .langDropdown .langIcon {
    background-image: url("../images/earth.png");
  }
  .langDropdown .arrowIcon {
    background-image: url("../images/arrowDown.png");
  }
  .langDropdown .langText {
    margin: 0 10px 0 3px;
    font-size: 12px;
    font-family: Arial, Hiragino Sans GB, md-hsgb, Microsoft YaHei,
      WenQuanYi Micro Hei, sans-serif;
    color: #666;
  }
}
