.debug-container {
  position: fixed;
}

.debug-container .debug-toggle span, .debug-container .debug-toggle:before, .debug-container .debug-cache, .debug-container .debug-queries .ql-index {
  display: inline-block;
  zoom: 1;
}

.textbox {
  display: block;
}

.debug-container, .textbox {
  box-sizing: border-box;
}

.debug-container .debug-toggle {
  cursor: pointer;
}

.textbox {
  width: 100%;
}

.debug-container .debug-cache {
  text-transform: uppercase;
}

.textbox {
  padding: 0.85em 1em 0.75em;
  line-height: 1.35em;
  border: 0;
  outline: none;
  border-radius: 0;
  background-color: #eeeeee;
  color: #1A2298;
  font-weight: normal;
  transition: background-color 250ms;
}
.textbox::placeholder {
  color: #888888;
}
.textbox:hover {
  background-color: #f8f8f8;
}
.textbox:focus {
  background-color: #f8f8f8;
  outline: solid 2px #666666;
  outline-offset: 0;
}
.textbox:disabled {
  background-color: #eeeeee;
  color: #888888;
  cursor: not-allowed;
}

textarea.textbox {
  min-height: 8em;
  resize: vertical;
}

select.textbox {
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, #666666 50%), linear-gradient(135deg, #666666 50%, transparent 50%);
  background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.textbox {
  font-size: 0.9375rem;
}

.debug-container {
  width: 100%;
  bottom: 0;
  max-height: 300px;
  z-index: 99999;
  overflow: auto;
  background-color: #111111;
}
.debug-container.collapsed {
  max-height: none;
  overflow: hidden;
}
.debug-container.collapsed .debug-section {
  display: none;
}
.debug-container .debug-toggle {
  user-select: none;
  padding: 0.5em 3em;
  color: #5d6d7e;
  border-bottom: solid 1px #222;
  font-size: 0.75rem;
}
.debug-container .debug-toggle:hover {
  color: #aab7c4;
}
.debug-container .debug-toggle:before {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 5px solid currentColor;
  margin-right: 0.6em;
  transition: transform 0.15s ease;
}
.debug-container.collapsed .debug-toggle:before {
  transform: rotate(180deg);
}
.debug-container .debug-cache {
  padding: 0 0.6em;
  border-radius: 3px;
  line-height: 1.8em;
  font-size: 0.65rem;
  font-weight: bold;
  letter-spacing: 0.05em;
}
.debug-container .debug-cache-static {
  background: #1e8449;
  color: #fff;
}
.debug-container .debug-cache-dynamic {
  background: #b9770e;
  color: #fff;
}
.debug-container .debug-section {
  padding: 2em 3em;
}
.debug-container .debug-stats {
  border-bottom: solid 1px #222;
}
.debug-container .debug-stats h2 {
  font-size: 0.85rem;
  color: #82e0aa;
  font-weight: bold;
  margin-bottom: 0.5em;
}
.debug-container .debug-stats p {
  font-size: 0.75rem;
  line-height: 2em;
  color: #aab7c4;
}
.debug-container .debug-stats p b {
  color: #e8daef;
  font-weight: 500;
}
.debug-container .debug-stats p i {
  color: #5d6d7e;
  font-style: normal;
}
.debug-container .debug-errors {
  border-bottom: solid 1px #222;
}
.debug-container .debug-errors h2 {
  font-size: 0.85rem;
  color: #e74c3c;
  font-weight: bold;
  margin-bottom: 0.5em;
}
.debug-container .debug-errors p {
  font-size: 0.75rem;
  line-height: 2em;
  color: #aab7c4;
}
.debug-container .debug-errors p b {
  color: #e74c3c;
}
.debug-container .debug-errors i {
  color: #888888;
  font-style: normal;
}
.debug-container .debug-queries h2 {
  font-size: 0.85rem;
  color: #5dade2;
  font-weight: bold;
  margin-bottom: 0.5em;
}
.debug-container .debug-queries .ql-entry {
  font-size: 0.75rem;
  line-height: 2.2em;
  color: #aab7c4;
  border-bottom: solid 1px rgba(255, 255, 255, 0.05);
}
.debug-container .debug-queries .ql-entry.slow {
  color: #e74c3c;
}
.debug-container .debug-queries .ql-index {
  width: 3em;
  color: #5d6d7e;
  text-align: right;
  margin-right: 0.5em;
}
.debug-container .debug-queries .ql-sql {
  color: #e8daef;
}
.debug-container .debug-queries .ql-params {
  color: #5dade2;
}
.debug-container .debug-queries .ql-meta {
  color: #5d6d7e;
  margin-left: 0.5em;
}
.debug-container .debug-queries .ql-meta b {
  color: #aab7c4;
  font-weight: 500;
}
