/* -------------------------------------------------------------------------- */
/* Method list */

.api_method_list {
  clear: both;
}

.api_method_item {
  background-color: #fff;;
  border: solid 1px #ddd;
  border-radius: 7px;
  margin: 0 0 10px;
  padding: 10px;
  overflow: hidden;
}

/* -------------------------------------------------------------------------- */
/* Token generator */

.form_auth_token {
  background-color: #eee;;
  border: solid 1px #ccc;
  padding: 0 15px 15px;
  border-radius: 4px;
}

.form_auth_token > div {
  border-top: solid 1px #ccc;
  padding: 7px 0 0;
  margin: 7px 0 0;
}
.form_auth_token > div:first-child {
  border-top-style: none;
}
.form_auth_token label {
  float: none;
  font-weight: bold;
}

.form_auth_token input[type=text] {
  font-family: 'Courier New', Courier, monospace;
}
.form_auth_token input.ajax_button {
  display: inline-block;
  white-space: wrap;
  margin-top: 10px;;
}
.form_auth_token textarea {
  height: 200px;
  font-family: 'Courier New', Courier, monospace;
}

/* -------------------------------------------------------------------------- */
/* Header */

.toggle_sample,
#show_private.button {
  background-color: transparent;
  color: #333;
  text-decoration: underline !important;
  float: right;
  cursor: pointer;
}

.toggle_left {
  float: none;
  margin-left: 235px;
  text-decoration: underline !important;
}

.host_list_link {
  clear: both;
  border-bottom: solid 1px #ccc;
  margin: 10px 0 0;
}
.host_list_link a {
  display: inline-block;
  border: solid 1px #ccc;
  border-bottom: none;
  padding: 5px 15px;
  margin: 0 7px -1px;
  border-radius: 4px 4px 0 0;
  background-color: #eee;
}

.host_list_link a.sel_host {
  background-color: #fff;
  border-bottom: solid 1px #fff;
}

.api_method_header + div {
  border: solid 1px #ddd;
  background-color: #f9f9f9;
  border-top-style: none;
  padding: 10px;
}

.method_version {
  display: block;
  float: right;
  padding: 7px 15px;
  margin: 10px 0 0 20px;
  background-color: #eee;
  border-radius: 4px;
}

/* -------------------------------------------------------------------------- */
/* Method head */

.query_url {
  padding: 7px 15px;
  background-color: rgba(250,250,250,0.5);
  margin: 0 0 10px;
  border: solid 1px #ccc;
  border-radius: 4px;
  box-shadow: inset 2px 2px 5px #eaeaea;
  color: #777;
}

.method_head {
  padding: 15px;
  margin: -15px;
  cursor: pointer;
  transition: background 0.2s;
}
.method_head:hover {
  background-color: #e9e9e9;
}

.api_method_item .head_nav span {
  display: inline-block;
  margin-right: 5px;
  line-height: 1;
}

.api_method_item .head_nav span:after {
  content: '/';
  display: inline-block;
  margin-left: 5px;
}

.api_method_item .head_nav span:first-child {
  font-size: 0.83rem;
  font-weight: normal;
  background-color: #f3f3f3;
  border: solid 1px #555;
  border-radius: 4px;
  padding: 4px 7px;
  margin-right: 10px;

  width: 110px;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: middle;
}


.api_method_item.need_apikey .head_nav span:first-child {
  border: solid 1px #d8761b;
  color: #d8761b;
}
.api_method_item.need_auth .head_nav span:first-child,
.api_method_item.is_private .head_nav span:first-child {
  border: solid 1px #D81B60;
  color: #D81B60;
}

.is_private {
  display: none;
}
.is_private.is_open,
.is_private.display_private {
  display: block;
  border: solid 1px #D81B60;
}

.api_method_item .head_nav span:first-child:after,
.api_method_item .head_nav span:last-child:after {
  display: none;
}

.method_head {
  font-size: 0.9rem;
  display: grid;
  grid-template-columns: 450px auto 64px;
  grid-gap: 1em 1em;
}
.method_head > div:first-child {
  font-weight: bold;
}
.method_head > div:last-child {
  text-align: right;
}
.method_head > div:last-child > span {
  display: inline-block;
  margin-right: 5px;
}

.api_method_item .api_mod_open {
  display: block;
}
.api_method_item.is_open .api_mod_open {
  display: none;
}

.api_method_item .api_mod_close {
  display: none;
}
.api_method_item.is_open .api_mod_close {
  display: block;
}

.api_method_item .method_body {
  display: none;
}
.api_method_item.is_open .method_body {
  display: block;
}

.method_desc {
  margin: 0 0 10px;
  font-size: 0.9rem;
  background: #fff;
  padding: 15px;
  margin: -10px -10px 10px;
  border-bottom: solid 1px #ddd;
}

.sc_json_source {
  float: right;
  color: #000;
  font-weight: bold;
  margin-right: 10px;
}

/* -------------------------------------------------------------------------- */
/* Config list API */

.conf_list_api {
  margin: 0 -10px 20px;
  padding: 10px;
  background-color: #eee;
  max-width: 800px;
  border-radius: 0 7px 7px 0;
  box-sizing: border-box;
  font-size: 0.8rem;
  border: solid 1px #ccc;
  border-left-style: none;
}
.conf_list_api ul {
  list-style-type: none;
  padding: 0;
  margin: 5px 0 0;
}

.conf_list_api li {
  margin: 0 0 5px;
  display: grid;
  grid-template-columns: auto 60px;
}

.conf_list_api li:last-child {
  margin-bottom: 0;
}

.conf_list_api li a {
  display: block;
  padding: 4px 8px;
  border-radius: 5px;
  opacity: 0.4;
  font-family: 'Consolas', 'Courier New', Courier, monospace;
}
.conf_list_api li a:first-child {
  border: solid 1px #ccc;
  background-color: #fff;
}

.conf_list_api li.selected_conf a {
  opacity: 1;
}

.conf_list_api li a em {
  float: right;
}

.api_prop {
  list-style-type: disc;
  margin-top: 4px;
  margin-left: 20px;
}

.api_more_infos {
  display: block;
  margin: 10px 0 0;
  text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/* Method result */

.method_result_loader {
  border-top: solid 1px #999;
  margin: 10px -10px -10px;
  background-color: #ccc;
  padding: 50px;
  text-align: center;
  font-style: italic;
}

.method_result_loader.loaded,
.method_result_loader + .method_result {
  display: none;
}
.method_result_loader.loaded + .method_result {
  display: block;
}

.method_result {
  font-size: 0.9rem;
  margin: 10px -10px -10px;
  padding: 0 20px 20px;
  border-top: solid 1px #333;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
  background-color: #ddd;
  color: #333;
  font-family: 'Consolas', 'Courier New', Courier, monospace;
}

.method_result > div {
  position: relative;
  border-bottom: solid 1px #aaa;
  margin: 0 -20px 0;
  padding: 5px 20px;
  background-color: rgba(0,0,0,0.10);
  display: grid;
  grid-template-columns: 150px auto;
}
.method_result > div > div {
  position: relative;
}

.method_result > div:nth-child(2n+1) {
  background-color: rgba(0,0,0,0.05);
}

.httpcode {
  font-size: 1rem;
  font-weight: bold;
  line-height: 1;
  vertical-align: text-bottom;
}
.httpcode .fa {
  vertical-align: text-bottom;
}
.method_result pre {
  font-size: 0.8rem;
  padding-top: 10px;;
}

.timer_anim.loaded {
  width: 0px !important;
}

.timer_anim {
  position: absolute;
  transition: width 3s;
  top: 0;
  left: 0;
  height: 20px;
  background-color: rgba(0,0,0,0.1);
}

.method_url_call {
  overflow: hidden;
}
.method_url_call a {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-decoration: underline;
  vertical-align: middle;;
}

/* -------------------------------------------------------------------------- */
/* Method body */

.method_body {
  background-color: #f3f3f3;
  font-size: 0.9rem;
  border-top: solid 1px #ccc;
  margin: 10px -10px -10px;
  padding: 10px;
}

.query_param {
  display: grid;
  grid-template-columns: 220px auto;
  grid-gap: 1em 1em;
  margin: 0 0 7px;
}
.query_post textarea,
.query_param label,
.query_param input {
  display: block;
  font-size: 0.9rem;
  padding: 7px;
  margin: 0;
}

.query_param input,
.api_fld_type {
  display: inline-block;
  padding: 7px;
}

.api_fld_type {
  font-size: 0.7rem;
  font-style: italic;
  display: inline-block;
  color: rgba(100,100,100,0.5);
  background-color: rgba(100,100,100,0.1);
  margin-right: 5px;
  border-radius: 5px;
  min-width: 50px;
  text-align: center;
}

.query_param label {
  font-weight: normal;
  text-align: right;
}
.query_param.param_required label {
  font-weight: bold;
}


.query_param input {
  width: 100%;
  max-width: 600px;
  border-radius: 4px;
  border: solid 1px #ccc;
  font-family: 'Consolas', 'Courier New', Courier, monospace;
}

.query_param input.qp_type_int {
  max-width: 200px;
}

.query_param input.qp_type_boolean {
  width: initial;
  float: none;
}
.query_param input.qp_type_boolean + label {
  float: none;
  display: inline-block;
}

.query_post textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 1000px;
  min-height: 200px;
  font-family: 'Consolas', 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  border-radius: 5px;
}

.query_submit {
  padding: 15px;
  padding-left: 235px;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.sc_json_prop {
  padding-left: 20px;
}

.query_sample_json {
  background-color: #fff;;
  font-family: 'Consolas', 'Courier New', Courier, monospace;
  padding: 15px;
  border: solid 1px #ccc;
}

.api_group {
  margin: 0 0 20px;
}
.api_group > div + div {
  margin-top: -11px;
}

.version_to_define {
  font-style: italic;
}
.version_to_define:before {
  content: '(';
}
.version_to_define:after {
  content: ')';
}

.beta_version {
  border: solid 1px #D33682;
  color: #D33682 !important;
}

.method_version_info {
  display: inline-block;
  background-color: #eee;
  border-radius: 4px;
  padding: 2px 15px;
  margin-right: 10px;
  font-size: 0.8rem;
}