/*
 * Style for java-terminal-testcases.njk — an interactive terminal page whose
 * right pane also has a Tests tab (the unit-test pills + errors pane).
 * The terminal chrome and tab machinery come from terminal.css; the pills
 * come from testing.css; the tests view itself is a page-colored pane
 * inside the terminal frame rather than a terminal.
 */
@import url('terminal.css');
@import url('testing.css');

/* Local theme pair: the compiler-errors pane tint (as java-testcases.css). */
:root {
  --errors-pane-bg: rgba(196, 128, 196, 0.05);
}

@media not print {
  :root[data-theme='dark'] {
    --errors-pane-bg: rgba(196, 128, 196, 0.09);
  }
}

/* The tests view is a normal page-colored pane, not a terminal. */
.terminal-view[data-view='tests'] {
  background: var(--bg);
  overflow-y: auto;
}

.terminal-view.active[data-view='tests'] {
  display: flex;
  flex-direction: column;
}

.terminal-view[data-view='tests'] .test-results {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.terminal-view[data-view='tests'] .errors {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: var(--errors-pane-bg);
  border: 1px solid var(--border);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
