/*
 * app/styles/custom.css — Cashflow noVNC UI trim
 * Hide unused chrome; keep View Only, Scaling (off/scale),
 * Quality + Compression, Audio (plugin), Connect/Disconnect/Fullscreen.
 */

/* ========== Control bar (when connected) ========== */

#noVNC_view_drag_button {
  display: none !important;
}

#noVNC_toggle_extra_keys_button,
#noVNC_modifiers {
  display: none !important;
}

#noVNC_clipboard_button,
#noVNC_clipboard {
  display: none !important;
}

#noVNC_power_button,
#noVNC_power {
  display: none !important;
}

/* ========== Settings: hide unused ========== */

li:has(#noVNC_setting_shared),
li:has(#noVNC_setting_view_clip),
li:has(#noVNC_setting_show_dot),
li:has(#noVNC_setting_logging),
li:has(#noVNC_setting_repeaterID),
li:has(#noVNC_setting_encrypt),
li:has(#noVNC_setting_host),
li:has(#noVNC_setting_port),
li:has(#noVNC_setting_path),
li:has(#noVNC_setting_reconnect),
li:has(#noVNC_setting_reconnect_delay) {
  display: none !important;
}

/* Remote Resizing only — keep None + Local Scaling */
#noVNC_setting_resize option[value="remote"] {
  display: none !important;
}

/* Version footer */
.noVNC_version_separator,
.noVNC_version_wrapper {
  display: none !important;
}

/* Orphan <hr> rows after hiding items */
#noVNC_settings ul > li:has(> hr) {
  display: none !important;
}

/* ========== Quality + Compression always visible ========== */

li:has(#noVNC_setting_quality),
li:has(#noVNC_setting_compression) {
  display: list-item !important;
}

#noVNC_setting_quality,
#noVNC_setting_compression {
  display: inline-block !important;
}

/*
 * Advanced is collapsed by default in noVNC.
 * Force the panel under the "Advanced" expander to stay open
 * so Quality/Compression show without a console click.
 */
#noVNC_settings .noVNC_expander {
  /* optional: hide the "Advanced" header itself once children are forced open */
  display: none !important;
}

#noVNC_settings .noVNC_expander + div {
  display: block !important;
}

/* Nested WebSocket expander under Advanced — keep shut / empty */
#noVNC_settings .noVNC_expander + div .noVNC_expander {
  display: none !important;
}

#noVNC_settings .noVNC_expander + div .noVNC_expander + div {
  display: none !important;
}

/*
 * Audio (#noVNC_setting_audio_enabled) injected by spice-audio-plugin.js
 * — do not hide.
 */
