@charset "UTF-8";
/* Central de sesiones remotas (tabs SSH/RDP) — sesiones.scss */
.sessions-workspace {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1060; /* por encima de los modales (1055), debajo del loader (9998) */
  display: flex;
  flex-direction: column;
  background: #000;
}

.sessions-bar {
  display: flex;
  align-items: stretch;
  height: 40px;
  min-height: 40px;
  background: #1a1d21;
  border-bottom: 1px solid #333;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
}

.sessions-bar::-webkit-scrollbar {
  display: none;
}

/* Estado minimizado: el overlay colapsa a una tira-dock en el borde inferior
 * dejando visible y clickeable el resto de la app. El contenido se oculta y
 * al restaurar se re-dibuja la sesión activa (resize + focus). */
.sessions-workspace.minimized {
  top: auto;
  bottom: 0;
  height: 40px;
  min-height: 40px;
  border-top: 1px solid #333;
}

.sessions-workspace.minimized .sessions-content {
  display: none;
}

.sessions-workspace.minimized .sessions-bar {
  border-bottom: 0;
}

.session-tab.session-tab-minimize {
  flex: 0 0 auto;
  min-width: 44px;
  max-width: 44px;
  justify-content: center;
  border-right: 0;
  border-left: 1px solid #2c2f33;
  color: #9a9faa;
}

.session-tab.session-tab-minimize:hover {
  background: #26292d;
  color: #d0d5dd;
}

.session-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  min-width: 130px;
  max-width: 240px;
  border: 0;
  border-right: 1px solid #2c2f33;
  background: #1a1d21;
  color: #9a9faa;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.82rem;
  user-select: none;
}

.session-tab:hover {
  background: #26292d;
  color: #d0d5dd;
}

.session-tab.active {
  background: #2f3439;
  color: #ffffff;
}

.session-tab .tab-icon {
  font-size: 0.8rem;
  flex: 0 0 auto;
}

.session-tab .tab-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.session-tab .tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  cursor: pointer;
  color: inherit;
  flex: 0 0 auto;
}

.session-tab .tab-close:hover {
  background: #d9534f;
  color: #fff;
}

.session-tab .tab-spinner {
  width: 12px;
  height: 12px;
  color: #ffc107;
  flex: 0 0 auto;
}

.session-tab .tab-reconnect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #ffc107;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
}

.session-tab .tab-reconnect:hover {
  background: #6c5200;
}

.session-tab.tab-closed .tab-label {
  color: #e35b5b;
}

.sessions-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.session-pane {
  position: absolute;
  inset: 0;
  display: none;
  background: #000;
}

.session-pane.active {
  display: block;
}

.session-layer {
  position: absolute;
  inset: 0;
}

.ssh-host {
  padding: 6px 4px 4px 4px;
}

.ssh-host .xterm {
  height: 100%;
}

.rdp-host {
  background: #000;
  overflow: hidden;
}

/* Overlay por pane (spinner + mensaje) — reemplaza #rdpTerminalOverlay */
.session-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  padding: 16px;
}

.session-overlay .spinner-border {
  width: 2.5rem;
  height: 2.5rem;
}

/* Teclado mobile para SSH */
.mobile-kb {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1061;
  background: #1a1d21;
  border-top: 1px solid #333;
  padding: 6px 8px;
}

.mobile-kb .mobile-kb-row {
  display: flex;
}

.mobile-kb-input {
  flex: 1;
  width: 100%;
  background: #000;
  color: #fff;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 16px; /* >= 16px: evita el auto-zoom en iOS */
}

.mobile-kb-keys {
  gap: 6px;
  margin-top: 6px;
}

.mobile-kb-keys button {
  flex: 1;
  border: 1px solid #444;
  background: #26292d;
  color: #ddd;
  border-radius: 4px;
  padding: 6px 0;
  font-size: 0.8rem;
  cursor: pointer;
}

.session-pane.kb-active {
  bottom: 92px; /* descontar la barra del teclado mobile (input + teclas) */
}

/* Responsive: tab bar más chica en pantallas chicas (un solo DOM) */
@media (max-width: 767.98px) {
  .sessions-bar {
    height: 36px;
    min-height: 36px;
  }
  .session-tab {
    min-width: 90px;
    max-width: 120px;
    padding: 0 8px;
    font-size: 0.78rem;
  }
  .session-tab .tab-label {
    max-width: 58px;
  }
  .sessions-workspace.minimized {
    height: 36px;
    min-height: 36px;
  }
}

/*# sourceMappingURL=sessions.css.map */
