
/* JSON Viewer */

.json {
  font-family: 'Source Code Pro', monospace;
  font-size: 13px;
  background: #232323;
  padding: 10px;
  border-radius: 5px;
}
.json > .json__item {
  display: block;
}
.json__item {
  display: none;
  margin-top: 2px;
  padding-left: 20px;
  /* user-select: none; */
}
.json__item--collapsible {
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.json__item--collapsible::before {
  content: '+';
  position: absolute;
  left: 5px;
  color: #fad715;
  font-weight: bold;
}
.json__item--collapsible::after {
  background-color: lightgrey;
  content: '';
  height: 100%;
  left: 9px;
  position: absolute;
  top: 26px;
  width: 1px;
}
.json__item--collapsible:hover > .json__key, .json__item--collapsible:hover > .json__value {
  text-decoration: underline;
}
.json__toggle {
  display: none;
}
.json__toggle:checked ~ .json__item {
  display: block;
}
.json__key {
  font-weight: 600;
  color: #f2f1f1;
  display: inline;
}
.json__key::after {
  content: ': ';
}
.json__value {
  display: inline;
}
.json__value--string {
  color: #dcda48;
}
.json__value--number {
  color: #6868ff;
}
.json__value--boolean {
  color: #646def;
}
.json__value--null {
  color: #8448ef;
}
.json__value--type-object, .json__value--type-array {
  color: #3db5e4;
  font-style: italic;
  font-size: 12px;
  font-weight: bold;
}

.link {
  text-decoration: underline;
  cursor: pointer;
}

.link:hover {
  opacity: 0.7;
}

.table {
  border-collapse: collapse;

}

.table thead tr th, .table tbody tr td {
  padding: 5px !important;
  font-size: 0.9rem !important;
}