.page-with-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.page-with-menu .page-content a {
  color: var(--blurple);
}

.page-with-menu .nav-container {
  position: relative;
  top: 0;
  margin-right: 30px;
  margin-bottom: 30px;
}

.page-with-menu .page-nav {
  width: 100%;
  height: 100%;
  padding: 8px 0;
  border-radius: 4px;
  background-color: #eee;
}

.page-with-menu .link {
  color: #6c60f3;
  font-size: 12px;
  margin-left: 18px;
}

.dpa-btn {
  background-color: #6c60f3;
  border-radius: 5px;
  padding: 6px 15px;
  color: #fff !important;
}

.page-with-menu nav a {
  display: block;
  padding: 10px 20px;
  color: #414141;
}

.rml-api-nav-item {
  position: relative;
}

.rml-api-nav-item::after {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 20px;
  height: 20px;
  background-image: url('../svgs/chevron-down.svg');
  background-size: 18px;
  background-repeat: no-repeat;
  content: '';
}

.page-with-menu nav .sub-menu-list a {
  padding: 6px 20px 6px 40px;
}

.page-with-menu nav a.active-link {
  background: #ddd;
}

.page-with-menu nav a.active-link.rml-api-nav-item::after {
  background-image: url('../svgs/chevron-up.svg');
}

.page-with-menu nav a:hover {
  background-color: #ddd;
}

.page-with-menu .link.back {
  color: #433b9e;
}

.sub-menu {
  display: none;
}

.sub-menu-header {
  font-size: 12px;
}

.sub-menu-list {
  margin: 0;
  padding: 0;
}

.sub-menu-list li {
  font-size: 13px;
}

.sub-menu-list li.long-name {
  font-size: 12px;
}

.active-link + .sub-menu {
  display: block;
}

.rml-table {
  display: none;
  margin-top: 10px;
  border-radius: 4px;
}

.rml-table td {
  font-size: 12px;
  border-color: #ddd;
}

.rml-table tr > td {
  min-width: 380px;
}

.rml-table.embed-position tr > td {
  min-width: 100px;
}

.rml-table.styles tr > td:first-child {
  min-width: 240px;
}

.rml-table.styles tr > td:not(:first-child) {
  min-width: auto;
}

.nav-container .logo {
  display: none;
}

@media (min-width: 768px) {
  .page-with-menu {
    flex-direction: row;
  }

  .rml-table {
    display: block;
  }

  .page-with-menu .nav-container {
    position: sticky;
    top: 100px;
    flex-shrink: 0;
    width: 200px;
    height: 100%;
  }

  .api.page-with-menu .nav-container {
    position: sticky;
    top: 0;
    height: 100vh;
    margin-bottom: 0;
    padding-top: 60px;
    padding-bottom: 60px;
    background: #eee;
  }

  .nav-container .logo {
    display: block;
    margin-left: 16px;
    margin-bottom: 20px;
  }
}

@media (min-width: 1000px) {
  .rml-table.styles tr > td:first-child {
    min-width: 130px;
  }
}

@media (min-width: 1300px) {
  .rml-table.styles tr > td:first-child {
    min-width: 230px;
  }
}
