details {
  display: block;
  min-width: 400px;
  margin-bottom: 0.5em;
  border: 1px solid var(--color-table-border);
}

details.inactive {
  opacity: 0.5;
}

details summary {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  cursor: pointer;
  background-color: var(--color-sidebar-background);
}

details summary::before {
  margin-right: 0.5em;
  content: "";
  border-top: 9px solid var(--color-treetable-expander);
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
  transform: rotate(270deg);
}

details.error summary {
  background-color: var(--color-error);
}

details[open] summary::before {
  transform: rotate(0deg);
}

details summary pre {
  display: inline-block;
  padding: 3px 6px;
  margin: 0;
}

details > div {
  padding: 0.5em;
}
