@import 'variables.css';

/* Contents:
Section 1: Site-wide styling
Section 2: Sidebar Navigation & Demo Navigation
Section 3: General utility selecters
Section 4: Responsive page modifiers
Section 5: general dumping ground */

/* Section 1: Legacy styling */
/* ------------------------------------------ */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 10px 0;
  font-weight: bold;
  line-height: 20px;
  color: inherit;
  text-rendering: optimizelegibility;
}

h1,
h2,
h3 {
  line-height: 40px;
}

.label,
.badge {
  color: #fff;
  font-weight: bold;
  display: inline-block;
  font-size: 11.844px;
}

button {
  cursor: pointer;
  font-size: 14px;
  font-weight: normal;
  line-height: 20px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.btn {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  vertical-align: middle;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

img {
  height: auto;
  max-width: 100%;
  vertical-align: middle;
  border: 0;
}

p {
  margin: 0px 0px 10px;
  text-rendering: optimizelegibility;
}

a {
  text-decoration: none;
}

h1 {
  font-size: 38.5px;
}
h2 {
  font-size: 31.5px;
}
h3 {
  font-size: 24.5px;
}
h4 {
  font-size: 17.5px;
}
h5 {
  font-size: 16px;
}

select {
  font-size: 14px;
  margin-bottom: 20px;
}

input[type='checkbox'],
input[type='radio'] {
  float: left;
  margin-right: 8px;
}

input[type='text'],
input[type='search'] {
  background-color: #fff;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  cursor: text;
}
input[type='range'],
input[type='button'].btn-block {
  width: 100%;
}

button,
html input[type='button'] {
  cursor: pointer;
  -webkit-appearance: button;
}

.btn-block + .btn-block {
  margin-top: 5px;
}
.radio,
.checkbox {
  min-height: 20px;
}

fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

.hidden,
.hide {
  display: none;
  visibility: hidden;
}

.chevron-down {
  width: 10px;
  height: 10px;
  border: 5px solid #fff;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotateZ(45deg);
}

.superscript {
  font-size: 10px;
  line-height: 10px;
  vertical-align: 3px;
}

.text-center {
  text-align: center;
}
section {
  display: block;
  max-width: 100%;
}
section .in.collapse {
  border-left: solid 2px #eeeeef;
  margin-left: 3px;
}
.in.collapse {
  height: 100% !important;
  transition: height ease 0.3s;
}
.collapse {
  position: relative;
  height: 0px;
  transition: height ease 0.3s;
  overflow: hidden;
}
.page-header {
  padding-bottom: 9px;
  margin: 20px 0 30px;
  border-bottom: 1px solid #ddd;
}
.pull-right {
  float: right;
}
h2 small,
h3 small {
  font-size: 14px;
}
h1 small,
h2 small,
h3 small,
h4 small,
h5 small,
h6 small {
  font-weight: normal;
  line-height: 1;
  color: #999;
}
strong {
  font-weight: bold;
}
.lead {
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 21px;
  font-weight: 200;
  line-height: 30px;
}

.nav > li > a {
  display: block;
}
.nav > li {
  list-style: none;
}

.kl-main-nav {
  display: flex;
}

.kl-main-nav .nav > li {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.table-bordered {
  border: 1px solid #ddd;
  border-collapse: separate;
  *border-collapse: collapse;
  border-left: 0;
}

.table {
  width: 100%;
  margin-bottom: 20px;
}
table {
  max-width: 100%;
  background-color: transparent;
  border-collapse: collapse;
  border-spacing: 0;
}
table:not(#legend) tr:hover,
.table .tr:hover {
  background-color: #dddddd30;
}
.table th,
.table td {
  line-height: 20px;
  text-align: left;
  vertical-align: top;
}
.table td {
  border-top: 1px solid #ddd;
}
.table-condensed th,
.table-condensed td {
  padding: 4px 5px;
}
.table-bordered th,
.table-bordered td {
  border-left: 1px solid #ddd;
}
.table-bordered tbody:first-child tr:first-child td {
  border-top: 0;
}

[class^='icon-'],
[class*=' icon-'] {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  *margin-right: 0.3em;
  line-height: 14px;
  vertical-align: text-top;
  background-image: url(/im/glyphicons-halflings.png);
  background-position: 14px 14px;
  background-repeat: no-repeat;
}

pre {
  display: block;
  padding: 9.5px;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 20px;
  word-break: break-all;
  word-wrap: break-word;
  white-space: pre;
  white-space: pre-wrap;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border: 1px solid rgba(0, 0, 0, 0.15);
}
code {
  padding: 2px 0px;
  color: #d14;
  white-space: nowrap;
  background-color: #f7f7f9;
  border: 1px solid #e1e1e8;
}
pre code {
  border: none;
  color: #333;
  font-size: 12px;
  font-family: Monaco, Menlo, Consolas, 'Courier New', monospace;
  background-color: transparent;
  white-space: pre-wrap;
  padding: none;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}
/* Section 1: Site-wide styling */
/* ------------------------------------------ */
html,
body {
  margin: 0;
  height: 100%;
  padding: 0px;
  font-size: 14px;
  line-height: 20px;
  color: #333;
}

body {
  background: #f2f5f6;
  min-height: calc(100% - 72px);
}

html,
body,
input,
button,
select {
  font-family: 'Muli', 'Helvetica Neue', 'Helvetica', 'sans-serif';
}

b {
  font-family: 'MuliBold', 'Helvetica Neue', 'Helvetica', 'sans-serif';
}

h1,
h2,
h3 {
  font-family: 'Raleway';
  color: #2d3741;
}

h1 {
  margin-bottom: 20px;
  margin-top: 30px;
}

* {
  box-sizing: border-box;
}

#main {
  width: 100%;
  padding-top: 76px;
  min-height: calc(100vh - 36px);
  background-color: #fff;
}

#main.public {
  min-height: calc(100vh - 56px);
}

.container {
  width: 100%;
}

.kl-content {
  padding: 0px 30px 30px;
}

/* Header styling */
#headerlink {
  height: 40px;
  width: 180px;
}

#headerlogo {
  height: 40px;
}

#headername {
  height: 35px;
  margin-left: 10px;
}

header .btn-label {
  text-decoration: none;
}

/* collapsible nav menu replaces normal one for small screens */
#nav-menu-collapsible {
  z-index: 1002;
  top: 60px;
  transition: all 0.3s ease;
  left: 25%;
  width: calc(50%);
}

#nav-menu-collapsible .nav > li > a:hover {
  background-color: #00c980;
  color: var(--topnav-background-color);
  font-weight: bold;
  transition: all 0.1s ease;
}

.navbar-dropdown .nav-collapse {
  height: auto !important;
  max-height: 0px;
  background: var(--topnav-background-color);
  top: 72px;
  position: fixed;
  z-index: 1;
  overflow: hidden;
}
.nav-collapse .nav {
  margin: 0px;
  padding: 0px;
}
.nav-collapse .nav > li {
  display: none;
}
.nav-collapse.in .nav > li {
  display: block;
}
.nav-collapse.in .nav > li > a {
  margin: 0px;
  padding: 10px 15px;
}

#nav-menu-button {
  background-color: white;
  color: var(--topnav-background-color);
  height: 40px;
  width: 40px;
  padding: 8px;
}
#nav-menu-button:focus {
  background-color: #f2f5f6;
  color: var(--topnav-background-color);
}

/* Footer styling */
.footer {
  background-color: var(--topnav-background-color);
  padding: 8px 0 8px 0px;
  width: 100%;
  line-height: 20px;
  font-size: 14px;
}

.footer p {
  color: rgb(181, 181, 181);
  margin: 0px;
}

/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 0px;
  left: 0px;
  right: 0px;

  text-align: center;
  background-color: #00aa70;
  color: white;

  padding: 8px 4px;
  z-index: 999999;
}

#cookie-banner p {
  margin-bottom: 0px;
}

#cookie-banner a {
  color: var(--topnav-background-color);
}

#cookie-banner .cookie-accept {
  color: var(--topnav-background-color);
  cursor: pointer;
}

#cookie-banner .cookie-accept:hover {
  text-decoration: underline;
}

.collapse.in .apirow-wrapper:first-child .anchor {
  position: relative;
  top: -10px;
}

.collapse.in .section.nested .collapse.in .apirow-wrapper .anchor {
  z-index: -1;
}

a[href^='http']:not(#try-kronograph, [href$='cambridge-intelligence.com'])::after {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.2em;
  background: currentColor;

  -webkit-mask: url('/images/icons/external-link-alt-solid.svg') no-repeat center;
  mask: url('/images/icons/external-link-alt-solid.svg') no-repeat center;

  -webkit-mask-size: contain;
  mask-size: contain;

  vertical-align: baseline;
  position: relative;
  top: 0.15em;
}

/* Page anchors */
.anchor:before {
  content: '';
  display: block;
  position: relative;
  width: 0;
  height: 70px;
  margin-top: -66px;
}

.section.anchor {
  margin-bottom: 0px;
}

.minianchor:before {
  content: '';
  display: block;
  position: relative;
  width: 0;
  height: 35px;
  margin-top: -35px;
}

/* Controls page width in Documentation, API and Downloads pages */
.flex-parent {
  display: flex;
  max-width: 1600px;
  justify-content: center;
  flex-direction: row;
}

.documentation-sidebar {
  flex: 1;
  padding: 10px;
}
.documentation-content {
  flex: 1;
  padding: 0px 50px;
  width: calc(100% - 360px);
  z-index: 0; /* sidebar has index of 1 to always appear on top */
}
aside.documentation-sidebar {
  width: 270px;
  max-width: 290px;
  flex: 1;
  position: relative;
  left: 0px;
  top: 0px;
}

/* Section 2: Sidenav and Demonav
-------------------------------------------------- */

.kl-sidenavcontent.documentation {
  padding-bottom: 20px;
}

.kl-sidenavcontent > section {
  float: left;
}

.kl-sidenav {
  width: 267px;
  margin: 0px;
  padding: 0px;
  -webkit-transform: translateZ(0);
  overflow: auto;
  height: 83vh;
  position: fixed;
  top: 130px;
}

input[type='search'],
input[type='text'],
select {
  -webkit-border-radius: 0;
  -moz-border-radius: 0;
  border-radius: 0;
  height: 38px;
}

input[type='search'],
input[type='text'] {
  cursor: text;
}
input[type='button'],
input[type='reset'],
input[type='submit'],
input[type='checkbox'],
input[type='radio'],
input[type='range'],
select,
.checkbox,
.radio {
  cursor: pointer;
}

select:focus {
  border: 1px solid #009968;
  outline: unset;
}

input[type='search']::-webkit-search-cancel-button {
  -webkit-appearance: searchfield-cancel-button;
}

#nav-search {
  margin-top: 0px;
}

.kl-sidenav input[type='search'] {
  width: 100%;
  box-sizing: border-box;
  padding: 0 8px;
  min-height: 34px;
}

.kl-sidenav aside {
  height: 80vh;
  overflow: auto;
}

.kl-sidebar aside {
  height: calc(100% - 126px);
  overflow: auto;
  left: 0px;
}

.kl-sidebar aside.public {
  height: calc(100% - 150px);
}

.kl-sidebar.reference .kl-sidenav .accordion-group {
  border-bottom: none;
  margin-top: 0px;
  margin-bottom: 0px;
}

.kl-sidenav .filter-heading {
  background-color: #efefef;
  font-size: 16px;
  text-transform: capitalize;
}

.kl-sidenav .accordion-group {
  border: none;
}

.kl-sidenav .accordion-heading,
.kl-sidenav .accordion-toggle,
.kl-sidenav .accordion-section-header {
  font-size: 16px;
  text-transform: capitalize;
  overflow: hidden;
  background-color: #f5f5f5;
  position: sticky;
  position: -webkit-sticky;
  color: var(--topnav-background-color);
  top: 0px;
  z-index: 10;
  border-bottom: solid 1px #cacdcf;
}

.kl-sidenav .accordion-section-header-featured {
  font-size: 18px;
  padding: 8px 10px;
}

.kl-sidenav .accordion-heading,
.kl-sidenav .accordion-section-header {
  cursor: default;
  padding-top: 8px;
}

.kl-sidenav .accordion-heading:first-child,
.kl-sidenav .accordion-section-header:first-child {
  cursor: default;
  margin-top: 0px;
}

.kl-sidenav li.accordion-heading.collapsed a.collapsed,
.kl-sidenav a.accordion-toggle.collapsed,
.accordion-heading:last-child a {
  border-bottom: none;
}

.kl-sidenav .accordion-heading a,
.kl-sidenav .accordion-heading > span {
  clear: both;
  overflow: hidden;
  border-bottom: none;
}

.kl-sidenav .accordion-heading > span {
  cursor: default;
}

.kl-sidenav .accordion-heading i {
  display: block;
  float: right;
  position: relative;
  line-height: 0px;
  top: -18px;
  left: -14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  z-index: 10;
}

.kl-sidenav .accordion-heading i::before {
  content: '\f146';
}

.kl-sidenav .accordion-heading.collapsed i::before {
  content: '\f0fe';
}

.kl-sidenav .accordion-heading:hover i {
  font-weight: normal;
}

.accordion-toggle a {
  font-size: 16px;
}

.accordion-toggle span {
  font-size: 16px;
  cursor: default;
}

.accordion-toggle.active a {
  color: #fff;
}

.accordion-heading.active a,
.accordion-heading.active :focus,
.accordion-heading.active,
.active .accordion-toggle,
.active .accordion-toggle:focus,
.active .accordion-toggle:hover,
.accordion-toggle.active a:hover {
  color: #00aa70;
  font-weight: bold;
}

.kl-sidenav .accordion-heading.active a:before {
  border-top-color: white;
}

.kl-sidenav .accordion-heading.active.collapsed > a:before {
  border-top-color: transparent;
  border-left-color: white;
}

.kl-sidenav .accordion-section-header,
.kl-sidenav .accordion-toggle {
  padding: 8px 10px;
}

.kl-sidenav .accordion-body {
  background-color: #fff;
}

.scrollspy.kl-sidenav.apiref.downloadmenu {
  top: 114px;
}
.kl-sidenav .accordion-inner {
  padding: 5px 0px 0px 0px;
  border: none;
}

.kl-sidenav .accordion-inner li {
  margin-left: 10px;
}

.kl-sidenav .accordion-inner li:last-child {
  padding-bottom: 8px;
}

.kl-sidenav .accordion {
  margin-bottom: 0px;
  padding-bottom: 0px;
  -webkit-overflow-scrolling: touch;
}

.nav-list > li > a {
  margin: 0 0;
  text-shadow: none;
  color: var(--topnav-background-color);
  border-left: solid 4px;
  border-color: white;
  padding: 3px 4px;
}

.nav-list > li > a:hover {
  background-color: inherit;
  border-color: #00c980;
}

.nav-tabs > li > a:hover,
.nav-tabs > li > a:focus {
  color: #00c980;
  border-color: #cacdcf;
  border-bottom-color: white;
  background-color: inherit;
}

.nav-list > .active > a,
.nav-list > .active > a:hover,
.nav-list > .active > a:focus {
  background-color: inherit;
  color: inherit;
  font-weight: bold;
  border-color: #00aa70;
  text-shadow: none;
}

.kl-sidenav.downloadmenu {
  height: calc(100% - 126px);
  position: fixed;
  top: 90px;
  z-index: 1;
}

.kl-sidenav.downloadmenu.public {
  height: calc(100% - 150px);
}
.documentation .kl-sidenav {
  height: inherit;
  position: fixed;
  top: 90px;
}
.reference .kl-sidenav {
  height: calc(100% - 170px);
  -ms-overflow-style: none;
}

.kl-sidenav.public {
  height: calc(100% - 200px);
}

.kl-sidenav::-webkit-scrollbar {
  display: none;
}

.affix.kl-sidenav.header {
  z-index: 999;
  overflow: hidden;
  height: 57px;
  top: 72px;
}

/* Tab-style active nav header (needs cleaning)
-------------------------------------------------- */

.kl-top-navbar {
  font-size: 16px;
  height: var(--topnav-height);
}

/* override occasional bootstrap colour breakthroughs */
.navbar .nav > li > a:focus,
.navbar .nav > li > a:hover {
  color: white;
  background-color: var(--topnav-background-color);
}

.navbar-inner {
  background-image: none;
  background-color: var(--topnav-background-color);
}

.navbar-no-border {
  border-width: 0 !important;
  border-radius: 0px;
}

.kl-top-navbar.navbar .nav {
  position: relative;
  top: 0px;
  display: flex;
}

/* Highlighters for active page and hover */
.kl-top-navbar.navbar .nav > .active > a,
.kl-top-navbar.navbar .nav > .active > a:hover,
.kl-top-navbar.navbar .nav > .active > a:active {
  background-color: var(--topnav-background-color);
  border-color: var(--topnav-background-color);
  box-shadow: none;
}

.kl-flexbox {
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
}

.klsearch {
  position: absolute;
  top: 0px;
  left: 0px;
}

.tray {
  display: flex;
  align-items: center;
}

.tray.tray-public {
  font-size: 16px;
}

@media (max-width: 734px) {
  .tray.tray-public {
    display: none;
  }

  .nav-item-hide {
    display: inherit;
  }

  #nav-menu-collapsible.nav-collapse-public {
    left: unset;
    right: 10px;
  }
}

@media (min-width: 735px) {
  .nav-collapse.in .nav > li.nav-item-hide {
    display: none;
  }
}

.kl-top-navbar .tray a:last-child {
  margin-right: 0px;
}

.kl-top-navbar .navbar-text a {
  color: #fff;
  height: auto;
  cursor: pointer;
}
.kl-top-navbar label {
  cursor: pointer;
}

.kl-box-shadow,
.klchart {
  border-color: #d0d1d3;
  background-color: white;
  position: relative;
}

#sdkcontent .container.sourceheader {
  width: 100%;
}

#sdkcontent {
  overflow-x: hidden;
}

/* Section 3: General Utility selecters */
/* ------------------------------------------ */

#menu-toggle {
  background-color: #00aa70;
  cursor: pointer;
  color: #fff;
  display: none;
  z-index: 11;
  overflow: hidden;
}
#menu-toggle:hover,
#menu-toggle:focus {
  background-color: #00c980;
}
#menu-toggle span {
  border-color: transparent;
}
#menu-toggle * {
  color: #fff;
  cursor: inherit;
  font-weight: normal;
  overflow: hidden;
}

/* UTILITY - hyperlinks */
a {
  color: #00aa70;
}

a:hover,
a:focus {
  color: #00c980;
}

a:focus {
  text-decoration: none;
}

/* UTILITY - limit page width */
section.limit-width {
  max-width: 1600px;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  align-self: center;
}

/* UTILITY - image borders */
img.define {
  padding: 10px;
  background-color: #fff;
  border: solid 1px #d8d8d8;
}

/* UTILITY - warning messages */
.notice .boxout {
  margin-top: 15px;
  margin-bottom: 20px;
  border: 1px solid #cacdcf;
  padding: 8px 4px;
  background-color: cornsilk;
}
.notice .boxout .boxout-image {
  float: left;
  width: 44px;
  height: 40px;
  padding-left: 4px;
  padding-right: 10px;
  text-align: center;
  vertical-align: middle;
}
.notice .boxout .boxout-body {
  color: #333;
  text-decoration: underline cornsilk;
}

.notice .boxout .boxout-image > a[href^='http']:after {
  content: normal;
}

.boxout .boxout-icon {
  float: left;
  width: 28px;
  height: 30px;
  padding-left: 4px;
  padding-right: 10px;
  color: #828282;
  font-size: 20px;
  text-align: center;
  vertical-align: middle;
}

/* UTILITY - Consistent buttons */
.btn {
  display: inline-block;
}
button,
input[type='button'],
.btn,
.btn-kl,
.btn-kl.active,
.navbar .btn-navbar,
.navbar .btn-navbar:focus,
.btn-group .btn.active {
  color: white;
  text-shadow: none;
  background-image: none;
  border: none;
  box-shadow: none;
  border-radius: 0 !important;
  background-color: #009968;
  padding: 8px 16px;
  margin: 0px;
}

button:focus,
input[type='button']:focus,
.btn:focus,
.btn-kl:focus {
  color: white;
  background-color: #00c980;
  outline: none;
}

button:hover,
input[type='button']:hover,
.btn:hover,
.btn.btn-navbar:hover,
.btn-kl:hover,
.btn-group .btn.active:hover {
  background-color: #00c980;
  border-color: #00c980;
  color: white;
}

button[disabled],
button.disabled,
input[type='button'][disabled],
input[type='button'].disabled,
.btn-kl.disabled,
.btn.disabled,
.btn[disabled],
button.disabled:hover,
button[disabled]:hover,
button.disabled:hover input[type='button'].disabled:hover,
input[type='button'][disabled]:hover .btn.disabled:hover,
.btn-kl.disabled:hover {
  cursor: not-allowed;
  border: solid 1px #cacdcf;
  background-color: #eeeeef;
  color: #959b9f;
  opacity: 1;
}

.btn-large {
  padding: 12px 20px;
  font-size: 17.5px;
}

/* TODO: remove this by having the green as the default and allowing
the above selector to change the styling from the disabled attribute */
.btn-group .btn {
  background-color: #a9a9a9;
  border-color: #a9a9a9;
}

.btn-group > .btn:first-child,
.btn-group > .btn:last-child {
  border-radius: 0 !important; /* override bootstrap */
}

.btn-label {
  min-width: 48px;
  padding: 12px;
}

.kl-navbar-settings .btn-label {
  padding: 4px;
  margin: 8px;
  display: flex;
  align-items: center;
}

.btn-label i {
  color: white;
  vertical-align: middle;
  font-size: 20px;
  width: 20px;
}

.btn-label label {
  display: inline-block;
  margin-left: 4px;
  margin-top: 0px;
  cursor: inherit;
}

.btn-download i {
  color: white;
  vertical-align: middle;
  font-size: 20px;
  margin-bottom: 2px;
}

.btn-download span {
  vertical-align: middle;
}

.btn-spaced {
  margin: 2px;
}

/* UTILITY - Consistent input fields */
input[type='search']:focus,
input[type='text']:focus {
  border-radius: 0px;
  border-color: #00c980;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

input[type='text'] {
  margin-top: 8px;
  padding: 8px 6px;
}

/* UTILITY - Prettify code snippets */

pre.prettyprint {
  border: solid 1px #cacdcf !important;
  border-radius: 0;
  margin: 0px 0px 20px;
  /* override pretty default */
  box-shadow: none !important;
}

pre.prettyprint.grey {
  border: solid 1px #cacdcf !important;
  background: #f5f5f5 !important;
}

pre.prettyprint.red {
  border: solid 1px #ffa1a1 !important;
  background: #f2dede !important;
}

pre.prettyprint.sourcecode {
  border: none !important;
  background: #f2f5f6 !important;
  margin: 0px;
  padding: 0px;
}

pre.prettyprint .com {
  color: #888080;
}
pre.prettyprint.nocomments {
  border: solid 1px #cacdcf !important;
  border-radius: 0;
  margin: 0 16px 20px;
  /* override pretty default */
  background: #fafafa !important;
  box-shadow: none !important;
}

pre.prettyprint.nocomments .com {
  color: #333;
}

pre.prettyprint.short {
  max-width: 500px;
}

pre.prettyprint.medium {
  max-width: 1000px;
}

ol.linenums {
  margin-bottom: 10px;
}

ol.linenums li {
  /* Compatible with old IE as well */
  color: rgb(200, 200, 200);
}
ol.linenums li {
  /* Modern browsers */
  color: rgba(0, 0, 0, 0.15);
}

/* UTILITY -  Labels and badges */
.wrong {
  position: relative;
}

.wrong .prettyprint {
  border: 5px solid red;
}

.wrong .label {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
}

.async-tag.fake {
  cursor: default;
}

.async-tag {
  display: inline-block;
  font-size: 11.844px;
  font-weight: bold;
  padding: 4px 6px;
  line-height: 20px;
  color: #888;
  background-color: #f2f5f6;
  cursor: pointer;
}

.label {
  border-radius: 0;
  padding: 2.7px 6px;
  line-height: inherit;
  margin: 3px 8px 3px 0;
}

.label.label-callback {
  color: #00aa70;
  text-shadow: none;
  border: none;
  padding: 6px;
}

.async-tag.active,
.async-tag.fake.active,
.label.label-demo-changes {
  background-color: #00aa70;
  color: #fff;
}

.label.label-new-features {
  background-color: rgba(206, 10, 241, 0.59);
}

.label.label-async,
.label.label-required,
.label.label-enhancements {
  background-color: rgba(81, 52, 198, 0.59);
}

.label.label-namespace {
  background-color: rgba(208, 0, 234, 0.6);
}

.label.label-deprecated {
  background-color: rgba(93, 89, 89, 0.6);
}

.label.label-preview {
  background-color: #62b0e8;
}

.label.label-getter-setter {
  background-color: #3ab9a1;
}

.label.label-alpha {
  background-color: #fd5a1e;
}

.label.label-beta,
.label.label-deprecations {
  background-color: #fd871e;
}

.label.label-beta a,
.label.label-alpha a {
  color: white;
}

.label.label-graph-only,
.label.label-bug-fixes {
  background-color: #3ab93a;
}

.label.label-getter-setter,
.label.label-api-changes {
  background-color: #3ab9a1;
}

.label.label-doc-changes {
  background-color: rgba(0, 138, 234, 0.6);
}

.label.label-breaking-changes {
  background-color: #ff1700;
}

.badges {
  float: left;
}

.badges span {
  margin: 10px 5px 5px 0;
}

.label.download-label {
  letter-spacing: 1px;
  float: none;
}

.label.label-beta a:hover {
  text-decoration: none;
}

/* UTILITY - Tooltips and Popovers */
.tooltip {
  display: none;
  float: left;
  position: absolute;
  color: white;
  font-size: 12px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.tooltip.top .tooltip-arrow {
  display: none;
}
.tooltip-inner {
  margin: 5px;
  padding: 5px 10px;
  text-align: center;
}

.tabsdiv .tooltip-inner {
  margin: 40px 70px -40px -70px;
}
#titlebarbuttons .tooltip-inner {
  margin: 45px 55px -45px -55px;
}
/* .popover seems to be counteracting bootstrap in some demos */
.popover {
  border-radius: 0;
  box-shadow: none;
  border-color: #2d3741;
  padding: 0px;
}

.popover-title {
  background-color: #2d3741;
  color: white;
  border-bottom: none;
  border-radius: 0;
}

.popover.right {
  margin-left: 20px;
}
.popover.left {
  margin-right: 20px;
}
.popover.top {
  margin-bottom: 20px;
}
.popover.bottom {
  margin-top: 20px;
}

.popover.right .arrow {
  border-right-color: #2d3741;
}
.popover.left .arrow {
  border-left-color: #2d3741;
}
.popover.top .arrow {
  border-top-color: #2d3741;
}
.popover.bottom .arrow {
  border-bottom-color: #2d3741;
}

.tooltip-inner {
  background-color: #2d3741;
  border-radius: 0;
}

.tooltip.right .tooltip-arrow {
  border-right-color: #2d3741;
}

.tooltip.left .tooltip-arrow {
  border-left-color: #2d3741;
}

.tooltip.top .tooltip-arrow {
  border-top-color: #2d3741;
}

.tooltip.bottom .tooltip-arrow {
  border-bottom-color: #2d3741;
}

.blue-overlay {
  background-color: #005580;
  opacity: 0.75;
}

.cipad .tooltip-inner {
  background-color: #000;
  max-width: 250px;
}

.cipad .tooltip.top .tooltip-arrow {
  border-top-color: #000;
}

.dropdown-menu.multi-column {
  width: 520px;
}

.dropdown-menu.multi-column .dropdown-menu {
  display: block !important;
  position: static !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Custom fullscreen tooltips */
#fullscreenButton {
  max-width: 24px;
  max-height: 45px;
}

.tooltip-new {
  display: none;
  position: relative;
  float: right;
  right: 46px;
  top: -30px;
}
tooltip-text {
  display: block;
  background-color: #2d3741;
  color: white;
  padding: 6px 6px;
  max-height: 60px;
  width: 60px;
  font-size: 11px;
  line-height: 14px;
}
tooltip-arrow {
  float: right;
  position: relative;
  top: -30px;
  left: 10px;
  margin-left: 5px;
  margin-right: -10px;
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent transparent #2d3741;
}
.tt-parent:hover .tooltip-new {
  display: block;
}

/* UTILITY - Table styling */
.table-api thead {
  border: none;
}

.table-api thead th {
  color: #737373;
  font-size: 14px;
  margin-bottom: 10px;
  border-bottom: solid 1px #cacdcf;
  line-height: 40px;
  padding: 2px 16px;
  text-align: left;
}

.table td {
  padding: 6px 16px;
}

.table.table-api td {
  border: none;
  vertical-align: top;
  text-align: left;
}

.table-api .apiparameter {
  font-family: Menlo, Consolas, 'Courier New', monospace;
}
.table tbody tr > td.success {
  background-color: #dff0d8 !important;
}
.table tbody tr > td.error {
  background-color: #f2dede !important;
}
.table tbody tr > td.warning {
  background-color: #fcf8e3 !important;
}
.table tbody tr > td.info {
  background-color: #d9edf7 !important;
}
.table-hover tbody tr:hover > td.success {
  background-color: #d0e9c6 !important;
}
.table-hover tbody tr:hover > td.error {
  background-color: #ebcccc !important;
}
.table-hover tbody tr:hover > td.warning {
  background-color: #faf2cc !important;
}
.table-hover tbody tr:hover > td.info {
  background-color: #c4e3f3 !important;
}

/* UTILITY - Round buttons */
.btn.btn-round {
  border-radius: 50% !important;
}

button#nav-menu-button.btn-round:focus {
  border-radius: 50% !important;
  margin-right: 8px;
}

/* UTILITY - Shadows */
.light-shadow {
  box-shadow: 4px 4px 12px #d6d6d642;
}

.dark .light-shadow {
  box-shadow: 4px 4px 12px #1e1e1e42;
}

/* UTILITY - Loading popup */
#loading {
  display: none;
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 60px);
  max-width: 121px;
  text-align: center;
  padding: 5px 10px;
  background-color: #f2f5f6;
  box-shadow: 2px 2px 8px #d6d6d642;
}

/* UTILITY - Collapsible sections in API & Docs */

.expandcontrol {
  cursor: pointer;
  color: #959b9f;
  display: block;
  margin-bottom: 10px;
}

/* UTILITY - Rows and columns used by bootstrap */
.row {
  margin-left: 0px;
}

.box-row {
  width: 100%;
  float: left;
  margin-left: 10px;

  display: flex;
  flex-direction: row;
}

.box-row .box-col {
  flex: 1;
  text-align: center;
  margin-left: 0;
  margin: 12px 10px;
}

.box-row .fa-wrapper {
  display: block;
  text-align: center;
}

.box-row .fa-wrapper .fa {
  padding-top: 16px;
  font-size: 42px;
  margin-bottom: 6px;
  color: #959b9f;
}

.box-row .link-wrapper {
  padding-bottom: 12px;
}

.box-row .link-wrapper a {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.box-col .label {
  position: absolute;
  top: inherit;
  right: inherit;
  margin-top: 0;
  margin-left: 12px;
  margin-right: 20px;

  font-size: 12px;
  background-color: #ff6d66;
}

.box-image {
  margin: 8px auto 20px;
}

.box-image img {
  height: 80px;
}

/* Section 4: Responsive page media queries */
/* ------------------------------------------ */
/* Only detect screen sizes as small browser windows should behave the same */

/* For narrow screens that need the collapsible header menu to shrink */
/* here we also make the sidenavs collapsible */
@media (max-width: 570px) {
  #nav-menu-collapsible {
    left: 10px;
    width: calc(100% - 20px);
  }
  #headername {
    height: 20px;
    top: 21px;
    left: 49px;
  }
  #headerlogo {
    left: 10px;
  }
  #headerlink {
    width: 120px;
  }
  .documentation-content {
    padding: 0px 10px;
  }
  /* button that controls the hideable menu */
  #menu-toggle {
    display: block;
    min-width: 196px;
    min-height: 32px;
    padding: 10px;
    overflow: -moz-scrollbars-none;
  }
  #menu-toggle.hidden {
    display: block;
    visibility: visible;
  }
  /* hide scrollbars */
  #menu-toggle::-webkit-scrollbar {
    display: none;
  }
  .accordion-group::-webkit-scrollbar {
    display: none;
  }
  .kl-sidenav,
  .accordion-group {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow: -moz-scrollbars-none;
  }
  .kl-sidenav::-webkit-scrollbar {
    display: none;
    width: 0px;
    background: transparent;
  }

  /* hide scrollbars */
  .kl-sidenav:not(.apiref) {
    border: 1px solid #cacdcf;
    border-top: none;
    background-color: #fff;
  }
  .kl-sidenav:not(.apiref) ul.accordion-group {
    margin: 0px;
  }
  .reference #menu-toggle {
    margin-bottom: 38px;
  }

  .reference aside.documentation-sidebar div.apiref.kl-sidenav {
    top: 81px;
    border: #ccc solid 1px;
    background-color: #fff;
    z-index: 1;
  }
  .affix.kl-sidenav.header {
    display: none;
    top: 89px;
  }
  .apiref .affix.kl-sidenav.header {
    top: 71px;
  }
  .expanded .affix.kl-sidenav.header {
    display: block;
  }

  aside.documentation-sidebar.expanded,
  .expanded .affix.kl-sidenav.apiref,
  aside.documentation-sidebar.expanded .affix.kl-sidenav.downloadmenu,
  .documentation aside.documentation-sidebar.expanded div.kl-sidenav.affix,
  .documentation aside.documentation-sidebar.expanded div.kl-sidenav.header {
    height: calc(100% - 150px);
  }

  .documentation-content {
    margin-top: 30px;
  }

  /* misc fixes for the various pages unique quirks */
  aside.documentation-sidebar.expanded div.kl-sidenav.header {
    top: 121px;
    bottom: unset;
    height: 40px;
  }
  .affix.kl-sidenav.header {
    z-index: 999;
    overflow: hidden;
    height: 50px;
    top: 90px;
  }
  .apiref.kl-sidenav.affix {
    top: 109px;
  }

  aside.documentation-sidebar .affix.kl-sidenav.downloadmenu {
    height: 41px;
    transition: all ease 0.3s;
  }
  .reference aside.documentation-sidebar div.kl-sidenav {
    top: 72px;
  }
  .reference .documentation-sidebar.expanded .kl-sidenav {
    top: 81px;
  }

  aside.documentation-sidebar div.kl-sidenav.affix {
    padding: 0px;
    height: 32px;
    min-width: 205px;
    left: 5px;
    transition: all ease 0.3s;
  }
  .reference aside div.kl-sidenav.affix {
    height: 41px;
  }
  aside.documentation-sidebar div.kl-sidenav {
    padding: 8px 0px;
  }
  .documentation aside.documentation-sidebar div.kl-sidenav {
    height: 41px;
  }

  .nav-list.accordion-inner > li > a {
    padding: 5px 0px;
  }

  aside.documentation-sidebar,
  .affix.kl-sidenav.apiref {
    height: 49px;
    transition: all ease 0.3s;
    flex: 0;
    width: 0px;
  }
  footer.footer {
    padding: 4px;
  }
  footer.footer div,
  footer.footer div span,
  footer.footer div small {
    padding: 0px !important;
    font-size: 8px;
    line-height: 10px;
  }
}

/* for small Mobile screens */
@media (max-width: 767px) {
  .kl-sidenav.affix,
  .kl-sidenav.apiref.affix,
  aside.documentation-sidebar div.kl-sidenav {
    position: fixed;
    top: 72px;
    left: 5px;
    padding-top: 12px;
    font-size: 14px;
  }
  aside.documentation-sidebar {
    width: 200px;
    max-width: 200px;
    z-index: 1; /* main content has index of 0 to always appear underneath */
  }
  input#nav-search {
    margin-top: 2px;
  }
  .reference aside.documentation-sidebar div.apiref {
    top: 120px;
  }
  .documentation aside.documentation-sidebar div.kl-sidenav,
  .download aside.documentation-sidebar div.kl-sidenav {
    padding-top: 0px;
  }

  .affix.kl-sidenav.header {
    left: 5px;
  }
  .kl-sidenav {
    width: 200px;
  }
  .nav-list > li > a {
    padding: 0px 4px;
  }
  #nav-menu-collapsible .nav > li > a {
    display: block;
  }
  div.box-row {
    margin-left: 0px;
  }

  .kl-top-navbar.navbar .nav > li > a {
    border-bottom-width: 1px;
  }

  .anchor:before {
    height: 110px;
    margin-top: -106px;
  }
}

/* for large Mobile (medium-small) screens */
@media (max-width: 979px) and (min-width: 768px) {
  .kl-sidenav {
    width: 208px;
  }
  .apihead .apirow {
    margin-top: 12px;
  }
  .kl-top-navbar.navbar .nav {
    margin-top: 36px !important;
  }
  .nav-collapse .nav {
    width: 100%;
  }
  .nav-collapse .nav > li > a,
  .nav-collapse .dropdown-menu a {
    border-radius: 0;
    width: 100%;
  }
  #nav-menu-collapsible .nav > li > a {
    display: block;
  }
  div.documentation-content {
    width: calc(100% - 256px);
  }
  aside.documentation-sidebar {
    max-width: 200px;
  }

  .kl-top-navbar.navbar .nav > li > a,
  .kl-top-navbar.navbar .nav > li > a.last-navbar-button {
    border-width: 1px;
  }
}

/* for all Mobile screens */
@media (max-width: 979px) {
  .brand img {
    margin-top: -14px !important;
  }

  .footer {
    padding: 8px 8px 8px 8px;
    font-size: 12px;
  }

  .footer .pull-right {
    padding-right: 4px;
  }
  .navbar-fixed-top .navbar-inner,
  .navbar-fixed-bottom .navbar-inner {
    padding: 0;
  }
}

/* for tablet screens */
@media (max-width: 1199px) and (min-width: 980px) {
  #nav-menu-collapsible .nav > li > a {
    display: none;
  }
  .btn.btn-round {
    border-radius: 50% !important;
  }
}

/* The width where the nav menu buttons no longer fit in the header */
/* => hide the standard nav menu and show the collapsible button */
@media (max-width: 1250px) {
  .title-bar h3 {
    font-size: 22px;
  }

  .navbar .kl-main-nav .nav {
    display: none;
  }

  .kl-top-navbar img {
    height: auto;
  }

  header.kl-top-navbar a img {
    height: 64px;
  }

  .btn.btn-navbar {
    display: block;
    margin-right: 8px;
    height: 48px;
    align-items: center;
    width: 48px;
  }

  header.kl-top-navbar {
    padding: 0px 8px 0px 8px;
  }
  .navbar-dropdown .nav-collapse {
    overflow: visible;
  }
  .navbar-dropdown .in.nav-collapse {
    height: auto !important;
    max-height: 320px;
  }
  #nav-menu-collapsible .nav > li > a {
    display: block;
    border-radius: 0px;
    color: white;
  }
  #nav-menu-collapsible .nav {
    width: 100%;
  }
}

@media (max-width: 1350px) {
  header .btn-label label {
    display: none;
  }
}

/* don't hide the public site free trial button text */
@media (max-width: 1350px) {
  header .btn-label-public label {
    display: block;
  }
}

/* For very wide screens => add more padding to the edges of the content */
@media (min-width: 1600px) {
  .flex-parent {
    margin: 0px calc((100vw - 1600px) / 2);
  }
}

.center.copy {
  margin: auto;
  max-width: var(--measure);
}

.admin {
  flex-direction: column;
}

ul.admin {
  width: 300px;
}

.account-buttons {
  display: flex;
  flex-direction: column;
}

.account-buttons a {
  align-items: flex-start;
  background-color: #05aa70;
  border: none;
  border-left: var(--border-thick) solid var(--neutral-color500);
  border-radius: var(--border-radius);
  color: #fff;
  cursor: pointer;
  flex-direction: column;
  font-size: 1rem;
  font-weight: var(--font-weight-regular);
  letter-spacing: 0;
  padding: var(--s0);
  margin-bottom: var(--s1);
  text-align: left;
  text-transform: none;
  width: 100%;
}

.account-buttons a:hover {
  border-left: var(--border-thick) solid var(--hover-color);
}

.layout__content.account,
.layout__content.admin {
  font-size: calc(0.222vw + 1em);
}

.stack.stack--small.account,
.stack.stack--small.admin {
  margin-bottom: var(--s2);
}

.copy.center.admin {
  text-align: center;
}

.layout__content.account {
  font-size: calc(0.222vw + 1em);
  text-align: center;
}

#nav-trial-request {
  background-color: #30c4ff;
  border-radius: 5px;
  min-width: 20px;
  color: var(--topnav-background-color);
  transition: background-color 500ms ease;
}

#nav-trial-request:hover {
  background-color: #1ba2d8;
}

#nav-trial-request label {
  margin-left: 0;
}

#nav-trial-request .inner {
  padding: 4px 9px 4px 9px;
  display: inline-flex;
  align-items: center;
}

#nav-trial-request i {
  color: var(--topnav-background-color);
  font-size: 14px;
}

.playground-banner {
  width: 100%;
  background-color: #009968;
  color: white;
  text-align: center;
  padding: 1em;
}

.playground-banner a {
  color: white;
  text-decoration: underline;
  font-weight: bold;
}

.playground-banner a:hover {
  text-decoration: none;
}

.placeholder-image {
  display: block;
  width: 100%;
  max-height: 600px;
  object-fit: cover;
}

.placeholder-image-row {
  position: relative;
  display: flex;
  width: 100%;
}

.placeholder-image-code {
  max-width: 655px;
  object-fit: cover;
}

.placeholder-image-nodes {
  flex: 1;
  min-width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 60px;
}

.placeholder-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  z-index: 1;
}

/* increase the width of the code panel image as the screen gets thinner */
@media (max-width: 1400px) {
  .placeholder-image-code {
    min-width: 50%;
  }
}

@media (max-width: 1080px) {
  .placeholder-image-code {
    min-width: 55%;
  }
}

@media (max-width: 768px) {
  .placeholder-image-code {
    min-width: 60%;
  }
}

/* Cookie Banner */
button#ccc-recommended-settings {
  border-radius: 4px !important;
}

.public-footer-padding {
  padding: 0px 16px 0px 64px;
}

.footer-padding {
  padding: 0px 16px 0px 16px;
}
