/**
 * apidoc main css file
 */

/**
 * Define colors
 */
:root {
  --primary: #0088cc;
  --white: #fff;
  --light-gray: #ccc;
  --main-gray: #777;
  --dark-gray: #2d2d2d;
  --hover-gray: #666;
  --meth-get: green;
  --meth-put: #e5c500;
  --meth-post: #4070ec;
  --meth-delete: #ed0039;
  --red: #dc3545;
}

.color-primary {
  color: var(--primary);
}

.bg-primary {
  background-color: var(--primary);
}

.bg-red {
  color: var(--white);
  background-color: var(--red);
}

.border-danger {
  border: 1px solid var(--red);
}

/* ------------------------------------------------------------------------------------------
 * Layout and utilities (replacing Bootstrap base)
 * ------------------------------------------------------------------------------------------ */
.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  box-sizing: border-box;
}

.col-sm-3,
.col-lg-2 {
  flex: 0 0 auto;
  box-sizing: border-box;
  padding-right: 15px;
  padding-left: 15px;
}

.col-sm-3 {
  width: 25%;
}

.col-lg-2 {
  width: 16.666667%;
}

.col-sm-9,
.col-lg-10 {
  flex: 0 0 auto;
  box-sizing: border-box;
  padding-right: 15px;
  padding-left: 15px;
}

.col-sm-9 {
  width: 75%;
}

.col-lg-10 {
  width: 83.333333%;
}

@media (min-width: 992px) {
  .col-lg-2 {
    width: 16.666667%;
  }
  .col-lg-10 {
    width: 83.333333%;
  }
}

@media (max-width: 991px) {
  .col-sm-3 {
    width: 25%;
  }
  .col-sm-9 {
    width: 75%;
  }
}

.pull-left {
  float: left;
}
.pull-right {
  float: right;
}
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.hide {
  display: none !important;
}

.visible-xs {
  display: none !important;
}

@media (max-width: 767px) {
  .visible-xs {
    display: block !important;
  }
}

.text-muted,
.muted {
  color: var(--main-gray);
}

.font-weight-bold {
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  vertical-align: middle;
  background-color: transparent;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-default,
.btn-secondary {
  color: #333;
  background-color: #fff;
  border-color: var(--light-gray);
}

.btn-default:hover,
.btn-secondary:hover {
  background-color: #e6e6e6;
  border-color: #adadad;
}

.btn-primary {
  color: var(--white);
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #006699;
  border-color: #006699;
}

.btn-danger {
  color: var(--white);
  background-color: var(--red);
  border-color: var(--red);
}

.btn-success {
  color: var(--white);
  background-color: #5cb85c;
  border-color: #4cae4c;
}

.btn-link {
  border: none;
  background: none;
  color: var(--primary);
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-lg {
  padding: 0.75rem 1.25rem;
  font-size: 1.25rem;
}

.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Wells */
.well {
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
}

.well-sm {
  padding: 0.5rem 1rem;
}

/* Form controls */
.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  background-color: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: var(--primary);
  outline: 0;
}

.form-group {
  margin-bottom: 1rem;
}

.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.input-group-addon {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #555;
  text-align: center;
  background-color: #eee;
  border: 1px solid var(--light-gray);
  border-radius: 4px 0 0 4px;
}

.input-group-addon + .form-control,
.input-group .form-control {
  border-radius: 0 4px 4px 0;
  border-left: 0;
}

.input-group .form-control:first-child {
  border-radius: 4px 0 0 4px;
  border-right: 0;
}

.control-label {
  display: block;
  margin-bottom: 0.25rem;
}

.form-horizontal .form-group {
  /* display: flex;
  flex-wrap: wrap;
  align-items: flex-start; */
  display: block;
}

.form-horizontal .form-group::before,
.form-horizontal .form-group::after {
  display: table;
  content: " ";
}

.form-horizontal .form-group::after {
  clear: both;
}

.form-horizontal .control-label {
  flex: 0 0 25%;
  max-width: 25%;
  padding-top: 0.375rem;
  padding-right: 1rem;
  text-align: left;
}

.form-horizontal .form-group > div:not([class]) {
  flex: 1 1 auto;
  max-width: 75%;
}

.col-md-3 {
  width: 25%;
  box-sizing: border-box;
  padding: 0 15px;
}
.col-md-6 {
  width: 50%;
  box-sizing: border-box;
  padding: 0 15px;
}
.col-md-9 {
  width: 75%;
  box-sizing: border-box;
  padding: 0 15px;
}

/* Tabs */
.nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-tabs,
.nav-tabs-examples {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--light-gray);
}

.nav-tabs li,
.nav-tabs-examples li {
  list-style: none;
  margin: 0;
}

.nav-tabs a,
.nav-tabs-examples a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.nav-tabs a:hover,
.nav-tabs-examples a:hover {
  border-bottom-color: var(--light-gray);
}

.nav-tabs .active a,
.nav-tabs-examples .active a {
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.tab-content .tab-pane {
  display: none;
}

.tab-content .tab-pane.active {
  display: block;
}

/** for some reason the iOS safari style is applied on date inputs */
input[type="date"] {
  line-height: 1.4 !important;
}

/* ------------------------------------------------------------------------------------------
 * Content
 * ------------------------------------------------------------------------------------------ */
/* Hide vertical scrollbar on off canvas animation ("left" positioning) */
html {
  overflow-x: hidden;
}

body {
  font-family: "Source Sans Pro", sans-serif;
}

a:focus {
  background-color: var(--primary);
}

#content {
  margin-top: 10px;
  padding-left: 10px;
}

p {
  font-size: 130%;
  color: var(--main-gray);
}

section {
  padding: 30px 0;
}

article {
  border-top: 1px solid var(--light-gray);
  padding: 14px 0 30px 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 20px 0;
}

th {
  background-color: var(--main-gray);
  color: var(--white);
  text-align: left;
  padding: 5px 8px;
  border: 1px solid var(--main-gray);
}

td {
  padding: 5px;
  border: 1px solid var(--main-gray);
}

td.code {
  font-family: "Source Code Pro", monospace;
  font-weight: 600;
}

.label {
  float: right;
  margin-top: 4px;
  user-select: none;
}

.label.optional {
  background-color: grey;
}

.label.required {
  background-color: var(--red);
}

.default-value,
.type-size {
  font-style: italic;
  font-size: 95%;
}

.open-left {
  right: 0;
  left: auto;
}

.invisible {
  visibility: hidden;
}

.input-group-addon.sample-request-select {
  padding: 0 6px;
}

.input-group-addon.sample-request-select select {
  width: auto;
  height: 32px;
}

.sample-request-input-Boolean-container {
  width: 40px;
  height: 34px;
  background: var(--white);
  border: 1px solid var(--light-gray);
}

.sample-request-input-Boolean-container > div {
  margin-top: 7px;
  text-align: center;
}

.sample-request-input-Boolean-container > div input {
  margin: 0;
}

/* ------------------------------------------------------------------------------------------
 * Request method (HTTP verb)
 * ------------------------------------------------------------------------------------------ */
.method {
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
  margin: 0 0 5px 0;
  padding: 4px 5px;
  border-radius: 6px;
  text-transform: uppercase;
  background-color: var(--main-gray);
  color: var(--white);
}

.meth-get {
  background-color: var(--meth-get);
}

.meth-put {
  background-color: var(--meth-put);
}

.meth-post {
  background-color: var(--meth-post);
}

.meth-delete {
  background-color: var(--meth-delete);
}

/* ------------------------------------------------------------------------------------------
 * Sidenav
 * ------------------------------------------------------------------------------------------ */
#scrollingNav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 10;
  background-color: var(--dark-gray);
  box-shadow:
    0 2px 5px 0 rgb(0 0 0 / 16%),
    0 2px 10px 0 rgb(0 0 0 / 12%);
}

.sidenav {
  color: var(--white);
  position: absolute;
  top: 50px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

.sidenav:hover {
  overflow-x: auto;
  overflow-y: auto;
}

.sidenav > li > a {
  color: var(--white);
  display: block;
  padding: 8px 13px;
}

/* non active sidenav link are highlighted on hover */
.sidenav > li:not(.active) > a:hover {
  background-color: var(--hover-gray);
}

.sidenav > li.nav-header {
  margin-top: 8px;
  margin-bottom: 8px;
}

.sidenav > li.nav-header > a {
  padding: 5px 15px;
  font-weight: 700;
  font-size: 16px;
  background-color: var(--main-gray);
}

.sidenav > li.active > a {
  position: relative;
  background-color: var(--primary);
  color: var(--white);
}

/**
 * TODO: commented out for the moment
.sidenav > li.has-modifications a {
  border-right: 4px solid var(--main-gray);
}

.nav-list-item :not(.is-new) {
  border-left: 4px solid var(--main-gray);
}

.sidenav > li.is-new a {
  border-left: 4px solid var(--primary);
}
*/

/*
 * Off Canvas
 * --------------------------------------------------
 */
@media screen and (max-width: 767px) {
  #content {
    margin-top: 58px;
  }

  .row-offcanvas {
    position: relative;
    -webkit-transition: all 0.25s ease-out;
    -o-transition: all 0.25s ease-out;
    transition: all 0.25s ease-out;
    left: 0;
  }

  .row-offcanvas,
  .row-offcanvas * {
    transition: all 0.5s ease-out;
  }

  .row-offcanvas .sidebar-offcanvas {
    position: absolute;
    top: 0;
    left: -200px !important; /* 6 columns */
    width: 100%; /* 6 columns */
    max-width: 200px;
  }

  .nav-toggle {
    position: fixed;
    left: 0;
    background: var(--dark-gray);
    width: 100%;
  }

  .nav-toggle .btn {
    margin: 10px 14px;
  }
  .nav-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background-color: var(--white);
  }
  .nav-toggle .icon-bar + .icon-bar {
    margin-top: 4px;
  }

  .row-offcanvas.active .sidebar-offcanvas {
    left: 0 !important; /* 6 columns */
  }
  .row-offcanvas.active,
  .row-offcanvas.active .nav-toggle {
    left: 200px;
  }
  /* Styling the three lines to make it an X */
  .row-offcanvas.active .nav-toggle .btn > .icon-bar {
    transform: rotate(45deg) translate(-4px, -4px);
  }
  .row-offcanvas.active .nav-toggle .btn .icon-bar:nth-child(2) {
    display: none;
  }
  .row-offcanvas.active .nav-toggle .btn .icon-bar:nth-child(3) {
    transform: rotate(-45deg);
  }
}

/* ------------------------------------------------------------------------------------------
 * Side nav search
 * ------------------------------------------------------------------------------------------ */
.sidenav-search {
  padding: 16px 10px 10px;
  background-color: var(--dark-gray);
}

.sidenav-search .search {
  height: 26px;
}

.search-reset {
  position: absolute;
  display: block;
  cursor: pointer;
  width: 20px;
  height: 20px;
  text-align: center;
  right: 28px;
  top: 18px;
  background-color: #fff;
}

/* ------------------------------------------------------------------------------------------
 * Prism - Toolbar
 * ------------------------------------------------------------------------------------------ */
div.code-toolbar.code-toolbar > .toolbar {
  top: 0.4rem;
  right: 0.4rem;
}
div.code-toolbar.code-toolbar > .toolbar > .toolbar-item > button:hover,
div.code-toolbar.code-toolbar > .toolbar > .toolbar-item > button:focus {
  color: var(--white);
}
div.code-toolbar.code-toolbar > .toolbar > .toolbar-item > button {
  color: var(--light-gray);
  padding: 0.5em;
  background: var(--hover-gray);
  box-shadow: 0 2px 1px 1px rgba(0, 0, 0, 0.5);
}

/* ------------------------------------------------------------------------------------------
 * Compare
 * ------------------------------------------------------------------------------------------ */

ins {
  background: #60d060;
  text-decoration: none;
  color: #000000;
}

del {
  background: #f05050;
  color: #000000;
}

.label-ins {
  background-color: #60d060;
}

.label-del {
  background-color: #f05050;
  text-decoration: line-through;
}

pre.ins {
  background-color: #60d060;
}

pre.del {
  background-color: #f05050;
  text-decoration: line-through;
}

table.ins th,
table.ins td {
  background-color: #60d060;
}

table.del th,
table.del td {
  background-color: #f05050;
  text-decoration: line-through;
}

tr.ins td {
  background-color: #60d060;
}

tr.del td {
  background-color: #f05050;
  text-decoration: line-through;
}

/* ------------------------------------------------------------------------------------------
 * Spinner
 * ------------------------------------------------------------------------------------------ */

#loader {
  position: absolute;
  width: 100%;
}

#loader p {
  padding-top: 80px;
  margin-left: -4px;
}

.spinner {
  margin: 200px auto;
  width: 60px;
  height: 60px;
  position: relative;
}

.container1 > div,
.container2 > div,
.container3 > div {
  width: 14px;
  height: 14px;
  background-color: #0088cc;

  border-radius: 100%;
  position: absolute;
  -webkit-animation: bouncedelay 1.2s infinite ease-in-out;
  animation: bouncedelay 1.2s infinite ease-in-out;
  /* Prevent first frame from flickering when animation starts */
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.spinner .spinner-container {
  position: absolute;
  width: 100%;
  height: 100%;
}

.container2 {
  -webkit-transform: rotateZ(45deg);
  transform: rotateZ(45deg);
}

.container3 {
  -webkit-transform: rotateZ(90deg);
  transform: rotateZ(90deg);
}

.circle1 {
  top: 0;
  left: 0;
}
.circle2 {
  top: 0;
  right: 0;
}
.circle3 {
  right: 0;
  bottom: 0;
}
.circle4 {
  left: 0;
  bottom: 0;
}

.container2 .circle1 {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

.container3 .circle1 {
  -webkit-animation-delay: -1s;
  animation-delay: -1s;
}

.container1 .circle2 {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}

.container2 .circle2 {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}

.container3 .circle2 {
  -webkit-animation-delay: -0.7s;
  animation-delay: -0.7s;
}

.container1 .circle3 {
  -webkit-animation-delay: -0.6s;
  animation-delay: -0.6s;
}

.container2 .circle3 {
  -webkit-animation-delay: -0.5s;
  animation-delay: -0.5s;
}

.container3 .circle3 {
  -webkit-animation-delay: -0.4s;
  animation-delay: -0.4s;
}

.container1 .circle4 {
  -webkit-animation-delay: -0.3s;
  animation-delay: -0.3s;
}

.container2 .circle4 {
  -webkit-animation-delay: -0.2s;
  animation-delay: -0.2s;
}

.container3 .circle4 {
  -webkit-animation-delay: -0.1s;
  animation-delay: -0.1s;
}

@-webkit-keyframes bouncedelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1);
  }
}

@keyframes bouncedelay {
  0%,
  80%,
  100% {
    transform: scale(0);
    -webkit-transform: scale(0);
  }
  40% {
    transform: scale(1);
    -webkit-transform: scale(1);
  }
}

/* ------------------------------------------------------------------------------------------
 * Tabs
 * ------------------------------------------------------------------------------------------ */
ul.nav-tabs {
  margin: 0;
}

p.deprecated span {
  color: var(--red);
  font-weight: bold;
  text-decoration: underline;
}

/**
 * Footer
 */
#generator {
  padding: 10px 0;
}

/* ------------------------------------------------------------------------------------------
 * Print
 * ------------------------------------------------------------------------------------------ */

@media print {
  #sidenav,
  #version,
  #versions,
  section .version,
  section .versions {
    display: none;
  }

  #content {
    margin-left: 0;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  a:after {
    content: " [" attr(href) "] ";
  }

  p {
    color: #000000;
  }

  pre {
    background-color: #ffffff;
    color: #000000;
    padding: 10px;
    border: #808080 1px solid;
    border-radius: 6px;
    position: relative;
    margin: 10px 0 20px 0;
  }
} /* /@media print */

::after,
::before {
  box-sizing: border-box;
}

fieldset {
  min-width: 0px;
  padding: 0px;
  margin: 0px;
  border-width: 0px;
  border-style: initial;
  border-color: initial;
  border-image: initial;
}
