/* ── Filtro TODOS / ONLINE / OFFLINE ──────────────────────────────────────── */

.filter-toggle {
  display: flex;
  gap: 6px;
  padding: 8px 0;
}

.filter-btn {
  flex: 1;
  padding: 7px 0;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  background: var(--color-card);
  transition: background 0.15s, color 0.15s;
}

.filter-btn.active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ── Selection header ─────────────────────────────────────────────────────── */

.selection-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0 10px;
  font-size: 13px;
}

.master-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
}

.master-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.selection-counter {
  color: var(--color-text-muted);
  font-size: 12px;
  margin-left: auto;
}

/* ── Paginación ───────────────────────────────────────────────────────────── */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 0;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-card);
  font-size: 14px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.page-btn:hover:not(:disabled) {
  background: var(--color-border);
}

.page-info {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ── Última conexión ──────────────────────────────────────────────────────── */

.last-connection {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2px;
}

/* ── Action bar con tres filas ────────────────────────────────────────────── */

.action-bar {
  flex-direction: column;
  gap: 6px;
}

.action-row {
  display: flex;
  gap: 6px;
}

/* ── Colores por botón ────────────────────────────────────────────────────── */

#btn-simulacro       { background: #f59e0b; }
#btn-prueba          { background: #3b82f6; }
#btn-emergency-toggle { background: #dc2626; }
#btn-deactivate      { background: #16a34a; }

/* ── Dropdown emergencia ──────────────────────────────────────────────────── */

.dropdown-wrap {
  position: relative;
  flex: 1;
}

.btn-dropdown {
  width: 100%;
}

.dropdown-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  z-index: 30;
  overflow: hidden;
}

.dropdown-menu li {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.12s;
}

.dropdown-menu li:hover {
  background: var(--color-border);
}
