/* -------------------------------------------------------------------------
 * its-term.css  —  its_portal terminal client
 *
 * Serve alongside its-term.js. Load AFTER xterm.css.
 *
 * Deliberately minimal. Note there is no width or height on .its-term
 * itself: Xojo positions controls absolutely and writes concrete pixel
 * dimensions onto the element, so setting our own only fights the
 * framework — and because those are real pixel values, the child's
 * height:100% resolves against them cleanly.
 * ---------------------------------------------------------------------- */

.its-term .xterm {
  height: 100%;
}

/* The stream has real scrollback, so the scrollbar stays. Styled to sit
   quietly against the terminal ground rather than as an OS-default bar. */
.its-term .xterm-viewport {
  scrollbar-width: thin;
  scrollbar-color: #2A3947 #0F1720;
}

.its-term .xterm-viewport::-webkit-scrollbar {
  width: 10px;
}

.its-term .xterm-viewport::-webkit-scrollbar-track {
  background: #0F1720;
}

.its-term .xterm-viewport::-webkit-scrollbar-thumb {
  background: #2A3947;
  border-radius: 5px;
}

.its-term .xterm-viewport::-webkit-scrollbar-thumb:hover {
  background: #3A4C5C;
}

/* Connection status, top-right inside the terminal.
   The Xojo control element is absolutely positioned, which makes it a
   containing block for this without any change to the host's own layout.

   The background is opaque and matches the terminal ground on purpose: this
   strip sits over live screen content, and anything translucent here lets
   the characters underneath show through, which reads as blurred or doubled
   text rather than as transparency. */
.its-term-status {
  position: absolute;
  top: 4px;
  right: 20px;          /* clears the scrollbar */
  z-index: 5;
  font: 11px Consolas, Courier New, monospace;
  color: #8FA0AE;
  background: #0F1720;
  padding: 1px 7px 2px;
  border-radius: 3px;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}