h1 {
	word-wrap: break-word;
}

.sv-rest-api-endpoint-documentation {
  --sv-rest-api-endpoint-documentation: 1px solid var(--env-border-color);

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    display: block !important;
    word-wrap: break-word;
    margin-right: 6em;
  }

  table {
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    width: 100%;

    tbody > tr:nth-of-type(odd) {
      background-color: var(--env-section-background-color-05);
    }

    th {
      text-align: left;
      vertical-align: bottom;
    }

    td {
      vertical-align: top;
    }

    td,
    th {
      padding: 0.5em;
      border: var(--sv-rest-api-endpoint-documentation);
    }
  }

  pre {
    padding: 0.5em;
    margin-bottom: 20px;
    background-color: var(--env-section-background-color-05);
    border: var(--sv-rest-api-endpoint-documentation);
    border-radius: 4px;
    white-space: pre-wrap;
    overflow-x: auto;
  }

  .short-description {
    border-bottom: var(--sv-rest-api-endpoint-documentation);
    position: relative;

    &[data-deprecated] {
      &:before {
        content: "@Deprecated, will be removed " attr(data-deprecated);
        font-size: 90%;
        font-weight: 300;
        color: var(--env-ui-color-status-error-text);
        position: absolute;
        right: 0;
      }
    }

    &[data-since] {
      &:before {
        content: "Available since " attr(data-since);
        font-size: 90%;
        font-weight: 300;
        position: absolute;
        right: 0;
      }
    }
  }

  .method-description {
    position: relative;
    border-bottom: var(--sv-rest-api-endpoint-documentation);

    &[data-deprecated] {
      color: var(--env-ui-color-status-error-text);

      a {
        color: var(--env-ui-color-status-error-text);
      }

      &:before {
        content: "@Deprecated, will be removed " attr(data-deprecated);
        font-size: 90%;
        font-weight: 300;
        color: var(--env-ui-color-status-error-text);
        position: absolute;
        right: 0;
      }
    }

    &[data-since] {
      &:before {
        content: "Available since " attr(data-since);
        font-size: 90%;
        font-weight: 300;
        position: absolute;
        right: 0;
      }
    }
  }

  .error-code {
    border-bottom: var(--sv-rest-api-endpoint-documentation);

    &:last-child {
      border-bottom: none;
    }
  }

  .hide {
    display: none;
  }

  .required:after {
    content: " *";
    color: var(--env-ui-color-status-error-text);
  }
}
