.cm-bar {
  transition: y 180ms ease, height 180ms ease;
}

.cm-bar-recall {
  fill: #8ad0c9;
}

.cm-bar-precision {
  fill: #f3b39f;
}

.cm-bar-specificity {
  fill: #5f86bf;
}

.cm-bar-accuracy {
  fill: #d9be70;
}

.confusion-tool-panel {
  gap: 1.1rem;
}

.confusion-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1.35fr) minmax(280px, 1fr);
  gap: 1rem;
  align-items: start;
}

@media (max-width: 980px) {
  .confusion-grid {
    grid-template-columns: 1fr;
  }
}

.cm-measurements pre {
  min-height: 232px;
}

.cm-observed-pos {
  background: rgba(47, 158, 68, 0.35);
  padding: 0.08rem 0.35rem;
  border-radius: 0.3rem;
  font-weight: 700;
}

.cm-observed-neg {
  background: rgba(201, 42, 42, 0.35);
  padding: 0.08rem 0.35rem;
  border-radius: 0.3rem;
  font-weight: 700;
}

.cm-predicted-pos {
  border: 3px solid rgba(47, 158, 68, 0.35);
  color: #2f9e44;
  padding: 0.04rem 0.35rem;
  border-radius: 0.3rem;
  font-weight: 700;
}

.cm-predicted-neg {
  border: 3px solid rgba(201, 42, 42, 0.35);
  color: #c92a2a;
  padding: 0.04rem 0.35rem;
  border-radius: 0.3rem;
  font-weight: 700;
}

.confusion-table-wrap {
  overflow-x: auto;
}

.confusion-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.confusion-table th,
.confusion-table td {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.55rem;
  text-align: center;
}

.confusion-table tfoot th,
.confusion-table tfoot td {
  background: rgba(255, 255, 255, 0.08);
  font-weight: 780;
}

.confusion-table th {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 760;
}

.confusion-table td input {
  width: 100%;
  min-width: 90px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font: inherit;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
